Skip to content

Commit 929c08e

Browse files
lpbeliveau-silabsPeterC1965
authored andcommitted
Removed Arithmetics operations relying on Unit test cluster from TC_S_2_2 and TC_S_2_3 (project-chip#35130)
1 parent 946e6a6 commit 929c08e

File tree

2 files changed

+4
-62
lines changed

2 files changed

+4
-62
lines changed

src/app/tests/suites/certification/Test_TC_S_2_2.yaml

+2-31
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,6 @@ tests:
5050
- name: "SceneTableSize"
5151
saveAs: maxScenes
5252

53-
- label: "Arithmetic operation to get the maxScenes - 1"
54-
cluster: "Unit Testing"
55-
command: "TestAddArguments"
56-
arguments:
57-
values:
58-
- name: "arg1"
59-
value: maxScenes - 1
60-
- name: "arg2"
61-
value: 0
62-
response:
63-
values:
64-
- name: "returnValue"
65-
saveAs: maxScenesMinusOne
66-
value: maxScenes - 1
67-
68-
- label: "Arithmetic operation to get the fabric Capacity"
69-
cluster: "Unit Testing"
70-
command: "TestAddArguments"
71-
arguments:
72-
values:
73-
- name: "arg1"
74-
value: maxScenesMinusOne / 2
75-
- name: "arg2"
76-
value: 0
77-
response:
78-
values:
79-
- name: "returnValue"
80-
saveAs: fabricCapacity
81-
value: maxScenesMinusOne / 2
82-
8353
- label:
8454
"Step 0a :TH reads attribute {ServerList} from the Descriptor cluster
8555
of the endpoint that implements the Scenes Management server on the
@@ -202,7 +172,8 @@ tests:
202172
- name: "Status"
203173
value: 0x00
204174
- name: "Capacity"
205-
value: fabricCapacity
175+
value: (maxScenes - 1) / 2
176+
saveAs: fabricCapacity
206177
- name: "GroupID"
207178
value: G1
208179

src/app/tests/suites/certification/Test_TC_S_2_3.yaml

+2-31
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,6 @@ tests:
5050
- name: "SceneTableSize"
5151
saveAs: maxScenes
5252

53-
- label: "Arithmetic operation to get the maxScenes - 1"
54-
cluster: "Unit Testing"
55-
command: "TestAddArguments"
56-
arguments:
57-
values:
58-
- name: "arg1"
59-
value: maxScenes - 1
60-
- name: "arg2"
61-
value: 0
62-
response:
63-
values:
64-
- name: "returnValue"
65-
saveAs: maxScenesMinusOne
66-
value: maxScenes - 1
67-
68-
- label: "Arithmetic operation to get the fabric Capacity"
69-
cluster: "Unit Testing"
70-
command: "TestAddArguments"
71-
arguments:
72-
values:
73-
- name: "arg1"
74-
value: maxScenesMinusOne / 2
75-
- name: "arg2"
76-
value: 0
77-
response:
78-
values:
79-
- name: "returnValue"
80-
saveAs: fabricCapacity
81-
value: maxScenesMinusOne / 2
82-
8353
- label:
8454
"Step 0a: TH sends KeySetWrite command in the GroupKeyManagement
8555
cluster to DUT using a key that is pre-installed on the TH.
@@ -259,7 +229,8 @@ tests:
259229
- name: "Status"
260230
value: 0x00
261231
- name: "Capacity"
262-
value: fabricCapacity
232+
value: (maxScenes - 1) / 2
233+
saveAs: fabricCapacity
263234
- name: "GroupID"
264235
value: G1
265236
- name: "SceneList"

0 commit comments

Comments
 (0)