Skip to content

Commit de5c6d5

Browse files
gvargas-csamanjunath-grlrestyled-commits
authored
Copy media cluster new automated tests (project-chip#32155)
* Newly added Media cluster automated tests: TC_APPOBSERVER_1_13 TC_APPOBSERVER_13_2 TC_MEDIAPLAYBACK_6_8 TC_MEDIAPLAYBACK_6_9 ICDM semi-automated test: TC_ICDM_3_4 * Auto generated files * Restyled by whitespace * Automated tests: TC_DEMM_1_1 TC_DEMM_2_1 TC_EEVSE_1_1 TC_EEVSE_2_1 TC_REFALM_2_2 TC_EEVSEM_1_1 TC_EEVSEM_2_1 TC_EEVSEM_3_1 TC_EEVSEM_3_2 TC_EEVSEM_3_3 Manual tests: TC_DEMM_1_2 TC_EEVSEM_1_2 * Fix CI failure for Darwin check. * Fix Mediaplayback script issue in CLI * Fix CI failure --------- Co-authored-by: manjunath-grl <manjunath.grl@outlook.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent cc5b41a commit de5c6d5

24 files changed

+2546
-842
lines changed

scripts/tests/chiptest/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def _GetChipReplUnsupportedTests() -> Set[str]:
236236
"Test_TC_IDM_1_2.yaml", # chip-repl does not support AnyCommands (19/07/2023)
237237
"TestGroupKeyManagementCluster.yaml", # chip-repl does not support EqualityCommands (2023-08-04)
238238
"TestIcdManagementCluster.yaml", # TODO(#30430): add ICD registration support in chip-repl
239+
"Test_TC_ICDM_3_4.yaml", # chip-repl does not support ICD registration
239240
"Test_TC_S_2_2.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
240241
"Test_TC_MOD_3_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
241242
"Test_TC_MOD_3_2.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
@@ -264,6 +265,10 @@ def _GetChipReplUnsupportedTests() -> Set[str]:
264265
"Test_TC_RVCCLEANM_3_3.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
265266
"Test_TC_BINFO_2_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
266267
"TestDiagnosticLogs.yaml", # chip-repl does not implement a BDXTransferServerDelegate
268+
"Test_TC_EEVSEM_2_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
269+
"Test_TC_EEVSEM_3_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
270+
"Test_TC_EEVSEM_3_2.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
271+
"Test_TC_EEVSEM_3_3.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
267272
"TestDiagnosticLogsDownloadCommand.yaml", # chip-repl does not implement the bdx download command
268273
}
269274

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

+93
Original file line numberDiff line numberDiff line change
@@ -4665,6 +4665,21 @@ PICS:
46654665
"Does the DUT support the Media Playback server cluster, Seek command?"
46664666
id: MEDIAPLAYBACK.S.C0b.Rsp
46674667

4668+
- label:
4669+
"Does the DUT support the Media Playback server cluster,
4670+
ActivateAudioTrack command?"
4671+
id: MEDIAPLAYBACK.S.C0c.Rsp
4672+
4673+
- label:
4674+
"Does the DUT support the Media Playback server cluster,
4675+
ActivateTextTrack command?"
4676+
id: MEDIAPLAYBACK.S.C0d.Rsp
4677+
4678+
- label:
4679+
"Does the DUT support the Media Playback server cluster,
4680+
DeactivateTextTrack command?"
4681+
id: MEDIAPLAYBACK.S.C0e.Rsp
4682+
46684683
- label:
46694684
"Does the DUT support the Audio Output server cluster, SelectOutput
46704685
command?"
@@ -10064,3 +10079,81 @@ PICS:
1006410079
# Commands generated
1006510080
- label: "Does the device implement sending the GetTargetsResponse command?"
1006610081
id: EEVSE.S.C00.Tx
10082+
10083+
# Energy EVSE Mode Cluster
10084+
# server / attributes
10085+
- label: "Does the device implement the Energy EVSE cluster as a server?"
10086+
id: EEVSEM.S
10087+
10088+
- label: "Does the device implement the SupportedModes attribute?"
10089+
id: EEVSEM.S.A0000
10090+
10091+
- label: "Does the device implement the CurrentMode attribute?"
10092+
id: EEVSEM.S.A0001
10093+
10094+
- label: "Does the device implement the StartUpMode attribute?"
10095+
id: EEVSEM.S.A0002
10096+
10097+
- label: "Does the device implement the OnMode attribute?"
10098+
id: EEVSEM.S.A0003
10099+
10100+
# Commands received
10101+
- label: "Does the device implement sending the ChangeToMode command?"
10102+
id: EEVSEM.S.C00.Rsp
10103+
10104+
# Commands generated
10105+
- label:
10106+
"Does the device implement sending the ChangeToModeResponse command?"
10107+
id: EEVSEM.S.C01.Tx
10108+
10109+
# Manual controllable
10110+
- label: "Does the DUT support testing the failed ChangeToMode command?"
10111+
id: EEVSEM.S.M.CAN_TEST_MODE_FAILURE
10112+
10113+
- label: "Can the mode change be manually controlled?"
10114+
id: EEVSEM.S.M.CAN_MANUALLY_CONTROLLED
10115+
10116+
#Feature
10117+
- label: "Does the DUT(server) support the Hue/Saturation feature?"
10118+
id: EEVSEM.S.F00
10119+
10120+
#
10121+
# Device Energy Management Mode Cluster
10122+
# server / attributes
10123+
10124+
- label: "Does the device implement the DEMM cluster as a server?"
10125+
id: DEMM.S
10126+
10127+
- label: "Does the device implement the SupportedModes attribute?"
10128+
id: DEMM.S.A0000
10129+
10130+
- label: "Does the device implement the CurrentMode attribute?"
10131+
id: DEMM.S.A0001
10132+
10133+
- label: "Does the device implement the StartUpMode attribute?"
10134+
id: DEMM.S.A0002
10135+
10136+
- label: "Does the device implement the OnMode attribute?"
10137+
id: DEMM.S.A0003
10138+
10139+
# Commands received
10140+
- label: "Does the device implement sending the ChangeToMode command?"
10141+
id: DEMM.S.C00.Rsp
10142+
10143+
# Commands generated
10144+
- label:
10145+
"Does the device implement sending the ChangeToModeResponse command?"
10146+
id: DEMM.S.C01.Tx
10147+
10148+
- label: "Does the DUT support testing the failed ChangeToMode command?"
10149+
id: DEMM.S.M.CAN_TEST_MODE_FAILURE
10150+
10151+
- label: "Can the mode change be manually controlled?"
10152+
id: DEMM.S.M.CAN_MANUALLY_CONTROLLED
10153+
10154+
# Manual controllable
10155+
- label: "Does the DUT support testing the failed ChangeToMode command?"
10156+
id: EEVSEM.S.M.CAN_TEST_MODE_FAILURE
10157+
10158+
- label: "Can the mode change be manually controlled?"
10159+
id: EEVSEM.S.M.CAN_MANUALLY_CONTROLLED

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

+33-20
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:
1716
19.15.2. [TC-APPOBSERVER-13.2] Content App Message Verification (DUT as
@@ -22,27 +21,41 @@ PICS:
2221

2322
config:
2423
nodeId: 0x12344321
25-
cluster: "Basic Information"
26-
endpoint: 0
24+
cluster: "Content App Observer"
25+
endpoint: 1
26+
27+
DataValue:
28+
type: char_string
29+
defaultValue: "exampleData"
30+
EncodingHintValue:
31+
type: char_string
32+
defaultValue: "Zoo"
2733

2834
tests:
35+
- label: "Step 1: Wait for the commissioned device to be retrieved"
36+
cluster: "DelayCommands"
37+
command: "WaitForCommissionee"
38+
arguments:
39+
values:
40+
- name: "nodeId"
41+
value: nodeId
42+
2943
- label:
30-
"Step 1: TH sends a ContentAppMessage command to the DUT with dummy
44+
"Step 2: TH sends a ContentAppMessage command to the DUT with dummy
3145
data and encodingHint strings"
3246
PICS: APPOBSERVER.S.C00.Rsp
33-
verification: |
34-
./chip-tool contentappobserver content-app-message foo 1234 1 --Data bar
35-
On TH(chip-tool), The DUT should respond with a ContentAppMessageResponse response with status 0 (success) and optional data and encodingHint strings.
36-
[1705666572.972558][4778:4780] CHIP:DMG: InteractionModelRevision = 11
37-
[1705666572.972584][4778:4780] CHIP:DMG: },
38-
[1705666572.972667][4778:4780] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0510 Command=0x0000_0001
39-
[1705666572.972720][4778:4780] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Command 0x0000_0001
40-
[1705666572.972820][4778:4780] CHIP:TOO: ContentAppMessageResponse: {
41-
[1705666572.972862][4778:4780] CHIP:TOO: status: 0
42-
[1705666572.972888][4778:4780] CHIP:TOO: data: exampleData
43-
[1705666572.972912][4778:4780] CHIP:TOO: encodingHint: foo
44-
[1705666572.972936][4778:4780] CHIP:TOO: }
45-
[1705666572.972989][4778:4780] CHIP:DMG: ICR moving to [AwaitingDe]
46-
[1705666572.973210][4778:4780] CHIP:EM: <<< [E:743i S:54358 M:87646250 (Ack:136640189)] (S) Msg TX to 1:0000000000000001 [A5ED] [UDP:[fe80::e65f:1ff:fe0f:1a01%wlan0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
47-
[1705666572.973340][4778:4780] CHIP:EM: Flushed pending ack for MessageCounter:136640189 on exchange 743i
48-
disabled: true
47+
command: "ContentAppMessage"
48+
arguments:
49+
values:
50+
- name: "Data"
51+
value: DataValue
52+
- name: "EncodingHint"
53+
value: EncodingHintValue
54+
response:
55+
values:
56+
- name: "Status"
57+
value: 0
58+
- name: "Data"
59+
value: DataValue
60+
- name: "EncodingHint"
61+
value: EncodingHintValue
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 Project CHIP Authors
1+
# Copyright (c) 2023 Project CHIP Authors
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -22,73 +22,73 @@ PICS:
2222

2323
config:
2424
nodeId: 0x12344321
25-
cluster: "Basic Information"
26-
endpoint: 0
25+
cluster: "ContentAppObserver"
26+
endpoint: 1
2727

2828
tests:
29+
- label: "Step 0: Wait for the commissioned device to be retrieved"
30+
cluster: "DelayCommands"
31+
command: "WaitForCommissionee"
32+
arguments:
33+
values:
34+
- name: "nodeId"
35+
value: nodeId
36+
2937
- label: "Step 1: TH reads the ClusterRevision attribute from the DUT"
30-
verification: |
31-
./chip-tool contentappobserver read cluster-revision 1 1
32-
Verify " ClusterRevision " value is of unit16 and reflects the highest revision number on the TH(Chip-tool) Log, in RPI the value of ClusterRevision is 1
33-
[1702624923.223245][5892:5894] CHIP:DMG: InteractionModelRevision = 11
34-
[1702624923.223299][5892:5894] CHIP:DMG: }
35-
[1702624923.223652][5892:5894] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFFD DataVersion: 2272699478
36-
[1702624923.223820][5892:5894] CHIP:TOO: ClusterRevision: 1
37-
[1702624923.224324][5892:5894] CHIP:EM: <<< [E:5445i S:15084 M:255037238 (Ack:113660697)] (S) Msg TX to 1:0000000000000001 [EDAD] [UDP:[fe80::e65f:1ff:fe49:ae1a%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck)
38-
[1702624923.224578][5892:5894] CHIP:EM: Flushed pending ack for MessageCounter:113660697 on exchange 5445i
39-
disabled: true
38+
command: "readAttribute"
39+
attribute: "ClusterRevision"
40+
response:
41+
value: 1
42+
constraints:
43+
type: int16u
4044

4145
- label: "Step 2: TH reads the FeatureMap attribute from the DUT"
42-
verification: |
43-
./chip-tool contentappobserver read feature-map 1 1
44-
On TH, verify that DUT sends the FeatureMap attribute has the value 0 or returns a general error that the attribute is not supported
45-
[1702624956.728609][5896:5898] CHIP:DMG: SuppressResponse = true,
46-
[1702624956.728667][5896:5898] CHIP:DMG: InteractionModelRevision = 11
47-
[1702624956.728720][5896:5898] CHIP:DMG: }
48-
[1702624956.729021][5896:5898] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFFC DataVersion: 2272699478
49-
[1702624956.729138][5896:5898] CHIP:TOO: FeatureMap: 0
50-
[1702624956.729564][5896:5898] CHIP:EM: <<< [E:26717i S:26806 M:11352307 (Ack:31492418)] (S) Msg TX to 1:0000000000000001 [EDAD] [UDP:[fe80::e65f:1ff:fe49:ae1a%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck)
51-
disabled: true
46+
command: "readAttribute"
47+
attribute: "FeatureMap"
48+
response:
49+
value: 0
50+
constraints:
51+
type: bitmap32
52+
53+
- label: "Step 3: TH reads the AttributeList attribute from the DUT"
54+
PICS: PICS_EVENT_LIST_ENABLED
55+
command: "readAttribute"
56+
attribute: "AttributeList"
57+
response:
58+
constraints:
59+
type: list
60+
contains: [65528, 65529, 65530, 65531, 65532, 65533]
5261

5362
- label: "Step 3: TH reads the AttributeList attribute from the DUT"
54-
verification: |
55-
./chip-tool contentappobserver read attribute-list 1 1
56-
Verify " AttributeList " value consists the list of mandatory attributes (65533, 65532, 65531, 65529, 65528) on the TH(Chip-tool) Log:
57-
[1702624983.367693][5900:5902] CHIP:DMG: }
58-
[1702624983.368044][5900:5902] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFFB DataVersion: 2272699478
59-
[1702624983.368485][5900:5902] CHIP:TOO: AttributeList: 5 entries
60-
[1702624983.368564][5900:5902] CHIP:TOO: [1]: 65528
61-
[1702624983.368624][5900:5902] CHIP:TOO: [2]: 65529
62-
[1702624983.368683][5900:5902] CHIP:TOO: [3]: 65531
63-
[1702624983.368741][5900:5902] CHIP:TOO: [4]: 65532
64-
[1702624983.368798][5900:5902] CHIP:TOO: [5]: 65533
65-
[1702624983.369236][5900:5902] CHIP:EM: <<< [E:55491i S:35892 M:103959395 (Ack:145764997)] (S) Msg TX to 1:0000000000000001 [EDAD] [UDP:[fe80::e65f:1ff:fe49:ae1a%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck)
66-
disabled: true
63+
PICS: "!PICS_EVENT_LIST_ENABLED"
64+
command: "readAttribute"
65+
attribute: "AttributeList"
66+
response:
67+
constraints:
68+
type: list
69+
contains: [65528, 65529, 65531, 65532, 65533]
6770

6871
- label: "Step 4: TH reads the AcceptedCommandList attribute from the DUT"
69-
verification: |
70-
./chip-tool contentappobserver read accepted-command-list 1 1
71-
Verify " AcceptedCommandList " consists the list of mandatory commands(0)on the TH(Chip-tool) Log:
72-
[1702625012.494394][5905:5907] CHIP:DMG: }
73-
[1702625012.494619][5905:5907] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFF9 DataVersion: 2272699478
74-
[1702625012.494697][5905:5907] CHIP:TOO: AcceptedCommandList: 1 entries
75-
[1702625012.494725][5905:5907] CHIP:TOO: [1]: 0
76-
[1702625012.494981][5905:5907] CHIP:EM: <<< [E:43961i S:9805 M:165451447 (Ack:180558712)] (S) Msg TX to 1:0000000000000001 [EDAD] [UDP:[fe80::e65f:1ff:fe49:ae1a%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck)
77-
disabled: true
72+
command: "readAttribute"
73+
attribute: "AcceptedCommandList"
74+
response:
75+
constraints:
76+
type: list
77+
contains: [0]
7878

7979
- label: "Step 5: TH reads the GeneratedCommandList attribute from the DUT"
80-
verification: |
81-
./chip-tool contentappobserver read generated-command-list 1 1
82-
Verify " GeneratedCommandList " consists the list of mandatory commands(1) on the TH(Chip-tool) Log:
83-
[1702625044.200661][5910:5912] CHIP:DMG: }
84-
[1702625044.201052][5910:5912] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFF8 DataVersion: 2272699478
85-
[1702625044.201230][5910:5912] CHIP:TOO: GeneratedCommandList: 1 entries
86-
[1702625044.201298][5910:5912] CHIP:TOO: [1]: 1
87-
[1702625044.201724][5910:5912] CHIP:EM: <<< [E:33891i S:27945 M:56965554 (Ack:52573112)] (S) Msg TX to 1:0000000000000001 [EDAD] [UDP:[fe80::e65f:1ff:fe49:ae1a%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck)
88-
[1702625044.201956][5910:5912] CHIP:EM: Flushed pending ack for MessageCounter:52573112 on exchange 33891i
89-
disabled: true
80+
command: "readAttribute"
81+
attribute: "GeneratedCommandList"
82+
response:
83+
constraints:
84+
type: list
85+
contains: [1]
9086

9187
- label: "Step 6: TH reads the EventList attribute from the DUT"
92-
verification: |
93-
./chip-tool contentappobserver read event-list 1 1
94-
disabled: true
88+
PICS: PICS_EVENT_LIST_ENABLED
89+
command: "readAttribute"
90+
attribute: "EventList"
91+
response:
92+
value: []
93+
constraints:
94+
type: list

0 commit comments

Comments
 (0)