Skip to content

Commit 76848fe

Browse files
Fix YAML script issues Aug 11 (#28656)
Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 4f8cb58 commit 76848fe

File tree

77 files changed

+11502
-4296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+11502
-4296
lines changed

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

+108-366
Large diffs are not rendered by default.

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

+137-4
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,51 @@ tests:
143143
type: list
144144
contains: [5]
145145

146-
- label: "Step 5: TH reads EventList attribute from DUT"
146+
#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
147+
- label:
148+
"Step 4f: TH reads AttributeList attribute from DUT. 1.The list SHALL
149+
NOT contain any additional values in the standard or scoped range:
150+
(0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 - 0x0000_FFFE). 2.The
151+
list MAY contain values in the Manufacturer Extensible Identifier
152+
(MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where XXXX is the allowed
153+
MEI range (0x0001 - 0xFFF1), these values SHALL be ignored. 3.The list
154+
SHALL NOT contain any values in the Test Vendor or invalid range:
155+
(0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF), (0xXXXX_5000 -
156+
0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where XXXX is the
157+
allowed MEI range (0x0001 - 0xFFF1)"
158+
verification: |
159+
./chip-tool activatedcarbonfiltermonitoring read attribute-list 1 1
160+
161+
Via the TH (chip-tool), verify that the AttributeList attribute contains
162+
- Mandatory entries:0x0002, 0xfff8, 0xfff9, 0xfffa, 0xfffb, 0xfffc & 0xfffd
163+
- Optional entries:- 0x0003
164+
- Based on feature support:- 0x0000, 0x0001
165+
166+
[1685958590.636044][11442:11444] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0072 Attribute 0x0000_FFFB DataVersion: 403478864
167+
[1690179748.767756][7924:7926] CHIP:TOO: AttributeList: 12 entries
168+
[1690179748.767825][7924:7926] CHIP:TOO: [1]: 0
169+
[1690179748.767885][7924:7926] CHIP:TOO: [2]: 1
170+
[1690179748.767943][7924:7926] CHIP:TOO: [3]: 2
171+
[1690179748.767999][7924:7926] CHIP:TOO: [4]: 3
172+
[1690179748.768056][7924:7926] CHIP:TOO: [5]: 4
173+
[1690179748.768112][7924:7926] CHIP:TOO: [6]: 5
174+
[1690179748.768170][7924:7926] CHIP:TOO: [7]: 65528
175+
[1690179748.768227][7924:7926] CHIP:TOO: [8]: 65529
176+
[1690179748.768283][7924:7926] CHIP:TOO: [9]: 65530
177+
[1690179748.768340][7924:7926] CHIP:TOO: [10]: 65531
178+
[1690179748.768397][7924:7926] CHIP:TOO: [11]: 65532
179+
[1690179748.768454][7924:7926] CHIP:TOO: [12]: 65533
180+
cluster: "LogCommands"
181+
command: "UserPrompt"
182+
PICS: PICS_USER_PROMPT
183+
arguments:
184+
values:
185+
- name: "message"
186+
value: "Please enter 'y' for success"
187+
- name: "expectedValue"
188+
value: "y"
189+
190+
- label: "Step 5a: TH reads EventList attribute from DUT"
147191
PICS: PICS_EVENT_LIST_ENABLED
148192
command: "readAttribute"
149193
attribute: "EventList"
@@ -152,16 +196,46 @@ tests:
152196
constraints:
153197
type: list
154198

199+
#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
200+
- label:
201+
"Step 5b: TH reads from the DUT the EventList attribute. 1.The list
202+
SHALL NOT contain any additional values in the standard or scoped
203+
range: (0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 - 0x0000_FFFE) 2.
204+
The list MAY contain values in the Manufacturer Extensible Identifier
205+
(MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where XXXX is the allowed
206+
MEI range (0x0001 - 0xFFF1), these values SHALL be ignored. 3. The
207+
list SHALL NOT contain any values in the Test Vendor or invalid range:
208+
(0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF), (0xXXXX_5000 -
209+
0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where XXXX is the
210+
allowed MEI range (0x0001 - 0xFFF1)"
211+
verification: |
212+
./chip-tool activatedcarbonfiltermonitoring read event-list 1 1
213+
214+
Via the TH (chip-tool), verify that the EventList attribute. Below mentioned log is based on the RPI implementation, Value may vary on real DUT
215+
216+
[1685958846.723249][11454:11456] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0072 Attribute 0x0000_FFFA DataVersion: 403478864
217+
[1685958846.723431][11454:11456] CHIP:TOO: EventList: 0 entries
218+
cluster: "LogCommands"
219+
command: "UserPrompt"
220+
PICS: PICS_USER_PROMPT && PICS_EVENT_LIST_ENABLED
221+
arguments:
222+
values:
223+
- name: "message"
224+
value: "Please enter 'y' for success"
225+
- name: "expectedValue"
226+
value: "y"
227+
155228
- label: "Step 6a: Read the global attribute: AcceptedCommandList"
229+
PICS: "!ACFREMON.S.C00.Rsp"
156230
command: "readAttribute"
157231
attribute: "AcceptedCommandList"
158232
response:
233+
value: []
159234
constraints:
160235
type: list
161-
contains: []
162236

163237
- label:
164-
"Step 6b: Read the optional command (ResetCondition) in
238+
"Step 6a: Read the optional command (ResetCondition) in
165239
AcceptedCommandList"
166240
PICS: ACFREMON.S.C00.Rsp
167241
command: "readAttribute"
@@ -171,10 +245,69 @@ tests:
171245
type: list
172246
contains: [0]
173247

174-
- label: "Step 7: Read the global attribute: GeneratedCommandList"
248+
#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
249+
- label:
250+
"Step 6b: TH reads from the DUT the AcceptedCommandList attribute.
251+
1.The list SHALL NOT contain any additional values in the standard or
252+
scoped range: (0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 -
253+
0x0000_FFFE). 2.The list MAY contain values in the Manufacturer
254+
Extensible Identifier (MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where
255+
XXXX is the allowed MEI range (0x0001 - 0xFFF1), these values SHALL be
256+
ignored. 3.The list SHALL NOT contain any values in the Test Vendor or
257+
invalid range: (0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF),
258+
(0xXXXX_5000 - 0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where
259+
XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
260+
verification: |
261+
./chip-tool activatedcarbonfiltermonitoring read accepted-command-list 1 1
262+
263+
Via the TH (chip-tool), verify that the AcceptedCommandList attribute. Below mentioned log is based on the RPI implementation, Value may vary on real DUT
264+
265+
[1685959114.395290][11468:11470] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0072 Attribute 0x0000_FFF9 DataVersion: 403478864
266+
[1685959114.395414][11468:11470] CHIP:TOO: AcceptedCommandList: 0 entries
267+
[1690183785.805331][8169:8171] CHIP:TOO: [1]: 0
268+
cluster: "LogCommands"
269+
command: "UserPrompt"
270+
PICS: PICS_USER_PROMPT
271+
arguments:
272+
values:
273+
- name: "message"
274+
value: "Please enter 'y' for success"
275+
- name: "expectedValue"
276+
value: "y"
277+
278+
- label: "Step 7a: Read the global attribute: GeneratedCommandList"
175279
command: "readAttribute"
176280
attribute: "GeneratedCommandList"
177281
response:
178282
value: []
179283
constraints:
180284
type: list
285+
286+
#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
287+
- label:
288+
"Step 7b: TH reads from the DUT the GeneratedCommandList attribute.
289+
1.The list SHALL NOT contain any additional values in the standard or
290+
scoped range: (0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 -
291+
0x0000_FFFE). 2.The list MAY contain values in the Manufacturer
292+
Extensible Identifier (MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where
293+
XXXX is the allowed MEI range (0x0001 - 0xFFF1), these values SHALL be
294+
ignored. 3.The list SHALL NOT contain any values in the Test Vendor or
295+
invalid range: (0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF),
296+
(0xXXXX_5000 - 0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where
297+
XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
298+
verification: |
299+
./chip-tool activatedcarbonfiltermonitoring read generated-command-list 1 1
300+
301+
Via the TH (chip-tool), verify that the GeneratedCommandList attribute. Below mentioned log is based on the RPI implementation, Value may vary on real DUT
302+
303+
[1685959192.277991][11472:11474] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0072 Attribute 0x0000_FFF8 DataVersion: 403478864
304+
[1685959192.278115][11472:11474] CHIP:TOO: GeneratedCommandList: 0 entries
305+
cluster: "LogCommands"
306+
command: "UserPrompt"
307+
PICS: PICS_USER_PROMPT
308+
arguments:
309+
values:
310+
- name: "message"
311+
value: "Please enter 'y' for success"
312+
- name: "expectedValue"
313+
value: "y"

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

+13-12
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ tests:
3232
value: nodeId
3333

3434
- label: "Step 2: TH reads ClusterRevision attribute from DUT"
35-
PICS: ACL.S.Afffd
3635
command: "readAttribute"
3736
attribute: "ClusterRevision"
3837
response:
@@ -41,7 +40,6 @@ tests:
4140
type: int16u
4241

4342
- label: "Step 3: TH reads FeatureMap attribute from DUT"
44-
PICS: ACL.S.Afffc
4543
command: "readAttribute"
4644
attribute: "FeatureMap"
4745
response:
@@ -50,7 +48,7 @@ tests:
5048
type: bitmap32
5149

5250
- label: "Step 4a: TH reads AttributeList attribute from DUT"
53-
PICS: PICS_EVENT_LIST_ENABLED && ACL.S.Afffb
51+
PICS: PICS_EVENT_LIST_ENABLED
5452
command: "readAttribute"
5553
attribute: "AttributeList"
5654
response:
@@ -59,7 +57,7 @@ tests:
5957
contains: [0, 2, 3, 4, 65528, 65529, 65530, 65531, 65532, 65533]
6058

6159
- label: "Step 4a: TH reads AttributeList attribute from DUT"
62-
PICS: "!PICS_EVENT_LIST_ENABLED && ACL.S.Afffb"
60+
PICS: "!PICS_EVENT_LIST_ENABLED"
6361
command: "readAttribute"
6462
attribute: "AttributeList"
6563
response:
@@ -68,7 +66,7 @@ tests:
6866
contains: [0, 2, 3, 4, 65528, 65529, 65531, 65532, 65533]
6967

7068
- label: "Step 4b: TH reads optional attribute (Extension) in AttributeList"
71-
PICS: ACL.S.A0001 && ACL.S.Afffb
69+
PICS: ACL.S.A0001
7270
command: "readAttribute"
7371
attribute: "AttributeList"
7472
response:
@@ -108,7 +106,7 @@ tests:
108106
[1676270267.634334][20397:20399] CHIP:TOO: [11]: 65533
109107
cluster: "LogCommands"
110108
command: "UserPrompt"
111-
PICS: PICS_USER_PROMPT && ACL.S.Afffb
109+
PICS: PICS_USER_PROMPT
112110
arguments:
113111
values:
114112
- name: "message"
@@ -117,7 +115,7 @@ tests:
117115
value: "y"
118116

119117
- label: "Step 5a: TH reads EventList attribute from DUT"
120-
PICS: PICS_EVENT_LIST_ENABLED && ACL.S.Afffa
118+
PICS: PICS_EVENT_LIST_ENABLED
121119
command: "readAttribute"
122120
attribute: "EventList"
123121
response:
@@ -138,8 +136,9 @@ tests:
138136
verification: |
139137
./chip-tool accesscontrol read event-list 1 0
140138
141-
Verify " EventList attribute " consists the list of supported events, which for this cluster should containing the following elements:
142-
all mandatory events: AccessControlEntryChanged (0), AccessControlExtensionChanged (1) on the TH(Chip-tool) Log:
139+
Via the TH (chip-tool), verify:
140+
-that EventList attribute contains list of supported events.
141+
-that list has two entries as value of 0 and 1 (if SAccessControlEntryChanged and AccessControlExtensionChanged event is supported).
143142
144143
[1676456597.556478][24006:24008] CHIP:DMG: }
145144
[1676456597.556640][24006:24008] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFFA DataVersion: 3448736795
@@ -150,14 +149,15 @@ tests:
150149
[1676456597.556778][24006:24008] CHIP:IN: (S) Sending msg 55400435 on secure session with LSID: 1376
151150
cluster: "LogCommands"
152151
command: "UserPrompt"
153-
PICS: PICS_USER_PROMPT && ACL.S.Afffa
152+
PICS: PICS_USER_PROMPT && PICS_EVENT_LIST_ENABLED
154153
arguments:
155154
values:
156155
- name: "message"
157156
value: "Please enter 'y' for success"
158157
- name: "expectedValue"
159158
value: "y"
160159

160+
# List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
161161
- label:
162162
"Step 6: TH reads AcceptedCommandList attribute from DUT. 1. The list
163163
MAY contain values in the Manufacturer Extensible Identifier (MEI)
@@ -184,14 +184,15 @@ tests:
184184
[1656478328.211313][2458:2463] CHIP:IN: Prepared secure message 0xffff8a2e3958 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 15270i with MessageCounter:229380798.
185185
cluster: "LogCommands"
186186
command: "UserPrompt"
187-
PICS: PICS_USER_PROMPT && ACL.S.Afff9
187+
PICS: PICS_USER_PROMPT
188188
arguments:
189189
values:
190190
- name: "message"
191191
value: "Please enter 'y' for success"
192192
- name: "expectedValue"
193193
value: "y"
194194

195+
# List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
195196
- label:
196197
"Step 7: TH reads GeneratedCommandList attribute from DUT. 1.The list
197198
MAY contain values in the Manufacturer Extensible Identifier (MEI)
@@ -219,7 +220,7 @@ tests:
219220
[1656478396.324967][2467:2472] CHIP:IN: Sending encrypted msg 0xffffab7ed958 with MessageCounter:243106706
220221
cluster: "LogCommands"
221222
command: "UserPrompt"
222-
PICS: PICS_USER_PROMPT && ACL.S.Afff8
223+
PICS: PICS_USER_PROMPT
223224
arguments:
224225
values:
225226
- name: "message"

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,20 @@ tests:
7474
type: list
7575
contains: [2]
7676

77-
#EventList failure https://github.com/project-chip/connectedhomeip/issues/26571
7877
- label: "Step 5: TH reads EventList attribute from DUT"
7978
verification: |
8079
./chip-tool actions read event-list 1 1
8180
82-
On TH(chip-tool), verify that DUT responds with list of supported events as 1 entry.
81+
Via the TH (chip-tool), verify:
82+
-that EventList attribute contains list of supported events.
83+
-that list has 1 entry(0) for this cluster.
8384
8485
[1676460741.103254][37023:37025] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0025 Attribute 0x0000_FFFA DataVersion: 928273128
8586
[1676460741.103303][37023:37025] CHIP:TOO: EventList: 1 entries
8687
[1676460741.103320][37023:37025] CHIP:TOO: [1]: 0
8788
cluster: "LogCommands"
8889
command: "UserPrompt"
89-
PICS: PICS_USER_PROMPT
90+
PICS: PICS_USER_PROMPT && PICS_EVENT_LIST_ENABLED
9091
arguments:
9192
values:
9293
- name: "message"

0 commit comments

Comments
 (0)