mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Update tests
This commit is contained in:
parent
3ad2dd7b3c
commit
6c69a235c1
@ -63,12 +63,12 @@ marks:
|
|||||||
- ["purple", "#830083", 131, 0, 131, 32784]
|
- ["purple", "#830083", 131, 0, 131, 32784]
|
||||||
- ["salmon", "#ff8173", 255, 129, 115, 64526]
|
- ["salmon", "#ff8173", 255, 129, 115, 64526]
|
||||||
- ["sienna", "#a45029", 164, 80, 41, 41605]
|
- ["sienna", "#a45029", 164, 80, 41, 41605]
|
||||||
- ["silver", "#c5c2c5", 197, 194, 197, 50712]
|
|
||||||
- ["tomato", "#ff6141", 255, 97, 65, 64264]
|
- ["tomato", "#ff6141", 255, 97, 65, 64264]
|
||||||
- ["violet", "#ee81ee", 238, 129, 238, 60445]
|
- ["violet", "#ee81ee", 238, 129, 238, 60445]
|
||||||
- ["yellow", "#ffff00", 255, 255, 0, 65504]
|
- ["yellow", "#ffff00", 255, 255, 0, 65504]
|
||||||
- ["fuchsia", "#ff00ff", 255, 0, 255, 63519]
|
- ["fuchsia", "#ff00ff", 255, 0, 255, 63519]
|
||||||
- ["magenta", "#ff00ff", 255, 0, 255, 63519]
|
- ["magenta", "#ff00ff", 255, 0, 255, 63519]
|
||||||
|
- ["silver", "#c5c2c5", 197, 194, 197, 50712]
|
||||||
|
|
||||||
- parametrize:
|
- parametrize:
|
||||||
key: obj
|
key: obj
|
||||||
|
@ -242,3 +242,13 @@ stages:
|
|||||||
json:
|
json:
|
||||||
value_str: "{str1}{str2}"
|
value_str: "{str1}{str2}"
|
||||||
timeout: 1
|
timeout: 1
|
||||||
|
|
||||||
|
- name: Get obj type
|
||||||
|
mqtt_publish:
|
||||||
|
topic: hasp/{plate}/command
|
||||||
|
payload: "p1b1.obj"
|
||||||
|
mqtt_response:
|
||||||
|
topic: hasp/{plate}/state/p1b1
|
||||||
|
json:
|
||||||
|
obj: "{obj}"
|
||||||
|
timeout: 1
|
||||||
|
@ -19,26 +19,27 @@ paho-mqtt:
|
|||||||
|
|
||||||
marks:
|
marks:
|
||||||
- parametrize:
|
- parametrize:
|
||||||
key: objid
|
key: obj
|
||||||
vals:
|
vals:
|
||||||
- 10
|
- cpicker
|
||||||
- 12
|
- table
|
||||||
- 20
|
- tabview
|
||||||
- 22
|
- chart
|
||||||
- 30
|
- gauge
|
||||||
- 31
|
- btn
|
||||||
- 32
|
- label
|
||||||
# - 33
|
- slider
|
||||||
# - 40
|
- checkbox
|
||||||
- 41
|
- switch
|
||||||
- 50
|
- bar
|
||||||
- 51
|
- arc
|
||||||
- 91
|
- led
|
||||||
# - 90
|
- obj
|
||||||
# - 1
|
- lmeter
|
||||||
- 2
|
- dropdown
|
||||||
- 71
|
- spinner
|
||||||
- 80
|
- roller
|
||||||
|
- btnmatrix
|
||||||
|
|
||||||
- parametrize:
|
- parametrize:
|
||||||
key: str1
|
key: str1
|
||||||
@ -51,8 +52,6 @@ marks:
|
|||||||
- "She opened the door."
|
- "She opened the door."
|
||||||
- "Aaron made a picture."
|
- "Aaron made a picture."
|
||||||
- "I'm sorry."
|
- "I'm sorry."
|
||||||
- Test
|
|
||||||
- ABC
|
|
||||||
- huey
|
- huey
|
||||||
- dewey
|
- dewey
|
||||||
- ""
|
- ""
|
||||||
@ -61,7 +60,6 @@ marks:
|
|||||||
key: str2
|
key: str2
|
||||||
vals:
|
vals:
|
||||||
- louie
|
- louie
|
||||||
- fred
|
|
||||||
- " I danced."
|
- " I danced."
|
||||||
- " Oak is strong and also gives shade."
|
- " Oak is strong and also gives shade."
|
||||||
- " Cats and dogs each hate the other."
|
- " Cats and dogs each hate the other."
|
||||||
@ -90,17 +88,19 @@ stages:
|
|||||||
mqtt_publish:
|
mqtt_publish:
|
||||||
topic: hasp/{plate}/command/jsonl
|
topic: hasp/{plate}/command/jsonl
|
||||||
json:
|
json:
|
||||||
objid: "{objid}"
|
obj: "{obj}"
|
||||||
id: 1
|
id: 1
|
||||||
x: 128
|
x: 0
|
||||||
y: 128
|
y: 0
|
||||||
|
w: 240
|
||||||
|
h: 240
|
||||||
delay_after: 0
|
delay_after: 0
|
||||||
|
|
||||||
- name: Set value_str
|
- name: Set value_str
|
||||||
mqtt_publish:
|
mqtt_publish:
|
||||||
topic: "hasp/{plate}/command/p[1].b[1].value_str"
|
topic: "hasp/{plate}/command/p[1].b[1].value_str"
|
||||||
payload: "{str1}{str2}"
|
payload: "{str1}{str2}"
|
||||||
delay_after: 0.05
|
delay_after: 0
|
||||||
- name: Get value_str
|
- name: Get value_str
|
||||||
mqtt_publish:
|
mqtt_publish:
|
||||||
topic: hasp/{plate}/command
|
topic: hasp/{plate}/command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user