Skip to content

Commit

Permalink
Modified test july 6 (#20381)
Browse files Browse the repository at this point in the history
* Modified tests
TC-BOOL-1.1
TC-CC-1.1
TC-DESC-1.1
TC-I-1.1
TC-ILL-2.1
TC-MC-1.2
TC-MC-1.6
TC-MC-1.7
TC-MC-1.8
TC-MC-1.11
TC-MC-5.3
TC-MF-1.27
TC-MF-1.28
TC-OO-1.1
TC-TSTAT-1.1
TC-ULABEL-1.1
Removed test
TC-OCC-2.2

* Auto generated files

* Restyled by astyle

* Restyled by clang-format

* Restyled by prettier

* Restyled by whitespace

* Restyled by clang-format

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Sep 9, 2023
1 parent bf046f8 commit 2544632
Show file tree
Hide file tree
Showing 21 changed files with 1,102 additions and 1,362 deletions.
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ tests:
command: "readAttribute"
attribute: "AttributeList"
response:
value: [0, 65528, 65529, 65531, 65532, 65533]
constraints:
type: list
contains: [0, 65528, 65529, 65531, 65532, 65533]

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
Expand Down
6 changes: 3 additions & 3 deletions src/app/tests/suites/certification/Test_TC_CC_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ tests:
type: uint16

- label: "Read the global attribute constraints : FeatureMap"
PICS:
PICS_SKIP_SAMPLE_APP && (CC.S.F00 || CC.S.F01 || CC.S.F02 || CC.S.F03)
PICS: (CC.S.F00 || CC.S.F01 || CC.S.F02 || CC.S.F03)
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: map32
minValue: 0
maxValue: 31

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_DESC_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ tests:
command: "readAttribute"
attribute: "AttributeList"
response:
value: [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
constraints:
type: list
contains: [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
Expand Down
3 changes: 1 addition & 2 deletions src/app/tests/suites/certification/Test_TC_ILL_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ tests:
value: nodeId

- label: "TH reads MeasuredValue attribute from DUT"
PICS: PICS_SKIP_SAMPLE_APP
command: "readAttribute"
attribute: "MeasuredValue"
response:
constraints:
type: uint16
minValue: 1
minValue: 0
maxValue: 65534

- label: "TH reads MinMeasuredValue attribute from DUT"
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_I_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ tests:
command: "readAttribute"
attribute: "AttributeList"
response:
value: [0, 1, 65528, 65529, 65531, 65532, 65533]
constraints:
type: list
contains: [0, 1, 65528, 65529, 65531, 65532, 65533]

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
Expand Down
3 changes: 2 additions & 1 deletion src/app/tests/suites/certification/Test_TC_MC_1_11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ tests:
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: map32
minValue: 0
maxValue: 3

- label: "Read the global attribute: AttributeList"
PICS: MC_CONTENTLAUNCHER.S.A0000 && MC_CONTENTLAUNCHER.S.A0001
Expand Down
3 changes: 2 additions & 1 deletion src/app/tests/suites/certification/Test_TC_MC_1_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ tests:
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: map32
minValue: 0
maxValue: 7

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
Expand Down
3 changes: 2 additions & 1 deletion src/app/tests/suites/certification/Test_TC_MC_1_6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ tests:
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: map32
minValue: 0
maxValue: 3

- label: "Read the global attribute: AttributeList"
PICS: MC_CHANNEL.S.A0000 && MC_CHANNEL.S.A0001 && MC_CHANNEL.S.A0002
Expand Down
3 changes: 2 additions & 1 deletion src/app/tests/suites/certification/Test_TC_MC_1_7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ tests:
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: map32
minValue: 0
maxValue: 3

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_MC_1_8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ tests:
command: "readAttribute"
attribute: "AttributeList"
response:
value: [0, 1, 65528, 65529, 65531, 65532, 65533]
constraints:
type: list
contains: [0, 1, 65528, 65529, 65531, 65532, 65533]

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
Expand Down
22 changes: 22 additions & 0 deletions src/app/tests/suites/certification/Test_TC_MC_5_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,28 @@ tests:
- name: "nodeId"
value: nodeId

- label:
"Reads the Lineup attribute from the DUT and Verify that the response
contains a lineup info object"
PICS: MC_CHANNEL.S.A0001 && PICS_USER_PROMPT
verification: |
./chip-tool channel read lineup 1 1
[1653999659095] [94964:7676726] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0504 Attribute 0x0000_0001 DataVersion: 3623945891
[1653999659097] [94964:7676726] CHIP: [TOO] Lineup: {
[1653999659097] [94964:7676726] CHIP: [TOO] OperatorName: Comcast
[1653999659097] [94964:7676726] CHIP: [TOO] LineupName: Comcast King County
[1653999659097] [94964:7676726] CHIP: [TOO] PostalCode: 98052
[1653999659097] [94964:7676726] CHIP: [TOO] LineupInfoType: 0
[1653999659097] [94964:7676726] CHIP: [TOO] }
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Reads the ChannelList attribute from the DUT"
PICS: MC_CHANNEL.S.A0000
command: "readAttribute"
Expand Down
16 changes: 15 additions & 1 deletion src/app/tests/suites/certification/Test_TC_MF_1_27.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

name:
22.1.27. [TC-MF-1.27] Open commissioning window - durations min and min-1
24.1.27. [TC-MF-1.27] Open commissioning window - durations min and min-1
[BCM] [DUT - Commissionee]

config:
Expand All @@ -23,9 +23,23 @@ config:

tests:
- label: "Factory Reset the DUT_CE"
PICS: PICS_SDK_CI_ONLY
cluster: "SystemCommands"
command: "FactoryReset"

- label: "Factory Reset the DUT_CE"
verification: |
Not implemented in YAML
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Please reboot the DUT and enter 'y' after DUT starts"
- name: "expectedValue"
value: "y"

- label: "TH_CR1 starts a commissioning process with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
Expand Down
17 changes: 15 additions & 2 deletions src/app/tests/suites/certification/Test_TC_MF_1_28.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

name:
22.1.30. [TC-MF-1.30] Open commissioning window - normal operation and
closing [ECM] [DUT - Commissionee]
24.1.28. [TC-MF-1.28] Open commissioning window - durations min and min-1
[ECM] [DUT - Commissionee]

config:
nodeId: 0x12344321
Expand All @@ -26,6 +26,19 @@ tests:
cluster: "SystemCommands"
command: "FactoryReset"

- label: "Factory Reset the DUT_CE"
verification: |
Not implemented in YAML
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Please reboot the DUT and enter 'y' after DUT starts"
- name: "expectedValue"
value: "y"

- label: "TH_CR1 starts a commissioning process with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
Expand Down
56 changes: 0 additions & 56 deletions src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml

This file was deleted.

15 changes: 13 additions & 2 deletions src/app/tests/suites/certification/Test_TC_OO_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,21 @@ tests:
command: "readAttribute"
attribute: "AttributeList"
response:
value:
[0, 16384, 16385, 16386, 16387, 65528, 65529, 65531, 65532, 65533]
constraints:
type: list
contains:
[
0,
16384,
16385,
16386,
16387,
65528,
65529,
65531,
65532,
65533,
]

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
Expand Down
7 changes: 4 additions & 3 deletions src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ tests:

- label: "Read the optional global attribute constraints: FeatureMap"
PICS:
PICS_SKIP_SAMPLE_APP && ( TSTAT_HEAT || TSTAT_COOL || TSTAT_OCC ||
TSTAT_SCH || TSTAT_SB || TSTAT_AUTO )
( TSTAT_HEAT || TSTAT_COOL || TSTAT_OCC || TSTAT_SCH || TSTAT_SB ||
TSTAT_AUTO )
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: map32
minValue: 0
maxValue: 63

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_ULABEL_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ tests:
command: "readAttribute"
attribute: "AttributeList"
response:
value: [0, 65528, 65529, 65531, 65532, 65533]
constraints:
type: list
contains: [0, 65528, 65529, 65531, 65532, 65533]

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
Expand Down
18 changes: 9 additions & 9 deletions src/app/tests/suites/certification/ci-pics-values
Original file line number Diff line number Diff line change
Expand Up @@ -277,25 +277,25 @@ MC_APPLAUNCHER.S.A0000=1
MC_APPLAUNCHER.S.A0001=1
MC_MEDIAINPUT.S.A0000=1
MC_MEDIAINPUT.S.A0001=1
MC_CHANNEL.S.CL=0
MC_CHANNEL.S.CL=1
MC_CHANNEL.C.C0000=1
MC_CHANNEL.C.C0002=1
MC_CHANNEL.C.C0003=1
MC_MEDIAPLAYBACK.S.AS=0
MC_MEDIAPLAYBACK.S.VS=0
MC_MEDIAPLAYBACK.S.AS=1
MC_MEDIAPLAYBACK.S.VS=1
NAMEUPDATES=0
MC_TGTNAV.S.A0001=1
MC_APBSC.S.A0000=1
MC_APBSC.S.A0001=1
MC_APBSC.S.A0003=1
MC_CONTENTLAUNCHER.S.CS=0
MC_CONTENTLAUNCHER.S.UP=0
MC_CONTENTLAUNCHER.S.CS=1
MC_CONTENTLAUNCHER.S.UP=1
MC_CONTENTLAUNCHER.S.A0000=1
MC_CONTENTLAUNCHER.S.A0001=1
MC_APPLAUNCHER.S.AP=0
MC_KEYPADINPUT.S.LK=0
MC_KEYPADINPUT.S.NK=0
MC_KEYPADINPUT.S.NV=0
MC_KEYPADINPUT.S.LK=1
MC_KEYPADINPUT.S.NK=1
MC_KEYPADINPUT.S.NV=1
MC_MEDIAINPUT.S.NU=0

MC_LOWPOWER.S=1
Expand All @@ -320,7 +320,7 @@ MC_APPLAUNCHER.S.C0002=1
MC_APPLAUNCHER.C.C0001=1

MC_WAKEONLAN.S.A0000=1
MC_CHANNEL.S.LI=0
MC_CHANNEL.S.LI=1
MC_CHANNEL.S.A0000=1
MC_CHANNEL.S.A0001=1
MC_CHANNEL.S.A0002=1
Expand Down
Loading

0 comments on commit 2544632

Please sign in to comment.