Skip to content

Commit 1292278

Browse files
rbultmanrestyled-commits
authored andcommitted
[TC-FAN-1.1] Automate read of cluster rev, align step numbers (#28566)
* Automate read of cluster rev, align step numbers * Restyled by prettier-yaml * Updates for the script * Properly named command. * Reran zap_regen * Restyled by prettier-yaml --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 487bfb5 commit 1292278

File tree

2 files changed

+88
-283
lines changed

2 files changed

+88
-283
lines changed

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

+22-132
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ tests:
3131
- name: "nodeId"
3232
value: nodeId
3333

34-
- label: "Step 2a: Read the global attribute: ClusterRevision"
34+
- label: "Step 2: Read the global attribute: ClusterRevision"
3535
command: "readAttribute"
3636
attribute: "ClusterRevision"
3737
response:
3838
value: 4
3939
constraints:
4040
type: int16u
4141

42-
- label: "Step 2b: Read the global attribute: FeatureMap"
42+
- label: "Step 3a: Read the global attribute: FeatureMap"
4343
command: "readAttribute"
4444
attribute: "FeatureMap"
4545
PICS:
@@ -51,8 +51,8 @@ tests:
5151
type: bitmap32
5252

5353
- label:
54-
"Step 2c: Given FAN.S.F00(Condition) ensure featuremap has the correct
55-
bit set"
54+
"Step 3b: Given FAN.S.F00(SPD) ensure featuremap has the correct bit
55+
set"
5656
command: "readAttribute"
5757
attribute: "FeatureMap"
5858
PICS: FAN.S.F00
@@ -62,8 +62,8 @@ tests:
6262
hasMasksSet: [0x1]
6363

6464
- label:
65-
"Step 2d: Given FAN.S.F01(Warning) ensure featuremap has the correct
66-
bit set"
65+
"Step 3c: Given FAN.S.F01(AUT) ensure featuremap has the correct bit
66+
set"
6767
command: "readAttribute"
6868
attribute: "FeatureMap"
6969
PICS: FAN.S.F01
@@ -73,8 +73,8 @@ tests:
7373
hasMasksSet: [0x2]
7474

7575
- label:
76-
"Step 2e: Given FAN.S.F02(Condition) ensure featuremap has the correct
77-
bit set"
76+
"Step 3d: Given FAN.S.F02(RCK) ensure featuremap has the correct bit
77+
set"
7878
command: "readAttribute"
7979
attribute: "FeatureMap"
8080
PICS: FAN.S.F02
@@ -84,8 +84,8 @@ tests:
8484
hasMasksSet: [0x4]
8585

8686
- label:
87-
"Step 2f: Given FAN.S.F03(Warning) ensure featuremap has the correct
88-
bit set"
87+
"Step 3e: Given FAN.S.F03(WND) ensure featuremap has the correct bit
88+
set"
8989
command: "readAttribute"
9090
attribute: "FeatureMap"
9191
PICS: FAN.S.F03
@@ -95,8 +95,8 @@ tests:
9595
hasMasksSet: [0x8]
9696

9797
- label:
98-
"Step 2g: Given FAN.S.F04(Warning) ensure featuremap has the correct
99-
bit set"
98+
"Step 3f: Given FAN.S.F04(STEP) ensure featuremap has the correct bit
99+
set"
100100
command: "readAttribute"
101101
attribute: "FeatureMap"
102102
PICS: FAN.S.F04
@@ -106,8 +106,8 @@ tests:
106106
hasMasksSet: [0x10]
107107

108108
- label:
109-
"Step 2h: Given FAN.S.F05(Warning) ensure featuremap has the correct
110-
bit set"
109+
"Step 3g: Given FAN.S.F05(DIR) ensure featuremap has the correct bit
110+
set"
111111
command: "readAttribute"
112112
attribute: "FeatureMap"
113113
PICS: FAN.S.F05
@@ -116,7 +116,7 @@ tests:
116116
type: bitmap32
117117
hasMasksSet: [0x20]
118118

119-
- label: "Step 3a: Read the global attribute: AttributeList"
119+
- label: "Step 4: Read the global attribute: AttributeList"
120120
PICS: PICS_EVENT_LIST_ENABLED
121121
command: "readAttribute"
122122
attribute: "AttributeList"
@@ -125,7 +125,7 @@ tests:
125125
type: list
126126
contains: [0, 1, 2, 3, 65528, 65529, 65530, 65531, 65532, 65533]
127127

128-
- label: "Step 3a: Read the global attribute: AttributeList"
128+
- label: "Step 4: Read the global attribute: AttributeList"
129129
PICS: "!PICS_EVENT_LIST_ENABLED"
130130
command: "readAttribute"
131131
attribute: "AttributeList"
@@ -135,7 +135,7 @@ tests:
135135
contains: [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
136136

137137
- label:
138-
"Step 3b: Read the feature dependent FAN.S.F00 (SPD) attribute in
138+
"Step 4: Read the feature dependent FAN.S.F00 (SPD) attribute in
139139
AttributeList"
140140
PICS: FAN.S.F00
141141
command: "readAttribute"
@@ -146,7 +146,7 @@ tests:
146146
contains: [4, 5, 6]
147147

148148
- label:
149-
"Step 3c: Read the feature dependent FAN.S.F02(RCK) attribute in
149+
"Step 4: Read the feature dependent FAN.S.F02(RCK) attribute in
150150
AttributeList"
151151
PICS: FAN.S.F02
152152
command: "readAttribute"
@@ -157,7 +157,7 @@ tests:
157157
contains: [7, 8]
158158

159159
- label:
160-
"Step 3d: Read the feature dependent FAN.S.F03(WND) attribute in
160+
"Step 4: Read the feature dependent FAN.S.F03(WND) attribute in
161161
AttributeList"
162162
PICS: FAN.S.F03
163163
command: "readAttribute"
@@ -168,7 +168,7 @@ tests:
168168
contains: [9, 10]
169169

170170
- label:
171-
"Step 3e: Read the feature dependent FAN.S.F05(DIR) attribute in
171+
"Step 4: Read the feature dependent FAN.S.F05(DIR) attribute in
172172
AttributeList"
173173
PICS: FAN.S.F05
174174
command: "readAttribute"
@@ -178,57 +178,7 @@ tests:
178178
type: list
179179
contains: [11]
180180

181-
#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
182-
- label:
183-
"Step 3f: TH reads AttributeList attribute from DUT. 1.The list SHALL
184-
NOT contain any additional values in the standard or scoped range:
185-
(0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 - 0x0000_FFFE). 2.The
186-
list MAY contain values in the Manufacturer Extensible Identifier
187-
(MEI) range: (0xXXXX_0000 - 0xXXXX_4FFF), where XXXX is the allowed
188-
MEI range (0x0001 - 0xFFF1), these values SHALL be ignored. 3.The list
189-
SHALL NOT contain any values in the Test Vendor or invalid range:
190-
(0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF), (0xXXXX_5000 -
191-
0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where XXXX is the
192-
allowed MEI range (0x0001 - 0xFFF1)"
193-
verification: |
194-
./chip-tool fancontrol read attribute-list 1 1
195-
196-
Via the TH (chip-tool), verify that theAttributeListattribute contains
197-
- Mandatory entries:0x0000, 0x0001, 0x0002, 0x0003, 0xfff8, 0xfff9, 0xfffa, 0xfffb, 0xfffc & 0xfffd
198-
- Based on feature support:- 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b
199-
Below mentioned log is based on the RPI implementation, Value may vary on real DUT
200-
201-
[1686031154.064099][14930:14933] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0202 Attribute 0x0000_FFFB DataVersion: 3896103279
202-
[1686031154.064331][14930:14933] CHIP:TOO: AttributeList: 18 entries
203-
[1686031154.064408][14930:14933] CHIP:TOO: [1]: 0
204-
[1686031154.064468][14930:14933] CHIP:TOO: [2]: 1
205-
[1686031154.064526][14930:14933] CHIP:TOO: [3]: 2
206-
[1686031154.064584][14930:14933] CHIP:TOO: [4]: 3
207-
[1686031154.064640][14930:14933] CHIP:TOO: [5]: 4
208-
[1686031154.064697][14930:14933] CHIP:TOO: [6]: 5
209-
[1686031154.064754][14930:14933] CHIP:TOO: [7]: 6
210-
[1686031154.064811][14930:14933] CHIP:TOO: [8]: 7
211-
[1686031154.064868][14930:14933] CHIP:TOO: [9]: 8
212-
[1686031154.064929][14930:14933] CHIP:TOO: [10]: 9
213-
[1686031154.064987][14930:14933] CHIP:TOO: [11]: 10
214-
[1686031154.065045][14930:14933] CHIP:TOO: [12]: 11
215-
[1686031154.065103][14930:14933] CHIP:TOO: [13]: 65528
216-
[1686031154.065161][14930:14933] CHIP:TOO: [14]: 65529
217-
[1686031154.065218][14930:14933] CHIP:TOO: [15]: 65530
218-
[1686031154.065275][14930:14933] CHIP:TOO: [16]: 65531
219-
[1686031154.065333][14930:14933] CHIP:TOO: [17]: 65532
220-
[1686031154.065390][14930:14933] CHIP:TOO: [18]: 65533
221-
cluster: "LogCommands"
222-
command: "UserPrompt"
223-
PICS: PICS_USER_PROMPT
224-
arguments:
225-
values:
226-
- name: "message"
227-
value: "Please enter 'y' for success"
228-
- name: "expectedValue"
229-
value: "y"
230-
231-
- label: "Step 4a: Read the global attribute: AcceptedCommandList"
181+
- label: "Step 6: Read the global attribute: AcceptedCommandList"
232182
PICS: " !FAN.S.C00.Rsp "
233183
command: "readAttribute"
234184
attribute: "AcceptedCommandList"
@@ -237,71 +187,11 @@ tests:
237187
constraints:
238188
type: list
239189

240-
# List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
241-
- label:
242-
"Step 4b: TH reads AcceptedCommandList attribute from DUT. 1.The list
243-
SHALL NOT contain any additional values in the standard or scoped
244-
range: (0x0000_0000 - 0x0000_00FF). 2.The list MAY contain values in
245-
the Manufacturer Extensible Identifier (MEI) range: (0xXXXX_0000 -
246-
0xXXXX_00FF), where XXXX is the allowed MEI range (0x0001 - 0xFFF1),
247-
these values SHALL be ignored.3.The list SHALL NOT contain any values
248-
in the Test Vendor or invalid range: (0x0000_0100 - 0x0000_FFFF),
249-
(0xXXXX_0100 - 0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where
250-
XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
251-
verification: |
252-
./chip-tool fancontrol read accepted-command-list 1 1
253-
254-
On TH(chip-tool), Verify the AcceptedCommandList attribute that contains 1 entries:
255-
Below mentioned log is based on the RPI implementation, Value may vary on real DUT
256-
257-
[1686031757.840606][14982:14984] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0202 Attribute 0x0000_FFF9 DataVersion: 3896103279
258-
[1686031757.840879][14982:14984] CHIP:TOO: AcceptedCommandList: 1 entries
259-
[1686031757.840958][14982:14984] CHIP:TOO: [1]: 0
260-
cluster: "LogCommands"
261-
command: "UserPrompt"
262-
PICS: PICS_USER_PROMPT
263-
arguments:
264-
values:
265-
- name: "message"
266-
value: "Please enter 'y' for success"
267-
- name: "expectedValue"
268-
value: "y"
269-
270-
- label:
271-
"Step 5a: Read the optional command (ResetCondition) in
272-
AcceptedCommandList"
190+
- label: "Step 6: Read the optional command (Step) in AcceptedCommandList"
273191
PICS: FAN.S.C00.Rsp
274192
command: "readAttribute"
275193
attribute: "AcceptedCommandList"
276194
response:
277195
constraints:
278196
type: list
279197
contains: [0]
280-
281-
# List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
282-
- label:
283-
"Step 5b: TH reads from the DUT the GeneratedCommandList attribute.
284-
1.The list SHALL NOT contain any additional values in the standard or
285-
scoped range: (0x0000_0000 - 0x0000_00FF). 2.The list MAY contain
286-
values in the Manufacturer Extensible Identifier (MEI) range:
287-
(0xXXXX_0000 - 0xXXXX_00FF), where XXXX is the allowed MEI range
288-
(0x0001 - 0xFFF1), these values SHALL be ignored.3.The list SHALL NOT
289-
contain any values in the Test Vendor or invalid range: (0x0000_0100 -
290-
0x0000_FFFF), (0xXXXX_0100 - 0xXXXX_FFFF) and (0xFFF1_0000 -
291-
0xFFFF_FFFF), where XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
292-
verification: |
293-
./chip-tool fancontrol read generated-command-list 1 1
294-
295-
On TH(chip-tool), Verify the GeneratedCommandList attribute that contains 0 entries:
296-
297-
[1689587005.212317][9422:9424] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0202 Attribute 0x0000_FFF8 DataVersion: 3321937588
298-
[1689587005.212457][9422:9424] CHIP:TOO: GeneratedCommandList: 0 entries
299-
cluster: "LogCommands"
300-
command: "UserPrompt"
301-
PICS: PICS_USER_PROMPT
302-
arguments:
303-
values:
304-
- name: "message"
305-
value: "Please enter 'y' for success"
306-
- name: "expectedValue"
307-
value: "y"

0 commit comments

Comments
 (0)