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

[Scenes] Unit Test Reliance Removal #35130

Merged
Show file tree
Hide file tree
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
33 changes: 2 additions & 31 deletions src/app/tests/suites/certification/Test_TC_S_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,36 +50,6 @@ tests:
- name: "SceneTableSize"
saveAs: maxScenes

- label: "Arithmetic operation to get the maxScenes - 1"
cluster: "Unit Testing"
command: "TestAddArguments"
arguments:
values:
- name: "arg1"
value: maxScenes - 1
- name: "arg2"
value: 0
response:
values:
- name: "returnValue"
saveAs: maxScenesMinusOne
value: maxScenes - 1

- label: "Arithmetic operation to get the fabric Capacity"
cluster: "Unit Testing"
command: "TestAddArguments"
arguments:
values:
- name: "arg1"
value: maxScenesMinusOne / 2
- name: "arg2"
value: 0
response:
values:
- name: "returnValue"
saveAs: fabricCapacity
value: maxScenesMinusOne / 2

- label:
"Step 0a :TH reads attribute {ServerList} from the Descriptor cluster
of the endpoint that implements the Scenes Management server on the
Expand Down Expand Up @@ -202,7 +172,8 @@ tests:
- name: "Status"
value: 0x00
- name: "Capacity"
value: fabricCapacity
value: (maxScenes - 1) / 2
saveAs: fabricCapacity
- name: "GroupID"
value: G1

Expand Down
33 changes: 2 additions & 31 deletions src/app/tests/suites/certification/Test_TC_S_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,36 +50,6 @@ tests:
- name: "SceneTableSize"
saveAs: maxScenes

- label: "Arithmetic operation to get the maxScenes - 1"
cluster: "Unit Testing"
command: "TestAddArguments"
arguments:
values:
- name: "arg1"
value: maxScenes - 1
- name: "arg2"
value: 0
response:
values:
- name: "returnValue"
saveAs: maxScenesMinusOne
value: maxScenes - 1

- label: "Arithmetic operation to get the fabric Capacity"
cluster: "Unit Testing"
command: "TestAddArguments"
arguments:
values:
- name: "arg1"
value: maxScenesMinusOne / 2
- name: "arg2"
value: 0
response:
values:
- name: "returnValue"
saveAs: fabricCapacity
value: maxScenesMinusOne / 2

- label:
"Step 0a: TH sends KeySetWrite command in the GroupKeyManagement
cluster to DUT using a key that is pre-installed on the TH.
Expand Down Expand Up @@ -259,7 +229,8 @@ tests:
- name: "Status"
value: 0x00
- name: "Capacity"
value: fabricCapacity
value: (maxScenes - 1) / 2
saveAs: fabricCapacity
- name: "GroupID"
value: G1
- name: "SceneList"
Expand Down
Loading