Skip to content

Commit e2edc0c

Browse files
[YAML] Fixed script issues (#35309)
* Modified test Test_TC_CC_4_2 Test_TC_CC_7_2 Test_TC_PWRTL_1_1 Test_TC_SWTCH_3_2 Test_TC_OO_2_6 * Fix TC-OO-2.6 and SWTCH_3_2 tests * Restyled by whitespace * Restyled by prettier-json --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 1685777 commit e2edc0c

File tree

6 files changed

+767
-276
lines changed

6 files changed

+767
-276
lines changed

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

+16
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,22 @@ tests:
393393
response:
394394
error: INVALID_COMMAND
395395

396+
- label:
397+
"Step 6c: TH sends MoveSaturation command to DUT with MoveMode=0x00
398+
(stop) and Rate=0 (units/s)"
399+
command: "MoveSaturation"
400+
PICS: CC.S.F00 && CC.S.C04.Rsp
401+
arguments:
402+
values:
403+
- name: "MoveMode"
404+
value: 0
405+
- name: "Rate"
406+
value: 0
407+
- name: "OptionsMask"
408+
value: 0
409+
- name: "OptionsOverride"
410+
value: 0
411+
396412
- label: "Turn off light that we turned on"
397413
PICS: OO.S.C00.Rsp
398414
cluster: "On/Off"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ tests:
332332
- label:
333333
"Step 5a: TH sends EnhancedMoveHue command to DUT with MoveMode=0x01
334334
(up) and Rate=0 (units/s)"
335-
PICS: CC.S.F01 && CC.S.C41.Rsp"
335+
PICS: CC.S.F01 && CC.S.C41.Rsp
336336
command: "EnhancedMoveHue"
337337
arguments:
338338
values:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright (c) 2024 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: 4.1.6. [TC-OO-2.6] OffOnly Feature with DUT as Server
16+
17+
PICS:
18+
- OO.S
19+
- OO.S.F02
20+
21+
config:
22+
nodeId: 0x12344321
23+
cluster: "On/Off"
24+
endpoint: 1
25+
26+
tests:
27+
- label: "Wait for the commissioned device to be retrieved"
28+
cluster: "DelayCommands"
29+
command: "WaitForCommissionee"
30+
arguments:
31+
values:
32+
- name: "nodeId"
33+
value: nodeId
34+
35+
- label: "Step 1: TH reads the FeatureMap attribute from DUT"
36+
PICS: OO.S.F02
37+
command: "readAttribute"
38+
attribute: "FeatureMap"
39+
response:
40+
constraints:
41+
type: bitmap32
42+
hasMasksSet: [0x4]
43+
44+
- label:
45+
"Step 2: TH sends On command to the On/Off Cluster of DUT on
46+
PIXIT.OO.ENDPOINT"
47+
PICS: OO.S.F02 && OO.S.C01.Rsp
48+
command: "On"
49+
response:
50+
error: UNSUPPORTED_COMMAND
51+
52+
- label:
53+
"Step 3: TH sends Toggle command to the On/Off Cluster of DUT on
54+
PIXIT.OO.ENDPOINT"
55+
PICS: OO.S.F02 && OO.S.C02.Rsp
56+
command: "Toggle"
57+
response:
58+
error: UNSUPPORTED_COMMAND

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
1514

1615
name: 44.1.1. [TC-PWRTL-1.1] Global Attributes with DUT as Server
1716

@@ -88,7 +87,7 @@ tests:
8887
hasMasksSet: [0x4, 0x8]
8988

9089
- label: "Step 4a: TH reads AttributeList from DUT"
91-
PICS: "!PWRTL.S.F02 && !PWRTL.S.F03"
90+
PICS: " !PWRTL.S.F02 && !PWRTL.S.F03 "
9291
command: "readAttribute"
9392
attribute: "AttributeList"
9493
response:
@@ -99,7 +98,7 @@ tests:
9998
- label:
10099
"Step 4b: TH reads feature dependent attribute(AvailableEndpoints)
101100
AttributeList from DUT"
102-
PICS: "PWRTL.S.F02 && !PWRTL.S.F03"
101+
PICS: PWRTL.S.F02
103102
command: "readAttribute"
104103
attribute: "AttributeList"
105104
response:

0 commit comments

Comments
 (0)