diff --git a/src/app/tests/suites/certification/PICS.yaml b/src/app/tests/suites/certification/PICS.yaml index 53ddc8365a233b..2741ba787b0561 100644 --- a/src/app/tests/suites/certification/PICS.yaml +++ b/src/app/tests/suites/certification/PICS.yaml @@ -4274,6 +4274,20 @@ PICS: - label: "Does the device implement the Account Login cluster as a client?" id: ALOGIN.C + - label: + "Does the device implement the Content App Observer cluster as a + server?" + id: APPOBSERVER.S + + - label: + "Does the device implement the Content App Observer cluster as a + client?" + id: APPOBSERVER.C + + - label: + "Does the device implement the Content Control cluster as a server?" + id: CONCON.S + - label: "Does the DUT support the Content Launcher server cluster, Content Search feature?" @@ -4366,6 +4380,26 @@ PICS: SeekRangeStart attribute?" id: MEDIAPLAYBACK.S.A0006 + - label: + "Does the DUT support the Media Playback server cluster, + ActiveAudioTrack attribute?" + id: MEDIAPLAYBACK.S.A0007 + + - label: + "Does the DUT support the Media Playback server cluster, + AvailableAudioTrack attribute?" + id: MEDIAPLAYBACK.S.A0008 + + - label: + "Does the DUT support the Media Playback server cluster, + ActiveTextTrack attribute?" + id: MEDIAPLAYBACK.S.A0009 + + - label: + "Does the DUT support the Media Playback server cluster, + AvailableTextTrack attribute?" + id: MEDIAPLAYBACK.S.A000a + - label: "Does the DUT support the Audio Output server cluster, OutputList attribute?" @@ -4585,6 +4619,11 @@ PICS: command?" id: ALOGIN.S.C03.Rsp + - label: + "Does the DUT support the Content App Observer server cluster, + ContentAppMessage command?" + id: APPOBSERVER.S.C00.Rsp + # # server / features # @@ -4645,6 +4684,9 @@ PICS: commissionee using User Directed Commissioning without PIN code entry?" id: MC.S.M.UDCLOGIN + - label: "Does the DUT support the Content App Observer Cluster,feature?" + id: APPOBSERVER.S.F01 + # # client / commandsGenerated # @@ -8585,9 +8627,21 @@ PICS: "Does the device implement the ClientsSupportedPerFabric attribute?" id: ICDM.S.A0005 + - label: + "Does the device implement the UserActiveModeTriggerHint attribute?" + id: ICDM.S.A0006 + + - label: + "Does the device implement the UserActiveModeTriggerInstruction + attribute?" + id: ICDM.S.A0007 + # # Client Attribute # + - label: "Does the device implement the ICD Management cluster as a client?" + id: ICDM.C + - label: "Does the device implement the IdleModeDuration attribute?" id: ICDM.C.A0000 @@ -8607,12 +8661,27 @@ PICS: "Does the device implement the ClientsSupportedPerFabric attribute?" id: ICDM.C.A0005 + - label: + "Does the device implement the UserActiveModeTriggerHint attribute?" + id: ICDM.C.A0006 + + - label: + "Does the device implement the UserActiveModeTriggerInstruction + attribute?" + id: ICDM.C.A0007 + # # Features # - label: "Does the device support this specific cluster feature?" id: ICDM.S.F00 + - label: "Does the device support this specific cluster feature?" + id: ICDM.S.F01 + + - label: "Does the device support this specific cluster feature?" + id: ICDM.S.F02 + # #Commands: # @@ -8629,16 +8698,34 @@ PICS: # #Commands generated # - - label: "Does the device implement receiving the RegisterClient command?" + - label: + "Does the device implement receiving the RegisterClientResponse + command?" id: ICDM.S.C01.Tx + - label: "Does the device implement sending the StayActiveResponse command?" + id: ICDM.S.C04.Tx + + - label: "Does the device support sending the RegisterClient command?" + id: ICDM.S.C00.Tx + + - label: "Does the device implement sending the UnregisterClient command?" + id: ICDM.S.C02.Tx + + - label: "Does the device implement sending the StayActiveRequest command?" + id: ICDM.S.C03.Tx + # #Commands received # - label: "Does the device implement receiving the RegisterClientResponse command?" - id: ICDM.C.C00.Rsp + id: ICDM.C.C01.Rsp + + - label: + "Does the device implement receiving the StayActiveResponse command?" + id: ICDM.C.C04.Rsp # #Operational State @@ -9500,3 +9587,292 @@ PICS: - label: "Does the device implement the ValveFault event?" id: VALCC.S.E01 + + # + # Device Energy Management Cluster + # server / attributes + + - label: + "Does the device implement the Device Energy Management cluster as a + server?" + id: DEM.S + + - label: "Does the device implement the ESAType attribute?" + id: DEM.S.A0000 + + - label: "Does the device implement the ESACanGenerate attribute?" + id: DEM.S.A0001 + + - label: "Does the device implement the ESAState attribute?" + id: DEM.S.A0002 + + - label: "Does the device implement the AbsMinPower attribute?" + id: DEM.S.A0003 + + - label: "Does the device implement the AbsMaxPower attribute?" + id: DEM.S.A0004 + + - label: + "Does the device implement the PowerAdjustmentCapability attribute?" + id: DEM.S.A0005 + + - label: "Does the device implement the Forecast attribute?" + id: DEM.S.A0006 + + - label: "Does the device implement the OptOutState attribute?" + id: DEM.S.A0007 + + # feature + + - label: "Does the device support this PowerAdjustment feature?" + id: DEM.S.F00 + + - label: "Does the device support this PowerForecastReporting feature?" + id: DEM.S.F01 + + - label: "Does the device support this StateForecastReporting feature?" + id: DEM.S.F02 + + - label: "Does the device support this StartTimeAdjustment feature?" + id: DEM.S.F03 + + - label: "Does the device support this Pausable feature?" + id: DEM.S.F04 + + - label: "Does the device support this ForecastAdjustment feature?" + id: DEM.S.F05 + + - label: "Does the device support this ConstraintBasedAdjustment feature?" + id: DEM.S.F06 + + - label: + "Can the ESAState attribute be changed by physical User Opt Out + control at the device?" + id: DEM.S.M.ManuallyControlledOptOut + + # Commands received + - label: + "Does the device implement receiving the PowerAdjustRequest command?" + id: DEM.S.C00.Rsp + + - label: + "Does the device implement receiving the CancelPowerAdjustRequest + command?" + id: DEM.S.C01.Rsp + + - label: + "Does the device implement receiving the StartTimeAdjustRequest + command?" + id: DEM.S.C02.Rsp + + - label: "Does the device implement receiving the PauseRequest command?" + id: DEM.S.C03.Rsp + + - label: "Does the device implement receiving the ResumeRequest command?" + id: DEM.S.C04.Rsp + + - label: + "Does the device implement receiving the ModifyForecastRequest + command?" + id: DEM.S.C05.Rsp + + - label: + "Does the device implement receiving the + RequestConstraintBasedPowerForecast command?" + id: DEM.S.C06.Rsp + + - label: "Does the device implement receiving the CancelRequest command?" + id: DEM.S.C07.Rsp + + # Events + + - label: "Does the device implement sending the PowerAdjustStart event?" + id: DEM.S.E00 + + - label: "Does the device implement sending the PowerAdjustEnd event?" + id: DEM.S.E01 + + - label: "Does the device implement sending the Paused event?" + id: DEM.S.E02 + + - label: "Does the device implement sending the Resumed event?" + id: DEM.S.E03 + + # + # Oven Mode Cluster + # + - label: "Does the device implement the OTCCM cluster as a server?" + id: OTCCM.S + + #Server attributes + - label: "Does the device implement the SupportedModes attribute?" + id: OTCCM.S.A0000 + + - label: "Does the device implement the CurrentMode attribute?" + id: OTCCM.S.A0001 + + #Commands received + - label: "Does the device implement receiving the ChangeToMode command?" + id: OTCCM.S.C00.Rsp + + #Commands generated + - label: + "Does the device implement sending the ChangeToModeResponse command?" + id: OTCCM.S.C01.Tx + + #Manual controllable + - label: "Does the DUT support testing the failed ChangeToMode command?" + id: OTCCM.S.M.CAN_TEST_MODE_FAILURE + + - label: "Can the mode change be manually controlled?" + id: OTCCM.S.M.CAN_MANUALLY_CONTROLLED + + # + # Energy EVSE Cluster + # server / attributes + + - label: "Does the device implement the Energy EVSE cluster as a server?" + id: EEVSE.S + + - label: "Does the device implement the State attribute?" + id: EEVSE.S.A0000 + + - label: "Does the device implement the SupplyState attribute?" + id: EEVSE.S.A0001 + + - label: "Does the device implement the FaultState attribute?" + id: EEVSE.S.A0002 + + - label: "Does the device implement the ChargingEnabledUntil attribute?" + id: EEVSE.S.A0003 + + - label: "Does the device implement the DischargingEnabledUntil attribute?" + id: EEVSE.S.A0004 + + - label: "Does the device implement the CircuitCapacity attribute?" + id: EEVSE.S.A0005 + + - label: "Does the device implement the MinimumChargeCurrent attribute?" + id: EEVSE.S.A0006 + + - label: "Does the device implement the MaximumChargeCurrent attribute?" + id: EEVSE.S.A0007 + + - label: "Does the device implement the MaximumDischargeCurrent attribute?" + id: EEVSE.S.A0008 + + - label: "Does the device implement the UserMaximumChargeCurrent attribute?" + id: EEVSE.S.A0009 + + - label: "Does the device implement the RandomizationDelayWindow attribute?" + id: EEVSE.S.A000A + + - label: "Does the device implement the NextChargeStartTime attribute?" + id: EEVSE.S.A0023 + + - label: "Does the device implement the NextChargeTargetTime attribute?" + id: EEVSE.S.A0024 + + - label: "Does the device implement the NextChargeRequiredEnergy attribute?" + id: EEVSE.S.A0025 + + - label: "Does the device implement the NextChargeTargetSoC attribute?" + id: EEVSE.S.A0026 + + - label: "Does the device implement the ApproximateEVEfficiency attribute?" + id: EEVSE.S.A0027 + + - label: "Does the device implement the StateOfCharge attribute?" + id: EEVSE.S.A0030 + + - label: "Does the device implement the BatteryCapacity attribute?" + id: EEVSE.S.A0031 + + - label: "Does the device implement the VehicleID attribute?" + id: EEVSE.S.A0032 + + - label: "Does the device implement the SessionID attribute?" + id: EEVSE.S.A0040 + + - label: "Does the device implement the SessionDuration attribute?" + id: EEVSE.S.A0041 + + - label: "Does the device implement the SessionEnergyCharged attribute?" + id: EEVSE.S.A0042 + + - label: "Does the device implement the SessionEnergyDischarged attribute?" + id: EEVSE.S.A0043 + + # Features + + - label: "Does the device support this specific cluster feature?" + id: EEVSE.S.F00 + + - label: + "Does the DUT support the Content Control server cluster, PIN + Management feature?" + id: EEVSE.S.F01 + + - label: "Does the device support this specific cluster feature?" + id: EEVSE.S.F02 + + - label: "Does the device support this specific cluster feature?" + id: EEVSE.S.F03 + + - label: "Does the device support this specific cluster feature?" + id: EEVSE.S.F04 + + # Commands received + - label: "Does the device implement receiving the Disable command?" + id: EEVSE.S.C01.Rsp + + - label: "Does the device implement receiving the EnableCharging command?" + id: EEVSE.S.C02.Rsp + + - label: + "Does the device implement receiving the EnableDischarging command?" + id: EEVSE.S.C03.Rsp + + - label: "Does the device implement receiving the StartDiagnostics command?" + id: EEVSE.S.C04.Rsp + + - label: "Does the device implement receiving the SetTargets command?" + id: EEVSE.S.C05.Rsp + + - label: "Does the device implement receiving the GetTargets command?" + id: EEVSE.S.C06.Rsp + + - label: "Does the device implement receiving the ClearTargets command?" + id: EEVSE.S.C07.Rsp + + # Events + + - label: "Does the device implement sending the EVConnected event?" + id: EEVSE.S.E00 + + - label: "Does the device implement sending the EVNotDetected event?" + id: EEVSE.S.E01 + + - label: + "Does the device implement sending the EnergyTransferStarted event?" + id: EEVSE.S.E02 + + - label: + "Does the device implement sending the EnergyTransferStopped event?" + id: EEVSE.S.E03 + + - label: "Does the device implement sending the Fault event?" + id: EEVSE.S.E04 + + - label: "Does the device implement sending the RFID event?" + id: EEVSE.S.E05 + + # Manual controllable + - label: + "Can the EEVSE.S.A0000(State) attribute changed by plugging and + unplugging the EV?" + id: EEVSE.S.M.ManuallyControlledPluggedIn + + # Commands generated + - label: "Does the device implement sending the GetTargetsResponse command?" + id: EEVSE.S.C00.Tx diff --git a/src/app/tests/suites/certification/Test_TC_APPOBSERVER_13_1.yaml b/src/app/tests/suites/certification/Test_TC_APPOBSERVER_13_1.yaml new file mode 100644 index 00000000000000..ab0e84f98bb71b --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_APPOBSERVER_13_1.yaml @@ -0,0 +1,68 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: + 19.15.1. [TC-APPOBSERVER-13.1] Content App Message Verification (DUT as + Client) + +PICS: + - APPOBSERVER.C + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Step 1: DUT sends ContentAppMessage command to TH" + PICS: KEYPADINPUT.C.C00.Tx + verification: | + ./chip-tool contentappobserver content-app-message foo 1 1 --Data bar + + On TH (tv-casting-app), Verify the ContentAppMessage command is received successfully. + + [1705666572.863129][11679:11679] CHIP:EM: >>> [E:743r S:18420 M:87646249] (S) Msg RX from 1:000000000001B669 [A5ED] --- Type 0001:08 (IM:InvokeCommandRequest) + [1705666572.863201][11679:11679] CHIP:EM: Handling via exchange: 743r, Delegate: 0xaaaac06f4b78 + [1705666572.863301][11679:11679] CHIP:DMG: InvokeRequestMessage = + [1705666572.863340][11679:11679] CHIP:DMG: { + [1705666572.863372][11679:11679] CHIP:DMG: suppressResponse = false, + [1705666572.863409][11679:11679] CHIP:DMG: timedRequest = false, + [1705666572.863444][11679:11679] CHIP:DMG: InvokeRequests = + [1705666572.863510][11679:11679] CHIP:DMG: [ + [1705666572.863546][11679:11679] CHIP:DMG: CommandDataIB = + [1705666572.863599][11679:11679] CHIP:DMG: { + [1705666572.863636][11679:11679] CHIP:DMG: CommandPathIB = + [1705666572.863693][11679:11679] CHIP:DMG: { + [1705666572.863738][11679:11679] CHIP:DMG: EndpointId = 0x1, + [1705666572.863784][11679:11679] CHIP:DMG: ClusterId = 0x510, + [1705666572.863829][11679:11679] CHIP:DMG: CommandId = 0x0, + [1705666572.863884][11679:11679] CHIP:DMG: }, + [1705666572.863930][11679:11679] CHIP:DMG: + [1705666572.863969][11679:11679] CHIP:DMG: CommandFields = + [1705666572.864025][11679:11679] CHIP:DMG: { + [1705666572.864073][11679:11679] CHIP:DMG: 0x0 = "bar" (3 chars), + [1705666572.864121][11679:11679] CHIP:DMG: 0x1 = "foo" (3 chars), + [1705666572.864184][11679:11679] CHIP:DMG: }, + [1705666572.864226][11679:11679] CHIP:DMG: }, + [1705666572.864269][11679:11679] CHIP:DMG: + [1705666572.864317][11679:11679] CHIP:DMG: ], + [1705666572.864361][11679:11679] CHIP:DMG: + [1705666572.864395][11679:11679] CHIP:DMG: InteractionModelRevision = 11 + [1705666572.864440][11679:11679] CHIP:DMG: }, + [1705666572.864617][11679:11679] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0510 e=1 p=o + [1705666572.864667][11679:11679] CHIP:DMG: AccessControl: allowed + [1705666572.864719][11679:11679] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0510 Command=0x0000_0000 + [1705666572.864834][11679:11679] CHIP:ZCL: ContentAppObserver NOT returning ContentApp delegate for endpoint:1 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_APPOBSERVER_13_2.yaml b/src/app/tests/suites/certification/Test_TC_APPOBSERVER_13_2.yaml new file mode 100644 index 00000000000000..b8c3b77fb08a7e --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_APPOBSERVER_13_2.yaml @@ -0,0 +1,48 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: + 19.15.2. [TC-APPOBSERVER-13.2] Content App Message Verification (DUT as + Server) + +PICS: + - APPOBSERVER.S.F01 + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: + "Step 1: TH sends a ContentAppMessage command to the DUT with dummy + data and encodingHint strings" + PICS: APPOBSERVER.S.C00.Rsp + verification: | + ./chip-tool contentappobserver content-app-message foo 1234 1 --Data bar + On TH(chip-tool), The DUT should respond with a ContentAppMessageResponse response with status 0 (success) and optional data and encodingHint strings. + [1705666572.972558][4778:4780] CHIP:DMG: InteractionModelRevision = 11 + [1705666572.972584][4778:4780] CHIP:DMG: }, + [1705666572.972667][4778:4780] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0510 Command=0x0000_0001 + [1705666572.972720][4778:4780] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Command 0x0000_0001 + [1705666572.972820][4778:4780] CHIP:TOO: ContentAppMessageResponse: { + [1705666572.972862][4778:4780] CHIP:TOO: status: 0 + [1705666572.972888][4778:4780] CHIP:TOO: data: exampleData + [1705666572.972912][4778:4780] CHIP:TOO: encodingHint: foo + [1705666572.972936][4778:4780] CHIP:TOO: } + [1705666572.972989][4778:4780] CHIP:DMG: ICR moving to [AwaitingDe] + [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) + [1705666572.973340][4778:4780] CHIP:EM: Flushed pending ack for MessageCounter:136640189 on exchange 743i + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_APPOBSERVER_1_13.yaml b/src/app/tests/suites/certification/Test_TC_APPOBSERVER_1_13.yaml new file mode 100644 index 00000000000000..046e07a61dde62 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_APPOBSERVER_1_13.yaml @@ -0,0 +1,94 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: + 19.1.13. [TC-APPOBSERVER-1.13] Global attributes - Content App Observer + Cluster (DUT as Server) + +PICS: + - APPOBSERVER.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Step 1: TH reads the ClusterRevision attribute from the DUT" + verification: | + ./chip-tool contentappobserver read cluster-revision 1 1 + 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 + [1702624923.223245][5892:5894] CHIP:DMG: InteractionModelRevision = 11 + [1702624923.223299][5892:5894] CHIP:DMG: } + [1702624923.223652][5892:5894] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFFD DataVersion: 2272699478 + [1702624923.223820][5892:5894] CHIP:TOO: ClusterRevision: 1 + [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) + [1702624923.224578][5892:5894] CHIP:EM: Flushed pending ack for MessageCounter:113660697 on exchange 5445i + disabled: true + + - label: "Step 2: TH reads the FeatureMap attribute from the DUT" + verification: | + ./chip-tool contentappobserver read feature-map 1 1 + On TH, verify that DUT sends the FeatureMap attribute has the value 0 or returns a general error that the attribute is not supported + [1702624956.728609][5896:5898] CHIP:DMG: SuppressResponse = true, + [1702624956.728667][5896:5898] CHIP:DMG: InteractionModelRevision = 11 + [1702624956.728720][5896:5898] CHIP:DMG: } + [1702624956.729021][5896:5898] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFFC DataVersion: 2272699478 + [1702624956.729138][5896:5898] CHIP:TOO: FeatureMap: 0 + [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) + disabled: true + + - label: "Step 3: TH reads the AttributeList attribute from the DUT" + verification: | + ./chip-tool contentappobserver read attribute-list 1 1 + Verify " AttributeList " value consists the list of mandatory attributes (65533, 65532, 65531, 65529, 65528) on the TH(Chip-tool) Log: + [1702624983.367693][5900:5902] CHIP:DMG: } + [1702624983.368044][5900:5902] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFFB DataVersion: 2272699478 + [1702624983.368485][5900:5902] CHIP:TOO: AttributeList: 5 entries + [1702624983.368564][5900:5902] CHIP:TOO: [1]: 65528 + [1702624983.368624][5900:5902] CHIP:TOO: [2]: 65529 + [1702624983.368683][5900:5902] CHIP:TOO: [3]: 65531 + [1702624983.368741][5900:5902] CHIP:TOO: [4]: 65532 + [1702624983.368798][5900:5902] CHIP:TOO: [5]: 65533 + [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) + disabled: true + + - label: "Step 4: TH reads the AcceptedCommandList attribute from the DUT" + verification: | + ./chip-tool contentappobserver read accepted-command-list 1 1 + Verify " AcceptedCommandList " consists the list of mandatory commands(0)on the TH(Chip-tool) Log: + [1702625012.494394][5905:5907] CHIP:DMG: } + [1702625012.494619][5905:5907] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFF9 DataVersion: 2272699478 + [1702625012.494697][5905:5907] CHIP:TOO: AcceptedCommandList: 1 entries + [1702625012.494725][5905:5907] CHIP:TOO: [1]: 0 + [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) + disabled: true + + - label: "Step 5: TH reads the GeneratedCommandList attribute from the DUT" + verification: | + ./chip-tool contentappobserver read generated-command-list 1 1 + Verify " GeneratedCommandList " consists the list of mandatory commands(1) on the TH(Chip-tool) Log: + [1702625044.200661][5910:5912] CHIP:DMG: } + [1702625044.201052][5910:5912] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0510 Attribute 0x0000_FFF8 DataVersion: 2272699478 + [1702625044.201230][5910:5912] CHIP:TOO: GeneratedCommandList: 1 entries + [1702625044.201298][5910:5912] CHIP:TOO: [1]: 1 + [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) + [1702625044.201956][5910:5912] CHIP:EM: Flushed pending ack for MessageCounter:52573112 on exchange 33891i + disabled: true + + - label: "Step 6: TH reads the EventList attribute from the DUT" + verification: | + ./chip-tool contentappobserver read event-list 1 1 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_CONCON_1_14.yaml b/src/app/tests/suites/certification/Test_TC_CONCON_1_14.yaml new file mode 100644 index 00000000000000..1b9c2215d3e0ce --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_CONCON_1_14.yaml @@ -0,0 +1,149 @@ +# Copyright (c) 2023 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: + 19.1.14. [TC-CONCON-1.14] Global attributes - Content Control Cluster (DUT + as Server) + +PICS: + - CONCON.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Step 1: TH reads the ClusterRevision attribute from the DUT" + verification: | + ./chip-tool contentcontrol read cluster-revision 1 1 + + [1704869094.517260][4293:4295] CHIP:DMG: } + [1704869094.517545][4293:4295] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_050F Attribute 0x0000_FFFD DataVersion: 1251967611 + [1704869094.517631][4293:4295] CHIP:TOO: ClusterRevision: 1 + [1704869094.518028][4293:4295] CHIP:EM: <<< [E:20721i S:28265 M:144462024 (Ack:200262914)] (S) Msg TX to 1:0000000000000001 [EF1D] [UDP:[fe80::e65f:1ff:fe49:ae1b%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1704869094.518235][4293:4295] CHIP:EM: Flushed pending ack for MessageCounter:200262914 on exchange 20721i + disabled: true + - label: "Step 2: TH reads the FeatureMap attribute from the DUT" + + verification: | + ./chip-tool contentcontrol read feature-map 1 1 + + [1704869124.605470][4296:4298] CHIP:DMG: InteractionModelRevision = 11 + [1704869124.605531][4296:4298] CHIP:DMG: } + [1704869124.605872][4296:4298] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_050F Attribute 0x0000_FFFC DataVersion: 1251967611 + [1704869124.605970][4296:4298] CHIP:TOO: FeatureMap: 0 + [1704869124.606460][4296:4298] CHIP:EM: <<< [E:55393i S:13705 M:14084931 (Ack:173736992)] (S) Msg TX to 1:0000000000000001 [EF1D] [UDP:[fe80::e65f:1ff:fe49:ae1b%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1704869124.606702][4296:4298] CHIP:EM: Flushed pending ack for MessageCounter:173736992 on exchange 55393i + [1704869124.607077][4296:4296] CHIP:CTL: Shutting down the commissioner + disabled: true + + - label: "Step 3: TH reads the AttributeList attribute from the DUT" + verification: | + ./chip-tool contentcontrol read attribute-list 1 1 + + [1704869156.246646][4299:4301] CHIP:DMG: InteractionModelRevision = 11 + [1704869156.246689][4299:4301] CHIP:DMG: } + [1704869156.247013][4299:4301] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_050F Attribute 0x0000_FFFB DataVersion: 1251967611 + [1704869156.248939][4299:4301] CHIP:TOO: AttributeList: 13 entries + [1704869156.248979][4299:4301] CHIP:TOO: [1]: 0 + [1704869156.249005][4299:4301] CHIP:TOO: [2]: 1 + [1704869156.249031][4299:4301] CHIP:TOO: [3]: 2 + [1704869156.249055][4299:4301] CHIP:TOO: [4]: 3 + [1704869156.249080][4299:4301] CHIP:TOO: [5]: 4 + [1704869156.249105][4299:4301] CHIP:TOO: [6]: 5 + [1704869156.249130][4299:4301] CHIP:TOO: [7]: 6 + [1704869156.249154][4299:4301] CHIP:TOO: [8]: 7 + [1704869156.249180][4299:4301] CHIP:TOO: [9]: 65528 + [1704869156.249204][4299:4301] CHIP:TOO: [10]: 65529 + [1704869156.249229][4299:4301] CHIP:TOO: [11]: 65531 + [1704869156.249254][4299:4301] CHIP:TOO: [12]: 65532 + [1704869156.249279][4299:4301] CHIP:TOO: [13]: 65533 + [1704869156.249630][4299:4301] CHIP:EM: <<< [E:14371i S:6146 M:117952128 (Ack:180483729)] (S) Msg TX to 1:0000000000000001 [EF1D] [UDP:[fe80::e65f:1ff:fe49:ae1b%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1704869156.249770][4299:4301] CHIP:EM: Flushed pending ack for MessageCounter:180483729 on exchange 14371i + disabled: true + + - label: "Step 4: TH reads the AcceptedCommandList attribute from the DUT" + verification: | + ./chip-tool contentcontrol read accepted-command-list 1 1 + [1704869442.419331][4306:4308] CHIP:DMG: SuppressResponse = true, + [1704869442.419358][4306:4308] CHIP:DMG: InteractionModelRevision = 11 + [1704869442.419382][4306:4308] CHIP:DMG: } + [1704869442.419678][4306:4308] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_050F Attribute 0x0000_FFF9 DataVersion: 1251967611 + [1704869442.419774][4306:4308] CHIP:TOO: AcceptedCommandList: 10 entries + [1704869442.419808][4306:4308] CHIP:TOO: [1]: 0 + [1704869442.419835][4306:4308] CHIP:TOO: [2]: 1 + [1704869442.419860][4306:4308] CHIP:TOO: [3]: 3 + [1704869442.419885][4306:4308] CHIP:TOO: [4]: 4 + [1704869442.419909][4306:4308] CHIP:TOO: [5]: 5 + [1704869442.419933][4306:4308] CHIP:TOO: [6]: 6 + [1704869442.419958][4306:4308] CHIP:TOO: [7]: 7 + [1704869442.419982][4306:4308] CHIP:TOO: [8]: 8 + [1704869442.420006][4306:4308] CHIP:TOO: [9]: 9 + [1704869442.420031][4306:4308] CHIP:TOO: [10]: 10 + [1704869442.420310][4306:4308] CHIP:EM: <<< [E:22515i S:37055 M:163291838 (Ack:95370016)] (S) Msg TX to 1:0000000000000001 [EF1D] [UDP:[fe80::e65f:1ff:fe49:ae1a%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1704869442.420470][4306:4308] CHIP:EM: Flushed pending ack for MessageCounter:95370016 on exchange 22515i + disabled: true + + - label: "Step 5: TH reads the GeneratedCommandList attribute from the DUT" + verification: | + ./chip-tool contentcontrol read generated-command-list 1 1 + + [1704869486.142562][4311:4313] CHIP:DMG: SuppressResponse = true, + [1704869486.142591][4311:4313] CHIP:DMG: InteractionModelRevision = 11 + [1704869486.142617][4311:4313] CHIP:DMG: } + [1704869486.142837][4311:4313] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_050F Attribute 0x0000_FFF8 DataVersion: 1251967611 + [1704869486.142903][4311:4313] CHIP:TOO: GeneratedCommandList: 1 entries + [1704869486.142938][4311:4313] CHIP:TOO: [1]: 2 + [1704869486.143197][4311:4313] CHIP:EM: <<< [E:58684i S:20913 M:112498974 (Ack:84853992)] (S) Msg TX to 1:0000000000000001 [EF1D] [UDP:[fe80::e65f:1ff:fe49:ae1a%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + disabled: true + + - label: "Step 6: TH reads the EventList attribute from the DUT" + verification: | + ./chip-tool contentcontrol read event-list 1 1 + + [1704869518.133231][4314:4316] CHIP:EM: Rxd Ack; Removing MessageCounter:245792542 from Retrans Table on exchange 18480i + [1704869518.133334][4314:4316] CHIP:DMG: ReportDataMessage = + [1704869518.133370][4314:4316] CHIP:DMG: { + [1704869518.133398][4314:4316] CHIP:DMG: AttributeReportIBs = + [1704869518.133440][4314:4316] CHIP:DMG: [ + [1704869518.133472][4314:4316] CHIP:DMG: AttributeReportIB = + [1704869518.133515][4314:4316] CHIP:DMG: { + [1704869518.133549][4314:4316] CHIP:DMG: AttributeStatusIB = + [1704869518.133594][4314:4316] CHIP:DMG: { + [1704869518.133631][4314:4316] CHIP:DMG: AttributePathIB = + [1704869518.133674][4314:4316] CHIP:DMG: { + [1704869518.133720][4314:4316] CHIP:DMG: Endpoint = 0x1, + [1704869518.133764][4314:4316] CHIP:DMG: Cluster = 0x50f, + [1704869518.133809][4314:4316] CHIP:DMG: Attribute = 0x0000_FFFA, + [1704869518.133850][4314:4316] CHIP:DMG: } + [1704869518.133946][4314:4316] CHIP:DMG: + [1704869518.133988][4314:4316] CHIP:DMG: StatusIB = + [1704869518.134031][4314:4316] CHIP:DMG: { + [1704869518.134072][4314:4316] CHIP:DMG: status = 0x86 (UNSUPPORTED_ATTRIBUTE), + [1704869518.134144][4314:4316] CHIP:DMG: }, + [1704869518.134189][4314:4316] CHIP:DMG: + [1704869518.134226][4314:4316] CHIP:DMG: }, + [1704869518.134268][4314:4316] CHIP:DMG: + [1704869518.134324][4314:4316] CHIP:DMG: }, + [1704869518.134368][4314:4316] CHIP:DMG: + [1704869518.134398][4314:4316] CHIP:DMG: ], + [1704869518.134438][4314:4316] CHIP:DMG: + [1704869518.134469][4314:4316] CHIP:DMG: SuppressResponse = true, + [1704869518.134501][4314:4316] CHIP:DMG: InteractionModelRevision = 11 + [1704869518.134531][4314:4316] CHIP:DMG: } + [1704869518.134726][4314:4316] CHIP:TOO: Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + [1704869518.135007][4314:4316] CHIP:EM: <<< [E:18480i S:40415 M:245792543 (Ack:116804273)] (S) Msg TX to 1:0000000000000001 [EF1D] [UDP:[fe80::e65f:1ff:fe49:ae1a%wlan0]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DEM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DEM_1_1.yaml new file mode 100644 index 00000000000000..4d1a72392ab435 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DEM_1_1.yaml @@ -0,0 +1,123 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 237.1.1. [TC-DEM-1.1] Global Attributes with DUT as Server + +PICS: + - DEM.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: + "Step 1: Commission DUT to TH (can be skipped if done in a preceding + test)." + verification: | + + disabled: true + + - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." + verification: | + ./chip-tool deviceenergymanagement read cluster-revision 1 1 + + On TH(chip-tool), Verify the ClusterRevision attribute value as 2: + Below mentioned log is based on the RPI implementation, Value may vary on real DUT + + [1705565332.698601][7061:7063] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFFD DataVersion: 1117764527 + [1705565332.698668][7061:7063] CHIP:TOO: ClusterRevision: 3 + disabled: true + + - label: "Step 3: TH reads from the DUT the FeatureMap attribute." + verification: | + ./chip-tool deviceenergymanagement read feature-map 1 1 + + Via the TH (chip-tool), verify that theFeatureMap attribute contains the value. Below mentioned log is based on the RPI implementation, Value may vary on real DUT + + + [1705565302.904580][7054:7056] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFFC DataVersion: 1117764527 + [1705565302.904631][7054:7056] CHIP:TOO: FeatureMap: 127 + disabled: true + + - label: "Step 4: TH reads from the DUT the AttributeList attribute." + verification: | + ./chip-tool deviceenergymanagement read attribute-list 1 1 + + Via the TH (chip-tool), verify that the AttributeList attribute contains + - Mandatory entries:0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0xfff8, 0xfff9, 0xfffb, 0xfffc and 0xfffd + - Based on feature support:- 0x0005, 0x0006, 0x0007 + Below mentioned log is based on the RPI implementation, Value may vary on real DUT + + [1705649142.831039][6212:6214] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFFB DataVersion: 633673396 + [1705649142.831110][6212:6214] CHIP:TOO: AttributeList: 13 entries + [1705649142.831151][6212:6214] CHIP:TOO: [1]: 0 + [1705649142.831174][6212:6214] CHIP:TOO: [2]: 1 + [1705649142.831208][6212:6214] CHIP:TOO: [3]: 2 + [1705649142.831230][6212:6214] CHIP:TOO: [4]: 3 + [1705649142.831261][6212:6214] CHIP:TOO: [5]: 4 + [1705649142.831283][6212:6214] CHIP:TOO: [6]: 5 + [1705649142.831304][6212:6214] CHIP:TOO: [7]: 6 + [1705649142.831336][6212:6214] CHIP:TOO: [8]: 7 + [1705649142.831359][6212:6214] CHIP:TOO: [9]: 65528 + [1705649142.831390][6212:6214] CHIP:TOO: [10]: 65529 + [1705649142.831434][6212:6214] CHIP:TOO: [11]: 65531 + [1705649142.831458][6212:6214] CHIP:TOO: [12]: 65532 + [1705649142.831490][6212:6214] CHIP:TOO: [13]: 65533 + disabled: true + + - label: "Step 5*: TH reads from the DUT the EventList attribute." + verification: | + EventList is currently not supported and SHALL be skipped. + + ./chip-tool deviceenergymanagement read event-list 1 1 + + 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 + + [1703745599.166331][1300:1302] CHIP:DMG: StatusIB = + [1703745599.166364][1300:1302] CHIP:DMG: { + [1703745599.166419][1300:1302] CHIP:DMG: status = 0x86 (UNSUPPORTED_ATTRIBUTE), + [1703745599.166450][1300:1302] CHIP:DMG: }, + disabled: true + + - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." + verification: | + ./chip-tool deviceenergymanagement read accepted-command-list 1 1 + + On TH(chip-tool), Verify the AcceptedCommandList attribute that contains 7 entries: + Below mentioned log is based on the RPI implementation, Value may vary on real DUT + + [1705649342.947638][6221:6223] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFF9 DataVersion: 633673396 + [1705649342.947712][6221:6223] CHIP:TOO: AcceptedCommandList: 8 entries + [1705649342.947754][6221:6223] CHIP:TOO: [1]: 0 + [1705649342.947779][6221:6223] CHIP:TOO: [2]: 1 + [1705649342.947802][6221:6223] CHIP:TOO: [3]: 2 + [1705649342.947825][6221:6223] CHIP:TOO: [4]: 3 + [1705649342.947848][6221:6223] CHIP:TOO: [5]: 4 + [1705649342.947871][6221:6223] CHIP:TOO: [6]: 5 + [1705649342.947894][6221:6223] CHIP:TOO: [7]: 6 + [1705649342.947917][6221:6223] CHIP:TOO: [8]: 7 + disabled: true + + - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." + verification: | + ./chip-tool deviceenergymanagement read generated-command-list 1 1 + + On TH(chip-tool), Verify the GeneratedCommandList attribute that contains 1 entries: + + [1705567897.076935][7141:7143] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFF8 DataVersion: 1117764527 + [1705567897.076989][7141:7143] CHIP:TOO: GeneratedCommandList: 0 entries + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_EEVSE_1_1.yaml b/src/app/tests/suites/certification/Test_TC_EEVSE_1_1.yaml new file mode 100644 index 00000000000000..44932851b0343c --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_EEVSE_1_1.yaml @@ -0,0 +1,139 @@ +# Copyright (c) 2023 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 272.1.1. [TC-EEVSE-1.1] Global Attributes with DUT as Server + +PICS: + - EEVSE.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: + "Step 1: Commission DUT to TH (can be skipped if done in a preceding + test)." + verification: | + + disabled: true + + - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." + verification: | + ./chip-tool energyevse read cluster-revision 1 1 + + On TH(chip-tool), Verify the ClusterRevision attribute value as 2: + Below mentioned log is based on the RPI implementation, Value may vary on real DUT + + [1703744384.239486][1259:1261] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_FFFD DataVersion: 1471857723 + [1703744384.239529][1259:1261] CHIP:TOO: ClusterRevision: 2 + disabled: true + + - label: "Step 3: TH reads from the DUT the FeatureMap attribute." + verification: | + ./chip-tool energyevse read feature-map 1 1 + + Via the TH (chip-tool), verify that theFeatureMap attribute contains the value. Below mentioned log is based on the RPI implementation, Value may vary on real DUT + + + [1703744496.721907][1265:1267] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_FFFC DataVersion: 1471857723 + [1703744496.721955][1265:1267] CHIP:TOO: FeatureMap: 31 + disabled: true + + - label: "Step 4: TH reads from the DUT the AttributeList attribute." + verification: | + ./chip-tool energyevse read attribute-list 1 1 + + Via the TH (chip-tool), verify that theAttributeListattribute contains + - Mandatory entries:0x0000, 0x0001, 0x0002, 0x0003, 0x0005, 0x0006, 0x0007, 0x0040, 0x0041, 0x0042 0xfff8, 0xfff9, 0xfffb, 0xfffc and 0xfffd + - Optional entries: 0x0009, 0x000A + - Based on feature support:- 0x0004, 0x0008, 0x0043, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0030, 0x0031, 0x0032 + Below mentioned log is based on the RPI implementation, Value may vary on real DUT + + [1705654173.130338][6375:6377] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_FFFB DataVersion: 1462274739 + [1705654173.130427][6375:6377] CHIP:TOO: AttributeList: 28 entries + [1705654173.130469][6375:6377] CHIP:TOO: [1]: 0 + [1705654173.130506][6375:6377] CHIP:TOO: [2]: 1 + [1705654173.130529][6375:6377] CHIP:TOO: [3]: 2 + [1705654173.130551][6375:6377] CHIP:TOO: [4]: 3 + [1705654173.130574][6375:6377] CHIP:TOO: [5]: 4 + [1705654173.130608][6375:6377] CHIP:TOO: [6]: 5 + [1705654173.130631][6375:6377] CHIP:TOO: [7]: 6 + [1705654173.130664][6375:6377] CHIP:TOO: [8]: 7 + [1705654173.130687][6375:6377] CHIP:TOO: [9]: 8 + [1705654173.130710][6375:6377] CHIP:TOO: [10]: 9 + [1705654173.130744][6375:6377] CHIP:TOO: [11]: 10 + [1705654173.130769][6375:6377] CHIP:TOO: [12]: 35 + [1705654173.130801][6375:6377] CHIP:TOO: [13]: 36 + [1705654173.130826][6375:6377] CHIP:TOO: [14]: 37 + [1705654173.130849][6375:6377] CHIP:TOO: [15]: 38 + [1705654173.130883][6375:6377] CHIP:TOO: [16]: 39 + [1705654173.130907][6375:6377] CHIP:TOO: [17]: 48 + [1705654173.130930][6375:6377] CHIP:TOO: [18]: 49 + [1705654173.130964][6375:6377] CHIP:TOO: [19]: 50 + [1705654173.130988][6375:6377] CHIP:TOO: [20]: 64 + [1705654173.131021][6375:6377] CHIP:TOO: [21]: 65 + [1705654173.131045][6375:6377] CHIP:TOO: [22]: 66 + [1705654173.131068][6375:6377] CHIP:TOO: [23]: 67 + [1705654173.131101][6375:6377] CHIP:TOO: [24]: 65528 + [1705654173.131126][6375:6377] CHIP:TOO: [25]: 65529 + [1705654173.131149][6375:6377] CHIP:TOO: [26]: 65531 + [1705654173.131182][6375:6377] CHIP:TOO: [27]: 65532 + [1705654173.131205][6375:6377] CHIP:TOO: [28]: 65533 + disabled: true + + - label: "Step 5*: TH reads from the DUT the EventList attribute." + verification: | + EventList is currently not supported and SHALL be skipped. + + ./chip-tool energyevse read event-list 1 1 + + 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 + + [1703745599.166331][1300:1302] CHIP:DMG: StatusIB = + [1703745599.166364][1300:1302] CHIP:DMG: { + [1703745599.166419][1300:1302] CHIP:DMG: status = 0x86 (UNSUPPORTED_ATTRIBUTE), + [1703745599.166450][1300:1302] CHIP:DMG: }, + disabled: true + + - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." + verification: | + ./chip-tool energyevse read accepted-command-list 1 1 + + On TH(chip-tool), Verify the AcceptedCommandList attribute that contains 7 entries: + Below mentioned log is based on the RPI implementation, Value may vary on real DUT + + [1703745620.007744][1304:1306] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_FFF9 DataVersion: 1471857723 + [1703745620.007809][1304:1306] CHIP:TOO: AcceptedCommandList: 7 entries + [1703745620.007838][1304:1306] CHIP:TOO: [1]: 1 + [1703745620.007862][1304:1306] CHIP:TOO: [2]: 2 + [1703745620.007886][1304:1306] CHIP:TOO: [3]: 3 + [1703745620.007909][1304:1306] CHIP:TOO: [4]: 5 + [1703745620.007931][1304:1306] CHIP:TOO: [5]: 6 + [1703745620.007954][1304:1306] CHIP:TOO: [6]: 7 + [1703745620.007977][1304:1306] CHIP:TOO: [7]: 4 + disabled: true + + - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." + verification: | + ./chip-tool energyevse read generated-command-list 1 1 + + On TH(chip-tool), Verify the GeneratedCommandList attribute that contains 1 entries: + + [1703745647.799108][1307:1309] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_FFF8 DataVersion: 1471857723 + [1703745647.799167][1307:1309] CHIP:TOO: GeneratedCommandList: 1 entries + [1703745647.799197][1307:1309] CHIP:TOO: [1]: 0 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_EEVSE_2_1.yaml b/src/app/tests/suites/certification/Test_TC_EEVSE_2_1.yaml new file mode 100644 index 00000000000000..f1ea0b28385634 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_EEVSE_2_1.yaml @@ -0,0 +1,343 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 266.1.2. [TC-EEVSE-2.1] Attributes with DUT as Server + +PICS: + - EEVSE.S + +config: + nodeId: "0x12344321" + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: + "Step 1: Commission DUT to TH (can be skipped if done in a preceding + test)." + verification: | + + disabled: true + + - label: "Step 2: TH reads from the DUT the State attribute." + verification: | + ./chip-tool energyevse read state 1 1 + + On TH(chip-tool), Verify the State value between 0 and 6 inclusive. + + [1703746501.478667][1324:1326] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0000 DataVersion: 1471857723 + [1703746501.482885][1324:1326] CHIP:TOO: State: 0 + disabled: true + + - label: "Step 3: TH reads from the DUT the SupplyState attribute." + PICS: EEVSE.S.A0001 + verification: | + ./chip-tool energyevse read supply-state 1 1 + + On TH(chip-tool), Verify the SupplyState value between 0 and 4 inclusive. + + [1703746567.014836][1331:1333] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0001 DataVersion: 1471857723 + [1703746567.014912][1331:1333] CHIP:TOO: SupplyState: 0 + disabled: true + + - label: "Step 4: TH reads from the DUT the FaultState attribute." + PICS: EEVSE.S.A0002 + verification: | + ./chip-tool energyevse read fault-state 1 1 + + On TH(chip-tool), Verify the FaultState value between 0 to 15 and 255 inclusive. + + [1703746609.539647][1339:1341] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0002 DataVersion: 1471857723 + [1703746609.539748][1339:1341] CHIP:TOO: FaultState: 0 + disabled: true + + - label: "Step 5: TH reads from the DUT the ChargingEnabledUntil attribute." + PICS: EEVSE.S.A0003 + verification: | + ./chip-tool energyevse read charging-enabled-until 1 1 + + On TH(chip-tool), Verify the ChargingEnabledUntil attribute contains epoch-s value or null. + + [1703746659.995945][1410:1412] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0003 DataVersion: 1471857723 + [1703746659.996071][1410:1412] CHIP:TOO: ChargingEnabledUntil: null + disabled: true + + - label: + "Step 6: TH reads from the DUT the DischargingEnabledUntil attribute." + PICS: EEVSE.S.A0004 + verification: | + ./chip-tool energyevse read discharging-enabled-until 1 1 + + On TH(chip-tool), Verify the DischargingEnabledUntil attribute contains epoch-s value or null. + + [1703746787.751096][1849:1851] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0004 DataVersion: 1471857723 + [1703746787.751173][1849:1851] CHIP:TOO: DischargingEnabledUntil: null + disabled: true + + - label: "Step 7: TH reads from the DUT the CircuitCapacity attribute." + PICS: EEVSE.S.A0005 + verification: | + ./chip-tool energyevse read circuit-capacity 1 1 + + On TH(chip-tool), Verify the CircuitCapacity contains an amperage-mA value is in the range of 0 to 80000. + + [1703746836.529283][1855:1857] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0005 DataVersion: 1471857723 + [1703746836.529406][1855:1857] CHIP:TOO: CircuitCapacity: 0 + disabled: true + + - label: "Step 8: TH reads from the DUT the MinimumChargeCurrent attribute." + PICS: EEVSE.S.A0006 + verification: | + ./chip-tool energyevse read minimum-charge-current 1 1 + + On TH(chip-tool), Verify the MinimumChargeCurrent contains an amperage-mA value is in the range of 0 to 80000. + + [1703746900.151431][1861:1863] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0006 DataVersion: 1471857723 + [1703746900.151511][1861:1863] CHIP:TOO: MinimumChargeCurrent: 6000 + disabled: true + + - label: "Step 9: TH reads from the DUT the MaximumChargeCurrent attribute." + PICS: EEVSE.S.A0007 + verification: | + ./chip-tool energyevse read maximum-charge-current 1 1 + + On TH(chip-tool), Verify the MaximumChargeCurrent contains an amperage-mA value is in the range of 0 80000. + + [1703746980.955341][1866:1868] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0007 DataVersion: 1471857723 + [1703746980.955401][1866:1868] CHIP:TOO: MaximumChargeCurrent: 0 + disabled: true + + - label: + "Step 10: TH reads from the DUT the MaximumDischargeCurrent attribute." + PICS: EEVSE.S.A0008 + verification: | + ./chip-tool energyevse read maximum-discharge-current 1 1 + + On TH(chip-tool), Verify the MaximumDischargeCurrent contains an amperage-mA value is in the range of 0 80000. + + [1703747035.548962][1870:1872] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0008 DataVersion: 1471857723 + [1703747035.549016][1870:1872] CHIP:TOO: MaximumDischargeCurrent: 0 + disabled: true + + - label: + "Step 11: TH writes to the DUT the UserMaximumChargeCurrent attribute + value 30000." + PICS: EEVSE.S.A0009 + verification: | + ./chip-tool energyevse write user-maximum-charge-current 30000 1 1 + + On TH(chip-tool), Verify the SUCCESS response for UserMaximumChargeCurrent attribute successful write. + + [1703747211.562507][1880:1882] CHIP:DMG: StatusIB = + [1703747211.562536][1880:1882] CHIP:DMG: { + [1703747211.562599][1880:1882] CHIP:DMG: status = 0x00 (SUCCESS), + [1703747211.562629][1880:1882] CHIP:DMG: }, + [1703747211.562677][1880:1882] CHIP:DMG: + [1703747211.562703][1880:1882] CHIP:DMG: }, + disabled: true + + - label: + "Step 11a: TH reads from the DUT the UserMaximumChargeCurrent + attribute." + PICS: EEVSE.S.A0009 + verification: | + ./chip-tool energyevse read user-maximum-charge-current 1 1 + + On TH(chip-tool), Verify the UserMaximumChargeCurrent attribute contains the amperage-mA value 30000. + + [1703747252.643892][1886:1888] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0009 DataVersion: 1471857725 + [1703747252.643979][1886:1888] CHIP:TOO: UserMaximumChargeCurrent: 30000 + disabled: true + + - label: + "Step 12: TH writes to the DUT the RandomizationDelayWindow attribute + value 600." + PICS: EEVSE.S.A000A + verification: | + ./chip-tool energyevse write randomization-delay-window 600 1 1 + + On TH(chip-tool), Verify the SUCCESS response for RandomizationDelayWindow attribute successful write. + + [1703747329.583214][1890:1892] CHIP:DMG: StatusIB = + [1703747329.583244][1890:1892] CHIP:DMG: { + [1703747329.583273][1890:1892] CHIP:DMG: status = 0x00 (SUCCESS), + [1703747329.583301][1890:1892] CHIP:DMG: }, + disabled: true + + - label: + "Step 12a: TH reads from the DUT the RandomizationDelayWindow + attribute." + PICS: EEVSE.S.A000A + verification: | + ./chip-tool energyevse read randomization-delay-window 1 1 + + On TH(chip-tool), Verify the RandomizationDelayWindow attribute contains elapsed-s value 600. + + [1703747373.495538][1893:1895] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_000A DataVersion: 1471857726 + [1703747373.495591][1893:1895] CHIP:TOO: RandomizationDelayWindow: 600 + disabled: true + + - label: "Step 13: TH reads from the DUT the NextChargeStartTime attribute." + PICS: EEVSE.S.A0023 + verification: | + ./chip-tool energyevse read next-charge-start-time 1 1 + + On TH(chip-tool), Verify the NextChargeStartTime attribute contains epoch-s value or null. + + [1703747468.300635][1902:1904] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0023 DataVersion: 1471857726 + [1703747468.300690][1902:1904] CHIP:TOO: NextChargeStartTime: null + disabled: true + + - label: + "Step 14: TH reads from the DUT the NextChargeTargetTime attribute." + PICS: EEVSE.S.A0024 + verification: | + ./chip-tool energyevse read next-charge-target-time 1 1 + + On TH(chip-tool), Verify the NextChargeTargetTime attribute contains epoch-s value or null. + + [1703747509.059648][1906:1908] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0024 DataVersion: 1471857726 + [1703747509.059700][1906:1908] CHIP:TOO: NextChargeTargetTime: null + disabled: true + + - label: + "Step 15: TH reads from the DUT the NextChargeRequiredEnergy + attribute." + PICS: EEVSE.S.A0025 + verification: | + ./chip-tool energyevse read next-charge-required-energy 1 1 + + On TH(chip-tool), Verify the NextChargeRequiredEnergy attribute energy-mWh value is in the valid range(min 0) or null. + + [1703747579.793082][1917:1919] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0025 DataVersion: 1471857726 + [1703747579.793170][1917:1919] CHIP:TOO: NextChargeRequiredEnergy: null + disabled: true + + - label: "Step 16: TH reads from the DUT the NextChargeTargetSoC attribute." + PICS: EEVSE.S.A0026 + verification: | + ./chip-tool energyevse read next-charge-target-so-c 1 1 + + On TH(chip-tool), Verify the NextChargeTargetSoC attribute contains a percent value, or null. + + [1703747625.575922][1922:1924] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0026 DataVersion: 1471857726 + [1703747625.576013][1922:1924] CHIP:TOO: NextChargeTargetSoC: null + disabled: true + + - label: + "Step 17: TH writes to the DUT the ApproximateEVEfficiency attribute + value 3500." + PICS: EEVSE.S.A0027 + verification: | + ./chip-tool energyevse write approximate-evefficiency 3500 1 1 + + On TH(chip-tool), Verify the SUCCESS response for ApproximateEVEfficiency attribute successful write. + + [1703747688.527575][1927:1929] CHIP:DMG: StatusIB = + [1703747688.527603][1927:1929] CHIP:DMG: { + [1703747688.527631][1927:1929] CHIP:DMG: status = 0x00 (SUCCESS), + [1703747688.527678][1927:1929] CHIP:DMG: }, + disabled: true + + - label: + "Step 17a: TH reads from the DUT the ApproximateEVEfficiency + attribute." + PICS: EEVSE.S.A0027 + verification: | + ./chip-tool energyevse read approximate-evefficiency 1 1 + + On TH(chip-tool), Verify the ApproximateEVEfficiency attribute contains the uint16 value 3500. + + [1703747727.592819][1930:1932] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0027 DataVersion: 1471857728 + [1703747727.592870][1930:1932] CHIP:TOO: ApproximateEVEfficiency: 3500 + disabled: true + + - label: "Step 18: TH reads from the DUT the StateOfCharge attribute." + PICS: EEVSE.S.A0030 + verification: | + ./chip-tool energyevse read state-of-charge 1 1 + + On TH(chip-tool), Verify the StateOfCharge attribute contains a percent value, or null. + + [1703747792.711492][1934:1936] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0030 DataVersion: 1471857728 + [1703747792.711546][1934:1936] CHIP:TOO: StateOfCharge: null + disabled: true + + - label: "Step 19: TH reads from the DUT the BatteryCapacity attribute." + PICS: EEVSE.S.A0031 + verification: | + ./chip-tool energyevse read battery-capacity 1 1 + + On TH(chip-tool), Verify the BatteryCapacity attribute contains an energy-mWh value or null. + + [1703747831.580988][1942:1944] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0031 DataVersion: 1471857728 + [1703747831.581068][1942:1944] CHIP:TOO: BatteryCapacity: null + disabled: true + + - label: "Step 20: TH reads from the DUT the VehicleID attribute." + PICS: EEVSE.S.A0032 + verification: | + ./chip-tool energyevse read vehicle-id 1 1 + + On TH(chip-tool), Verify the VehicleID attribute contains a string value, or null. + + [1703747885.083733][1948:1950] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0032 DataVersion: 1471857728 + [1703747885.083795][1948:1950] CHIP:TOO: VehicleID: null + disabled: true + + - label: "Step 21: TH reads from the DUT the SessionID attribute." + PICS: EEVSE.S.A0040 + verification: | + ./chip-tool energyevse read session-id 1 1 + + On TH(chip-tool), Verify the SessionID attribute contains a uint32 value, or null. + [1703747940.652133][1953:1955] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0040 DataVersion: 1471857728 + [1703747940.652210][1953:1955] CHIP:TOO: SessionID: null + disabled: true + + - label: "Step 22: TH reads from the DUT the SessionDuration attribute." + PICS: EEVSE.S.A0041 + verification: | + ./chip-tool energyevse read session-duration 1 1 + + On TH(chip-tool), Verify the SessionDuration attribute contains an elapsed-s value or null. + + [1703747993.886193][1957:1959] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0041 DataVersion: 1471857728 + [1703747993.886248][1957:1959] CHIP:TOO: SessionDuration: null + disabled: true + + - label: + "Step 23: TH reads from the DUT the SessionEnergyCharged attribute." + PICS: EEVSE.S.A0042 + verification: | + ./chip-tool energyevse read session-energy-charged 1 1 + + On TH(chip-tool), Verify the SessionEnergyCharged attribute energy-mWh value is in the valid range(min 0) or null. + + [1703748035.855732][1962:1964] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0042 DataVersion: 1471857728 + [1703748035.855811][1962:1964] CHIP:TOO: SessionEnergyCharged: null + disabled: true + + - label: + "Step 24: TH reads from the DUT the SessionEnergyDischarged attribute." + PICS: EEVSE.S.A0043 + verification: | + ./chip-tool energyevse read session-energy-discharged 1 1 + + On TH(chip-tool), Verify the SessionEnergyDischarged attribute energy-mWh value is in the valid range(min 0) or null. + + [1703748130.507623][1967:1970] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0099 Attribute 0x0000_0043 DataVersion: 1471857728 + [1703748130.507701][1967:1970] CHIP:TOO: SessionEnergyDischarged: null + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ICDM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_ICDM_1_1.yaml index fae8d6af6de22a..08bdb9322b2b1a 100755 --- a/src/app/tests/suites/certification/Test_TC_ICDM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ICDM_1_1.yaml @@ -40,6 +40,17 @@ tests: type: int16u - label: "Step 3: TH reads FeatureMap attribute from DUT" + PICS: " !ICDM.S.F00 && !ICDM.S.F01 && !ICDM.S.F02 " + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 0 + constraints: + type: bitmap32 + + - label: + "Step 3: TH reads FeatureMap attribute from DUT, bit 0 is set to 1 if + ICDM.S.F00(UAT) is true," PICS: ICDM.S.F00 command: "readAttribute" attribute: "FeatureMap" @@ -48,13 +59,26 @@ tests: hasMasksSet: [0x1] type: bitmap32 - - label: "Step 3: TH reads FeatureMap attribute from DUT" - PICS: " !ICDM.S.F00 " + - label: + "Step 3: TH reads FeatureMap attribute from DUT, bit 1 is set to 1 if + ICDM.S.F01(CIP) is true" + PICS: ICDM.S.F01 + command: "readAttribute" + attribute: "FeatureMap" + response: + constraints: + hasMasksSet: [0x2] + type: bitmap32 + + - label: + "Step 3: TH reads FeatureMap attribute from DUT, bit 2 is set to 1 if + ICDM.S.F02(UAT) is true," + PICS: ICDM.S.F02 command: "readAttribute" attribute: "FeatureMap" response: - value: 0 constraints: + hasMasksSet: [0x4] type: bitmap32 - label: "Step 4a: TH reads AttributeList attribute from DUT" @@ -106,6 +130,28 @@ tests: type: list contains: [5] + - label: + "Step 4d: Read the optional attribute(UserActiveModeTriggerHint) in + AttributeList" + PICS: ICDM.S.A0006 + command: "readAttribute" + attribute: "AttributeList" + response: + constraints: + type: list + contains: [6] + + - label: + "Step 4d: Read the optional + attribute(UserActiveModeTriggerInstruction) in AttributeList" + PICS: ICDM.S.A0007 + command: "readAttribute" + attribute: "AttributeList" + response: + constraints: + type: list + contains: [7] + - label: "Step 5: Read the global attribute: EventList" PICS: PICS_EVENT_LIST_ENABLED command: "readAttribute" @@ -163,3 +209,15 @@ tests: constraints: type: list contains: [1] + + - label: + "Step 7: TH reads GeneratedCommandList attribute from DUT. The list + MAY include these optional entries: 0x04: SHALL be included if and + only if ICDM.S.C04.Tx(StayActiveResponse) " + PICS: ICDM.S.C04.Tx + command: "readAttribute" + attribute: "GeneratedCommandList" + response: + constraints: + type: list + contains: [4] diff --git a/src/app/tests/suites/certification/Test_TC_ICDM_3_1.yaml b/src/app/tests/suites/certification/Test_TC_ICDM_3_1.yaml new file mode 100644 index 00000000000000..3fe5afe83a8510 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ICDM_3_1.yaml @@ -0,0 +1,278 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 217.2.2. [TC-ICDM-3.1] Register/Unregister Clients with DUT as Server + +PICS: + - ICDM.S + - ICDM.S.F00 + - ICDM.S.C00.Rsp + - ICDM.S.C02.Rsp + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Preconditions" + verification: | + 1.Commission DUT to TH (can be skipped if done in a preceding test). + 2a.TH reads from the DUT the RegisteredClients attribute. + 2b.If list of registered clients is not empty, unregister existing client(s) + 2c.TH reads from the DUT the RegisteredClients attribute. Verify that the DUT response contains empty list of registered clients. + disabled: true + + - label: + "Step 1: TH sends RegisterClient command. - CheckInNodeID: registering + clients node ID - MonitoredSubject: monitored subject ID - Key: shared + secret between the client and the ICD" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 1 1 hex:1234567890abcdef1234567890abcdef 1 0 + On TH(chip-tool) verify that DUT responds with status code as success + + [1687534883748] [49948:406768] [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001 + [1687534883748] [49948:406768] [TOO] Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1687534883748] [49948:406768] [TOO] RegisterClientResponse: { + [1687534883748] [49948:406768] [TOO] ICDCounter: 0 + [1687534883748] [49948:406768] [TOO] } + disabled: true + + - label: "Step 2: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + On TH(Chip-tool), Verify that the DUT response contains a list of 1 registered client of given CheckInNodeID, MonitoredSubject, and Key + + [1689676816.943056][18202:18204] CHIP:DMG: } + [1689676816.943185][18202:18204] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 1824957093 + [1689676816.943237][18202:18204] CHIP:TOO: RegisteredClients: 2 entries + [1689676816.943266][18202:18204] CHIP:TOO: [1]: { + [1689676816.943273][18202:18204] CHIP:TOO: CheckInNodeID: 1 + [1689676816.943279][18202:18204] CHIP:TOO: MonitoredSubject: 1 + [1689676816.943288][18202:18204] CHIP:TOO: Key: 31323334353637383930616263646566 + [1689676816.943302][18202:18204] CHIP:TOO: FabricIndex: 1 + [1689676816.943309][18202:18204] CHIP:TOO: } + [1689676816.943411][18202:18204] CHIP:EM: <<< [E:57729i S:18360 M:263136445 (Ack:51562449)] (S) Msg TX to 1:0000000000000001 [BFDE] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1689676816.943425][18202:18204] CHIP:IN: (S) Sending msg 263136445 on secure session with LSID: 18360 + disabled: true + + - label: + "Step 3a: TH reads from the DUT the + ICDM.S.A0005(ClientsSupportedPerFabric) attribute." + PICS: ICDM.S.A0005 + verification: | + ./chip-tool icdmanagement read clients-supported-per-fabric 1 0 + + [1689676851.025335][18210:18212] CHIP:DMG: } + [1689676851.025406][18210:18212] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0005 DataVersion: 1824957093 + [1689676851.025433][18210:18212] CHIP:TOO: ClientsSupportedPerFabric: 2 + [1689676851.025500][18210:18212] CHIP:EM: <<< [E:302i S:21595 M:237990169 (Ack:268232015)] (S) Msg TX to 1:0000000000000001 [BFDE] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1689676851.025513][18210:18212] CHIP:IN: (S) Sending msg 237990169 on secure session with LSID: 21595 + [1689676851.025540][18210:18212] CHIP:EM: Flushed pending ack for MessageCounter:268232015 on exchange 302i + disabled: true + + - label: + "Step 3b: If len(RegisteredClients) is less than + ClientsSupportedPerFabric, TH repeats RegisterClient command with a + different CheckInNodeID until the number of entries in + RegisteredClients equals ClientsSupportedPerFabric." + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 2 2 hex:2234567890abcdef2234567890abcdef 1 0 + + On TH(chip-tool) verify that DUT responds with status code as success + + [1687535275413] [50580:413095] [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001 + [1687535275413] [50580:413095] [TOO] Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1687535275413] [50580:413095] [TOO] RegisterClientResponse: { + [1687535275413] [50580:413095] [TOO] ICDCounter: 0 + [1687535275413] [50580:413095] [TOO] } + disabled: true + + - label: + "Step 3c: TH sends RegisterClient command with a different + CheckInNodeID." + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 10 20 hex:abcdef1234567890abcdef1234567890 1 0 + + On TH(chip-tool) verify that DUT responds with status as RESOURCE_EXHAUSTED(0x89) + + [1687535364276] [50673:414417] [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0000 Status=0x89 + [1687535364276] [50673:414417] [TOO] Error: IM Error 0x00000589: General error: 0x89 (RESOURCE_EXHAUSTED) + disabled: true + + - label: "Step 4: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + On TH(chip-tool), Verify that the DUT response contains a list of registered clients from Step 1 and 3b; each entry contains CheckInNodeID, MonitoredSubject, and Key. + + [1689676880.681118][18221:18223] CHIP:DMG: } + [1689676880.681246][18221:18223] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 1824957093 + [1689676880.681292][18221:18223] CHIP:TOO: RegisteredClients: 2 entries + [1689676880.681320][18221:18223] CHIP:TOO: [1]: { + [1689676880.681334][18221:18223] CHIP:TOO: CheckInNodeID: 1 + [1689676880.681341][18221:18223] CHIP:TOO: MonitoredSubject: 1 + [1689676880.681349][18221:18223] CHIP:TOO: Key: 31323334353637383930616263646566 + [1689676880.681357][18221:18223] CHIP:TOO: FabricIndex: 1 + [1689676880.681363][18221:18223] CHIP:TOO: } + [1689676880.681373][18221:18223] CHIP:TOO: [2]: { + [1689676880.681378][18221:18223] CHIP:TOO: CheckInNodeID: 2 + [1689676880.681384][18221:18223] CHIP:TOO: MonitoredSubject: 2 + [1689676880.681390][18221:18223] CHIP:TOO: Key: 32323334353637383930616263646566 + [1689676880.681396][18221:18223] CHIP:TOO: FabricIndex: 1 + [1689676880.681401][18221:18223] CHIP:TOO: } + [1689676880.681461][18221:18223] CHIP:EM: <<< [E:58454i S:61329 M:203963160 (Ack:146764558)] (S) Msg TX to 1:0000000000000001 [BFDE] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1689676880.681475][18221:18223] CHIP:IN: (S) Sending msg 203963160 on secure session with LSID: 61329 + [1689676880.681506][18221:18223] CHIP:EM: Flushed pending ack for MessageCounter:146764558 on exchange 58454i + [1689676880.681697][18221:18221] CHIP:CTL: Shutting down the commissioner + disabled: true + + - label: + "Step 5a: TH sends UnregisterClient command with a CheckInNodeID which + is not in the list of RegisteredClients from Step 4." + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 10 1 0 + On TH(chip-tool) verify that DUT responds with status as NOT_FOUND(0x8b). + [1687535473821] [50706:415574] [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x8b + [1687535473821] [50706:415574] [TOO] Error: IM Error 0x0000058B: General error: 0x8b (NOT_FOUND) + disabled: true + + - label: + "Step 5b: TH sends UnregisterClient command with the CheckInNodeID + from Step 1." + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 1 1 0 + On TH(chip-tool) verify that DUT responds with status as SUCCESS(0x00). + [1689764286.310839][26236:26241] CHIP:DMG: InvokeResponseMessage = + [1689764286.310843][26236:26241] CHIP:DMG: { + [1689764286.310848][26236:26241] CHIP:DMG: suppressResponse = false, + [1689764286.310852][26236:26241] CHIP:DMG: InvokeResponseIBs = + [1689764286.310859][26236:26241] CHIP:DMG: [ + [1689764286.310863][26236:26241] CHIP:DMG: InvokeResponseIB = + [1689764286.310871][26236:26241] CHIP:DMG: { + [1689764286.310875][26236:26241] CHIP:DMG: CommandStatusIB = + [1689764286.310880][26236:26241] CHIP:DMG: { + [1689764286.310885][26236:26241] CHIP:DMG: CommandPathIB = + [1689764286.310891][26236:26241] CHIP:DMG: { + [1689764286.310896][26236:26241] CHIP:DMG: EndpointId = 0x0, + [1689764286.310901][26236:26241] CHIP:DMG: ClusterId = 0x46, + [1689764286.310906][26236:26241] CHIP:DMG: CommandId = 0x2, + [1689764286.310911][26236:26241] CHIP:DMG: }, + [1689764286.310919][26236:26241] CHIP:DMG: + [1689764286.310922][26236:26241] CHIP:DMG: StatusIB = + [1689764286.310928][26236:26241] CHIP:DMG: { + [1689764286.310932][26236:26241] CHIP:DMG: status = 0x00 (SUCCESS), + [1689764286.310936][26236:26241] CHIP:DMG: }, + [1689764286.310941][26236:26241] CHIP:DMG: + [1689764286.310945][26236:26241] CHIP:DMG: }, + [1689764286.310951][26236:26241] CHIP:DMG: + [1689764286.310955][26236:26241] CHIP:DMG: }, + [1689764286.310962][26236:26241] CHIP:DMG: + [1689764286.310966][26236:26241] CHIP:DMG: ], + [1689764286.310972][26236:26241] CHIP:DMG: + [1689764286.310976][26236:26241] CHIP:DMG: InteractionModelRevision = 1 + [1689764286.310980][26236:26241] CHIP:DMG: }, + [1689764286.311002][26236:26241] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x0 + [1689764286.311020][26236:26241] CHIP:DMG: ICR moving to [AwaitingDe] + [1689764286.311060][26236:26241] CHIP:EM: <<< [E:63413i S:31018 M:161228496 (Ack:98843769)] (S) Msg TX to 1:0000000000000001 [D397] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1689764286.311069][26236:26241] CHIP:IN: (S) Sending msg 161228496 on secure session with LSID: 31018 + [1689764286.311093][26236:26241] CHIP:EM: Flushed pending ack for MessageCounter:98843769 on exchange 63413i + disabled: true + + - label: + "Step 5c: Repeat Step 5b with the rest of CheckInNodeIDs from the list + of RegisteredClients from Step 4, if any." + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 2 1 0 + On TH(chip-tool) verify that DUT responds with status as SUCCESS(0x00). + + [1689764308.632783][26647:26650] CHIP:DMG: ICR moving to [ResponseRe] + [1689764308.632806][26647:26650] CHIP:DMG: InvokeResponseMessage = + [1689764308.632816][26647:26650] CHIP:DMG: { + [1689764308.632826][26647:26650] CHIP:DMG: suppressResponse = false, + [1689764308.632842][26647:26650] CHIP:DMG: InvokeResponseIBs = + [1689764308.632864][26647:26650] CHIP:DMG: [ + [1689764308.632878][26647:26650] CHIP:DMG: InvokeResponseIB = + [1689764308.632899][26647:26650] CHIP:DMG: { + [1689764308.632918][26647:26650] CHIP:DMG: CommandStatusIB = + [1689764308.632941][26647:26650] CHIP:DMG: { + [1689764308.632982][26647:26650] CHIP:DMG: CommandPathIB = + [1689764308.633008][26647:26650] CHIP:DMG: { + [1689764308.633028][26647:26650] CHIP:DMG: EndpointId = 0x0, + [1689764308.633056][26647:26650] CHIP:DMG: ClusterId = 0x46, + [1689764308.633080][26647:26650] CHIP:DMG: CommandId = 0x2, + [1689764308.633103][26647:26650] CHIP:DMG: }, + [1689764308.633129][26647:26650] CHIP:DMG: + [1689764308.633151][26647:26650] CHIP:DMG: StatusIB = + [1689764308.633176][26647:26650] CHIP:DMG: { + [1689764308.633201][26647:26650] CHIP:DMG: status = 0x00 (SUCCESS), + [1689764308.633228][26647:26650] CHIP:DMG: }, + [1689764308.633252][26647:26650] CHIP:DMG: + [1689764308.633273][26647:26650] CHIP:DMG: }, + [1689764308.633295][26647:26650] CHIP:DMG: + [1689764308.633311][26647:26650] CHIP:DMG: }, + [1689764308.633331][26647:26650] CHIP:DMG: + [1689764308.633345][26647:26650] CHIP:DMG: ], + [1689764308.633363][26647:26650] CHIP:DMG: + [1689764308.633383][26647:26650] CHIP:DMG: InteractionModelRevision = 1 + [1689764308.633413][26647:26650] CHIP:DMG: }, + [1689764308.633514][26647:26650] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x0 + [1689764308.633536][26647:26650] CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true + + - label: "Step 6: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + On TH(chip-tool) Verify that the DUT response contains empty list of registered clients. + + [1689764322.761414][26808:26810] CHIP:DMG: } + [1689764322.761506][26808:26810] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 1750818309 + [1689764322.761629][26808:26810] CHIP:TOO: RegisteredClients: 0 entries + [1689764322.761723][26808:26810] CHIP:EM: <<< [E:36669i S:5946 M:161762028 (Ack:88110606)] (S) Msg TX to 1:0000000000000001 [D397] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1689764322.761742][26808:26810] CHIP:IN: (S) Sending msg 161762028 on secure session with LSID: 5946 + [1689764322.761775][26808:26810] CHIP:EM: Flushed pending ack for MessageCounter:88110606 on exchange 36669i + disabled: true + + - label: + "Step 7: TH sends UnregisterClient command with the CheckInNodeID from + Step 1." + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 1 1 0 + On TH(chip-tool) verify that DUT responds with status as NOT_FOUND(0x8b) + + [1689764335.957449][27077:27079] CHIP:DMG: }, + [1689764335.957456][27077:27079] CHIP:DMG: + [1689764335.957460][27077:27079] CHIP:DMG: ], + [1689764335.957468][27077:27079] CHIP:DMG: + [1689764335.957472][27077:27079] CHIP:DMG: InteractionModelRevision = 1 + [1689764335.957476][27077:27079] CHIP:DMG: }, + [1689764335.957497][27077:27079] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x8b + [1689764335.957513][27077:27079] CHIP:TOO: Error: IM Error 0x0000058B: General error: 0x8b (NOT_FOUND) + [1689764335.957525][27077:27079] CHIP:DMG: ICR moving to [AwaitingDe] + [1689764335.957567][27077:27079] CHIP:EM: <<< [E:17566i S:36201 M:3097260 (Ack:169314533)] (S) Msg TX to 1:0000000000000001 [D397] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1689764335.957578][27077:27079] CHIP:IN: (S) Sending msg 3097260 on secure session with LSID: 36201 + [1689764335.957604][27077:27079] CHIP:EM: Flushed pending ack for MessageCounter:169314533 on exchange 17566i + [1689764335.957677][27077:27077] CHIP:CTL: Shutting down the commissioner + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ICDM_3_2.yaml b/src/app/tests/suites/certification/Test_TC_ICDM_3_2.yaml new file mode 100644 index 00000000000000..f6104a53d411d1 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ICDM_3_2.yaml @@ -0,0 +1,346 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 217.2.3. [TC-ICDM-3.2] Verify RegisterClient command with DUT as Server + +PICS: + - ICDM.S + - ICDM.S.C00.Rsp + - ICDM.S.C02.Rsp + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Preconditions" + verification: | + 1.Commission DUT to TH (can be skipped if done in a preceding test). + 2a.TH reads from the DUT the RegisteredClients attribute. + 2b.If list of registered clients is not empty, unregister existing client(s) + 2c.TH reads from the DUT the RegisteredClients attribute. Verify that the DUT response contains empty list of registered clients. + disabled: true + + - label: + "Step 1a: TH sends RegisterClient command. - CheckInNodeID: + registering clients node ID (CheckInNodeID1) - MonitoredSubject: + monitored subject ID (MonitorSubID1) - Key: shared secret between the + client and the ICD (Key1)" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 1 1 hex:1234567890abcdef1234567890abcdef 1 0 + + [1702418857.289325][1350:1352] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001 + [1702418857.289426][1350:1352] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1702418857.289635][1350:1352] CHIP:TOO: RegisterClientResponse: { + [1702418857.289725][1350:1352] CHIP:TOO: ICDCounter: 1321491095 + [1702418857.289781][1350:1352] CHIP:TOO: } + disabled: true + + - label: "Step 1b: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + [1702418868.283920][1353:1355] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 4124981277 + [1702418868.284152][1353:1355] CHIP:TOO: RegisteredClients: 2 entries + [1702418868.284338][1353:1355] CHIP:TOO: [1]: { + [1702418868.284396][1353:1355] CHIP:TOO: CheckInNodeID: 112233 + [1702418868.284449][1353:1355] CHIP:TOO: MonitoredSubject: 112233 + [1702418868.284525][1353:1355] CHIP:TOO: FabricIndex: 1 + [1702418868.284577][1353:1355] CHIP:TOO: } + [1702418868.284647][1353:1355] CHIP:TOO: [2]: { + [1702418868.284700][1353:1355] CHIP:TOO: CheckInNodeID: 1 + [1702418868.284751][1353:1355] CHIP:TOO: MonitoredSubject: 1 + [1702418868.284801][1353:1355] CHIP:TOO: FabricIndex: 1 + [1702418868.284849][1353:1355] CHIP:TOO: } + disabled: true + + - label: "Step 1c: Power cycle DUT" + verification: | + Power cycle DUT + disabled: true + + - label: "Step 1d: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003(RegisteredClients) + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + [1702418876.828984][1356:1358] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 4124981277 + [1702418876.829201][1356:1358] CHIP:TOO: RegisteredClients: 2 entries + [1702418876.829372][1356:1358] CHIP:TOO: [1]: { + [1702418876.829426][1356:1358] CHIP:TOO: CheckInNodeID: 112233 + [1702418876.829535][1356:1358] CHIP:TOO: MonitoredSubject: 112233 + [1702418876.829609][1356:1358] CHIP:TOO: FabricIndex: 1 + [1702418876.829655][1356:1358] CHIP:TOO: } + [1702418876.829719][1356:1358] CHIP:TOO: [2]: { + [1702418876.829766][1356:1358] CHIP:TOO: CheckInNodeID: 1 + [1702418876.829867][1356:1358] CHIP:TOO: MonitoredSubject: 1 + [1702418876.829912][1356:1358] CHIP:TOO: FabricIndex: 1 + [1702418876.829955][1356:1358] CHIP:TOO: } + disabled: true + + - label: + "Step 2a: Setup the TH such that is has administrator privileges for + the ICDM cluster." + verification: | + chip-tool default with admin privilege. + disabled: true + + - label: + "Step 2b: TH sends RegisterClient command with same CheckInNodeID as + in Step 1a and different MonitoredSubject and Key. - CheckInNodeID: + registering clients node ID (CheckInNodeID1) - MonitoredSubject: + monitored subject ID (MonitorSubID2) - Key: shared secret between the + client and the ICD (Key2)" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 1 2 hex:abcdef1234567890abcdef1234567890 1 0 + + [1702418883.807797][1359:1361] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001 + [1702418883.807919][1359:1361] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1702418883.808188][1359:1361] CHIP:TOO: RegisterClientResponse: { + [1702418883.808260][1359:1361] CHIP:TOO: ICDCounter: 1321491095 + [1702418883.808316][1359:1361] CHIP:TOO: } + disabled: true + + - label: "Step 2c: TH reads from the DUT the ICDCounter attribute." + PICS: ICDM.S.A0004 + verification: | + ./chip-tool icdmanagement read icdcounter 1 0 + + [1702418902.706877][1365:1367] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0004 DataVersion: 4124981277 + [1702418902.706989][1365:1367] CHIP:TOO: ICDCounter: 1321491095 + disabled: true + + - label: "Step 2d: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + [1702418891.793516][1362:1364] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 4124981277 + [1702418891.793737][1362:1364] CHIP:TOO: RegisteredClients: 2 entries + [1702418891.793959][1362:1364] CHIP:TOO: [1]: { + [1702418891.794016][1362:1364] CHIP:TOO: CheckInNodeID: 112233 + [1702418891.794065][1362:1364] CHIP:TOO: MonitoredSubject: 112233 + [1702418891.794133][1362:1364] CHIP:TOO: FabricIndex: 1 + [1702418891.794179][1362:1364] CHIP:TOO: } + [1702418891.794290][1362:1364] CHIP:TOO: [2]: { + [1702418891.794344][1362:1364] CHIP:TOO: CheckInNodeID: 1 + [1702418891.794390][1362:1364] CHIP:TOO: MonitoredSubject: 2 + [1702418891.794483][1362:1364] CHIP:TOO: FabricIndex: 1 + [1702418891.794531][1362:1364] CHIP:TOO: } + disabled: true + + - label: + "Step 2e: TH sends UnregisterClient command with the CheckInNodeID + (CheckInNodeID1)." + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 1 1 0 + + [1702419153.281757][1380:1382] CHIP:DMG: InvokeResponseMessage = + [1702419153.281885][1380:1382] CHIP:DMG: { + [1702419153.282005][1380:1382] CHIP:DMG: suppressResponse = false, + [1702419153.282061][1380:1382] CHIP:DMG: InvokeResponseIBs = + [1702419153.282126][1380:1382] CHIP:DMG: [ + [1702419153.282177][1380:1382] CHIP:DMG: InvokeResponseIB = + [1702419153.282243][1380:1382] CHIP:DMG: { + [1702419153.282296][1380:1382] CHIP:DMG: CommandStatusIB = + [1702419153.282357][1380:1382] CHIP:DMG: { + [1702419153.282576][1380:1382] CHIP:DMG: CommandPathIB = + [1702419153.282650][1380:1382] CHIP:DMG: { + [1702419153.282725][1380:1382] CHIP:DMG: EndpointId = 0x0, + [1702419153.282812][1380:1382] CHIP:DMG: ClusterId = 0x46, + [1702419153.282895][1380:1382] CHIP:DMG: CommandId = 0x2, + [1702419153.282973][1380:1382] CHIP:DMG: }, + [1702419153.283183][1380:1382] CHIP:DMG: + [1702419153.283246][1380:1382] CHIP:DMG: StatusIB = + [1702419153.283327][1380:1382] CHIP:DMG: { + [1702419153.283409][1380:1382] CHIP:DMG: status = 0x00 (SUCCESS), + [1702419153.283490][1380:1382] CHIP:DMG: }, + [1702419153.283562][1380:1382] CHIP:DMG: + [1702419153.283626][1380:1382] CHIP:DMG: }, + [1702419153.283699][1380:1382] CHIP:DMG: + [1702419153.283751][1380:1382] CHIP:DMG: }, + [1702419153.283811][1380:1382] CHIP:DMG: + [1702419153.283859][1380:1382] CHIP:DMG: ], + [1702419153.283919][1380:1382] CHIP:DMG: + [1702419153.283966][1380:1382] CHIP:DMG: InteractionModelRevision = 11 + [1702419153.284013][1380:1382] CHIP:DMG: }, + [1702419153.284182][1380:1382] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x0 + disabled: true + + - label: "Step 2f: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + [1702419210.157158][1385:1387] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 4124981277 + [1702419210.157311][1385:1387] CHIP:TOO: RegisteredClients: 1 entries + [1702419210.157489][1385:1387] CHIP:TOO: [1]: { + [1702419210.157543][1385:1387] CHIP:TOO: CheckInNodeID: 112233 + [1702419210.157591][1385:1387] CHIP:TOO: MonitoredSubject: 112233 + [1702419210.157662][1385:1387] CHIP:TOO: FabricIndex: 1 + [1702419210.157730][1385:1387] CHIP:TOO: } + disabled: true + + - label: + "Step 2g: Clear the THs administrator privileges for the ICDM cluster." + verification: | + ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 4, "authMode": 2, "subjects": [112233], "targets": null } ]' 1 0 + disabled: true + + - label: + "Step 3a: TH sends RegisterClient command. - CheckInNodeID: + registering clients node ID (CheckInNodeID3) - MonitoredSubject: + monitored subject ID (MonitorSubID3) - Key: shared secret between the + client and the ICD (Key3) - VerificationKey: verification key + (VerificationKey3)" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 3 3 hex:3334567890abcdef3334567890abcdef 1 0 --VerificationKey hex:abcdef1234567890abcdef1234567890 + + [1702433488.601132][2043:2045] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001 + [1702433488.601231][2043:2045] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1702433488.601414][2043:2045] CHIP:TOO: RegisterClientResponse: { + [1702433488.601478][2043:2045] CHIP:TOO: ICDCounter: 228745926 + [1702433488.601531][2043:2045] CHIP:TOO: } + disabled: true + + - label: "Step 3b: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + [1702433698.808800][2095:2097] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 2083795792 + [1702433698.808939][2095:2097] CHIP:TOO: RegisteredClients: 2 entries + [1702433698.809081][2095:2097] CHIP:TOO: [1]: { + [1702433698.809126][2095:2097] CHIP:TOO: CheckInNodeID: 112233 + [1702433698.809167][2095:2097] CHIP:TOO: MonitoredSubject: 112233 + [1702433698.809226][2095:2097] CHIP:TOO: FabricIndex: 1 + [1702433698.809266][2095:2097] CHIP:TOO: } + [1702433698.809319][2095:2097] CHIP:TOO: [2]: { + [1702433698.809359][2095:2097] CHIP:TOO: CheckInNodeID: 3 + [1702433698.809399][2095:2097] CHIP:TOO: MonitoredSubject: 3 + [1702433698.809514][2095:2097] CHIP:TOO: FabricIndex: 1 + [1702433698.809559][2095:2097] CHIP:TOO: } + disabled: true + + - label: + "Step 4: TH sends RegisterClient command with same CheckInNodeID as in + Step 3a and different MonitoredSubject and Key, and an invalid + VerificationKey - CheckInNodeID: registering clients node ID + (CheckInNodeID3) - MonitoredSubject: monitored subject ID + (MonitorSubID4) - Key: shared secret between the client and the ICD + (Key4) - VerificationKey: invalid verification key (VerificationKey4)" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 3 4 hex:3334567890abcdef3334567890abcdef 1 0 --VerificationKey hex:abcdef1234567890 + + [1703266655.434604][2378:2381] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0000 Status=0x1 + [1703266655.434688][2378:2381] CHIP:TOO: Error: IM Error 0x00000501: General error: 0x01 (FAILURE) + disabled: true + + - label: + "Step 5: TH sends RegisterClient command with same CheckInNodeID as in + Step 3a and different MonitoredSubject, Key, and VerificationKey - + CheckInNodeID: registering clients node ID (CheckInNodeID3) - + MonitoredSubject: monitored subject ID (MonitorSubID5) - Key: shared + secret between the client and the ICD (Key5) - VerificationKey: valid + verification key (VerificationKey5)" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 3 5 hex:3334567890abcdef3334567890abcdef 1 0 --VerificationKey hex:abcdef1234567890abcdef1234500000 + + [1703266705.829853][2551:2553] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0000 Status=0x1 + [1703266705.829994][2551:2553] CHIP:TOO: Error: IM Error 0x00000501: General error: 0x01 (FAILURE) + disabled: true + + - label: + "Step 6a: TH sends RegisterClient command with same CheckInNodeID and + VerificationKey as in Step 3a and different MonitoredSubject and Key - + CheckInNodeID: registering clients node ID (CheckInNodeID3) - + MonitoredSubject: monitored subject ID (MonitorSubID6) - Key: shared + secret between the client and the ICD (Key6) - VerificationKey: + verification key (VerificationKey3)" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 3 6 hex:3334567890abcdef3334567890abcdef 1 0 --VerificationKey hex:abcdef1234567890abcdef1234567890 + + [1703267703.849366][2694:2696] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1703267703.849532][2694:2696] CHIP:TOO: RegisterClientResponse: { + [1703267703.849587][2694:2696] CHIP:TOO: ICDCounter: 228745930 + [1703267703.849633][2694:2696] CHIP:TOO: } + disabled: true + + - label: "Step 6b: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + [1702433698.808800][2095:2097] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 2083795792 + [1702433698.808939][2095:2097] CHIP:TOO: RegisteredClients: 2 entries + [1702433698.809081][2095:2097] CHIP:TOO: [1]: { + [1702433698.809126][2095:2097] CHIP:TOO: CheckInNodeID: 112233 + [1702433698.809167][2095:2097] CHIP:TOO: MonitoredSubject: 112233 + [1702433698.809226][2095:2097] CHIP:TOO: FabricIndex: 1 + [1702433698.809266][2095:2097] CHIP:TOO: } + [1702433698.809319][2095:2097] CHIP:TOO: [2]: { + [1702433698.809359][2095:2097] CHIP:TOO: CheckInNodeID: 3 + [1702433698.809399][2095:2097] CHIP:TOO: MonitoredSubject: 6 + [1702433698.809514][2095:2097] CHIP:TOO: FabricIndex: 1 + [1702433698.809559][2095:2097] CHIP:TOO: } + disabled: true + + - label: + "Step 6c: TH sends UnregisterClient command with the CheckInNodeID + (CheckInNodeID3) and VerificationKey (VerificationKey3)." + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 3 3 0 + + [1702419153.281757][1380:1382] CHIP:DMG: InvokeResponseMessage = + [1702419153.281885][1380:1382] CHIP:DMG: { + [1702419153.282005][1380:1382] CHIP:DMG: suppressResponse = false, + [1702419153.282061][1380:1382] CHIP:DMG: InvokeResponseIBs = + [1702419153.282126][1380:1382] CHIP:DMG: [ + [1702419153.282177][1380:1382] CHIP:DMG: InvokeResponseIB = + [1702419153.282243][1380:1382] CHIP:DMG: { + [1702419153.282296][1380:1382] CHIP:DMG: CommandStatusIB = + [1702419153.282357][1380:1382] CHIP:DMG: { + [1702419153.282576][1380:1382] CHIP:DMG: CommandPathIB = + [1702419153.282650][1380:1382] CHIP:DMG: { + [1702419153.282725][1380:1382] CHIP:DMG: EndpointId = 0x0, + [1702419153.282812][1380:1382] CHIP:DMG: ClusterId = 0x46, + [1702419153.282895][1380:1382] CHIP:DMG: CommandId = 0x2, + [1702419153.282973][1380:1382] CHIP:DMG: }, + [1702419153.283183][1380:1382] CHIP:DMG: + [1702419153.283246][1380:1382] CHIP:DMG: StatusIB = + [1702419153.283327][1380:1382] CHIP:DMG: { + [1702419153.283409][1380:1382] CHIP:DMG: status = 0x00 (SUCCESS), + [1702419153.283490][1380:1382] CHIP:DMG: }, + [1702419153.283562][1380:1382] CHIP:DMG: + [1702419153.283626][1380:1382] CHIP:DMG: }, + [1702419153.283699][1380:1382] CHIP:DMG: + [1702419153.283751][1380:1382] CHIP:DMG: }, + [1702419153.283811][1380:1382] CHIP:DMG: + [1702419153.283859][1380:1382] CHIP:DMG: ], + [1702419153.283919][1380:1382] CHIP:DMG: + [1702419153.283966][1380:1382] CHIP:DMG: InteractionModelRevision = 11 + [1702419153.284013][1380:1382] CHIP:DMG: }, + [1702419153.284182][1380:1382] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x0 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ICDM_3_3.yaml b/src/app/tests/suites/certification/Test_TC_ICDM_3_3.yaml new file mode 100644 index 00000000000000..dcf55057b7b9a9 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ICDM_3_3.yaml @@ -0,0 +1,267 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 217.2.4. [TC-ICDM-3.3] Verify UnregisterClient command with DUT as Server + +PICS: + - ICDM.S + - ICDM.S.C00.Rsp + - ICDM.S.C02.Rsp + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Preconditions" + verification: | + 1.Commission DUT to TH (can be skipped if done in a preceding test). + 2a.TH reads from the DUT the RegisteredClients attribute. + 2b.If list of registered clients is not empty, unregister existing client(s) + 2c.TH reads from the DUT the RegisteredClients attribute. Verify that the DUT response contains empty list of registered clients. + disabled: true + + - label: + "Step 1: TH sends UnregisterClient command with the CheckInNodeID + (CheckInNodeID1)." + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 1 1 0 + + [1702437560.584692][2341:2343] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x8b + [1702437560.584811][2341:2343] CHIP:TOO: Error: IM Error 0x0000058B: General error: 0x8b (NOT_FOUND) + disabled: true + + - label: + "Step 2a: TH sends RegisterClient command. - CheckInNodeID: + registering clients node ID (CheckInNodeID2) - MonitoredSubject: + monitored subject ID (MonitorSubID2) - Key: shared secret between the + client and the ICD (Key2)" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 2 2 hex:1234567890abcdef1234567890abcdef 1 0 + On TH(chip-tool) verify that DUT responds with status code as success + + [1702437824.926527][2361:2363] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001 + [1702437824.926625][2361:2363] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1702437824.926835][2361:2363] CHIP:TOO: RegisterClientResponse: { + [1702437824.926901][2361:2363] CHIP:TOO: ICDCounter: 2124479668 + [1702437824.926955][2361:2363] CHIP:TOO: } + disabled: true + + - label: "Step 2b: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + On TH(Chip-tool), Verify that the DUT response contains a list of 1 registered client of given CheckInNodeID, MonitoredSubject, and Key + + [1702437846.906320][2364:2366] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 2633987690 + [1702437846.906504][2364:2366] CHIP:TOO: RegisteredClients: 2 entries + [1702437846.906687][2364:2366] CHIP:TOO: [1]: { + [1702437846.906746][2364:2366] CHIP:TOO: CheckInNodeID: 112233 + [1702437846.906800][2364:2366] CHIP:TOO: MonitoredSubject: 112233 + [1702437846.906880][2364:2366] CHIP:TOO: FabricIndex: 1 + [1702437846.906934][2364:2366] CHIP:TOO: } + [1702437846.907003][2364:2366] CHIP:TOO: [2]: { + [1702437846.907059][2364:2366] CHIP:TOO: CheckInNodeID: 2 + [1702437846.907108][2364:2366] CHIP:TOO: MonitoredSubject: 2 + [1702437846.907160][2364:2366] CHIP:TOO: FabricIndex: 1 + [1702437846.907211][2364:2366] CHIP:TOO: } + disabled: true + + - label: + "Step 3: TH sends UnregisterClient command with the CheckInNodeID + (CheckInNodeID3)." + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 3 1 0 + + [1702437560.584692][2341:2343] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x8b + [1702437560.584811][2341:2343] CHIP:TOO: Error: IM Error 0x0000058B: General error: 0x8b (NOT_FOUND) + disabled: true + + - label: + "Step 4a: Setup the TH such that is has administrator privileges for + the ICDM cluster." + verification: | + chip-tool default has admin privilege + disabled: true + + - label: + "Step 4b: TH sends UnregisterClient command with the CheckInNodeID + (CheckInNodeID2)." + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 2 1 0 + + [1702438116.143490][2387:2389] CHIP:DMG: InvokeResponseMessage = + [1702438116.143590][2387:2389] CHIP:DMG: { + [1702438116.143648][2387:2389] CHIP:DMG: suppressResponse = false, + [1702438116.143877][2387:2389] CHIP:DMG: InvokeResponseIBs = + [1702438116.144238][2387:2389] CHIP:DMG: [ + [1702438116.144308][2387:2389] CHIP:DMG: InvokeResponseIB = + [1702438116.144414][2387:2389] CHIP:DMG: { + [1702438116.144476][2387:2389] CHIP:DMG: CommandStatusIB = + [1702438116.144575][2387:2389] CHIP:DMG: { + [1702438116.144646][2387:2389] CHIP:DMG: CommandPathIB = + [1702438116.144723][2387:2389] CHIP:DMG: { + [1702438116.144825][2387:2389] CHIP:DMG: EndpointId = 0x0, + [1702438116.144911][2387:2389] CHIP:DMG: ClusterId = 0x46, + [1702438116.144993][2387:2389] CHIP:DMG: CommandId = 0x2, + [1702438116.145097][2387:2389] CHIP:DMG: }, + [1702438116.145186][2387:2389] CHIP:DMG: + [1702438116.145278][2387:2389] CHIP:DMG: StatusIB = + [1702438116.145357][2387:2389] CHIP:DMG: { + [1702438116.145457][2387:2389] CHIP:DMG: status = 0x00 (SUCCESS), + [1702438116.145538][2387:2389] CHIP:DMG: }, + [1702438116.145616][2387:2389] CHIP:DMG: + [1702438116.145683][2387:2389] CHIP:DMG: }, + [1702438116.145782][2387:2389] CHIP:DMG: + [1702438116.145846][2387:2389] CHIP:DMG: }, + [1702438116.145917][2387:2389] CHIP:DMG: + [1702438116.146004][2387:2389] CHIP:DMG: ], + [1702438116.146078][2387:2389] CHIP:DMG: + [1702438116.146155][2387:2389] CHIP:DMG: InteractionModelRevision = 11 + [1702438116.146213][2387:2389] CHIP:DMG: }, + [1702438116.146382][2387:2389] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x0 + disabled: true + + - label: "Step 4c: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + [1702438139.915311][2390:2392] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 2633987690 + [1702438139.915462][2390:2392] CHIP:TOO: RegisteredClients: 1 entries + [1702438139.915616][2390:2392] CHIP:TOO: [1]: { + [1702438139.915667][2390:2392] CHIP:TOO: CheckInNodeID: 112233 + [1702438139.915708][2390:2392] CHIP:TOO: MonitoredSubject: 112233 + [1702438139.915774][2390:2392] CHIP:TOO: FabricIndex: 1 + [1702438139.915818][2390:2392] CHIP:TOO: } + disabled: true + + - label: + "Step 4d: Clear the THs administrator privileges for the ICDM cluster." + verification: | + ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 4, "authMode": 2, "subjects": [112233], "targets": null } ]' 1 0 + disabled: true + + - label: + "Step 5a: TH sends RegisterClient command. - CheckInNodeID: + registering clients node ID (CheckInNodeID5) - MonitoredSubject: + monitored subject ID (MonitorSubID5) - Key: shared secret between the + client and the ICD (Key5) - VerificationKey: verification key + (VerificationKey5)" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 5 5 hex:5555567890abcdef5555567890abcdef 1 0 --VerificationKey hex:abcdef1234567890abcdef1234567890 + On TH(chip-tool) verify that DUT responds with status code as success + + [1702437824.926527][2361:2363] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001 + [1702437824.926625][2361:2363] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1702437824.926835][2361:2363] CHIP:TOO: RegisterClientResponse: { + [1702437824.926901][2361:2363] CHIP:TOO: ICDCounter: 2124479668 + [1702437824.926955][2361:2363] CHIP:TOO: } + disabled: true + + - label: "Step 5b: TH reads from the DUT the RegisteredClients attribute." + PICS: ICDM.S.A0003 + verification: | + ./chip-tool icdmanagement read registered-clients 1 0 + + On TH(Chip-tool), Verify that the DUT response contains a list of 1 registered client of given CheckInNodeID, MonitoredSubject, and Key + + [1702438233.117193][2401:2403] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 2633987690 + [1702438233.117356][2401:2403] CHIP:TOO: RegisteredClients: 2 entries + [1702438233.117510][2401:2403] CHIP:TOO: [1]: { + [1702438233.117559][2401:2403] CHIP:TOO: CheckInNodeID: 112233 + [1702438233.117603][2401:2403] CHIP:TOO: MonitoredSubject: 112233 + [1702438233.117669][2401:2403] CHIP:TOO: FabricIndex: 1 + [1702438233.117713][2401:2403] CHIP:TOO: } + [1702438233.117772][2401:2403] CHIP:TOO: [2]: { + [1702438233.117816][2401:2403] CHIP:TOO: CheckInNodeID: 5 + [1702438233.117859][2401:2403] CHIP:TOO: MonitoredSubject: 5 + [1702438233.117902][2401:2403] CHIP:TOO: FabricIndex: 1 + [1702438233.117944][2401:2403] CHIP:TOO: } + disabled: true + + - label: + "Step 6: TH sends UnregisterClient command with the CheckInNodeID from + Step 5a and an invalid VerificationKey. - CheckInNodeID: registering + clients node ID (CheckInNodeID5) - VerificationKey: invalid + verification key (VerificationKey6)" + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 5 1 0 --VerificationKey hex:abcdef1234567890 + + [1703268222.346310][2758:2760] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x1 + [1703268222.346412][2758:2760] CHIP:TOO: Error: IM Error 0x00000501: General error: 0x01 (FAILURE) + disabled: true + + - label: + "Step 7: TH sends UnregisterClient command with the CheckInNodeID from + Step 5a and different VerificationKey. - CheckInNodeID: registering + clients node ID (CheckInNodeID5) - VerificationKey: valid verification + key (VerificationKey7)" + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 5 1 0 --VerificationKey hex:abcdef1234567890abcdef1234500000 + + [1703268200.542869][2755:2757] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x1 + [1703268200.543007][2755:2757] CHIP:TOO: Error: IM Error 0x00000501: General error: 0x01 (FAILURE) + disabled: true + + - label: + "Step 8: TH sends UnregisterClient command with the CheckInNodeID and + VerificationKey from Step 5a. - CheckInNodeID: registering clients + node ID (CheckInNodeID5) - VerificationKey: verification key + (VerificationKey5)" + PICS: ICDM.S.C02.Rsp + verification: | + ./chip-tool icdmanagement unregister-client 5 1 0 --VerificationKey hex:abcdef1234567890abcdef1234567890 + + [1702438116.143490][2387:2389] CHIP:DMG: InvokeResponseMessage = + [1702438116.143590][2387:2389] CHIP:DMG: { + [1702438116.143648][2387:2389] CHIP:DMG: suppressResponse = false, + [1702438116.143877][2387:2389] CHIP:DMG: InvokeResponseIBs = + [1702438116.144238][2387:2389] CHIP:DMG: [ + [1702438116.144308][2387:2389] CHIP:DMG: InvokeResponseIB = + [1702438116.144414][2387:2389] CHIP:DMG: { + [1702438116.144476][2387:2389] CHIP:DMG: CommandStatusIB = + [1702438116.144575][2387:2389] CHIP:DMG: { + [1702438116.144646][2387:2389] CHIP:DMG: CommandPathIB = + [1702438116.144723][2387:2389] CHIP:DMG: { + [1702438116.144825][2387:2389] CHIP:DMG: EndpointId = 0x0, + [1702438116.144911][2387:2389] CHIP:DMG: ClusterId = 0x46, + [1702438116.144993][2387:2389] CHIP:DMG: CommandId = 0x2, + [1702438116.145097][2387:2389] CHIP:DMG: }, + [1702438116.145186][2387:2389] CHIP:DMG: + [1702438116.145278][2387:2389] CHIP:DMG: StatusIB = + [1702438116.145357][2387:2389] CHIP:DMG: { + [1702438116.145457][2387:2389] CHIP:DMG: status = 0x00 (SUCCESS), + [1702438116.145538][2387:2389] CHIP:DMG: }, + [1702438116.145616][2387:2389] CHIP:DMG: + [1702438116.145683][2387:2389] CHIP:DMG: }, + [1702438116.145782][2387:2389] CHIP:DMG: + [1702438116.145846][2387:2389] CHIP:DMG: }, + [1702438116.145917][2387:2389] CHIP:DMG: + [1702438116.146004][2387:2389] CHIP:DMG: ], + [1702438116.146078][2387:2389] CHIP:DMG: + [1702438116.146155][2387:2389] CHIP:DMG: InteractionModelRevision = 11 + [1702438116.146213][2387:2389] CHIP:DMG: }, + [1702438116.146382][2387:2389] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x0 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ICDM_3_4.yaml b/src/app/tests/suites/certification/Test_TC_ICDM_3_4.yaml new file mode 100644 index 00000000000000..2237dc6dae247c --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ICDM_3_4.yaml @@ -0,0 +1,106 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: "[TC-ICDM-3.4] ICDCounter persistence with DUT as Server" + +PICS: + - ICDM.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Preconditions" + verification: | + 1.Commission DUT to TH (can be skipped if done in a preceding test). + disabled: true + + - label: "Step 1: TH reads from the DUT the IdleModeDuration attribute" + PICS: ICDM.S.A0000 + verification: | + ./chip-tool icdmanagement read idle-mode-duration 1 0 + + [1702414709.798241][3855:3857] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0000 DataVersion: 2130984683 + [1702414709.798379][3855:3857] CHIP:TOO: IdleModeDuration: 3600 + disabled: true + + - label: "Step 2: TH reads from the DUT the ICDCounter attribute." + PICS: ICDM.S.A0004 + verification: | + ./chip-tool icdmanagement read icdcounter 1 0 + + [1702420930.466437][1422:1425] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0004 DataVersion: 2255930497 + [1702420930.469162][1422:1425] CHIP:TOO: ICDCounter: 1706188495 + disabled: true + + - label: + "Step 3a: TH sends RegisterClient command. - CheckInNodeID: + registering clients node ID (CheckInNodeID1) - MonitoredSubject: + monitored subject ID (MonitorSubID1) - Key: shared secret between the + client and the ICD (Key1)" + PICS: ICDM.S.C00.Rsp + verification: | + ./chip-tool icdmanagement register-client 1 1 1234567890abcdef 1 0 + + [1702420936.087934][1426:1428] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001 + [1702420936.088020][1426:1428] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1702420936.088218][1426:1428] CHIP:TOO: RegisterClientResponse: { + [1702420936.088275][1426:1428] CHIP:TOO: ICDCounter: 1706188495 + [1702420936.088320][1426:1428] CHIP:TOO: } + disabled: true + + - label: + "Step 3b: Verify DUT responds w/ status SUCCESS(0x00); Verify that the + DUT response contains IcdCounter1" + PICS: ICDM.S.C01.Tx + verification: | + ./chip-tool icdmanagement register-client 1 1 1234567890abcdef 1 0 + + [1702420936.087934][1426:1428] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001 + [1702420936.088020][1426:1428] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 + [1702420936.088218][1426:1428] CHIP:TOO: RegisterClientResponse: { + [1702420936.088275][1426:1428] CHIP:TOO: ICDCounter: 1706188495 + [1702420936.088320][1426:1428] CHIP:TOO: } + disabled: true + + - label: "Step 4: Wait for 1 or more Idle Mode duration." + verification: | + Wait for 1 or more Idle Mode duration. + disabled: true + + - label: "Step 5: TH reads from the DUT the ICDCounter attribute." + PICS: ICDM.S.A0004 + verification: | + ./chip-tool icdmanagement read icdcounter 1 0 + + [1702421000.635860][1431:1433] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0004 DataVersion: 2255930497 + [1702421000.635970][1431:1433] CHIP:TOO: ICDCounter: 1706188496 + disabled: true + + - label: "Step 6: Reboot DUT" + verification: | + Reboot DUT + disabled: true + + - label: "Step 7: TH reads from the DUT the ICDCounter attribute." + PICS: ICDM.S.A0004 + verification: | + ./chip-tool icdmanagement read icdcounter 1 0 + + [1702421019.370137][1435:1437] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0004 DataVersion: 3029212499 + [1702421019.370232][1435:1437] CHIP:TOO: ICDCounter: 1706188596 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ICDM_4_1.yaml b/src/app/tests/suites/certification/Test_TC_ICDM_4_1.yaml new file mode 100644 index 00000000000000..b845764732f841 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ICDM_4_1.yaml @@ -0,0 +1,74 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: "[TC-ICDM-4.1] Stay Active Request with DUT as Server" + +PICS: + - ICDM.S + - ICDM.S.C00.Rsp + - ICDM.S.C02.Rsp + - ICDM.S.C03.Rsp + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Preconditions" + verification: | + 1.Commission DUT to TH (can be skipped if done in a preceding test). + disabled: true + + - label: + "Step 1: TH sends StayActiveRequest command with StayActiveDuration." + PICS: ICDM.S.C03.Rsp + verification: | + ./chip-tool icdmanagement stay-active-request 1 0 + + Via the TH (chip-tool), verify the SUCCESS response for StayActiveRequest command. + + [1702414315.312084][3787:3789] CHIP:DMG: InvokeResponseMessage = + [1702414315.312130][3787:3789] CHIP:DMG: { + [1702414315.312244][3787:3789] CHIP:DMG: suppressResponse = false, + [1702414315.312295][3787:3789] CHIP:DMG: InvokeResponseIBs = + [1702414315.312360][3787:3789] CHIP:DMG: [ + [1702414315.312497][3787:3789] CHIP:DMG: InvokeResponseIB = + [1702414315.312572][3787:3789] CHIP:DMG: { + [1702414315.312626][3787:3789] CHIP:DMG: CommandStatusIB = + [1702414315.312709][3787:3789] CHIP:DMG: { + [1702414315.312774][3787:3789] CHIP:DMG: CommandPathIB = + [1702414315.312857][3787:3789] CHIP:DMG: { + [1702414315.312921][3787:3789] CHIP:DMG: EndpointId = 0x0, + [1702414315.312994][3787:3789] CHIP:DMG: ClusterId = 0x46, + [1702414315.313060][3787:3789] CHIP:DMG: CommandId = 0x3, + [1702414315.313155][3787:3789] CHIP:DMG: }, + [1702414315.313234][3787:3789] CHIP:DMG: + [1702414315.313293][3787:3789] CHIP:DMG: StatusIB = + [1702414315.313382][3787:3789] CHIP:DMG: { + [1702414315.313450][3787:3789] CHIP:DMG: status = 0x81 (UNSUPPORTED_COMMAND), + [1702414315.313536][3787:3789] CHIP:DMG: }, + [1702414315.313603][3787:3789] CHIP:DMG: + [1702414315.313679][3787:3789] CHIP:DMG: }, + [1702414315.313747][3787:3789] CHIP:DMG: + [1702414315.313799][3787:3789] CHIP:DMG: }, + [1702414315.313878][3787:3789] CHIP:DMG: + [1702414315.313928][3787:3789] CHIP:DMG: ], + [1702414315.313989][3787:3789] CHIP:DMG: + [1702414315.314057][3787:3789] CHIP:DMG: InteractionModelRevision = 11 + [1702414315.314106][3787:3789] CHIP:DMG: }, + [1702414315.314254][3787:3789] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0003 Status=0x81 + [1702414315.314359][3787:3789] CHIP:TOO: Error: IM Error 0x00000581: General error: 0x81 (UNSUPPORTED_COMMAND) + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ICDM_5_1.yaml b/src/app/tests/suites/certification/Test_TC_ICDM_5_1.yaml new file mode 100644 index 00000000000000..0e4e0c6b1e793a --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ICDM_5_1.yaml @@ -0,0 +1,145 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 217.2.7. [TC-ICDM-5.1] Functionality with DUT as Client + +PICS: + - ICDM.C + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: + "Step 1: DUT issues an C_REGISTER_CLIENT command to the Test Harness." + PICS: ICDM.S.C00.Tx + verification: | + From DUT: + ./chip-tool icdmanagement register-client 1 1 hex:1234567890abcdef1234567890abcdef 1 0 --VerificationKey hex:abcdef1234567890abcdef1234567890 + + From TH: lit-icd-app + [1704407463921] [48858:527745] [DMG] InvokeRequestMessage = + [1704407463921] [48858:527745] [DMG] { + [1704407463921] [48858:527745] [DMG] suppressResponse = false, + [1704407463921] [48858:527745] [DMG] timedRequest = false, + [1704407463921] [48858:527745] [DMG] InvokeRequests = + [1704407463921] [48858:527745] [DMG] [ + [1704407463921] [48858:527745] [DMG] CommandDataIB = + [1704407463921] [48858:527745] [DMG] { + [1704407463921] [48858:527745] [DMG] CommandPathIB = + [1704407463921] [48858:527745] [DMG] { + [1704407463921] [48858:527745] [DMG] EndpointId = 0x0, + [1704407463921] [48858:527745] [DMG] ClusterId = 0x46, + [1704407463921] [48858:527745] [DMG] CommandId = 0x0, + [1704407463921] [48858:527745] [DMG] }, + [1704407463921] [48858:527745] [DMG] + [1704407463921] [48858:527745] [DMG] CommandFields = + [1704407463921] [48858:527745] [DMG] { + [1704407463921] [48858:527745] [DMG] 0x0 = 1, + [1704407463921] [48858:527745] [DMG] 0x1 = 1, + [1704407463921] [48858:527745] [DMG] 0x2 = [ + [1704407463921] [48858:527745] [DMG] 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef, + [1704407463921] [48858:527745] [DMG] ] (16 bytes) + [1704407463921] [48858:527745] [DMG] 0x3 = [ + [1704407463921] [48858:527745] [DMG] 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90, + [1704407463921] [48858:527745] [DMG] ] (16 bytes) + [1704407463921] [48858:527745] [DMG] }, + [1704407463921] [48858:527745] [DMG] }, + [1704407463921] [48858:527745] [DMG] + [1704407463921] [48858:527745] [DMG] ], + [1704407463921] [48858:527745] [DMG] + [1704407463921] [48858:527745] [DMG] InteractionModelRevision = 11 + [1704407463921] [48858:527745] [DMG] }, + disabled: true + + - label: + "Step 2: DUT issues an C_UNREGISTER_CLIENT command to the Test + Harness." + PICS: ICDM.S.C02.Tx + verification: | + From DUT: + ./chip-tool icdmanagement unregister-client 1 1 0 --VerificationKey hex:abcdef1234567890abcdef1234567890 + + From TH: lit-icd-app + [1704407560687] [49015:529245] [DMG] InvokeRequestMessage = + [1704407560687] [49015:529245] [DMG] { + [1704407560687] [49015:529245] [DMG] suppressResponse = false, + [1704407560687] [49015:529245] [DMG] timedRequest = false, + [1704407560687] [49015:529245] [DMG] InvokeRequests = + [1704407560687] [49015:529245] [DMG] [ + [1704407560687] [49015:529245] [DMG] CommandDataIB = + [1704407560687] [49015:529245] [DMG] { + [1704407560687] [49015:529245] [DMG] CommandPathIB = + [1704407560687] [49015:529245] [DMG] { + [1704407560687] [49015:529245] [DMG] EndpointId = 0x0, + [1704407560687] [49015:529245] [DMG] ClusterId = 0x46, + [1704407560687] [49015:529245] [DMG] CommandId = 0x2, + [1704407560687] [49015:529245] [DMG] }, + [1704407560687] [49015:529245] [DMG] + [1704407560687] [49015:529245] [DMG] CommandFields = + [1704407560687] [49015:529245] [DMG] { + [1704407560687] [49015:529245] [DMG] 0x0 = 1, + [1704407560687] [49015:529245] [DMG] 0x1 = [ + [1704407560687] [49015:529245] [DMG] 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90, + [1704407560687] [49015:529245] [DMG] ] (16 bytes) + [1704407560687] [49015:529245] [DMG] }, + [1704407560687] [49015:529245] [DMG] }, + [1704407560687] [49015:529245] [DMG] + [1704407560687] [49015:529245] [DMG] ], + [1704407560687] [49015:529245] [DMG] + [1704407560687] [49015:529245] [DMG] InteractionModelRevision = 11 + [1704407560687] [49015:529245] [DMG] }, + disabled: true + + - label: + "Step 3: DUT issues an C_STAY_ACTIVE_REQUEST command to the Test + Harness." + PICS: ICDM.S.C03.Tx + verification: | + From DUT: + ./chip-tool icdmanagement stay-active-request 1 0 + + From TH: lit-icd-app + [1704406259650] [46741:509053] [DMG] InvokeRequestMessage = + [1704406259650] [46741:509053] [DMG] { + [1704406259650] [46741:509053] [DMG] suppressResponse = false, + [1704406259650] [46741:509053] [DMG] timedRequest = false, + [1704406259650] [46741:509053] [DMG] InvokeRequests = + [1704406259650] [46741:509053] [DMG] [ + [1704406259650] [46741:509053] [DMG] CommandDataIB = + [1704406259650] [46741:509053] [DMG] { + [1704406259650] [46741:509053] [DMG] CommandPathIB = + [1704406259650] [46741:509053] [DMG] { + [1704406259650] [46741:509053] [DMG] EndpointId = 0x0, + [1704406259650] [46741:509053] [DMG] ClusterId = 0x46, + [1704406259650] [46741:509053] [DMG] CommandId = 0x3, + [1704406259650] [46741:509053] [DMG] }, + [1704406259650] [46741:509053] [DMG] + [1704406259650] [46741:509053] [DMG] CommandFields = + [1704406259650] [46741:509053] [DMG] { + [1704406259650] [46741:509053] [DMG] }, + [1704406259650] [46741:509053] [DMG] }, + [1704406259650] [46741:509053] [DMG] + [1704406259650] [46741:509053] [DMG] ], + [1704406259650] [46741:509053] [DMG] + [1704406259650] [46741:509053] [DMG] InteractionModelRevision = 11 + [1704406259650] [46741:509053] [DMG] }, + [1704406259650] [46741:509053] [DMG] AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0046 e=0 p=m + [1704406259650] [46741:509053] [DMG] AccessControl: allowed + [1704406259650] [46741:509053] [DMG] Received command for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0003 + [1704406259650] [46741:509053] [DMG] Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0003 status 0x81 (UNSUPPORTED_COMMAND) (no additional context) + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MEDIAPLAYBACK_6_10.yaml b/src/app/tests/suites/certification/Test_TC_MEDIAPLAYBACK_6_10.yaml new file mode 100644 index 00000000000000..fce8304cea1c83 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MEDIAPLAYBACK_6_10.yaml @@ -0,0 +1,143 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: + 19.8.9. [TC-MEDIAPLAYBACK-6.10] Optional Track Verification (DUT as Client) + +PICS: + - MEDIAPLAYBACK.C + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Step 1: DUT sends ActivateAudioTrack command to TH" + PICS: MEDIAPLAYBACK.C.C0c.Tx + verification: | + Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner) or tv-casting-app (when DUT is a commissionee): + + ./chip-tool mediaplayback activate-audio-track 1 2 1 1 + + On TH (tv-app), Verify the ActivateAudioTrack command is received successfully. + + [1705561368.453512][4597:4597] CHIP:EM: Handling via exchange: 56290r, Delegate: 0xaaaad1391778 + [1705561368.453660][4597:4597] CHIP:DMG: InvokeRequestMessage = + [1705561368.453721][4597:4597] CHIP:DMG: { + [1705561368.453772][4597:4597] CHIP:DMG: suppressResponse = false, + [1705561368.453833][4597:4597] CHIP:DMG: timedRequest = false, + [1705561368.453890][4597:4597] CHIP:DMG: InvokeRequests = + [1705561368.453995][4597:4597] CHIP:DMG: [ + [1705561368.454052][4597:4597] CHIP:DMG: CommandDataIB = + [1705561368.454139][4597:4597] CHIP:DMG: { + [1705561368.454200][4597:4597] CHIP:DMG: CommandPathIB = + [1705561368.454273][4597:4597] CHIP:DMG: { + [1705561368.454367][4597:4597] CHIP:DMG: EndpointId = 0x1, + [1705561368.454442][4597:4597] CHIP:DMG: ClusterId = 0x506, + [1705561368.454536][4597:4597] CHIP:DMG: CommandId = 0xc, + [1705561368.454610][4597:4597] CHIP:DMG: }, + [1705561368.454721][4597:4597] CHIP:DMG: + [1705561368.454807][4597:4597] CHIP:DMG: CommandFields = + [1705561368.454879][4597:4597] CHIP:DMG: { + [1705561368.454976][4597:4597] CHIP:DMG: 0x0 = "1" (1 chars), + [1705561368.455055][4597:4597] CHIP:DMG: 0x1 = 2, + [1705561368.455130][4597:4597] CHIP:DMG: }, + [1705561368.455195][4597:4597] CHIP:DMG: }, + [1705561368.455297][4597:4597] CHIP:DMG: + [1705561368.455354][4597:4597] CHIP:DMG: ], + [1705561368.455447][4597:4597] CHIP:DMG: + [1705561368.455504][4597:4597] CHIP:DMG: InteractionModelRevision = 11 + [1705561368.455559][4597:4597] CHIP:DMG: }, + [1705561368.455805][4597:4597] CHIP:DMG: AccessControl: checking f=2 a=c s=0x000000000001B669 t= c=0x0000_0506 e=1 p=o + [1705561368.455903][4597:4597] CHIP:DMG: AccessControl: allowed + disabled: true + + - label: "Step 2: DUT sends ActivateTextTrack command to TH" + PICS: MEDIAPLAYBACK.C.C0d.Tx + verification: | + Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner) or tv-casting-app (when DUT is a commissionee): + + ./chip-tool mediaplayback activate-text-track 1 1 1 + + On TH (tv-app), Verify the ActivateTextTrack command is received successfully. + + [1705561407.549846][4597:4597] CHIP:EM: Handling via exchange: 12272r, Delegate: 0xaaaad1391778 + [1705561407.549918][4597:4597] CHIP:DMG: InvokeRequestMessage = + [1705561407.549942][4597:4597] CHIP:DMG: { + [1705561407.549961][4597:4597] CHIP:DMG: suppressResponse = false, + [1705561407.549999][4597:4597] CHIP:DMG: timedRequest = false, + [1705561407.550020][4597:4597] CHIP:DMG: InvokeRequests = + [1705561407.550048][4597:4597] CHIP:DMG: [ + [1705561407.550069][4597:4597] CHIP:DMG: CommandDataIB = + [1705561407.550103][4597:4597] CHIP:DMG: { + [1705561407.550125][4597:4597] CHIP:DMG: CommandPathIB = + [1705561407.550162][4597:4597] CHIP:DMG: { + [1705561407.550190][4597:4597] CHIP:DMG: EndpointId = 0x1, + [1705561407.550227][4597:4597] CHIP:DMG: ClusterId = 0x506, + [1705561407.550255][4597:4597] CHIP:DMG: CommandId = 0xd, + [1705561407.550290][4597:4597] CHIP:DMG: }, + [1705561407.550319][4597:4597] CHIP:DMG: + [1705561407.550342][4597:4597] CHIP:DMG: CommandFields = + [1705561407.550379][4597:4597] CHIP:DMG: { + [1705561407.550409][4597:4597] CHIP:DMG: 0x0 = "1" (1 chars), + [1705561407.550446][4597:4597] CHIP:DMG: }, + [1705561407.550470][4597:4597] CHIP:DMG: }, + [1705561407.550504][4597:4597] CHIP:DMG: + [1705561407.550526][4597:4597] CHIP:DMG: ], + [1705561407.550553][4597:4597] CHIP:DMG: + [1705561407.550584][4597:4597] CHIP:DMG: InteractionModelRevision = 11 + [1705561407.550605][4597:4597] CHIP:DMG: }, + [1705561407.550765][4597:4597] CHIP:DMG: AccessControl: checking f=2 a=c s=0x000000000001B669 t= c=0x0000_0506 e=1 p=o + [1705561407.550811][4597:4597] CHIP:DMG: AccessControl: allowed + disabled: true + + - label: "Step 1: DUT sends DeactivateTextTrack command to TH" + PICS: MEDIAPLAYBACK.C.C0e.Tx + verification: | + Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner) or tv-casting-app (when DUT is a commissionee): + + ./chip-tool mediaplayback deactivate-text-track 1 1 + + On TH (tv-app), Verify the DeactivateTextTrack command is received successfully. + + [1705561431.594454][4597:4597] CHIP:EM: Handling via exchange: 47051r, Delegate: 0xaaaad1391778 + [1705561431.594534][4597:4597] CHIP:DMG: InvokeRequestMessage = + [1705561431.594564][4597:4597] CHIP:DMG: { + [1705561431.594588][4597:4597] CHIP:DMG: suppressResponse = false, + [1705561431.594689][4597:4597] CHIP:DMG: timedRequest = false, + [1705561431.594718][4597:4597] CHIP:DMG: InvokeRequests = + [1705561431.594764][4597:4597] CHIP:DMG: [ + [1705561431.594791][4597:4597] CHIP:DMG: CommandDataIB = + [1705561431.594821][4597:4597] CHIP:DMG: { + [1705561431.594848][4597:4597] CHIP:DMG: CommandPathIB = + [1705561431.594891][4597:4597] CHIP:DMG: { + [1705561431.594931][4597:4597] CHIP:DMG: EndpointId = 0x1, + [1705561431.594978][4597:4597] CHIP:DMG: ClusterId = 0x506, + [1705561431.595013][4597:4597] CHIP:DMG: CommandId = 0xe, + [1705561431.595056][4597:4597] CHIP:DMG: }, + [1705561431.595092][4597:4597] CHIP:DMG: + [1705561431.595130][4597:4597] CHIP:DMG: CommandFields = + [1705561431.595164][4597:4597] CHIP:DMG: { + [1705561431.595196][4597:4597] CHIP:DMG: }, + [1705561431.595235][4597:4597] CHIP:DMG: }, + [1705561431.595271][4597:4597] CHIP:DMG: + [1705561431.595297][4597:4597] CHIP:DMG: ], + [1705561431.595341][4597:4597] CHIP:DMG: + [1705561431.595367][4597:4597] CHIP:DMG: InteractionModelRevision = 11 + [1705561431.595403][4597:4597] CHIP:DMG: }, + [1705561431.595522][4597:4597] CHIP:DMG: AccessControl: checking f=2 a=c s=0x000000000001B669 t= c=0x0000_0506 e=1 p=o + [1705561431.595573][4597:4597] CHIP:DMG: AccessControl: allowed + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MEDIAPLAYBACK_6_8.yaml b/src/app/tests/suites/certification/Test_TC_MEDIAPLAYBACK_6_8.yaml new file mode 100644 index 00000000000000..7514964cabce09 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MEDIAPLAYBACK_6_8.yaml @@ -0,0 +1,149 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 19.8.7. [TC-MEDIAPLAYBACK-6.8] Text Track Verification + +PICS: + - MEDIAPLAYBACK.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Preconditions" + verification: | + 1.DUT is powered on and not in a low power state + 2.DUT has media playing with no corresponding text appearing on screen (text tracks are disabled) + disabled: true + + - label: "Step 1: TH reads the ActiveTextTrack attribute from the DUT" + PICS: MEDIAPLAYBACK.S.A0009 + verification: | + ./chip-tool mediaplayback read active-text-track 1 3 + + [1705510042.296465][16330:16332] CHIP:DMG: InteractionModelRevision = 11 + [1705510042.296473][16330:16332] CHIP:DMG: } + [1705510042.296562][16330:16332] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0506 Attribute 0x0000_0009 DataVersion: 900375739 + [1705510042.296659][16330:16332] CHIP:TOO: ActiveTextTrack: { + [1705510042.296668][16330:16332] CHIP:TOO: Id: activeTextTrackId_0 + [1705510042.296701][16330:16332] CHIP:TOO: TrackAttributes: { + [1705510042.296710][16330:16332] CHIP:TOO: LanguageCode: languageCode1 + [1705510042.296722][16330:16332] CHIP:TOO: DisplayName: displayName1 + [1705510042.296731][16330:16332] CHIP:TOO: } + [1705510042.296741][16330:16332] CHIP:TOO: } + [1705510042.296826][16330:16332] CHIP:EM: <<< [E:46686i S:46889 M:218476891 (Ack:232741748)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1705510042.296863][16330:16332] CHIP:EM: Flushed pending ack for MessageCounter:232741748 on exchange 46686i + disabled: true + + - label: "Step 2: TH reads the AvailableTextTracks attribute from the DUT" + PICS: MEDIAPLAYBACK.S.A000a + verification: | + ./chip-tool mediaplayback read available-text-tracks 1 3 + + [1705510341.175871][16392:16394] CHIP:DMG: InteractionModelRevision = 11 + [1705510341.175877][16392:16394] CHIP:DMG: } + [1705510341.176016][16392:16394] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0506 Attribute 0x0000_000A DataVersion: 900375739 + [1705510341.176056][16392:16394] CHIP:TOO: AvailableTextTracks: 2 entries + [1705510341.176114][16392:16394] CHIP:TOO: [1]: { + [1705510341.176121][16392:16394] CHIP:TOO: Id: activeTextTrackId_0 + [1705510341.176142][16392:16394] CHIP:TOO: TrackAttributes: { + [1705510341.176148][16392:16394] CHIP:TOO: LanguageCode: languageCode1 + [1705510341.176156][16392:16394] CHIP:TOO: DisplayName: displayName1 + [1705510341.176163][16392:16394] CHIP:TOO: } + [1705510341.176169][16392:16394] CHIP:TOO: } + [1705510341.176184][16392:16394] CHIP:TOO: [2]: { + [1705510341.176189][16392:16394] CHIP:TOO: Id: activeTextTrackId_1 + [1705510341.176195][16392:16394] CHIP:TOO: TrackAttributes: { + [1705510341.176200][16392:16394] CHIP:TOO: LanguageCode: languageCode2 + [1705510341.176206][16392:16394] CHIP:TOO: DisplayName: displayName2 + [1705510341.176212][16392:16394] CHIP:TOO: } + [1705510341.176218][16392:16394] CHIP:TOO: } + [1705510341.176307][16392:16394] CHIP:EM: <<< [E:6048i S:22581 M:56736636 (Ack:198505019)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1705510341.176351][16392:16394] CHIP:EM: Flushed pending ack for MessageCounter:198505019 o + disabled: true + + - label: + "Step 3: TH sends a ActivateTextTrack command to DUT specifying the ID + value from step 2" + PICS: MEDIAPLAYBACK.S.C0d.Rsp + verification: | + ./chip-tool mediaplayback activate-text-track activeAudioTrackId_0 1 3 + + [1705510090.516480][16340:16342] CHIP:DMG: ], + [1705510090.516490][16340:16342] CHIP:DMG: + [1705510090.516496][16340:16342] CHIP:DMG: InteractionModelRevision = 11 + [1705510090.516502][16340:16342] CHIP:DMG: }, + [1705510090.516532][16340:16342] CHIP:DMG: Received Command Response Status for Endpoint=3 Cluster=0x0000_0506 Command=0x0000_000D Status=0x0 + [1705510090.516551][16340:16342] CHIP:DMG: ICR moving to [AwaitingDe] + [1705510090.516603][16340:16342] CHIP:EM: <<< [E:38439i S:17770 M:29388041 (Ack:36384138)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1705510090.516635][16340:16342] CHIP:EM: Flushed pending ack for MessageCounter:36384138 on exchange 38439i + disabled: true + + - label: "Step 4: TH reads the ActiveTextTrack attribute from the DUT" + PICS: MEDIAPLAYBACK.S.A0009 + verification: | + ./chip-tool mediaplayback read active-text-track 1 3 + + [1705510111.140989][16347:16349] CHIP:DMG: SuppressResponse = true, + [1705510111.140995][16347:16349] CHIP:DMG: InteractionModelRevision = 11 + [1705510111.141001][16347:16349] CHIP:DMG: } + [1705510111.141083][16347:16349] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0506 Attribute 0x0000_0009 DataVersion: 900375739 + [1705510111.141165][16347:16349] CHIP:TOO: ActiveTextTrack: { + [1705510111.141173][16347:16349] CHIP:TOO: Id: activeTextTrackId_0 + [1705510111.141193][16347:16349] CHIP:TOO: TrackAttributes: { + [1705510111.141200][16347:16349] CHIP:TOO: LanguageCode: languageCode1 + [1705510111.141207][16347:16349] CHIP:TOO: DisplayName: displayName1 + [1705510111.141214][16347:16349] CHIP:TOO: } + [1705510111.141220][16347:16349] CHIP:TOO: } + [1705510111.141301][16347:16349] CHIP:EM: <<< [E:17921i S:33385 M:33192485 (Ack:130923512)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1705510111.141335][16347:16349] CHIP:EM: Flushed pending ack for MessageCounter:130923512 on exchange 17921i + [1705510111.141507][16347:16347] CHIP:CTL: Shutting down the commissioner + [1705510111.141549][16347:16347] CHIP:CTL: Shutting down the controller + [1705510111.141558][16347:16347] CHIP:IN: Expiring all sessions for fabric 0x1!! + disabled: true + + - label: "Step 5: TH sends a DeactivateTextTrack command to DUT" + PICS: MEDIAPLAYBACK.S.C0e.Rsp + verification: | + ./chip-tool mediaplayback deactivate-text-track 1 3 + + [1705510243.371080][16362:16364] CHIP:DMG: InteractionModelRevision = 11 + [1705510243.371088][16362:16364] CHIP:DMG: }, + [1705510243.371125][16362:16364] CHIP:DMG: Received Command Response Status for Endpoint=3 Cluster=0x0000_0506 Command=0x0000_000E Status=0x0 + [1705510243.371148][16362:16364] CHIP:DMG: ICR moving to [AwaitingDe] + [1705510243.371203][16362:16364] CHIP:EM: <<< [E:35676i S:44821 M:224478765 (Ack:259090512)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1705510243.371238][16362:16364] CHIP:EM: Flushed pending ack for MessageCounter:259090512 on exchange 35676i + [1705510243.371429][16362:16362] CHIP:CTL: Shutting down the commissioner + [1705510243.371483][16362:16362] CHIP:CTL: Shutting down the controller + disabled: true + + - label: "Step 6: TH reads the ActiveTextTrack attribute from the DUT" + PICS: MEDIAPLAYBACK.S.A0009 + verification: | + ./chip-tool mediaplayback read active-text-track 1 3 + + + [1705510269.182464][16374:16376] CHIP:DMG: InteractionModelRevision = 11 + [1705510269.182472][16374:16376] CHIP:DMG: } + [1705510269.182556][16374:16376] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0506 Attribute 0x0000_0009 DataVersion: 900375739 + [1705510269.182642][16374:16376] CHIP:TOO: ActiveTextTrack: { + [1705510269.182651][16374:16376] CHIP:TOO: Id: + [1705510269.182670][16374:16376] CHIP:TOO: TrackAttributes: null + [1705510269.182679][16374:16376] CHIP:TOO: } + [1705510269.182763][16374:16376] CHIP:EM: <<< [E:17583i S:2252 M:176774078 (Ack:187039870)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1705510269.182802][16374:16376] CHIP:EM: Flushed pending ack for MessageCounter:187039870 on exchange 17583i + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MEDIAPLAYBACK_6_9.yaml b/src/app/tests/suites/certification/Test_TC_MEDIAPLAYBACK_6_9.yaml new file mode 100644 index 00000000000000..1e5333c65ad226 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MEDIAPLAYBACK_6_9.yaml @@ -0,0 +1,114 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 19.8.8. [TC-MEDIAPLAYBACK-6.9] Audio Track Verification + +PICS: + - MEDIAPLAYBACK.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "Preconditions" + verification: | + 1.DUT is powered on and not in a low power state + 2.DUT has media playing content with multiple audio tracks available + disabled: true + + - label: "Step 1: TH reads the ActiveAudioTrack attribute from the DUT" + PICS: MEDIAPLAYBACK.S.A0007 + verification: | + ./chip-tool mediaplayback read active-audio-track 1 3 + + + [1705510425.048787][16407:16409] CHIP:DMG: SuppressResponse = true, + [1705510425.048793][16407:16409] CHIP:DMG: InteractionModelRevision = 11 + [1705510425.048799][16407:16409] CHIP:DMG: } + [1705510425.048880][16407:16409] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0506 Attribute 0x0000_0007 DataVersion: 900375739 + [1705510425.048963][16407:16409] CHIP:TOO: ActiveAudioTrack: { + [1705510425.048971][16407:16409] CHIP:TOO: Id: activeAudioTrackId_0 + [1705510425.048979][16407:16409] CHIP:TOO: TrackAttributes: { + [1705510425.048985][16407:16409] CHIP:TOO: LanguageCode: languageCode1 + [1705510425.048999][16407:16409] CHIP:TOO: DisplayName: displayName1 + [1705510425.049006][16407:16409] CHIP:TOO: } + [1705510425.049012][16407:16409] CHIP:TOO: } + [1705510425.049085][16407:16409] CHIP:EM: <<< [E:36805i S:17177 M:13072081 (Ack:131987814)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + disabled: true + + - label: "Step 2: TH reads the AvailableAudioTracks attribute from the DUT" + PICS: MEDIAPLAYBACK.S.A0008 + verification: | + ./chip-tool mediaplayback read available-audio-tracks 1 3 + + + [1705510455.278768][16412:16414] CHIP:DMG: + [1705510455.278774][16412:16414] CHIP:DMG: SuppressResponse = true, + [1705510455.278781][16412:16414] CHIP:DMG: InteractionModelRevision = 11 + [1705510455.278786][16412:16414] CHIP:DMG: } + [1705510455.278928][16412:16414] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0506 Attribute 0x0000_0008 DataVersion: 900375739 + [1705510455.278981][16412:16414] CHIP:TOO: AvailableAudioTracks: 2 entries + [1705510455.279038][16412:16414] CHIP:TOO: [1]: { + [1705510455.279045][16412:16414] CHIP:TOO: Id: activeAudioTrackId_0 + [1705510455.279053][16412:16414] CHIP:TOO: TrackAttributes: { + [1705510455.279059][16412:16414] CHIP:TOO: LanguageCode: languageCode1 + [1705510455.279074][16412:16414] CHIP:TOO: DisplayName: displayName1 + [1705510455.279081][16412:16414] CHIP:TOO: } + [1705510455.279087][16412:16414] CHIP:TOO: } + [1705510455.279101][16412:16414] CHIP:TOO: [2]: { + [1705510455.279107][16412:16414] CHIP:TOO: Id: activeAudioTrackId_1 + [1705510455.279113][16412:16414] CHIP:TOO: TrackAttributes: { + [1705510455.279119][16412:16414] CHIP:TOO: LanguageCode: languageCode2 + [1705510455.279125][16412:16414] CHIP:TOO: DisplayName: displayName2 + [1705510455.279131][16412:16414] CHIP:TOO: } + [1705510455.279136][16412:16414] CHIP:TOO: } + [1705510455.279220][16412:16414] CHIP:EM: <<< [E:35757i S:13973 M:92594399 (Ack:246741638)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1705510455.279240][16412:16414] CHIP:EM: Flushed pending ack for MessageC + disabled: true + + - label: + "Step 3: TH sends a ActivateAudioTrack command to DUT specifying the + ID value from step 2" + PICS: MEDIAPLAYBACK.S.C09.Rsp + verification: | + ./chip-tool mediaplayback activate-text-track activeAudioTrackId_1 1 3 + + [1705510513.251669][16417:16419] CHIP:DMG: + [1705510513.251677][16417:16419] CHIP:DMG: InteractionModelRevision = 11 + [1705510513.251685][16417:16419] CHIP:DMG: }, + [1705510513.251722][16417:16419] CHIP:DMG: Received Command Response Status for Endpoint=3 Cluster=0x0000_0506 Command=0x0000_000D Status=0x0 + [1705510513.251744][16417:16419] CHIP:DMG: ICR moving to [AwaitingDe] + [1705510513.251824][16417:16419] CHIP:EM: <<< [E:31201i S:10659 M:469610 (Ack:79656282)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + disabled: true + + - label: "Step 4: TH reads the ActiveAudioTrack attribute from the DUT" + PICS: MEDIAPLAYBACK.S.A0007 + verification: | + ./chip-tool mediaplayback read active-audio-track 1 3 + + [1705510563.022455][16427:16429] CHIP:DMG: } + [1705510563.022535][16427:16429] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0506 Attribute 0x0000_0007 DataVersion: 900375739 + [1705510563.022607][16427:16429] CHIP:TOO: ActiveAudioTrack: { + [1705510563.022614][16427:16429] CHIP:TOO: Id: activeAudioTrackId_0 + [1705510563.022622][16427:16429] CHIP:TOO: TrackAttributes: { + [1705510563.022628][16427:16429] CHIP:TOO: LanguageCode: languageCode1 + [1705510563.022642][16427:16429] CHIP:TOO: DisplayName: displayName1 + [1705510563.022649][16427:16429] CHIP:TOO: } + [1705510563.022655][16427:16429] CHIP:TOO: } + [1705510563.022725][16427:16429] CHIP:EM: <<< [E:32787i S:18357 M:255165335 (Ack:47655138)] (S) Msg TX to 1:0000000000000001 [DC0D] [UDP:[fe80::a151:a1e6:e7:e224%wlp0s20f3]:5640] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1705510563.022757][16427:16429] CHIP:EM: Flushed pending ack for MessageCounter:47655138 on exchange 32787i + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_OTCCM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_OTCCM_1_1.yaml new file mode 100644 index 00000000000000..4cfdaf04f41c97 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_OTCCM_1_1.yaml @@ -0,0 +1,94 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 260.1.1. [TC-OTCCM-1.1] Global attributes with DUT as Server + +PICS: + - OTCCM.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: + "Step 1: Commission DUT to TH (can be skipped if done in a preceding + test)." + verification: | + + disabled: true + + - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." + verification: | + ./chip-tool ovenmode read cluster-revision 1 1 + + [1705647221.295875][50041:50047] CHIP:DMG: } + [1705647221.296007][50041:50047] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0049 Attribute 0x0000_FFFD DataVersion: 3240184500 + [1705647221.296039][50041:50047] CHIP:TOO: ClusterRevision: 1 + disabled: true + + - label: "Step 3: TH reads from the DUT the FeatureMap attribute." + verification: | + ./chip-tool ovenmode read feature-map 1 1 + + [1705647273.001229][53151:53158] CHIP:DMG: } + [1705647273.001266][53151:53158] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0049 Attribute 0x0000_FFFC DataVersion: 3240184500 + [1705647273.001279][53151:53158] CHIP:TOO: FeatureMap: 1 + disabled: true + + - label: "Step 4: TH reads from the DUT the AttributeList attribute." + verification: | + ./chip-tool ovenmode read attribute-list 1 1 + + [1705647386.476019][60066:60072] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0049 Attribute 0x0000_FFFB DataVersion: 3240184500 + [1705647386.476098][60066:60072] CHIP:TOO: AttributeList: 7 entries + [1705647386.476117][60066:60072] CHIP:TOO: [1]: 0 + [1705647386.476130][60066:60072] CHIP:TOO: [2]: 1 + [1705647386.476139][60066:60072] CHIP:TOO: [3]: 65528 + [1705647386.476151][60066:60072] CHIP:TOO: [4]: 65529 + [1705647386.476162][60066:60072] CHIP:TOO: [5]: 65531 + [1705647386.476171][60066:60072] CHIP:TOO: [6]: 65532 + [1705647386.476183][60066:60072] CHIP:TOO: [7]: 65533 + disabled: true + + - label: "Step 5*: TH reads from the DUT the EventList attribute." + verification: | + ./chip-tool ovenmode read event-list 1 1 + + + [1705647422.713386][62252:62257] CHIP:DMG: StatusIB = + [1705647422.713399][62252:62257] CHIP:DMG: { + [1705647422.713411][62252:62257] CHIP:DMG: status = 0x86 (UNSUPPORTED_ATTRIBUTE), + [1705647422.713420][62252:62257] CHIP:DMG: }, + disabled: true + + - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." + verification: | + ./chip-tool ovenmode read accepted-command-list 1 1 + + [1705647458.520722][64406:64412] CHIP:DMG: } + [1705647458.520764][64406:64412] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0049 Attribute 0x0000_FFF9 DataVersion: 3240184500 + [1705647458.520776][64406:64412] CHIP:TOO: AcceptedCommandList: 0 entries + disabled: true + + - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." + verification: | + ./chip-tool ovenmode read generated-command-list 1 1 + + [1705647658.986480][76560:76567] CHIP:DMG: } + [1705647658.986529][76560:76567] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0049 Attribute 0x0000_FFF8 DataVersion: 3240184500 + [1705647658.986540][76560:76567] CHIP:TOO: GeneratedCommandList: 0 entries + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_OTCCM_1_2.yaml b/src/app/tests/suites/certification/Test_TC_OTCCM_1_2.yaml new file mode 100644 index 00000000000000..abf17d55b35633 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_OTCCM_1_2.yaml @@ -0,0 +1,123 @@ +# Copyright (c) 2024 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 260.2.1. [TC-OTCCM-1.2] Cluster attributes with DUT as Server + +PICS: + - OTCCM.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: + "Step 1: Commission DUT to TH (can be skipped if done in a preceding + test)." + verification: | + + disabled: true + + - label: "Step 2: TH reads from the DUT the SupportedModes attribute." + PICS: OTCCM.S.A0000 + verification: | + ./chip-tool ovenmode read supported-modes 1 1 + + [1705647707.587205][79487:79492] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0049 Attribute 0x0000_0000 DataVersion: 3240184500 + [1705647707.587250][79487:79492] CHIP:TOO: SupportedModes: 9 entries + [1705647707.587265][79487:79492] CHIP:TOO: [1]: { + [1705647707.587268][79487:79492] CHIP:TOO: Label: Bake + [1705647707.587275][79487:79492] CHIP:TOO: Mode: 0 + [1705647707.587282][79487:79492] CHIP:TOO: ModeTags: 1 entries + [1705647707.587287][79487:79492] CHIP:TOO: [1]: { + [1705647707.587290][79487:79492] CHIP:TOO: Value: 16384 + [1705647707.587294][79487:79492] CHIP:TOO: } + [1705647707.587297][79487:79492] CHIP:TOO: } + [1705647707.587303][79487:79492] CHIP:TOO: [2]: { + [1705647707.587305][79487:79492] CHIP:TOO: Label: Convection + [1705647707.587308][79487:79492] CHIP:TOO: Mode: 1 + [1705647707.587311][79487:79492] CHIP:TOO: ModeTags: 1 entries + [1705647707.587316][79487:79492] CHIP:TOO: [1]: { + [1705647707.587318][79487:79492] CHIP:TOO: Value: 16385 + [1705647707.587321][79487:79492] CHIP:TOO: } + [1705647707.587324][79487:79492] CHIP:TOO: } + [1705647707.587330][79487:79492] CHIP:TOO: [3]: { + [1705647707.587333][79487:79492] CHIP:TOO: Label: Grill + [1705647707.587335][79487:79492] CHIP:TOO: Mode: 2 + [1705647707.587338][79487:79492] CHIP:TOO: ModeTags: 1 entries + [1705647707.587342][79487:79492] CHIP:TOO: [1]: { + [1705647707.587345][79487:79492] CHIP:TOO: Value: 16386 + [1705647707.587348][79487:79492] CHIP:TOO: } + [1705647707.587351][79487:79492] CHIP:TOO: } + [1705647707.587356][79487:79492] CHIP:TOO: [4]: { + [1705647707.587359][79487:79492] CHIP:TOO: Label: Roast + [1705647707.587361][79487:79492] CHIP:TOO: Mode: 3 + [1705647707.587364][79487:79492] CHIP:TOO: ModeTags: 1 entries + [1705647707.587369][79487:79492] CHIP:TOO: [1]: { + [1705647707.587371][79487:79492] CHIP:TOO: Value: 16387 + [1705647707.587374][79487:79492] CHIP:TOO: } + [1705647707.587376][79487:79492] CHIP:TOO: } + [1705647707.587382][79487:79492] CHIP:TOO: [5]: { + [1705647707.587384][79487:79492] CHIP:TOO: Label: Clean + [1705647707.587387][79487:79492] CHIP:TOO: Mode: 4 + [1705647707.587390][79487:79492] CHIP:TOO: ModeTags: 1 entries + [1705647707.587394][79487:79492] CHIP:TOO: [1]: { + [1705647707.587397][79487:79492] CHIP:TOO: Value: 16388 + [1705647707.587400][79487:79492] CHIP:TOO: } + [1705647707.587402][79487:79492] CHIP:TOO: } + [1705647707.587408][79487:79492] CHIP:TOO: [6]: { + [1705647707.587410][79487:79492] CHIP:TOO: Label: Convection Bake + [1705647707.587413][79487:79492] CHIP:TOO: Mode: 5 + [1705647707.587416][79487:79492] CHIP:TOO: ModeTags: 1 entries + [1705647707.587420][79487:79492] CHIP:TOO: [1]: { + [1705647707.587423][79487:79492] CHIP:TOO: Value: 16389 + [1705647707.587425][79487:79492] CHIP:TOO: } + [1705647707.587428][79487:79492] CHIP:TOO: } + [1705647707.587434][79487:79492] CHIP:TOO: [7]: { + [1705647707.587436][79487:79492] CHIP:TOO: Label: Convection Roast + [1705647707.587439][79487:79492] CHIP:TOO: Mode: 6 + [1705647707.587442][79487:79492] CHIP:TOO: ModeTags: 1 entries + [1705647707.587446][79487:79492] CHIP:TOO: [1]: { + [1705647707.587449][79487:79492] CHIP:TOO: Value: 16390 + [1705647707.587451][79487:79492] CHIP:TOO: } + [1705647707.587454][79487:79492] CHIP:TOO: } + [1705647707.587460][79487:79492] CHIP:TOO: [8]: { + [1705647707.587462][79487:79492] CHIP:TOO: Label: Warming + [1705647707.587465][79487:79492] CHIP:TOO: Mode: 7 + [1705647707.587468][79487:79492] CHIP:TOO: ModeTags: 1 entries + [1705647707.587472][79487:79492] CHIP:TOO: [1]: { + [1705647707.587475][79487:79492] CHIP:TOO: Value: 16391 + [1705647707.587477][79487:79492] CHIP:TOO: } + [1705647707.587480][79487:79492] CHIP:TOO: } + [1705647707.587485][79487:79492] CHIP:TOO: [9]: { + [1705647707.587488][79487:79492] CHIP:TOO: Label: Proofing + [1705647707.587490][79487:79492] CHIP:TOO: Mode: 8 + [1705647707.587493][79487:79492] CHIP:TOO: ModeTags: 1 entries + [1705647707.587497][79487:79492] CHIP:TOO: [1]: { + [1705647707.587500][79487:79492] CHIP:TOO: Value: 16392 + [1705647707.587502][79487:79492] CHIP:TOO: } + [1705647707.587505][79487:79492] CHIP:TOO: } + disabled: true + + - label: "Step 3: TH reads from the DUT the CurrentMode attribute." + PICS: OTCCM.S.A0001 + verification: | + ./chip-tool ovenmode read current-mode 1 1 + + [1705647748.316225][81944:81949] CHIP:DMG: } + [1705647748.316354][81944:81949] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0049 Attribute 0x0000_0001 DataVersion: 3240184500 + [1705647748.316395][81944:81949] CHIP:TOO: CurrentMode: 0 + disabled: true diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values index dbfd65e6d03d4d..50248e0ed3ae0e 100644 --- a/src/app/tests/suites/certification/ci-pics-values +++ b/src/app/tests/suites/certification/ci-pics-values @@ -413,6 +413,10 @@ MEDIAPLAYBACK.S.A0003=1 MEDIAPLAYBACK.S.A0004=1 MEDIAPLAYBACK.S.A0005=1 MEDIAPLAYBACK.S.A0006=1 +MEDIAPLAYBACK.S.A0007=0 +MEDIAPLAYBACK.S.A0008=0 +MEDIAPLAYBACK.S.A0009=0 +MEDIAPLAYBACK.S.A000a=0 MEDIAPLAYBACK.S.C00.Rsp=1 MEDIAPLAYBACK.S.C01.Rsp=1 @@ -496,6 +500,12 @@ ALOGIN.C=1 ALOGIN.C.C00.Tx=1 KEYPADINPUT.C=1 +APPOBSERVER.S=1 +APPOBSERVER.C=1 +APPOBSERVER.S.F01=1 +APPOBSERVER.S.C00.Rsp=1 +CONCON.S=1 + MC.S=1 MC.S.M.UDC=1 MC.S.M.UDCLOGIN=1 @@ -2538,6 +2548,7 @@ FAN.S.C00.Rsp=1 #Server ICDM.S=1 +ICDM.C=1 #Server Attribute ICDM.S.A0000=1 @@ -2546,6 +2557,8 @@ ICDM.S.A0002=1 ICDM.S.A0003=1 ICDM.S.A0004=1 ICDM.S.A0005=1 +ICDM.S.A0006=1 +ICDM.S.A0007=1 #Client Attribute ICDM.C.A0000=1 @@ -2554,18 +2567,28 @@ ICDM.C.A0002=1 ICDM.C.A0003=1 ICDM.C.A0004=1 ICDM.C.A0005=1 +ICDM.C.A0006=1 +ICDM.C.A0007=1 #Features ICDM.S.F00=1 +ICDM.S.F01=1 +ICDM.S.F02=1 #Commands ICDM.S.C00.Rsp=1 ICDM.S.C02.Rsp=1 ICDM.S.C03.Rsp=1 -ICDM.C.C00.Rsp=1 ICDM.S.C01.Tx=1 +ICDM.C.C01.Rsp=0 +ICDM.C.C04.Rsp=0 +ICDM.S.C00.Tx=0 +ICDM.S.C02.Tx=0 +ICDM.S.C03.Tx=0 +ICDM.S.C04.Tx=0 + # Smoke CO Alarm Cluster SMOKECO.S=1 SMOKECO.C=1 @@ -2699,3 +2722,116 @@ VALCC.S.E00=1 VALCC.S.E01=1 VALCC.S.C00.Rsp=1 VALCC.S.C01.Rsp=1 + +#Device Energy Management cluster +# Server +DEM.S=0 +DEM.S.A0000=0 +DEM.S.A0001=0 +DEM.S.A0002=0 +DEM.S.A0003=0 +DEM.S.A0004=0 +DEM.S.A0005=0 +DEM.S.A0006=0 +DEM.S.A0007=0 + +# Features +DEM.S.F00=0 +DEM.S.F01=0 +DEM.S.F02=0 +DEM.S.F03=0 +DEM.S.F04=0 +DEM.S.F05=0 +DEM.S.F06=0 + +#Commands received +DEM.S.C00.Rsp=0 +DEM.S.C01.Rsp=0 +DEM.S.C02.Rsp=0 +DEM.S.C03.Rsp=0 +DEM.S.C04.Rsp=0 +DEM.S.C05.Rsp=0 +DEM.S.C06.Rsp=0 +DEM.S.C07.Rsp=0 + +#Events +DEM.S.E00=0 +DEM.S.E01=0 +DEM.S.E02=0 +DEM.S.E03=0 + +#Manual controllable +DEM.S.M.ManuallyControlledOptOut=0 + +# Oven Mode Cluster +OTCCM.S=0 + +#Attribute +OTCCM.S.A0000=0 +OTCCM.S.A0001=0 + +#Commands received +OTCCM.S.C00.Rsp=0 + +#Commands generated +OTCCM.S.C01.Tx=0 + +#Manual controllable +OTCCM.S.M.CAN_TEST_MODE_FAILURE=0 +OTCCM.S.M.CAN_MANUALLY_CONTROLLED=0 + +#Energy EVSE Cluster +EEVSE.S=0 +EEVSE.S.A0000=0 +EEVSE.S.A0001=0 +EEVSE.S.A0002=0 +EEVSE.S.A0003=0 +EEVSE.S.A0004=0 +EEVSE.S.A0005=0 +EEVSE.S.A0006=0 +EEVSE.S.A0007=0 +EEVSE.S.A0008=0 +EEVSE.S.A0009=0 +EEVSE.S.A000A=0 +EEVSE.S.A0023=0 +EEVSE.S.A0024=0 +EEVSE.S.A0025=0 +EEVSE.S.A0026=0 +EEVSE.S.A0027=0 +EEVSE.S.A0030=0 +EEVSE.S.A0031=0 +EEVSE.S.A0032=0 +EEVSE.S.A0040=0 +EEVSE.S.A0041=0 +EEVSE.S.A0042=0 +EEVSE.S.A0043=0 + +#Commands received +EEVSE.S.C01.Rsp=0 +EEVSE.S.C02.Rsp=0 +EEVSE.S.C03.Rsp=0 +EEVSE.S.C04.Rsp=0 +EEVSE.S.C05.Rsp=0 +EEVSE.S.C06.Rsp=0 +EEVSE.S.C07.Rsp=0 + +# Commands generated +EEVSE.S.C00.Tx=0 + +#Manual controllable +EEVSE.S.M.ManuallyControlledPluggedIn=0 + +#Features +EEVSE.S.F00=0 +EEVSE.S.F01=0 +EEVSE.S.F02=0 +EEVSE.S.F03=0 +EEVSE.S.F04=0 + +#Events +EEVSE.S.E00=0 +EEVSE.S.E01=0 +EEVSE.S.E02=0 +EEVSE.S.E03=0 +EEVSE.S.E04=0 +EEVSE.S.E05=0 diff --git a/src/app/tests/suites/manualTests.json b/src/app/tests/suites/manualTests.json index 6f93954c172b7d..7b4f2208a99e55 100644 --- a/src/app/tests/suites/manualTests.json +++ b/src/app/tests/suites/manualTests.json @@ -117,7 +117,15 @@ "GeneralCommissioning": ["Test_TC_CGEN_2_2"], "GeneralDiagnostics": ["Test_TC_DGGEN_2_2"], "Identify": ["Test_TC_I_3_2"], - "IcdManagement": ["Test_TC_ICDM_2_2", "Test_TC_ICDM_2_3"], + "IcdManagement": [ + "Test_TC_ICDM_2_2", + "Test_TC_ICDM_3_1", + "Test_TC_ICDM_3_2", + "Test_TC_ICDM_3_3", + "Test_TC_ICDM_3_4", + "Test_TC_ICDM_4_1", + "Test_TC_ICDM_5_1" + ], "IlluminanceMeasurement": [], "InteractionDataModel": [ "Test_TC_IDM_1_1", @@ -153,13 +161,20 @@ "Test_TC_KEYPADINPUT_3_1", "Test_TC_MEDIAPLAYBACK_6_5", "Test_TC_MEDIAPLAYBACK_6_7", + "Test_TC_MEDIAPLAYBACK_6_8", + "Test_TC_MEDIAPLAYBACK_6_9", + "Test_TC_MEDIAPLAYBACK_6_10", "Test_TC_AUDIOOUTPUT_7_3", "Test_TC_AUDIOOUTPUT_7_4", "Test_TC_CONTENTLAUNCHER_10_4", "Test_TC_MC_11_1", "Test_TC_MC_11_2", "Test_TC_ALOGIN_12_2", - "Test_TC_TGTNAV_8_2" + "Test_TC_TGTNAV_8_2", + "Test_TC_APPOBSERVER_1_13", + "Test_TC_APPOBSERVER_13_1", + "Test_TC_APPOBSERVER_13_2", + "Test_TC_CONCON_1_14" ], "MultipleFabrics": [ "Test_TC_CADMIN_1_1", @@ -256,6 +271,7 @@ "Test_TC_CC_9_3" ], "DoorLock": ["Test_TC_DRLK_2_10", "Test_TC_DRLK_3_2"], + "DeviceEnergyManagement": ["Test_TC_DEM_1_1"], "LocalizationConfiguration": [], "LevelControl": [], "LaundryWasherMode": ["Test_TC_LWM_1_2"], @@ -292,6 +308,8 @@ ], "LaundryWasherControl": [], "AccessControlEnforcement": [], + "OvenMode": ["Test_TC_OTCCM_1_1", "Test_TC_OTCCM_1_2"], + "EnergyEVSE": ["Test_TC_EEVSE_1_1", "Test_TC_EEVSE_2_1"], "collection": [ "DeviceDiscovery", "Groups", @@ -305,6 +323,7 @@ "Descriptor", "FanControl", "EthernetNetworkDiagnostics", + "EnergyEVSE", "GeneralCommissioning", "GeneralDiagnostics", "IcdManagement", @@ -328,11 +347,13 @@ "BooleanState", "ColorControl", "DoorLock", + "DeviceEnergyManagement", "LocalizationConfiguration", "LevelControl", "LaundryWasherMode", "OnOff", "OperationalState", + "OvenMode", "RelativeHumidityMeasurement", "SmokeCOAlarm", "RefrigeratorAlarm", diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h index 5a7ad491e1a228..73b75e21662eda 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -55051,107 +55051,147 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: TH reads FeatureMap attribute from DUT\n"); - if (ShouldSkip("ICDM.S.F00")) { + if (ShouldSkip(" !ICDM.S.F00 && !ICDM.S.F01 && !ICDM.S.F02 ")) { NextTest(); return; } err = TestStep3ThReadsFeatureMapAttributeFromDut_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Step 3: TH reads FeatureMap attribute from DUT\n"); - if (ShouldSkip(" !ICDM.S.F00 ")) { + ChipLogProgress(chipTool, " ***** Test Step 3 : Step 3: TH reads FeatureMap attribute from DUT, bit 0 is set to 1 if ICDM.S.F00(UAT) is true,\n"); + if (ShouldSkip("ICDM.S.F00")) { NextTest(); return; } - err = TestStep3ThReadsFeatureMapAttributeFromDut_3(); + err = TestStep3ThReadsFeatureMapAttributeFromDutBit0IsSetTo1IfIcdmsf00uatIsTrue_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Step 4a: TH reads AttributeList attribute from DUT\n"); - if (ShouldSkip("PICS_EVENT_LIST_ENABLED")) { + ChipLogProgress(chipTool, " ***** Test Step 4 : Step 3: TH reads FeatureMap attribute from DUT, bit 1 is set to 1 if ICDM.S.F01(CIP) is true\n"); + if (ShouldSkip("ICDM.S.F01")) { NextTest(); return; } - err = TestStep4aThReadsAttributeListAttributeFromDut_4(); + err = TestStep3ThReadsFeatureMapAttributeFromDutBit1IsSetTo1IfIcdmsf01cipIsTrue_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Step 4a: TH reads AttributeList attribute from DUT\n"); - if (ShouldSkip("!PICS_EVENT_LIST_ENABLED")) { + ChipLogProgress(chipTool, " ***** Test Step 5 : Step 3: TH reads FeatureMap attribute from DUT, bit 2 is set to 1 if ICDM.S.F02(UAT) is true,\n"); + if (ShouldSkip("ICDM.S.F02")) { NextTest(); return; } - err = TestStep4aThReadsAttributeListAttributeFromDut_5(); + err = TestStep3ThReadsFeatureMapAttributeFromDutBit2IsSetTo1IfIcdmsf02uatIsTrue_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Step 4b: Read the optional attribute(RegisteredClients) in AttributeList\n"); - if (ShouldSkip("ICDM.S.A0003")) { + ChipLogProgress(chipTool, " ***** Test Step 6 : Step 4a: TH reads AttributeList attribute from DUT\n"); + if (ShouldSkip("PICS_EVENT_LIST_ENABLED")) { NextTest(); return; } - err = TestStep4bReadTheOptionalAttributeRegisteredClientsInAttributeList_6(); + err = TestStep4aThReadsAttributeListAttributeFromDut_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Step 4c: Read the optional attribute(IcdCounter) in AttributeList\n"); - if (ShouldSkip("ICDM.S.A0004")) { + ChipLogProgress(chipTool, " ***** Test Step 7 : Step 4a: TH reads AttributeList attribute from DUT\n"); + if (ShouldSkip("!PICS_EVENT_LIST_ENABLED")) { NextTest(); return; } - err = TestStep4cReadTheOptionalAttributeIcdCounterInAttributeList_7(); + err = TestStep4aThReadsAttributeListAttributeFromDut_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Step 4d: Read the optional attribute(ClientsSupportedPerFabric) in AttributeList\n"); - if (ShouldSkip("ICDM.S.A0005")) { + ChipLogProgress(chipTool, " ***** Test Step 8 : Step 4b: Read the optional attribute(RegisteredClients) in AttributeList\n"); + if (ShouldSkip("ICDM.S.A0003")) { NextTest(); return; } - err = TestStep4dReadTheOptionalAttributeClientsSupportedPerFabricInAttributeList_8(); + err = TestStep4bReadTheOptionalAttributeRegisteredClientsInAttributeList_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Step 5: Read the global attribute: EventList\n"); + ChipLogProgress(chipTool, " ***** Test Step 9 : Step 4c: Read the optional attribute(IcdCounter) in AttributeList\n"); + if (ShouldSkip("ICDM.S.A0004")) { + NextTest(); + return; + } + err = TestStep4cReadTheOptionalAttributeIcdCounterInAttributeList_9(); + break; + case 10: + ChipLogProgress(chipTool, " ***** Test Step 10 : Step 4d: Read the optional attribute(ClientsSupportedPerFabric) in AttributeList\n"); + if (ShouldSkip("ICDM.S.A0005")) { + NextTest(); + return; + } + err = TestStep4dReadTheOptionalAttributeClientsSupportedPerFabricInAttributeList_10(); + break; + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : Step 4d: Read the optional attribute(UserActiveModeTriggerHint) in AttributeList\n"); + if (ShouldSkip("ICDM.S.A0006")) { + NextTest(); + return; + } + err = TestStep4dReadTheOptionalAttributeUserActiveModeTriggerHintInAttributeList_11(); + break; + case 12: + ChipLogProgress(chipTool, " ***** Test Step 12 : Step 4d: Read the optional attribute(UserActiveModeTriggerInstruction) in AttributeList\n"); + if (ShouldSkip("ICDM.S.A0007")) { + NextTest(); + return; + } + err = TestStep4dReadTheOptionalAttributeUserActiveModeTriggerInstructionInAttributeList_12(); + break; + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : Step 5: Read the global attribute: EventList\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED")) { NextTest(); return; } NextTest(); return; - case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Step 6a: TH reads AcceptedCommandList attribute from DUT\n"); + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : Step 6a: TH reads AcceptedCommandList attribute from DUT\n"); if (ShouldSkip(" !ICDM.S.F00 && !ICDM.S.C03.Rsp ")) { NextTest(); return; } - err = TestStep6aThReadsAcceptedCommandListAttributeFromDut_10(); + err = TestStep6aThReadsAcceptedCommandListAttributeFromDut_14(); break; - case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Step 6b: TH reads AcceptedCommandList attribute from DUT if ICDM.S.F00 is true\n"); + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : Step 6b: TH reads AcceptedCommandList attribute from DUT if ICDM.S.F00 is true\n"); if (ShouldSkip("ICDM.S.F00")) { NextTest(); return; } - err = TestStep6bThReadsAcceptedCommandListAttributeFromDutIfIcdmsf00IsTrue_11(); + err = TestStep6bThReadsAcceptedCommandListAttributeFromDutIfIcdmsf00IsTrue_15(); break; - case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Step 6c: Read the optional command (StayActiveRequest) in AttributeList\n"); + case 16: + ChipLogProgress(chipTool, " ***** Test Step 16 : Step 6c: Read the optional command (StayActiveRequest) in AttributeList\n"); if (ShouldSkip("ICDM.S.C03.Rsp")) { NextTest(); return; } - err = TestStep6cReadTheOptionalCommandStayActiveRequestInAttributeList_12(); + err = TestStep6cReadTheOptionalCommandStayActiveRequestInAttributeList_16(); break; - case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Step 7: TH reads GeneratedCommandList attribute from DUT\n"); + case 17: + ChipLogProgress(chipTool, " ***** Test Step 17 : Step 7: TH reads GeneratedCommandList attribute from DUT\n"); if (ShouldSkip(" !ICDM.S.F00 ")) { NextTest(); return; } - err = TestStep7ThReadsGeneratedCommandListAttributeFromDut_13(); + err = TestStep7ThReadsGeneratedCommandListAttributeFromDut_17(); break; - case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Step 7: TH reads GeneratedCommandList attribute from DUT\n"); + case 18: + ChipLogProgress(chipTool, " ***** Test Step 18 : Step 7: TH reads GeneratedCommandList attribute from DUT\n"); if (ShouldSkip("ICDM.S.F00")) { NextTest(); return; } - err = TestStep7ThReadsGeneratedCommandListAttributeFromDut_14(); + err = TestStep7ThReadsGeneratedCommandListAttributeFromDut_18(); + break; + case 19: + ChipLogProgress(chipTool, " ***** Test Step 19 : Step 7: TH reads GeneratedCommandList attribute from DUT. The list MAY include these optional entries: 0x04: SHALL be included if and only if ICDM.S.C04.Tx(StayActiveResponse) \n"); + if (ShouldSkip("ICDM.S.C04.Tx")) { + NextTest(); + return; + } + err = TestStep7ThReadsGeneratedCommandListAttributeFromDutTheListMayIncludeTheseOptionalEntries0x04ShallBeIncludedIfAndOnlyIfICDMSC04TxStayActiveResponse_19(); break; } @@ -55209,6 +55249,21 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { case 14: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 17: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 19: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -55219,7 +55274,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 15; + const uint16_t mTestCount = 20; chip::Optional mNodeId; chip::Optional mCluster; @@ -55278,6 +55333,11 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("FeatureMap", actualValue, 0UL)); + } + VerifyOrReturn(CheckConstraintType("featureMap", "bitmap32", "bitmap32")); NextTest(); }]; @@ -55285,7 +55345,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep3ThReadsFeatureMapAttributeFromDut_3() + CHIP_ERROR TestStep3ThReadsFeatureMapAttributeFromDutBit0IsSetTo1IfIcdmsf00uatIsTrue_3() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55294,18 +55354,36 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { if (err != nil) { - NSLog(@"Step 3: TH reads FeatureMap attribute from DUT: Error: %@", err); + NSLog(@"Step 3: TH reads FeatureMap attribute from DUT, bit 0 is set to 1 if ICDM.S.F00(UAT) is true,: Error: %@", err); } else { - NSLog(@"Step 3: TH reads FeatureMap attribute from DUT: Success"); + NSLog(@"Step 3: TH reads FeatureMap attribute from DUT, bit 0 is set to 1 if ICDM.S.F00(UAT) is true,: Success"); } VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("FeatureMap", actualValue, 0UL)); + VerifyOrReturn(CheckConstraintType("featureMap", "bitmap32", "bitmap32")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestStep3ThReadsFeatureMapAttributeFromDutBit1IsSetTo1IfIcdmsf01cipIsTrue_4() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterICDManagement alloc] initWithDevice:device endpointID:@(0) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeFeatureMapWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { + if (err != nil) { + NSLog(@"Step 3: TH reads FeatureMap attribute from DUT, bit 1 is set to 1 if ICDM.S.F01(CIP) is true: Error: %@", err); + } else { + NSLog(@"Step 3: TH reads FeatureMap attribute from DUT, bit 1 is set to 1 if ICDM.S.F01(CIP) is true: Success"); } + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckConstraintType("featureMap", "bitmap32", "bitmap32")); NextTest(); }]; @@ -55313,7 +55391,30 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep4aThReadsAttributeListAttributeFromDut_4() + CHIP_ERROR TestStep3ThReadsFeatureMapAttributeFromDutBit2IsSetTo1IfIcdmsf02uatIsTrue_5() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterICDManagement alloc] initWithDevice:device endpointID:@(0) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeFeatureMapWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { + if (err != nil) { + NSLog(@"Step 3: TH reads FeatureMap attribute from DUT, bit 2 is set to 1 if ICDM.S.F02(UAT) is true,: Error: %@", err); + } else { + NSLog(@"Step 3: TH reads FeatureMap attribute from DUT, bit 2 is set to 1 if ICDM.S.F02(UAT) is true,: Success"); + } + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("featureMap", "bitmap32", "bitmap32")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestStep4aThReadsAttributeListAttributeFromDut_6() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55346,7 +55447,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep4aThReadsAttributeListAttributeFromDut_5() + CHIP_ERROR TestStep4aThReadsAttributeListAttributeFromDut_7() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55378,7 +55479,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep4bReadTheOptionalAttributeRegisteredClientsInAttributeList_6() + CHIP_ERROR TestStep4bReadTheOptionalAttributeRegisteredClientsInAttributeList_8() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55403,7 +55504,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep4cReadTheOptionalAttributeIcdCounterInAttributeList_7() + CHIP_ERROR TestStep4cReadTheOptionalAttributeIcdCounterInAttributeList_9() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55428,7 +55529,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep4dReadTheOptionalAttributeClientsSupportedPerFabricInAttributeList_8() + CHIP_ERROR TestStep4dReadTheOptionalAttributeClientsSupportedPerFabricInAttributeList_10() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55453,7 +55554,57 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep6aThReadsAcceptedCommandListAttributeFromDut_10() + CHIP_ERROR TestStep4dReadTheOptionalAttributeUserActiveModeTriggerHintInAttributeList_11() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterICDManagement alloc] initWithDevice:device endpointID:@(0) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { + if (err != nil) { + NSLog(@"Step 4d: Read the optional attribute(UserActiveModeTriggerHint) in AttributeList: Error: %@", err); + } else { + NSLog(@"Step 4d: Read the optional attribute(UserActiveModeTriggerHint) in AttributeList: Success"); + } + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("attributeList", "list", "list")); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 6UL)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestStep4dReadTheOptionalAttributeUserActiveModeTriggerInstructionInAttributeList_12() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterICDManagement alloc] initWithDevice:device endpointID:@(0) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { + if (err != nil) { + NSLog(@"Step 4d: Read the optional attribute(UserActiveModeTriggerInstruction) in AttributeList: Error: %@", err); + } else { + NSLog(@"Step 4d: Read the optional attribute(UserActiveModeTriggerInstruction) in AttributeList: Success"); + } + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("attributeList", "list", "list")); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 7UL)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestStep6aThReadsAcceptedCommandListAttributeFromDut_14() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55481,7 +55632,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep6bThReadsAcceptedCommandListAttributeFromDutIfIcdmsf00IsTrue_11() + CHIP_ERROR TestStep6bThReadsAcceptedCommandListAttributeFromDutIfIcdmsf00IsTrue_15() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55507,7 +55658,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep6cReadTheOptionalCommandStayActiveRequestInAttributeList_12() + CHIP_ERROR TestStep6cReadTheOptionalCommandStayActiveRequestInAttributeList_16() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55532,7 +55683,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep7ThReadsGeneratedCommandListAttributeFromDut_13() + CHIP_ERROR TestStep7ThReadsGeneratedCommandListAttributeFromDut_17() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55560,7 +55711,7 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep7ThReadsGeneratedCommandListAttributeFromDut_14() + CHIP_ERROR TestStep7ThReadsGeneratedCommandListAttributeFromDut_18() { MTRBaseDevice * device = GetDevice("alpha"); @@ -55584,6 +55735,31 @@ class Test_TC_ICDM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } + + CHIP_ERROR TestStep7ThReadsGeneratedCommandListAttributeFromDutTheListMayIncludeTheseOptionalEntries0x04ShallBeIncludedIfAndOnlyIfICDMSC04TxStayActiveResponse_19() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterICDManagement alloc] initWithDevice:device endpointID:@(0) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeGeneratedCommandListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { + if (err != nil) { + NSLog(@"Step 7: TH reads GeneratedCommandList attribute from DUT. The list MAY include these optional entries: 0x04: SHALL be included if and only if ICDM.S.C04.Tx(StayActiveResponse) : Error: %@", err); + } else { + NSLog(@"Step 7: TH reads GeneratedCommandList attribute from DUT. The list MAY include these optional entries: 0x04: SHALL be included if and only if ICDM.S.C04.Tx(StayActiveResponse) : Success"); + } + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("generatedCommandList", "list", "list")); + VerifyOrReturn(CheckConstraintContains("generatedCommandList", value, 4UL)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } }; class Test_TC_I_1_1 : public TestCommandBridge {