Update tavern tests

This commit is contained in:
fvanroie 2021-05-15 12:46:04 +02:00
parent a89fc857c1
commit 5f711fc0ce

View File

@ -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: