Skip to content

Commit

Permalink
Add yaml test to validate previous fix to group including multiple en…
Browse files Browse the repository at this point in the history
…dpoints (#31146)

* Add yaml test to validate previous fix

* Add staged but previously not committed change

* Restyled by whitespace

* Small fixes

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 13, 2024
1 parent b43f094 commit 910a125
Showing 1 changed file with 55 additions and 1 deletion.
56 changes: 55 additions & 1 deletion src/app/tests/suites/TestGroupMessaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,23 @@ tests:
- name: "GroupID"
value: 0x0101

- label: "Add Group 1 (endpoint 2)"
cluster: "Groups"
command: "AddGroup"
endpoint: 2
arguments:
values:
- name: "GroupID"
value: 0x0101
- name: "GroupName"
value: "Group #1"
response:
values:
- name: "Status"
value: 0
- name: "GroupID"
value: 0x0101

- label: "Add Group 2 (endpoint 0)"
cluster: "Groups"
command: "AddGroup"
Expand Down Expand Up @@ -216,6 +233,14 @@ tests:
response:
value: 0

- label: "Check on/off attribute value is false for endpoint 2"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
endpoint: 2
response:
value: 0

- label: "Turn On the light to see attribute change"
cluster: "On/Off"
command: "On"
Expand All @@ -241,11 +266,40 @@ tests:
response:
value: 1

- label: "Turn off the light to get ready for the next test"
- label:
"Check on/off attribute value is true after on command for endpoint 2"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
endpoint: 2
response:
value: 1

- label: "Turn off the light to get ready for the next test for endpoint 1"
cluster: "On/Off"
command: "Off"
endpoint: 1

- label: "Turn off the light to get ready for the next test for endpoint 2"
cluster: "On/Off"
command: "Off"
endpoint: 2

- label: "Cleanup for next test remove Group 1 (endpoint 2)"
cluster: "Groups"
command: "RemoveGroup"
endpoint: 2
arguments:
values:
- name: "GroupID"
value: 0x0101
response:
values:
- name: "Status"
value: 0
- name: "GroupID"
value: 0x0101

- label: "Cleanup ACLs"
cluster: "Access Control"
command: "writeAttribute"
Expand Down

0 comments on commit 910a125

Please sign in to comment.