mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-19 09:16:41 +00:00
Update tavern tests
This commit is contained in:
parent
a89fc857c1
commit
5f711fc0ce
@ -2,6 +2,35 @@
|
|||||||
---
|
---
|
||||||
test_name: Obj Standard Properties
|
test_name: Obj Standard Properties
|
||||||
|
|
||||||
|
includes:
|
||||||
|
- !include config.yaml
|
||||||
|
|
||||||
|
paho-mqtt:
|
||||||
|
client:
|
||||||
|
transport: tcp
|
||||||
|
client_id: tavern-tester
|
||||||
|
connect:
|
||||||
|
host: "{host}"
|
||||||
|
port: !int "{port:d}"
|
||||||
|
timeout: 3
|
||||||
|
auth:
|
||||||
|
username: "{username}"
|
||||||
|
password: "{password}"
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- name: Page 1
|
||||||
|
mqtt_publish:
|
||||||
|
topic: hasp/{plate}/command
|
||||||
|
payload: "page 1"
|
||||||
|
mqtt_response:
|
||||||
|
topic: hasp/{plate}/state/page
|
||||||
|
payload: "1"
|
||||||
|
timeout: 1
|
||||||
|
delay_after: 0
|
||||||
|
|
||||||
|
---
|
||||||
|
test_name: Obj Standard Properties
|
||||||
|
|
||||||
includes:
|
includes:
|
||||||
- !include config.yaml
|
- !include config.yaml
|
||||||
|
|
||||||
@ -74,15 +103,10 @@ marks:
|
|||||||
- ""
|
- ""
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- name: Page 1
|
- name: Clear Page
|
||||||
mqtt_publish:
|
mqtt_publish:
|
||||||
topic: hasp/{plate}/command
|
topic: hasp/{plate}/command
|
||||||
payload: "page 1"
|
payload: "clearpage 1"
|
||||||
mqtt_response:
|
|
||||||
topic: hasp/{plate}/state/page
|
|
||||||
payload: "1"
|
|
||||||
timeout: 1
|
|
||||||
delay_after: 0
|
|
||||||
|
|
||||||
- name: Create object
|
- name: Create object
|
||||||
mqtt_publish:
|
mqtt_publish:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user