Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yaml test to validate previous fix to group including multiple endpoints #31146

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading