From 9ac40bff1229311c7a48c343b539256edb544937 Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Wed, 20 Sep 2023 12:50:09 +0530 Subject: [PATCH 01/13] Fix script issue: 649, 650, 651, 652, 653, 654, Modified tests: TC_ACL_2_10 TC_ACL_2_7 TC_ACL_2_8 TC_DGWIFI_3_2_Simulated TC_FLW_2_1 TC_LUNIT_3_1 TC_RH_2_1 TC_SC_4_1 Automated test: TC_RVCCLEANM_3_3 Semi-automated tests: TC_REFALM_2_1 Fixes issue: 29331 --- .../templates/tests/ciTests.json | 3 +- scripts/tests/chiptest/__init__.py | 1 + src/app/tests/suites/certification/PICS.yaml | 120 +----- .../certification/Test_TC_ACL_2_10.yaml | 12 +- .../certification/Test_TC_DGGEN_2_1.yaml | 47 ++- .../Test_TC_DGWIFI_3_2_Simulated.yaml | 2 +- .../suites/certification/Test_TC_FLW_2_1.yaml | 7 +- .../certification/Test_TC_LUNIT_3_1.yaml | 13 +- .../certification/Test_TC_REFALM_2_1.yaml | 76 ++-- .../suites/certification/Test_TC_RH_2_1.yaml | 2 +- .../certification/Test_TC_RVCCLEANM_3_3.yaml | 346 +++++++----------- .../suites/certification/Test_TC_SC_4_1.yaml | 9 +- .../certification/Test_TC_TCCM_1_1.yaml | 2 +- .../tests/suites/certification/ci-pics-values | 29 +- src/app/tests/suites/ciTests.json | 3 +- src/app/tests/suites/manualTests.json | 8 +- 16 files changed, 236 insertions(+), 444 deletions(-) diff --git a/examples/darwin-framework-tool/templates/tests/ciTests.json b/examples/darwin-framework-tool/templates/tests/ciTests.json index 3d53b4ac173568..b370831d5a126d 100644 --- a/examples/darwin-framework-tool/templates/tests/ciTests.json +++ b/examples/darwin-framework-tool/templates/tests/ciTests.json @@ -53,6 +53,7 @@ "Test_AddNewFabricFromExistingFabric", "Disabled because darwin-framework-tool does not support EqualityCommands pseudo-cluster", "Test_TC_TCCM_3_1", - "Test_TC_TCTL_2_1" + "Test_TC_TCTL_2_1", + "Test_TC_RVCCLEANM_3_3" ] } diff --git a/scripts/tests/chiptest/__init__.py b/scripts/tests/chiptest/__init__.py index 3bee9a23d046a0..457ebb1d969c91 100644 --- a/scripts/tests/chiptest/__init__.py +++ b/scripts/tests/chiptest/__init__.py @@ -195,6 +195,7 @@ def _GetChipReplUnsupportedTests() -> Set[str]: "TestClusterMultiFabric.yaml", "Test_TC_ACL_2_5.yaml", # chip-repl does not support LastReceivedEventNumber : https://github.com/project-chip/connectedhomeip/issues/28884 "Test_TC_ACL_2_6.yaml", # chip-repl does not support LastReceivedEventNumber : https://github.com/project-chip/connectedhomeip/issues/28884 + "Test_TC_RVCCLEANM_3_3.yaml", # chip-repl does not support EqualityCommands pseudo-cluster } diff --git a/src/app/tests/suites/certification/PICS.yaml b/src/app/tests/suites/certification/PICS.yaml index 646a9aaaa47043..db68712796d160 100644 --- a/src/app/tests/suites/certification/PICS.yaml +++ b/src/app/tests/suites/certification/PICS.yaml @@ -7156,51 +7156,13 @@ PICS: # server / manually # - label: "Does the device support the TemperatureUnit Fahrenheit ?" - id: LUNIT.TempUnit.Fahrenheit + id: LUNIT.S.M.Fahrenheit - label: "Does the device support the TemperatureUnit Celsius ?" - id: LUNIT.TempUnit.Celsius + id: LUNIT.S.M.Celsius - label: "Does the device support the TemperatureUnit Kelvin ?" - id: LUNIT.TempUnit.Kelvin - - # - # client / attributes - # - - label: - "Does the DUT(client) have access privileges for the TemperatureUnit - attribute implemented on the server ?" - id: LUNIT.C.A0000 - - - label: - "Does the DUT(client) have access privileges for the (0xFFF8) - GeneratedCommandList attribute implemented on the server ?" - id: LUNIT.C.Afff8 - - - label: - "Does the DUT(client) have access privileges for the (0xFFF9) - AcceptedCommandList attribute implemented on the server ?" - id: LUNIT.C.Afff9 - - - label: - "Does the DUT(client) have access privileges for the (0xFFFA) - EventList attribute implemented on the server ?" - id: LUNIT.C.Afffa - - - label: - "Does the DUT(client) have access privileges for the (0xFFFB) - AttributeList attribute implemented on the server ?" - id: LUNIT.C.Afffb - - - label: - "Does the DUT(client) have access privileges for the (0xFFFC) - FeatureMap attribute implemented on the server ?" - id: LUNIT.C.Afffc - - - label: - "Does the DUT(client) have access privileges for the (0xFFFD) - ClusterRevision attribute implemented on the server ?" - id: LUNIT.C.Afffd + id: LUNIT.S.M.Kelvin # User Label Cluster Test Plan - label: "Does the device implement the User Label cluster as a server?" @@ -7342,74 +7304,6 @@ PICS: of packets on the ethernet interface." id: DGWIFI.S.F01 - # - # client / attributes - # - - label: - "Does the DUT(client) have access privileges for the BSSID attribute - implemented on the server?" - id: DGWIFI.C.A0000 - - - label: - "Does the DUT(client) have access privileges for the SecurityType - attribute implemented on the server?" - id: DGWIFI.C.A0001 - - - label: - "Does the DUT(client) have access privileges for the WiFiVersion - attribute implemented on the server?" - id: DGWIFI.C.A0002 - - - label: - "Does the DUT(client) have access privileges for the ChannelNumber - attribute implemented on the server?" - id: DGWIFI.C.A0003 - - - label: - "Does the DUT(client) have access privileges for the RSSI attribute - implemented on the server?" - id: DGWIFI.C.A0004 - - - label: - "Does the DUT(client) have access privileges for the BeaconLostCount - attribute implemented on the server?" - id: DGWIFI.C.A0005 - - - label: - "Does the DUT(client) have access privileges for the BeaconRxCount - attribute implemented on the server?" - id: DGWIFI.C.A0006 - - - label: - "Does the DUT(client) have access privileges for the - PacketMulticastRxCount attribute implemented on the server?" - id: DGWIFI.C.A0007 - - - label: - "Does the DUT(client) have access privileges for the - PacketMulticastTxCount attribute implemented on the server?" - id: DGWIFI.C.A0008 - - - label: - "Does the DUT(client) have access privileges for the - PacketUnicastRxCount attribute implemented on the server?" - id: DGWIFI.C.A0009 - - - label: - "Does the DUT(client) have access privileges for the - PacketUnicastTxCount attribute implemented on the server?" - id: DGWIFI.C.A000a - - - label: - "Does the DUT(client) have access privileges for the CurrentMaxRate - attribute implemented on the server?" - id: DGWIFI.C.A000b - - - label: - "Does the DUT(client) have access privileges for the OverrunCount - attribute implemented on the server?" - id: DGWIFI.C.A000c - # # client / commandsGenerated # @@ -7417,13 +7311,7 @@ PICS: "Reset the following attributes to 0; BeaconLostCount, BeaconRxCount, PacketMulticastRxCount, PacketMulticastTxCount, PacketUnicastRxCount, PacketUnicastTxCount" - id: DGWIFI.C.C00.Tx - - # - # client / manually - # - - label: "" - id: DGWIFI.C.A + id: DGWIFI.S.C00.Tx # Window Covering Cluster Test Plan - label: diff --git a/src/app/tests/suites/certification/Test_TC_ACL_2_10.yaml b/src/app/tests/suites/certification/Test_TC_ACL_2_10.yaml index baa544bca18818..2dac5acd518d17 100644 --- a/src/app/tests/suites/certification/Test_TC_ACL_2_10.yaml +++ b/src/app/tests/suites/certification/Test_TC_ACL_2_10.yaml @@ -457,11 +457,11 @@ tests: value: "y" - label: - "Step 10:TH1 writes DUT Endpoint 0 AccessControl cluster ACL attribute" + "Step 10:TH1 reads DUT Endpoint 0 AccessControl cluster ACL attribute" PICS: ACL.S.A0000 - command: "writeAttribute" + command: "readAttribute" attribute: "ACL" - arguments: + response: value: [ { @@ -639,11 +639,11 @@ tests: value: "y" - label: - "Step 16:TH1 writes DUT Endpoint 0 AccessControl cluster ACL attribute" + "Step 16:TH1 reads DUT Endpoint 0 AccessControl cluster ACL attribute" PICS: ACL.S.A0000 - command: "writeAttribute" + command: "readAttribute" attribute: "ACL" - arguments: + response: value: [ { diff --git a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml index 22a222055e689f..5234392577b4b1 100644 --- a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml @@ -47,7 +47,14 @@ tests: - label: "Step 1a: Reset Devices to factory defaults" PICS: PICS_USER_PROMPT verification: | - Reset Devices to factory defaults + To perform Factory reset on DUT(all-clusters-app) follow the below step in RPI platform , Pls use equivalent command on the respective platform + sudo rm -rf /tmp/chip_* + + execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT + + step-1: create a file using touch command , something like touch mytest.txt + step-2: chmod 777 mytest.txt + step-3: launch the app ./chip-all-clusters-app --KVS ./mytest.txt cluster: "LogCommands" command: "UserPrompt" arguments: @@ -57,7 +64,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Step 1b: Wait for the commissioned device to be retrieved" + - label: "Step 1b: Recommission the DUT after a factory reset" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -84,7 +91,9 @@ tests: - label: "Step 2b: Reboot target device(DUT)" PICS: PICS_USER_PROMPT verification: | - Did the DUT successfully reboot? + execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT + + After reboot launch the app ./chip-all-clusters-app --KVS ./mytest.txt cluster: "LogCommands" command: "UserPrompt" arguments: @@ -94,7 +103,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Wait for the commissioned device to be retrieved" + - label: "Recommission the DUT after a reboot" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -220,7 +229,9 @@ tests: - label: "Step 4c:Reboot target device(DUT)" PICS: PICS_USER_PROMPT verification: | - Did the DUT successfully reboot? + execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT + + After reboot launch the app ./chip-all-clusters-app --KVS ./mytest.txt cluster: "LogCommands" command: "UserPrompt" arguments: @@ -230,7 +241,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Wait for the commissioned device to be retrieved" + - label: "Recommission the DUT after a reboot" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -258,7 +269,9 @@ tests: - label: "Step 5a: Reboot target device(DUT)" PICS: PICS_USER_PROMPT verification: | - Did the DUT successfully reboot? + execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT + + After reboot launch the app ./chip-all-clusters-app --KVS ./mytest.txt cluster: "LogCommands" command: "UserPrompt" arguments: @@ -268,7 +281,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Wait for the commissioned device to be retrieved" + - label: "Recommission the DUT after a reboot" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -426,7 +439,15 @@ tests: - label: "Step 10b: Reset Devices to factory defaults" PICS: PICS_USER_PROMPT verification: | - Reset Devices to factory defaults + To perform Factory reset on DUT(all-clusters-app) follow the below step in RPI platform , Pls use equivalent command on the respective platform + + sudo rm -rf /tmp/chip_* + + execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT + + step-1: create a file using touch command , something like touch mytest.txt + step-2: chmod 777 mytest.txt + step-3: launch the app ./chip-all-clusters-app --KVS ./mytest.txt cluster: "LogCommands" command: "UserPrompt" arguments: @@ -436,7 +457,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Wait for the commissioned device to be retrieved" + - label: "Step 10b: Recommission the DUT after a factory reset" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -483,7 +504,9 @@ tests: - label: "Step 10d: Reboot target device(DUT)" PICS: PICS_USER_PROMPT verification: | - Did the DUT successfully reboot? + execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT + + After reboot launch the app ./chip-all-clusters-app --KVS ./mytest.txt cluster: "LogCommands" command: "UserPrompt" arguments: @@ -493,7 +516,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Wait for the commissioned device to be retrieved" + - label: "Recommission the DUT after a reboot" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2_Simulated.yaml index bc14534503a9c1..905d7f1b03f3ad 100644 --- a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2_Simulated.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2_Simulated.yaml @@ -28,5 +28,5 @@ tests: # command: "WaitForCommissioning" - label: "DUT sends ResetCounts command to TH" - PICS: DGTHREAD.C.C00.Tx + PICS: DGWIFI.S.C00.Tx wait: "ResetCounts" diff --git a/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml b/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml index 8e5b360a93592c..621cdadeb56c17 100644 --- a/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml @@ -42,19 +42,20 @@ tests: minValue: 0 maxValue: 65533 + #Skipping in CI due to SDK issue: https://github.com/project-chip/connectedhomeip/issues/27543 - label: "Step 3: Read the mandatory attribute: MaxMeasuredValue" - PICS: FLW.S.A0002 + PICS: FLW.S.A0002 && PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "MaxMeasuredValue" response: saveAs: MaxMeasuredVariable constraints: type: int16u - minValue: MinMeasuredVariable + minValue: MinMeasuredVariable + 1 maxValue: 65534 - label: "Step 4: Read the mandatory attribute: MeasuredValue" - PICS: FLW.S.A0000 + PICS: FLW.S.A0000 && PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "MeasuredValue" response: diff --git a/src/app/tests/suites/certification/Test_TC_LUNIT_3_1.yaml b/src/app/tests/suites/certification/Test_TC_LUNIT_3_1.yaml index 6075e7897f4d27..316518847aee6a 100644 --- a/src/app/tests/suites/certification/Test_TC_LUNIT_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LUNIT_3_1.yaml @@ -11,7 +11,6 @@ # 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: 105.3.1. [TC-LUNIT-3.1] Read and Write Unit Localization Cluster Attributes @@ -43,7 +42,7 @@ tests: type: enum8 - label: "Step 2: TH writes 0 (Fahrenheit) to TemperatureUnit attribute" - PICS: LUNIT.S.A0000 && LUNIT.TempUnit.Fahrenheit + PICS: LUNIT.S.A0000 && LUNIT.S.M.Fahrenheit cluster: "Unit Localization" command: "writeAttribute" attribute: "TemperatureUnit" @@ -51,14 +50,14 @@ tests: value: 0 - label: "Step 3: TH reads TemperatureUnit attribute" - PICS: LUNIT.S.A0000 && LUNIT.TempUnit.Fahrenheit + PICS: LUNIT.S.A0000 && LUNIT.S.M.Fahrenheit command: "readAttribute" attribute: "TemperatureUnit" response: value: 0 - label: "Step 4: TH writes 1 (Celsius) to TemperatureUnit attribute" - PICS: LUNIT.S.A0000 && LUNIT.TempUnit.Celsius + PICS: LUNIT.S.A0000 && LUNIT.S.M.Celsius cluster: "Unit Localization" command: "writeAttribute" attribute: "TemperatureUnit" @@ -66,14 +65,14 @@ tests: value: 1 - label: "Step 5: TH reads TemperatureUnit attribute" - PICS: LUNIT.S.A0000 && LUNIT.TempUnit.Celsius + PICS: LUNIT.S.A0000 && LUNIT.S.M.Celsius command: "readAttribute" attribute: "TemperatureUnit" response: value: 1 - label: "Step 6: TH writes 2 (Kelvin) to TemperatureUnit attribute" - PICS: LUNIT.S.A0000 && LUNIT.TempUnit.Kelvin + PICS: LUNIT.S.A0000 && LUNIT.S.M.Kelvin cluster: "Unit Localization" command: "writeAttribute" attribute: "TemperatureUnit" @@ -81,7 +80,7 @@ tests: value: 2 - label: "Step 7: TH reads TemperatureUnit attribute" - PICS: LUNIT.S.A0000 && LUNIT.TempUnit.Kelvin + PICS: LUNIT.S.A0000 && LUNIT.S.M.Kelvin command: "readAttribute" attribute: "TemperatureUnit" response: diff --git a/src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml b/src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml index f254239933333e..3b46870a94654c 100644 --- a/src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml @@ -11,7 +11,6 @@ # 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: 223.2.1. [TC-REFALM-2.1] Attributes with DUT as Server @@ -20,57 +19,56 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" - endpoint: 0 + cluster: "Refrigerator Alarm" + endpoint: 1 tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)" - verification: | - - disabled: true + - label: "Step 1: Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId - label: "Step 2: Ensure that the door alarm is not locally suppressed and the door is closed" verification: | - - disabled: true + Ensure that the door alarm is not locally suppressed and the door is closed + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_SKIP_SAMPLE_APP + arguments: + values: + - name: "message" + value: "Enter 'y' after success" + - name: "expectedValue" + value: "y" - label: "Step 3: TH reads from the DUT the Mask attribute" PICS: REFALM.S.A0000 - verification: | - ./chip-tool refrigeratoralarm read mask 1 1 - On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1. - [1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772 - [1688447677.833165][4229:4231] CHIP:TOO: Mask: 1 - [1688447677.833494][4229:4231] CHIP:EM: <<< [E:27636i S:5449 M:199797248 (Ack:151091416)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck) - disabled: true + command: "readAttribute" + attribute: "Mask" + response: + constraints: + type: bitmap32 + hasMasksSet: [0x1] - label: "Step 4: TH reads from the DUT the State attribute" PICS: REFALM.S.A0002 - verification: | - ./chip-tool refrigeratoralarm read state 1 1 - On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0. - - [1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772 - [1688447820.603415][4247:4249] CHIP:TOO: State: 0 - [1688447820.603708][4247:4249] CHIP:EM: <<< [E:2198i S:4260 M:156565261 (Ack:46517349)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck) - disabled: true + command: "readAttribute" + attribute: "State" + response: + constraints: + type: bitmap32 + hasMasksClear: [0x1] - label: "Step 5: TH reads from the DUT the Supported attribute" PICS: REFALM.S.A0003 - verification: | - ./chip-tool refrigeratoralarm read supported 1 1 - On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1. - - [1689677642.708638][18413:18415] CHIP:DMG: SuppressResponse = true, - [1689677642.708645][18413:18415] CHIP:DMG: InteractionModelRevision = 1 - [1689677642.708651][18413:18415] CHIP:DMG: } - [1689677642.708726][18413:18415] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0003 DataVersion: 1517282962 - [1689677642.708773][18413:18415] CHIP:TOO: Supported: 1 - [1689677642.708845][18413:18415] CHIP:EM: <<< [E:32432i S:53289 M:29829407 (Ack:142651059)] (S) Msg TX to 1:0000000000000001 [BFDE] --- Type 0000:10 (SecureChannel:StandaloneAck) - [1689677642.708859][18413:18415] CHIP:IN: (S) Sending msg 29829407 on secure session with LSID: 53289 - [1689677642.708900][18413:18415] CHIP:EM: Flushed pending ack for MessageCounter:142651059 on exchange 32432i - disabled: true + command: "readAttribute" + attribute: "Supported" + response: + constraints: + type: bitmap32 + hasMasksSet: [0x1] diff --git a/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml b/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml index 52fb1470313d36..5e6ac9becd140c 100644 --- a/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml @@ -50,7 +50,7 @@ tests: saveAs: CurrentMaxMeasured constraints: type: int16u - minValue: CurrentMinMeasured + minValue: CurrentMinMeasured + 1 maxValue: 10000 - label: "Step 4: TH reads the MeasuredValue attribute from the DUT" diff --git a/src/app/tests/suites/certification/Test_TC_RVCCLEANM_3_3.yaml b/src/app/tests/suites/certification/Test_TC_RVCCLEANM_3_3.yaml index 3a50dca22d51a7..dfef361c8b8bae 100644 --- a/src/app/tests/suites/certification/Test_TC_RVCCLEANM_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_RVCCLEANM_3_3.yaml @@ -11,278 +11,178 @@ # 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: 92.4.3. [TC-RVCCLEANM-3.3] On Mode and Startup Mode functionality with DUT as Server PICS: - - RVCCLEANM.S + - RVCCLEANM.S.A0002 + - RVCCLEANM.S.A0003 + - RVCCLEANM.S.F00 config: nodeId: 0x12344321 - cluster: "Basic Information" - endpoint: 0 + cluster: "RVC Clean Mode" + endpoint: 1 + new_start_up_mode_th: + type: int8u + defaultValue: 0 + new_mode_th: + type: int8u + defaultValue: 1 tests: - - label: "Precondition" - verification: | - This test case is verified after the device is provisioned. Pls provision device first, Pass appropriate nodeID in the below command - disabled: true - - - label: "Note" - verification: | - To Execute the TC-RVCCLEANM-3.3 test case using reboot in raspi device we followed the below suggested way: - - To run a reboot test case on raspi, run the app with --KVS flag with a file in local directory and pass that file to the command to launch the app. Steps - - step-1: create a file using touch command , something like touch mytest.txt - step-2: chmod 777 mytest.txt - step-3: launch the app ./chip-all-clusters-app --KVS ./mytest.txt - - if you launch the app with the above commands and provision the app, even when you reboot the app with 'sudo reboot' , next time you launch the app with 'sudo ./out/all-clusters-app/chip-all-clusters-app --KVS ./mytest.txt' , you can run read/write attribs and commands without reprovisioning the device. - disabled: true - - label: "Step 1: Commission DUT to TH (can be skipped if done in a preceding test)." - verification: | - - disabled: true + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId - label: "Step 2: TH reads from the DUT the StartUpMode attribute." PICS: RVCCLEANM.S.A0002 - verification: | - ./chip-tool rvcrunmode read start-up-mode 1 1 + command: "readAttribute" + attribute: "StartUpMode" + response: + saveAs: startup_mode_dut + constraints: + type: int8u + minValue: 0 + maxValue: 254 - On TH(chip-tool), Verify that StartUpMode attribute value is an integer or Null - - Save the value as startup_mode_dut, below is the sample log provided for the raspi platform, Here StartUpMode attribute value is null - - NOTE: if startup_mode_dut is null proceed to step 3. Else save startup_mode_dut as new_start_up_mode_th and proceed to step 5. - - [1690546417.725863][3168:3170] CHIP:DMG: } - [1690546417.726042][3168:3170] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0054 Attribute 0x0000_0002 DataVersion: 3746592465 - [1690546417.726109][3168:3170] CHIP:TOO: StartUpMode: null - disabled: true + - label: + "If startup_mode_dut is null proceed to step 3. Else save + startup_mode_dut as new_start_up_mode_th and proceed to step 5." + PICS: RVCCLEANM.S.A0002 + cluster: "EqualityCommands" + command: "UnsignedNumberEquals" + arguments: + values: + - name: "Value1" + value: startup_mode_dut + - name: "Value2" + value: null + response: + - values: + - name: "Equals" + saveAs: IsExpectedValue - label: "Step 3: TH reads from the DUT the SupportedModes attribute." + runIf: IsExpectedValue PICS: RVCCLEANM.S.A0000 - verification: | - ./chip-tool rvccleanmode read supported-modes 1 1 - - On TH(chip-tool) log, Verify DUT response contains a list of ModeOptionsStruct entries - - Verify that the list has two or more entries - - Save the Mode field values as supported_modes_dut - - Select a value from supported_modes_dut and save the value as new_start_up_mode_th, below is the sample log provided for the raspi platform: - - [1690184020.818299][15321:15323] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0000 DataVersion: 3807724300 - [1690184020.818324][15321:15323] CHIP:TOO: SupportedModes: 3 entries - [1690184020.818332][15321:15323] CHIP:TOO: [1]: { - [1690184020.818336][15321:15323] CHIP:TOO: Label: Vacuum - [1690184020.818341][15321:15323] CHIP:TOO: Mode: 0 - [1690184020.818345][15321:15323] CHIP:TOO: ModeTags: 1 entries - [1690184020.818351][15321:15323] CHIP:TOO: [1]: { - [1690184020.818354][15321:15323] CHIP:TOO: Value: 16385 - [1690184020.818357][15321:15323] CHIP:TOO: } - [1690184020.818360][15321:15323] CHIP:TOO: } - [1690184020.818365][15321:15323] CHIP:TOO: [2]: { - [1690184020.818368][15321:15323] CHIP:TOO: Label: Wash - [1690184020.818370][15321:15323] CHIP:TOO: Mode: 1 - [1690184020.818372][15321:15323] CHIP:TOO: ModeTags: 1 entries - [1690184020.818376][15321:15323] CHIP:TOO: [1]: { - [1690184020.818379][15321:15323] CHIP:TOO: Value: 16386 - [1690184020.818381][15321:15323] CHIP:TOO: } - [1690184020.818384][15321:15323] CHIP:TOO: } - [1690184020.818389][15321:15323] CHIP:TOO: [3]: { - [1690184020.818392][15321:15323] CHIP:TOO: Label: Deep clean - [1690184020.818394][15321:15323] CHIP:TOO: Mode: 2 - [1690184020.818398][15321:15323] CHIP:TOO: ModeTags: 2 entries - [1690184020.818402][15321:15323] CHIP:TOO: [1]: { - [1690184020.818404][15321:15323] CHIP:TOO: Value: 7 - [1690184020.818407][15321:15323] CHIP:TOO: } - [1690184020.818410][15321:15323] CHIP:TOO: [2]: { - [1690184020.818412][15321:15323] CHIP:TOO: Value: 16384 - [1690184020.818415][15321:15323] CHIP:TOO: } - [1690184020.818418][15321:15323] CHIP:TOO: } - disabled: true + command: "readAttribute" + attribute: "SupportedModes" + response: + constraints: + type: list + minLength: 2 - label: "Step 4: TH writes to the DUT the StartUpMode attribute with the new_start_up_mode_th value" PICS: RVCCLEANM.S.A0002 - verification: | - ./chip-tool rvcrunmode write start-up-mode 0 1 1 - - On TH(chip-tool) log, Verify that DUT responds with a successful (value 0x00) status response and below is the sample log provided for the raspi platform: - - 1690183885.227143][15298:15300] CHIP:DMG: StatusIB = - [1690183885.227148][15298:15300] CHIP:DMG: { - [1690183885.227152][15298:15300] CHIP:DMG: status = 0x00 (SUCCESS), - [1690183885.227156][15298:15300] CHIP:DMG: }, - - ./chip-tool rvcrunmode read start-up-mode 1 1 - - On TH(chip-tool), Verify that StartUpMode attribute value is 0 and below is the sample log provided for the raspi platform - - [1692178796.077748][3730:3732] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0054 Attribute 0x0000_0002 DataVersion: 1431406600 - [1692178796.077821][3730:3732] CHIP:TOO: StartUpMode: 0 - disabled: true + runIf: IsExpectedValue + command: "writeAttribute" + attribute: "StartUpMode" + arguments: + value: new_start_up_mode_th - label: "Step 5: TH reads from the DUT the OnMode attribute." - PICS: RVCCLEANM.S.A0003 && RVCCLEANM.S.A0002 - verification: | - As default value of OnMode attribute is NULL. Set the OnMode to any mode value listed in the SupportedModes entries. - - ./chip-tool rvccleanmode write on-mode 0 1 1 + PICS: RVCCLEANM.S.A0002 && RVCCLEANM.S.A0003 + command: "readAttribute" + attribute: "OnMode" + response: + saveAs: old_on_mode_dut - On TH(chip-tool) log, Verify DUT responds with a successful (value 0x00) status response and below is the sample log provided for the raspi platform: - - [1690184081.114871][15327:15329] CHIP:DMG: StatusIB = - [1690184081.114874][15327:15329] CHIP:DMG: { - [1690184081.114877][15327:15329] CHIP:DMG: status = 0x00 (SUCCESS), - [1690184081.114879][15327:15329] CHIP:DMG: }, - [1690184081.114883][15327:15329] CHIP:DMG: - - ./chip-tool rvccleanmode read on-mode 1 1 - - On TH(chip-tool), Verify that OnMode attribute value is an integer - - Save the value as old_on_mode_dut, below is the sample log provided for the raspi platform, here OnMode attribute value is 0 - - NOTE: If startup_mode_dut is equal to old_on_mode_dut proceed to step 6. Else proceed to step 8. - - [1690184107.425807][15339:15341] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0003 DataVersion: 3807724302 - [1690184107.425849][15339:15341] CHIP:TOO: OnMode: 0 - disabled: true + - label: + "If startup_mode_dut is equal to old_on_mode_dut proceed to step 6. + Else proceed to step 8." + PICS: RVCCLEANM.S.A0002 && RVCCLEANM.S.A0003 + cluster: "EqualityCommands" + command: "UnsignedNumberEquals" + arguments: + values: + - name: "Value1" + value: startup_mode_dut + - name: "Value2" + value: old_on_mode_dut + response: + - values: + - name: "Equals" + saveAs: Step5IsExpectedValue - label: "Step 6: TH reads from the DUT the SupportedModes attribute." + runIf: Step5IsExpectedValue PICS: RVCCLEANM.S.A0000 && RVCCLEANM.S.A0002 - verification: | - ./chip-tool rvccleanmode read supported-modes 1 1 - - On TH(chip-tool) log, Verify DUT response contains a list of ModeOptionsStruct entries - - Verify that the list has two or more entries - - Save the Mode field values as supported_modes_dut - - Select a value from supported_modes_dut different from startup_mode_dut. Save the value as new_mode_th, below is the sample log provided for the raspi platform: - - [1690184020.818299][15321:15323] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0000 DataVersion: 3807724300 - [1690184020.818324][15321:15323] CHIP:TOO: SupportedModes: 3 entries - [1690184020.818332][15321:15323] CHIP:TOO: [1]: { - [1690184020.818336][15321:15323] CHIP:TOO: Label: Vacuum - [1690184020.818341][15321:15323] CHIP:TOO: Mode: 0 - [1690184020.818345][15321:15323] CHIP:TOO: ModeTags: 1 entries - [1690184020.818351][15321:15323] CHIP:TOO: [1]: { - [1690184020.818354][15321:15323] CHIP:TOO: Value: 16385 - [1690184020.818357][15321:15323] CHIP:TOO: } - [1690184020.818360][15321:15323] CHIP:TOO: } - [1690184020.818365][15321:15323] CHIP:TOO: [2]: { - [1690184020.818368][15321:15323] CHIP:TOO: Label: Wash - [1690184020.818370][15321:15323] CHIP:TOO: Mode: 1 - [1690184020.818372][15321:15323] CHIP:TOO: ModeTags: 1 entries - [1690184020.818376][15321:15323] CHIP:TOO: [1]: { - [1690184020.818379][15321:15323] CHIP:TOO: Value: 16386 - [1690184020.818381][15321:15323] CHIP:TOO: } - [1690184020.818384][15321:15323] CHIP:TOO: } - [1690184020.818389][15321:15323] CHIP:TOO: [3]: { - [1690184020.818392][15321:15323] CHIP:TOO: Label: Deep clean - [1690184020.818394][15321:15323] CHIP:TOO: Mode: 2 - [1690184020.818398][15321:15323] CHIP:TOO: ModeTags: 2 entries - [1690184020.818402][15321:15323] CHIP:TOO: [1]: { - [1690184020.818404][15321:15323] CHIP:TOO: Value: 7 - [1690184020.818407][15321:15323] CHIP:TOO: } - [1690184020.818410][15321:15323] CHIP:TOO: [2]: { - [1690184020.818412][15321:15323] CHIP:TOO: Value: 16384 - [1690184020.818415][15321:15323] CHIP:TOO: } - [1690184020.818418][15321:15323] CHIP:TOO: } - disabled: true + command: "readAttribute" + attribute: "SupportedModes" + response: + constraints: + type: list + minLength: 2 - label: "Step 7: TH writes to the DUT the OnMode attribute with the new_mode_th value" + runIf: Step5IsExpectedValue PICS: RVCCLEANM.S.A0003 - verification: | - ./chip-tool rvccleanmode write on-mode 1 1 1 - - On TH(chip-tool) log, Verify DUT responds with a successful (value 0x00) status response and below is the sample log provided for the raspi platform: - - [1690184081.114871][15327:15329] CHIP:DMG: StatusIB = - [1690184081.114874][15327:15329] CHIP:DMG: { - [1690184081.114877][15327:15329] CHIP:DMG: status = 0x00 (SUCCESS), - [1690184081.114879][15327:15329] CHIP:DMG: }, - [1690184081.114883][15327:15329] CHIP:DMG: - disabled: true + command: "writeAttribute" + attribute: "OnMode" + arguments: + value: new_mode_th - label: "Step 8: TH reads from the DUT the OnMode attribute." PICS: RVCCLEANM.S.A0003 && RVCCLEANM.S.F00 - verification: | - ./chip-tool rvccleanmode read on-mode 1 1 - - On TH(chip-tool), Verify that OnMode attribute value is an integer value - - Save the value as new_on_mode_dut and is equal to new_mode_th, below is the sample log provided for the raspi platform, Here OnMode attribute value is 1 - - [1690184107.425807][15339:15341] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0003 DataVersion: 3807724302 - [1690184107.425849][15339:15341] CHIP:TOO: OnMode: 1 - disabled: true + command: "readAttribute" + attribute: "OnMode" + response: + saveAs: new_on_mode_dut - label: "Step 9: TH writes to the DUT the StartUpOnOff attribute with the value 1." PICS: OO.S.A4003 - verification: | - ./chip-tool onoff write start-up-on-off 1 1 1 + cluster: "On/Off" + command: "writeAttribute" + attribute: "StartUpOnOff" + arguments: + value: 1 - On TH(chip-tool) log, Verify DUT responds with a successful (value 0x00) status response and below is the sample log provided for the raspi platform: - - [1651101661959] [90832:7598169] CHIP: [DMG] WriteResponseMessage = - [1651101661959] [90832:7598169] CHIP: [DMG] { - [1651101661959] [90832:7598169] CHIP: [DMG] AttributeStatusIBs = - [1651101661959] [90832:7598169] CHIP: [DMG] [ - [1651101661959] [90832:7598169] CHIP: [DMG] AttributeStatusIB = - [1651101661959] [90832:7598169] CHIP: [DMG] { - [1651101661960] [90832:7598169] CHIP: [DMG] AttributePathIB = - [1651101661960] [90832:7598169] CHIP: [DMG] { - [1651101661960] [90832:7598169] CHIP: [DMG] Endpoint = 0x1, - [1651101661960] [90832:7598169] CHIP: [DMG] Cluster = 0x6, - [1651101661960] [90832:7598169] CHIP: [DMG] Attribute = 0x0000_4003, - [1651101661960] [90832:7598169] CHIP: [DMG] } - [1651101661960] [90832:7598169] CHIP: [DMG] - [1651101661960] [90832:7598169] CHIP: [DMG] StatusIB = - [1651101661960] [90832:7598169] CHIP: [DMG] { - [1651101661960] [90832:7598169] CHIP: [DMG] status = 0x00 (SUCCESS), - [1651101661960] [90832:7598169] CHIP: [DMG] }, - [1651101661960] [90832:7598169] CHIP: [DMG] - [1651101661960] [90832:7598169] CHIP: [DMG] }, - [1651101661960] [90832:7598169] CHIP: [DMG] - [1651101661960] [90832:7598169] CHIP: [DMG] ], - [1651101661960] [90832:7598169] CHIP: [DMG] - [1651101661960] [90832:7598169] CHIP: [DMG] InteractionModelRevision = 1 - [1651101661960] [90832:7598169] CHIP: [DMG] } - disabled: true - - - label: "Step 10: Physically power cycle the device" + - label: "Step 10: Physically power cycle the device." verification: | Physically power cycle the device. - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" + + - label: "Recommission after physically power cycle of the device." + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId - label: "Step 11: TH reads from the DUT the StartUpMode attribute." - PICS: RVCCLEANM.S.A0002 - verification: | - ./chip-tool rvcrunmode read start-up-mode 1 1 - - On TH(chip-tool), Verify that StartUpMode attribute value is an integer and is equal to new_start_up_mode_th, below is the sample log provided for the raspi platform, Here StartUpMode attribute value is 0 - - [1690546417.725863][3168:3170] CHIP:DMG: } - [1690546417.726042][3168:3170] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0054 Attribute 0x0000_0002 DataVersion: 3746592465 - [1690546417.726109][3168:3170] CHIP:TOO: StartUpMode: 0 - disabled: true + PICS: RVCCLEANM.S.A0002 && PICS_USER_PROMPT + command: "readAttribute" + attribute: "StartUpMode" + response: + value: new_start_up_mode_th - label: "Step 12: TH reads from the DUT the CurrentMode attribute." - PICS: RVCCLEANM.S.A0001 - verification: | - ./chip-tool rvccleanmode read current-mode 1 1 - - On TH(chip-tool), Verify that CurrentMode attribute value is an integer value and is equal to new_on_mode_dut, below is the sample log provided for the raspi platform, Here CurrentMode attribute value is 1 - - [1690551030.852196][219235:219237] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0001 DataVersion: 2491081179 - [1690551030.852224][219235:219237] CHIP:TOO: CurrentMode: 1 - disabled: true + PICS: RVCCLEANM.S.A0001 && PICS_USER_PROMPT + command: "readAttribute" + attribute: "CurrentMode" + response: + value: new_on_mode_dut diff --git a/src/app/tests/suites/certification/Test_TC_SC_4_1.yaml b/src/app/tests/suites/certification/Test_TC_SC_4_1.yaml index 14583bde4cdf79..fe353a9ffa7801 100644 --- a/src/app/tests/suites/certification/Test_TC_SC_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SC_4_1.yaml @@ -752,7 +752,10 @@ tests: verification: | Run the below open-commissioning-window in TH Terminal - ./chip-tool pairing open-commissioning-window 1 1 200 2000 3840 + The user needs to change this command to match the longDiscriminator override. + use the same discriminator as the longDiscriminator of the DUT. + + ./chip-tool pairing open-commissioning-window 1 1 200 2000 verify success on TH (Chip-tool) logs: @@ -1062,7 +1065,9 @@ tests: DUT should start to send Commissionable Node Discovery DNS-SD advertisements" verification: | - If the device supports Discovery for an extended period of time, the Device should continue to advertise. Use the avahi-browse command and you should see the _matterc._udp advertisement + If the device supports Extended Discovery, pass the PROMPT before the extended time period expires. + + the Device should continue to advertise. Use the avahi-browse command and you should see the _matterc._udp advertisement Reference Raspberrypi device is not supporting extended discovery. cluster: "LogCommands" diff --git a/src/app/tests/suites/certification/Test_TC_TCCM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TCCM_1_1.yaml index 41c94bc0ad274a..e0f6df2d917fb4 100644 --- a/src/app/tests/suites/certification/Test_TC_TCCM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TCCM_1_1.yaml @@ -75,7 +75,7 @@ tests: response: constraints: type: list - contains: [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533] + contains: [0, 1, 65528, 65529, 65531, 65532, 65533] - label: "Step 4b: TH reads from the DUT the AttributeList attribute. 0x0002: diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values index 509c37ed6fd293..63caa7841d3ccf 100644 --- a/src/app/tests/suites/certification/ci-pics-values +++ b/src/app/tests/suites/certification/ci-pics-values @@ -784,16 +784,9 @@ LUNIT.S=1 LUNIT.S.F00=1 LUNIT.S.A0000=1 -LUNIT.TempUnit.Fahrenheit=1 -LUNIT.TempUnit.Celsius=1 -LUNIT.TempUnit.Kelvin=1 -LUNIT.C.A0000=1 -LUNIT.C.Afff8=1 -LUNIT.C.Afff9=1 -LUNIT.C.Afffa=1 -LUNIT.C.Afffb=1 -LUNIT.C.Afffc=1 -LUNIT.C.Afffd=1 +LUNIT.S.M.Fahrenheit=1 +LUNIT.S.M.Celsius=1 +LUNIT.S.M.Kelvin=1 LUNIT.C=1 @@ -1148,21 +1141,7 @@ DGWIFI.S.A000b=1 DGWIFI.S.A000c=1 # Client DGWIFI.C=1 -DGWIFI.C.A=0 -DGWIFI.C.A0000=1 -DGWIFI.C.A0001=1 -DGWIFI.C.A0002=1 -DGWIFI.C.A0003=1 -DGWIFI.C.A0004=1 -DGWIFI.C.A0005=1 -DGWIFI.C.A0006=1 -DGWIFI.C.A0007=1 -DGWIFI.C.A0008=1 -DGWIFI.C.A0009=1 -DGWIFI.C.A000a=1 -DGWIFI.C.A000b=1 -DGWIFI.C.A000c=1 -DGWIFI.C.C00.Tx=0 +DGWIFI.S.C00.Tx=0 # Events DGWIFI.S.E00=1 DGWIFI.S.E01=1 diff --git a/src/app/tests/suites/ciTests.json b/src/app/tests/suites/ciTests.json index 1f2d48eae8f5d5..10e57244751b84 100644 --- a/src/app/tests/suites/ciTests.json +++ b/src/app/tests/suites/ciTests.json @@ -179,10 +179,11 @@ "Test_TC_PCC_2_4" ], "PowerSourceConfiguration": ["Test_TC_PSCFG_1_1", "Test_TC_PSCFG_2_1"], - "RefrigeratorAlarm": ["Test_TC_REFALM_1_1"], + "RefrigeratorAlarm": ["Test_TC_REFALM_1_1", "Test_TC_REFALM_2_1"], "RelativeHumidityMeasurement": ["Test_TC_RH_1_1", "Test_TC_RH_2_1"], "RoboticVacuumCleaner": [ "Test_TC_RVCCLEANM_1_1", + "Test_TC_RVCCLEANM_3_3", "Test_TC_RVCRUNM_1_1", "Test_TC_RVCOPSTATE_1_1" ], diff --git a/src/app/tests/suites/manualTests.json b/src/app/tests/suites/manualTests.json index b6a4f38f9c90d2..cb7978bd030f2f 100644 --- a/src/app/tests/suites/manualTests.json +++ b/src/app/tests/suites/manualTests.json @@ -269,12 +269,8 @@ "OperationalState": ["Test_TC_OPSTATE_2_2"], "RelativeHumidityMeasurement": ["Test_TC_RH_2_2"], "SmokeCOAlarm": [], - "RefrigeratorAlarm": [ - "Test_TC_REFALM_2_1", - "Test_TC_REFALM_2_2", - "Test_TC_REFALM_2_3" - ], - "RVCCleanMode": ["Test_TC_RVCCLEANM_3_3"], + "RefrigeratorAlarm": ["Test_TC_REFALM_2_2", "Test_TC_REFALM_2_3"], + "RVCCleanMode": [], "RVCOperationalState": ["Test_TC_RVCOPSTATE_2_2"], "RVCRunMode": ["Test_TC_RVCRUNM_3_3"], "TemperatureControlledCabinetMode": [ From 8948f292e1f13b14e46623880faa55f02dd030a1 Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Wed, 20 Sep 2023 12:50:21 +0530 Subject: [PATCH 02/13] Auto generated files --- .../zap-generated/test/Commands.h | 219 +++++++++++++++++- .../app1/zap-generated/test/Commands.h | 2 +- .../app2/zap-generated/test/Commands.h | 2 +- 3 files changed, 209 insertions(+), 14 deletions(-) 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 86364eaf8b3ff3..5c71dc48b4543e 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -196,6 +196,7 @@ class TestList : public Command { printf("Test_TC_PCC_2_3\n"); printf("Test_TC_PCC_2_4\n"); printf("Test_TC_REFALM_1_1\n"); + printf("Test_TC_REFALM_2_1\n"); printf("Test_TC_RH_1_1\n"); printf("Test_TC_RH_2_1\n"); printf("Test_TC_RVCCLEANM_1_1\n"); @@ -46078,7 +46079,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: Read the mandatory attribute: MaxMeasuredValue\n"); - if (ShouldSkip("FLW.S.A0002")) { + if (ShouldSkip("FLW.S.A0002 && PICS_SKIP_SAMPLE_APP")) { NextTest(); return; } @@ -46086,7 +46087,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Step 4: Read the mandatory attribute: MeasuredValue\n"); - if (ShouldSkip("FLW.S.A0000")) { + if (ShouldSkip("FLW.S.A0000 && PICS_SKIP_SAMPLE_APP")) { NextTest(); return; } @@ -46196,7 +46197,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("maxMeasuredValue", [value unsignedShortValue], MinMeasuredVariable)); + VerifyOrReturn(CheckConstraintMinValue("maxMeasuredValue", [value unsignedShortValue], MinMeasuredVariable + 1)); VerifyOrReturn(CheckConstraintMaxValue("maxMeasuredValue", [value unsignedShortValue], 65534U)); } { @@ -62342,7 +62343,7 @@ class Test_TC_LUNIT_3_1 : public TestCommandBridge { break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Step 2: TH writes 0 (Fahrenheit) to TemperatureUnit attribute\n"); - if (ShouldSkip("LUNIT.S.A0000 && LUNIT.TempUnit.Fahrenheit")) { + if (ShouldSkip("LUNIT.S.A0000 && LUNIT.S.M.Fahrenheit")) { NextTest(); return; } @@ -62350,7 +62351,7 @@ class Test_TC_LUNIT_3_1 : public TestCommandBridge { break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Step 3: TH reads TemperatureUnit attribute\n"); - if (ShouldSkip("LUNIT.S.A0000 && LUNIT.TempUnit.Fahrenheit")) { + if (ShouldSkip("LUNIT.S.A0000 && LUNIT.S.M.Fahrenheit")) { NextTest(); return; } @@ -62358,7 +62359,7 @@ class Test_TC_LUNIT_3_1 : public TestCommandBridge { break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Step 4: TH writes 1 (Celsius) to TemperatureUnit attribute\n"); - if (ShouldSkip("LUNIT.S.A0000 && LUNIT.TempUnit.Celsius")) { + if (ShouldSkip("LUNIT.S.A0000 && LUNIT.S.M.Celsius")) { NextTest(); return; } @@ -62366,7 +62367,7 @@ class Test_TC_LUNIT_3_1 : public TestCommandBridge { break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Step 5: TH reads TemperatureUnit attribute\n"); - if (ShouldSkip("LUNIT.S.A0000 && LUNIT.TempUnit.Celsius")) { + if (ShouldSkip("LUNIT.S.A0000 && LUNIT.S.M.Celsius")) { NextTest(); return; } @@ -62374,7 +62375,7 @@ class Test_TC_LUNIT_3_1 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Step 6: TH writes 2 (Kelvin) to TemperatureUnit attribute\n"); - if (ShouldSkip("LUNIT.S.A0000 && LUNIT.TempUnit.Kelvin")) { + if (ShouldSkip("LUNIT.S.A0000 && LUNIT.S.M.Kelvin")) { NextTest(); return; } @@ -62382,7 +62383,7 @@ class Test_TC_LUNIT_3_1 : public TestCommandBridge { break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Step 7: TH reads TemperatureUnit attribute\n"); - if (ShouldSkip("LUNIT.S.A0000 && LUNIT.TempUnit.Kelvin")) { + if (ShouldSkip("LUNIT.S.A0000 && LUNIT.S.M.Kelvin")) { NextTest(); return; } @@ -88652,6 +88653,201 @@ class Test_TC_REFALM_1_1 : public TestCommandBridge { } }; +class Test_TC_REFALM_2_1 : public TestCommandBridge { +public: + // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced + Test_TC_REFALM_2_1() + : TestCommandBridge("Test_TC_REFALM_2_1") + , mTestIndex(0) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) + + ~Test_TC_REFALM_2_1() + { + } + + /////////// TestCommand Interface ///////// + void NextTest() override + { + CHIP_ERROR err = CHIP_NO_ERROR; + + if (0 == mTestIndex) { + ChipLogProgress(chipTool, " **** Test Start: Test_TC_REFALM_2_1\n"); + } + + if (mTestCount == mTestIndex) { + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_REFALM_2_1\n"); + SetCommandExitStatus(CHIP_NO_ERROR); + return; + } + + Wait(); + + // Ensure we increment mTestIndex before we start running the relevant + // command. That way if we lose the timeslice after we send the message + // but before our function call returns, we won't end up with an + // incorrect mTestIndex value observed when we get the response. + switch (mTestIndex++) { + case 0: + ChipLogProgress(chipTool, " ***** Test Step 0 : Step 1: Wait for the commissioned device to be retrieved\n"); + err = TestStep1WaitForTheCommissionedDeviceToBeRetrieved_0(); + break; + case 1: + ChipLogProgress(chipTool, " ***** Test Step 1 : Step 2: Ensure that the door alarm is not locally suppressed and the door is closed\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestStep2EnsureThatTheDoorAlarmIsNotLocallySuppressedAndTheDoorIsClosed_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: TH reads from the DUT the Mask attribute\n"); + if (ShouldSkip("REFALM.S.A0000")) { + NextTest(); + return; + } + err = TestStep3ThReadsFromTheDutTheMaskAttribute_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : Step 4: TH reads from the DUT the State attribute\n"); + if (ShouldSkip("REFALM.S.A0002")) { + NextTest(); + return; + } + err = TestStep4ThReadsFromTheDutTheStateAttribute_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Step 5: TH reads from the DUT the Supported attribute\n"); + if (ShouldSkip("REFALM.S.A0003")) { + NextTest(); + return; + } + err = TestStep5ThReadsFromTheDutTheSupportedAttribute_4(); + break; + } + + if (CHIP_NO_ERROR != err) { + ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); + SetCommandExitStatus(err); + } + } + + void OnStatusUpdate(const chip::app::StatusIB & status) override + { + switch (mTestIndex - 1) { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + } + + // Go on to the next test. + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + + chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); } + +private: + std::atomic_uint16_t mTestIndex; + const uint16_t mTestCount = 5; + + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + CHIP_ERROR TestStep1WaitForTheCommissionedDeviceToBeRetrieved_0() + { + + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee("alpha", value); + } + + CHIP_ERROR TestStep2EnsureThatTheDoorAlarmIsNotLocallySuppressedAndTheDoorIsClosed_1() + { + + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Enter 'y' after successgarbage: not in length on purpose", 23); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestStep3ThReadsFromTheDutTheMaskAttribute_2() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeMaskWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Step 3: TH reads from the DUT the Mask attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("mask", "bitmap32", "bitmap32")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestStep4ThReadsFromTheDutTheStateAttribute_3() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Step 4: TH reads from the DUT the State attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("state", "bitmap32", "bitmap32")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestStep5ThReadsFromTheDutTheSupportedAttribute_4() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeSupportedWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Step 5: TH reads from the DUT the Supported attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("supported", "bitmap32", "bitmap32")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } +}; + class Test_TC_RH_1_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced @@ -89154,7 +89350,7 @@ class Test_TC_RH_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("maxMeasuredValue", [value unsignedShortValue], CurrentMinMeasured)); + VerifyOrReturn(CheckConstraintMinValue("maxMeasuredValue", [value unsignedShortValue], CurrentMinMeasured + 1)); VerifyOrReturn(CheckConstraintMaxValue("maxMeasuredValue", [value unsignedShortValue], 10000U)); } { @@ -92634,8 +92830,6 @@ class Test_TC_TCCM_1_1 : public TestCommandBridge { VerifyOrReturn(CheckConstraintType("attributeList", "list", "list")); VerifyOrReturn(CheckConstraintContains("attributeList", value, 0UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 1UL)); - VerifyOrReturn(CheckConstraintContains("attributeList", value, 2UL)); - VerifyOrReturn(CheckConstraintContains("attributeList", value, 3UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 65531UL)); @@ -173881,6 +174075,7 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), + make_unique(), make_unique(), make_unique(), make_unique(), diff --git a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h index 85b6ca3fc694ae..95f1a0850a48e4 100644 --- a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h @@ -321,7 +321,7 @@ class Test_TC_DGWIFI_3_2_SimulatedSuite : public TestCommand { case 0: { LogStep(0, "DUT sends ResetCounts command to TH"); - VerifyOrDo(!ShouldSkip("DGTHREAD.C.C00.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("DGWIFI.S.C00.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return WaitCommand(GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Commands::ResetCounts::Id); } } diff --git a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h index 85b6ca3fc694ae..95f1a0850a48e4 100644 --- a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h @@ -321,7 +321,7 @@ class Test_TC_DGWIFI_3_2_SimulatedSuite : public TestCommand { case 0: { LogStep(0, "DUT sends ResetCounts command to TH"); - VerifyOrDo(!ShouldSkip("DGTHREAD.C.C00.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("DGWIFI.S.C00.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return WaitCommand(GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Commands::ResetCounts::Id); } } From f6975a12e0978857c12f1ace7104e033a374eee3 Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Wed, 20 Sep 2023 13:07:25 +0530 Subject: [PATCH 03/13] The following YAMLs are removed since there are Python script for the testcases. TC-DT-1.1 TC-IDM-10.1 TC-IDM-11.1 TC-SM-1.1 TC-SM-1.2 --- .../suites/certification/Test_TC_DT_1_1.yaml | 142 --------- .../certification/Test_TC_IDM_10_1.yaml | 290 ------------------ .../certification/Test_TC_IDM_11_1.yaml | 81 ----- .../suites/certification/Test_TC_SM_1_1.yaml | 220 ------------- .../suites/certification/Test_TC_SM_1_2.yaml | 132 -------- src/app/tests/suites/manualTests.json | 4 +- 6 files changed, 1 insertion(+), 868 deletions(-) delete mode 100755 src/app/tests/suites/certification/Test_TC_DT_1_1.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_IDM_10_1.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_IDM_11_1.yaml delete mode 100755 src/app/tests/suites/certification/Test_TC_SM_1_1.yaml delete mode 100755 src/app/tests/suites/certification/Test_TC_SM_1_2.yaml diff --git a/src/app/tests/suites/certification/Test_TC_DT_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DT_1_1.yaml deleted file mode 100755 index a3b051b576e571..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DT_1_1.yaml +++ /dev/null @@ -1,142 +0,0 @@ -# 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: 57.1.1. [TC-DT-1.1] Base Device Type [DUT as Server] - -PICS: - - MCORE.DT.S - -config: - nodeId: 0x12344321 - cluster: "Basic Information" - endpoint: 0 - -tests: - - label: - "Step 1: TH performs a wildcard read of all attributes and endpoints" - verification: | - TH(chip-tool) sends the wildcard read command to read all attributes and endpoints from DUT(Reference app/all-clusters-app) - ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF - disabled: true - - - label: "Step 2: Verify that each endpoint includes a Descriptor cluster" - verification: | - On TH(chip-tool), Verify that the ReportDataMessage with each endpoint(endpoint 0, endpoint 1 and endpoint 2) includes a Descriptor cluster( Cluster: 0x0000_001D) - below is the sample log provided for the raspi platform: - - [1690185276.189270][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 1390630643 - [1690185276.189273][40055:40057] CHIP:TOO: ClientList: 1 entries - [1690185276.189275][40055:40057] CHIP:TOO: [1]: 41 - [1690185276.189286][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 1390630643 - [1690185276.189290][40055:40057] CHIP:TOO: PartsList: 2 entries - [1690185276.189293][40055:40057] CHIP:TOO: [1]: 1 - [1690185276.189295][40055:40057] CHIP:TOO: [2]: 2 - [1690185276.189298][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFC DataVersion: 1390630643 - [1690185276.189300][40055:40057] CHIP:TOO: FeatureMap: 0 - [1690185276.189309][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFD DataVersion: 1390630643 - [1690185276.189311][40055:40057] CHIP:TOO: ClusterRevision: 1 - [1690185276.189326][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFF8 DataVersion: 1390630643 - [1690185276.189329][40055:40057] CHIP:TOO: GeneratedCommandList: 0 entries - [1690185276.189339][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFF9 DataVersion: 1390630643 - [1690185276.189341][40055:40057] CHIP:TOO: AcceptedCommandList: 0 entries - [1690185276.189353][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFA DataVersion: 1390630643 - [1690185276.189356][40055:40057] CHIP:TOO: EventList: 0 entries - [1690185276.189374][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFB DataVersion: 1390630643 - [1690185276.189378][40055:40057] CHIP:TOO: AttributeList: 10 entries - [1690185276.189380][40055:40057] CHIP:TOO: [1]: 0 - [1690185276.189382][40055:40057] CHIP:TOO: [2]: 1 - [1690185276.189384][40055:40057] CHIP:TOO: [3]: 2 - [1690185276.189386][40055:40057] CHIP:TOO: [4]: 3 - [1690185276.189388][40055:40057] CHIP:TOO: [5]: 65528 - [1690185276.189390][40055:40057] CHIP:TOO: [6]: 65529 - [1690185276.189392][40055:40057] CHIP:TOO: [7]: 65530 - [1690185276.189394][40055:40057] CHIP:TOO: [8]: 65531 - [1690185276.189396][40055:40057] CHIP:TOO: [9]: 65532 - [1690185276.189398][40055:40057] CHIP:TOO: [10]: 65533 - [1690185276.189408][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001E Attribute 0x0000_0000 DataVersion: 3752520678 - [1690185276.189411][40055:40057] CHIP:TOO: Binding: 0 entries - [1690185276.189414][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001E Attribute 0x0000_FFFC DataVersion: 3752520678 - - - - [1690185276.266589][40055:40057] CHIP:TOO: [68]: 4294048773 - [1690185276.266629][40055:40057] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 2743502132 - [1690185276.266634][40055:40057] CHIP:TOO: ClientList: 1 entries - [1690185276.266636][40055:40057] CHIP:TOO: [1]: 6 - [1690185276.266646][40055:40057] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 2743502132 - [1690185276.266652][40055:40057] CHIP:TOO: PartsList: 0 entries - [1690185276.266656][40055:40057] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFC DataVersion: 2743502132 - [1690185276.266660][40055:40057] CHIP:TOO: FeatureMap: 0 - [1690185276.266668][40055:40057] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFD DataVersion: 2743502132 - [1690185276.266670][40055:40057] CHIP:TOO: ClusterRevision: 1 - [1690185276.266686][40055:40057] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFF8 DataVersion: 2743502132 - [1690185276.266689][40055:40057] CHIP:TOO: GeneratedCommandList: 0 entries - [1690185276.266699][40055:40057] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFF9 DataVersion: 2743502132 - [1690185276.266702][40055:40057] CHIP:TOO: AcceptedCommandList: 0 entries - [1690185276.266714][40055:40057] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFA DataVersion: 2743502132 - [1690185276.266717][40055:40057] CHIP:TOO: EventList: 0 entries - [1690185276.266737][40055:40057] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFB DataVersion: 2743502132 - [1690185276.266742][40055:40057] CHIP:TOO: AttributeList: 10 entries - [1690185276.266744][40055:40057] CHIP:TOO: [1]: 0 - [1690185276.266746][40055:40057] CHIP:TOO: [2]: 1 - [1690185276.266748][40055:40057] CHIP:TOO: [3]: 2 - [1690185276.266750][40055:40057] CHIP:TOO: [4]: 3 - [1690185276.266752][40055:40057] CHIP:TOO: [5]: 65528 - [1690185276.266755][40055:40057] CHIP:TOO: [6]: 65529 - [1690185276.266757][40055:40057] CHIP:TOO: [7]: 65530 - [1690185276.266759][40055:40057] CHIP:TOO: [8]: 65531 - [1690185276.266761][40055:40057] CHIP:TOO: [9]: 65532 - [1690185276.266762][40055:40057] CHIP:TOO: [10]: 65533 - [1690185276.266774][40055:40057] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001E Attribute 0x0000_0000 DataVersion: 523636689 - [1690185276.266779][40055:40057] CHIP:TOO: Binding: 0 entries - - - [1690185276.399194][40055:40057] CHIP:TOO: Revision: 1 - [1690185276.399196][40055:40057] CHIP:TOO: } - [1690185276.399212][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 516620155 - [1690185276.399216][40055:40057] CHIP:TOO: ServerList: 5 entries - [1690185276.399218][40055:40057] CHIP:TOO: [1]: 4 - [1690185276.399220][40055:40057] CHIP:TOO: [2]: 6 - [1690185276.399222][40055:40057] CHIP:TOO: [3]: 29 - [1690185276.399223][40055:40057] CHIP:TOO: [4]: 47 - [1690185276.399225][40055:40057] CHIP:TOO: [5]: 1030 - [1690185276.399235][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 516620155 - [1690185276.399238][40055:40057] CHIP:TOO: ClientList: 0 entries - [1690185276.399247][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 516620155 - [1690185276.399251][40055:40057] CHIP:TOO: PartsList: 0 entries - [1690185276.399254][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_FFFC DataVersion: 516620155 - [1690185276.399256][40055:40057] CHIP:TOO: FeatureMap: 0 - [1690185276.399265][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_FFFD DataVersion: 516620155 - [1690185276.399267][40055:40057] CHIP:TOO: ClusterRevision: 1 - [1690185276.399282][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_FFF8 DataVersion: 516620155 - [1690185276.399285][40055:40057] CHIP:TOO: GeneratedCommandList: 0 entries - [1690185276.399294][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_FFF9 DataVersion: 516620155 - [1690185276.399297][40055:40057] CHIP:TOO: AcceptedCommandList: 0 entries - [1690185276.399309][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_FFFA DataVersion: 516620155 - [1690185276.399311][40055:40057] CHIP:TOO: EventList: 0 entries - [1690185276.399329][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_FFFB DataVersion: 516620155 - [1690185276.399334][40055:40057] CHIP:TOO: AttributeList: 10 entries - [1690185276.399336][40055:40057] CHIP:TOO: [1]: 0 - [1690185276.399338][40055:40057] CHIP:TOO: [2]: 1 - [1690185276.399340][40055:40057] CHIP:TOO: [3]: 2 - [1690185276.399341][40055:40057] CHIP:TOO: [4]: 3 - [1690185276.399343][40055:40057] CHIP:TOO: [5]: 65528 - [1690185276.399345][40055:40057] CHIP:TOO: [6]: 65529 - [1690185276.399347][40055:40057] CHIP:TOO: [7]: 65530 - [1690185276.399349][40055:40057] CHIP:TOO: [8]: 65531 - [1690185276.399350][40055:40057] CHIP:TOO: [9]: 65532 - [1690185276.399352][40055:40057] CHIP:TOO: [10]: 65533 - [1690185276.399354][40055:40057] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_002F Attribute 0x0000_0000 DataVersion: 850311415 - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_IDM_10_1.yaml b/src/app/tests/suites/certification/Test_TC_IDM_10_1.yaml deleted file mode 100644 index 12d5a1140aa187..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_IDM_10_1.yaml +++ /dev/null @@ -1,290 +0,0 @@ -# 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: - 32.6.8. [TC-IDM-10.1] Cluster requirements - Global attributes [DUT as - Server] - -PICS: - - MCORE.IDM.S - -config: - nodeId: 0x12344321 - cluster: "Basic Information" - endpoint: 0 - -tests: - - label: - "Step 1: TH performs a wildcard read of all attributes and endpoints" - verification: | - TH(chip-tool) sends the wildcard read command to read all attributes and endpoints from DUT(Reference app/all-clusters-app) - ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF - - Please store the log for use in the next step validation. - disabled: true - - - label: - "Step 2: For every cluster on every endpoint verify that the cluster - includes all the mandatory global attributes: ClusterRevision, - FeatureMap, AttributeList, AcceptedCommandList, GeneratedCommandList, - EventList" - verification: | - The following log is an example of the output obtained for Identify Cluster on Endpoint 0. Descriptor cluster on Endpoint 1 and Occupancy cluster on Endpoint 2. - Pls repeat this for every cluster on every endpoint. The log represents the attributes of clusters found on different endpoints. - - Verify the presence of all mandatory global attributes for every cluster on every endpoint: - 1. ClusterRevision - 2. FeatureMap - 3. EventList - 4. AttributeList - 5. AcceptedCommandList - 6. GeneratedCommandList - - Verification Instructions: - Please use the provided example log as a guide to verify the attributes for other clusters and endpoints in a similar manner. - - Example verification log for 'Identify Cluster' (0x0000_0003) on Endpoint 0 : - [1690267325.176118][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 3031281428 - [1690267325.176127][9552:9554] CHIP:TOO: IdentifyType: 2 - [1690267325.176149][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFC DataVersion: 3031281428 - [1690267325.176152][9552:9554] CHIP:TOO: FeatureMap: 0 - [1690267325.176160][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFD DataVersion: 3031281428 - [1690267325.176163][9552:9554] CHIP:TOO: ClusterRevision: 4 - [1690267325.176182][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFF8 DataVersion: 3031281428 - [1690267325.176186][9552:9554] CHIP:TOO: GeneratedCommandList: 0 entries - [1690267325.176202][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFF9 DataVersion: 3031281428 - [1690267325.176206][9552:9554] CHIP:TOO: AcceptedCommandList: 2 entries - [1690267325.176208][9552:9554] CHIP:TOO: [1]: 0 - [1690267325.176216][9552:9554] CHIP:TOO: [2]: 64 - [1690267325.176228][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFA DataVersion: 3031281428 - [1690267325.176231][9552:9554] CHIP:TOO: EventList: 0 entries - [1690267325.176250][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFB DataVersion: 3031281428 - [1690267325.176254][9552:9554] CHIP:TOO: AttributeList: 8 entries - [1690267325.176256][9552:9554] CHIP:TOO: [1]: 0 - [1690267325.176258][9552:9554] CHIP:TOO: [2]: 1 - [1690267325.176261][9552:9554] CHIP:TOO: [3]: 65528 - [1690267325.176262][9552:9554] CHIP:TOO: [4]: 65529 - [1690267325.176264][9552:9554] CHIP:TOO: [5]: 65530 - [1690267325.176267][9552:9554] CHIP:TOO: [6]: 65531 - [1690267325.176269][9552:9554] CHIP:TOO: [7]: 65532 - [1690267325.176272][9552:9554] CHIP:TOO: [8]: 65533 - [1690267325.176274][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_0000 DataVersion: 800446264 - [1690267325.176277][9552:9554] CHIP:TOO: NameSupport: 128 - - Example verification log for ' Descriptor cluster ' (0x0000_001D) on Endpoint 1 : - [1690267325.249870][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 762289150 - [1690267325.249874][9552:9554] CHIP:TOO: PartsList: 0 entries - [1690267325.249878][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFC DataVersion: 762289150 - [1690267325.249881][9552:9554] CHIP:TOO: FeatureMap: 0 - [1690267325.249891][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFD DataVersion: 762289150 - [1690267325.249893][9552:9554] CHIP:TOO: ClusterRevision: 1 - [1690267325.249910][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFF8 DataVersion: 762289150 - [1690267325.249914][9552:9554] CHIP:TOO: GeneratedCommandList: 0 entries - [1690267325.249926][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFF9 DataVersion: 762289150 - [1690267325.249929][9552:9554] CHIP:TOO: AcceptedCommandList: 0 entries - [1690267325.249942][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFA DataVersion: 762289150 - [1690267325.249946][9552:9554] CHIP:TOO: EventList: 0 entries - [1690267325.249965][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFB DataVersion: 762289150 - [1690267325.249972][9552:9554] CHIP:TOO: AttributeList: 10 entries - [1690267325.249975][9552:9554] CHIP:TOO: [1]: 0 - [1690267325.249978][9552:9554] CHIP:TOO: [2]: 1 - [1690267325.249980][9552:9554] CHIP:TOO: [3]: 2 - [1690267325.249982][9552:9554] CHIP:TOO: [4]: 3 - [1690267325.249986][9552:9554] CHIP:TOO: [5]: 65528 - [1690267325.249989][9552:9554] CHIP:TOO: [6]: 65529 - [1690267325.249992][9552:9554] CHIP:TOO: [7]: 65530 - [1690267325.249995][9552:9554] CHIP:TOO: [8]: 65531 - [1690267325.249999][9552:9554] CHIP:TOO: [9]: 65532 - [1690267325.250002][9552:9554] CHIP:TOO: [10]: 65533 - [1690267325.250017][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001E Attribute 0x0000_0000 DataVersion: 3536645262 - - Example verification log for ' Occupancy cluster ' (0x0000_0406) on Endpoint 2 : - - [1690267325.401773][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_0000 DataVersion: 3381359521 - [1690267325.401776][9552:9554] CHIP:TOO: Occupancy: 0 - [1690267325.401785][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_0001 DataVersion: 3381359521 - [1690267325.401787][9552:9554] CHIP:TOO: OccupancySensorType: 0 - [1690267325.401795][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_0002 DataVersion: 3381359521 - [1690267325.401798][9552:9554] CHIP:TOO: OccupancySensorTypeBitmap: 1 - [1690267325.401806][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFFC DataVersion: 3381359521 - [1690267325.401808][9552:9554] CHIP:TOO: FeatureMap: 0 - [1690267325.401816][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFFD DataVersion: 3381359521 - [1690267325.401819][9552:9554] CHIP:TOO: ClusterRevision: 3 - [1690267325.401834][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFF8 DataVersion: 3381359521 - [1690267325.401837][9552:9554] CHIP:TOO: GeneratedCommandList: 0 entries - [1690267325.401848][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFF9 DataVersion: 3381359521 - [1690267325.401850][9552:9554] CHIP:TOO: AcceptedCommandList: 0 entries - [1690267325.401861][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFFA DataVersion: 3381359521 - [1690267325.401864][9552:9554] CHIP:TOO: EventList: 0 entries - [1690267325.401876][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFFB DataVersion: 3381359521 - [1690267325.401880][9552:9554] CHIP:TOO: AttributeList: 9 entries - [1690267325.401882][9552:9554] CHIP:TOO: [1]: 0 - [1690267325.401884][9552:9554] CHIP:TOO: [2]: 1 - [1690267325.401886][9552:9554] CHIP:TOO: [3]: 2 - [1690267325.401888][9552:9554] CHIP:TOO: [4]: 65528 - [1690267325.401890][9552:9554] CHIP:TOO: [5]: 65529 - [1690267325.401892][9552:9554] CHIP:TOO: [6]: 65530 - [1690267325.401894][9552:9554] CHIP:TOO: [7]: 65531 - [1690267325.401896][9552:9554] CHIP:TOO: [8]: 65532 - [1690267325.401898][9552:9554] CHIP:TOO: [9]: 65533 - [1690267325.401975][9552:9554] CHIP:EM: <<< [E:6807i S:13119 M:239700033 (Ack:147952547)] (S) Msg TX to 1:0000000000000001 [83EA] --- Type 0000:10 (SecureChannel:StandaloneAck) - [1690267325.401983][9552:9554] CHIP:IN: (S) Sending msg 239700033 on secure session with LSID: 13119 - [1690267325.402014][9552:9554] CHIP:EM: Flushed pending ack for MessageCounter:147952547 on exchange 6807i - disabled: true - - - label: - "Step 3: For every cluster on every endpoint, verify that each - attribute reported in the AttributeList exactly matches the set of - received attributes from the wildcard read. In other words, if an - attribute ID is present in the AttributeList, a report for that path - must have been seen in the read of step 1, and if an attribute path - exists in the read of step 1, its ID must be present in the - AttributeList of the associated cluster within the hierarchy." - verification: | - The following log is an example of the output obtained For every cluster on every endpoint. The log represents the attributes of clusters found on different endpoints. - - Verify AttributeList for Each Cluster on Every Endpoint, follow the verification process: - 1. Examine the AttributeList reported for the specific cluster. - 2. Cross-reference the attributes listed in the AttributeList with the set of received attributes from the wildcard read (Step 1). - 3. Ensure that each attribute ID present in the AttributeList is also seen in the received attributes from the wildcard read, and vice versa. - - Verification Instructions: - Please use the provided example log as a guide to verify the attributes for other clusters and endpoints in a similar manner. - - - Example verification log for 'Identify Cluster' (0x0000_0003) on Endpoint 0 : - - AttributeList: [0, 1, 65528, 65529, 65530, 65531, 65532, 65532] - - Wildcard Read Received Attributes: [0, 1, 65528, 65529, 65530, 65531, 65532, 65532] - - All attribute IDs in the AttributeList are present in the received attributes from the wildcard read. - - All received attributes from the wildcard read have their corresponding attribute IDs listed in the AttributeList. - [1690267325.175008][9552:9554] CHIP:DMG: InteractionModelRevision = 1 - [1690267325.175013][9552:9554] CHIP:DMG: } - [1690267325.175842][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 3031281428 - [1690267325.175868][9552:9554] CHIP:TOO: IdentifyTime: 0 - [1690267325.176118][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 3031281428 - [1690267325.176127][9552:9554] CHIP:TOO: IdentifyType: 2 - [1690267325.176149][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFC DataVersion: 3031281428 - [1690267325.176152][9552:9554] CHIP:TOO: FeatureMap: 0 - [1690267325.176160][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFD DataVersion: 3031281428 - [1690267325.176163][9552:9554] CHIP:TOO: ClusterRevision: 4 - [1690267325.176182][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFF8 DataVersion: 3031281428 - [1690267325.176186][9552:9554] CHIP:TOO: GeneratedCommandList: 0 entries - [1690267325.176202][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFF9 DataVersion: 3031281428 - [1690267325.176206][9552:9554] CHIP:TOO: AcceptedCommandList: 2 entries - [1690267325.176208][9552:9554] CHIP:TOO: [1]: 0 - [1690267325.176216][9552:9554] CHIP:TOO: [2]: 64 - [1690267325.176228][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFA DataVersion: 3031281428 - [1690267325.176231][9552:9554] CHIP:TOO: EventList: 0 entries - [1690267325.176250][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFB DataVersion: 3031281428 - [1690267325.176254][9552:9554] CHIP:TOO: AttributeList: 8 entries - [1690267325.176256][9552:9554] CHIP:TOO: [1]: 0 - [1690267325.176258][9552:9554] CHIP:TOO: [2]: 1 - [1690267325.176261][9552:9554] CHIP:TOO: [3]: 65528 - [1690267325.176262][9552:9554] CHIP:TOO: [4]: 65529 - [1690267325.176264][9552:9554] CHIP:TOO: [5]: 65530 - [1690267325.176267][9552:9554] CHIP:TOO: [6]: 65531 - [1690267325.176269][9552:9554] CHIP:TOO: [7]: 65532 - [1690267325.176272][9552:9554] CHIP:TOO: [8]: 65533 - [1690267325.176274][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_0000 DataVersion: 800446264 - [1690267325.176277][9552:9554] CHIP:TOO: NameSupport: 128 - [1690267325.176285][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_FFFC DataVersion: 800446264 - [1690267325.176290][9552:9554] CHIP:TOO: FeatureMap: 1 - [1690267325.176298][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_FFFD DataVersion: 800446264 - [1690267325.176301][9552:9554] CHIP:TOO: ClusterRevision: 4 - [1690267325.176324][9552:9554] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_FFF8 DataVersion: 800446264 - [1690267325.176328][9552:9554] CHIP:TOO: GeneratedCommandList: 4 entries - - - Example verification log for ' SWITCH cluster ' (0x0000_003B) on Endpoint 1 : - - AttributeList: [0, 1, 2, 65528, 65529, 65530, 65531, 65532, 65532] - - Wildcard Read Received Attributes: [0, 1, 2, 65528, 65529, 65530, 65531, 65532, 65532] - - All attribute IDs in the AttributeList are present in the received attributes from the wildcard read. - - All received attributes from the wildcard read have their corresponding attribute IDs listed in the AttributeList. - - [1690267325.252505][9552:9554] CHIP:TOO: [12]: 65532 - [1690267325.252507][9552:9554] CHIP:TOO: [13]: 65533 - [1690267325.252510][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_003B Attribute 0x0000_0000 DataVersion: 279843917 - [1690267325.252512][9552:9554] CHIP:TOO: NumberOfPositions: 2 - [1690267325.252520][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_003B Attribute 0x0000_0001 DataVersion: 279843917 - [1690267325.252522][9552:9554] CHIP:TOO: CurrentPosition: 0 - [1690267325.252531][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_003B Attribute 0x0000_0002 DataVersion: 279843917 - [1690267325.252533][9552:9554] CHIP:TOO: MultiPressMax: 2 - [1690267325.252541][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_003B Attribute 0x0000_FFFC DataVersion: 279843917 - [1690267325.252543][9552:9554] CHIP:TOO: FeatureMap: 1 - [1690267325.252551][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_003B Attribute 0x0000_FFFD DataVersion: 279843917 - [1690267325.252553][9552:9554] CHIP:TOO: ClusterRevision: 1 - [1690267325.252569][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_003B Attribute 0x0000_FFF8 DataVersion: 279843917 - [1690267325.252571][9552:9554] CHIP:TOO: GeneratedCommandList: 0 entries - [1690267325.252580][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_003B Attribute 0x0000_FFF9 DataVersion: 279843917 - [1690267325.252583][9552:9554] CHIP:TOO: AcceptedCommandList: 0 entries - [1690267325.252596][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_003B Attribute 0x0000_FFFA DataVersion: 279843917 - [1690267325.252598][9552:9554] CHIP:TOO: EventList: 1 entries - [1690267325.252601][9552:9554] CHIP:TOO: [1]: 0 - [1690267325.252620][9552:9554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_003B Attribute 0x0000_FFFB DataVersion: 279843917 - [1690267325.252625][9552:9554] CHIP:TOO: AttributeList: 9 entries - [1690267325.252627][9552:9554] CHIP:TOO: [1]: 0 - [1690267325.252629][9552:9554] CHIP:TOO: [2]: 1 - [1690267325.252630][9552:9554] CHIP:TOO: [3]: 2 - [1690267325.252632][9552:9554] CHIP:TOO: [4]: 65528 - [1690267325.252634][9552:9554] CHIP:TOO: [5]: 65529 - [1690267325.252636][9552:9554] CHIP:TOO: [6]: 65530 - [1690267325.252638][9552:9554] CHIP:TOO: [7]: 65531 - [1690267325.252640][9552:9554] CHIP:TOO: [8]: 65532 - [1690267325.252642][9552:9554] CHIP:TOO: [9]: 65533 - [1690267325.252687][9552:9554] CHIP:EM: <<< [E:6807i S:13119 M:239699999 (Ack:147952513)] (S) Msg TX to 1:0000000000000001 [83EA] --- Type 0001:01 (IM:StatusResponse) - [1690267325.252691][9552:9554] CHIP:IN: (S) Sending msg 239699999 on secure session with LSID: 13119 - - Example verification log for ' Occupancy cluster ' (0x0000_0406) on Endpoint 2 : - - AttributeList: [0, 1, 2, 65528, 65529, 65530, 65531, 65532, 65532] - - Wildcard Read Received Attributes: [0, 1, 2, 65528, 65529, 65530, 65531, 65532, 65532] - - All attribute IDs in the AttributeList are present in the received attributes from the wildcard read. - - All received attributes from the wildcard read have their corresponding attribute IDs listed in the AttributeList. - [1690267325.401762][9552:9554] CHIP:TOO: [8]: 65528 - [1690267325.401764][9552:9554] CHIP:TOO: [9]: 65529 - [1690267325.401765][9552:9554] CHIP:TOO: [10]: 65530 - [1690267325.401767][9552:9554] CHIP:TOO: [11]: 65531 - [1690267325.401769][9552:9554] CHIP:TOO: [12]: 65532 - [1690267325.401771][9552:9554] CHIP:TOO: [13]: 65533 - [1690267325.401773][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_0000 DataVersion: 3381359521 - [1690267325.401776][9552:9554] CHIP:TOO: Occupancy: 0 - [1690267325.401785][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_0001 DataVersion: 3381359521 - [1690267325.401787][9552:9554] CHIP:TOO: OccupancySensorType: 0 - [1690267325.401795][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_0002 DataVersion: 3381359521 - [1690267325.401798][9552:9554] CHIP:TOO: OccupancySensorTypeBitmap: 1 - [1690267325.401806][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFFC DataVersion: 3381359521 - [1690267325.401808][9552:9554] CHIP:TOO: FeatureMap: 0 - [1690267325.401816][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFFD DataVersion: 3381359521 - [1690267325.401819][9552:9554] CHIP:TOO: ClusterRevision: 3 - [1690267325.401834][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFF8 DataVersion: 3381359521 - [1690267325.401837][9552:9554] CHIP:TOO: GeneratedCommandList: 0 entries - [1690267325.401848][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFF9 DataVersion: 3381359521 - [1690267325.401850][9552:9554] CHIP:TOO: AcceptedCommandList: 0 entries - [1690267325.401861][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFFA DataVersion: 3381359521 - [1690267325.401864][9552:9554] CHIP:TOO: EventList: 0 entries - [1690267325.401876][9552:9554] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0406 Attribute 0x0000_FFFB DataVersion: 3381359521 - [1690267325.401880][9552:9554] CHIP:TOO: AttributeList: 9 entries - [1690267325.401882][9552:9554] CHIP:TOO: [1]: 0 - [1690267325.401884][9552:9554] CHIP:TOO: [2]: 1 - [1690267325.401886][9552:9554] CHIP:TOO: [3]: 2 - [1690267325.401888][9552:9554] CHIP:TOO: [4]: 65528 - [1690267325.401890][9552:9554] CHIP:TOO: [5]: 65529 - [1690267325.401892][9552:9554] CHIP:TOO: [6]: 65530 - [1690267325.401894][9552:9554] CHIP:TOO: [7]: 65531 - [1690267325.401896][9552:9554] CHIP:TOO: [8]: 65532 - [1690267325.401898][9552:9554] CHIP:TOO: [9]: 65533 - [1690267325.401975][9552:9554] CHIP:EM: <<< [E:6807i S:13119 M:239700033 (Ack:147952547)] (S) Msg TX to 1:0000000000000001 [83EA] --- Type 0000:10 (SecureChannel:StandaloneAck) - [1690267325.401983][9552:9554] CHIP:IN: (S) Sending msg 239700033 on secure session with LSID: 13119 - [1690267325.402014][9552:9554] CHIP:EM: Flushed pending ack for MessageCounter:147952547 on exchange 6807i - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_IDM_11_1.yaml b/src/app/tests/suites/certification/Test_TC_IDM_11_1.yaml deleted file mode 100644 index 1598e76f4d0d2d..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_IDM_11_1.yaml +++ /dev/null @@ -1,81 +0,0 @@ -# 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: - 32.6.9. [TC-IDM-11.1] Data types - attribute strings [DUT as Server] - data - model - -PICS: - - MCORE.IDM.S - -config: - nodeId: 0x12344321 - cluster: "Basic Information" - endpoint: 0 - -tests: - - label: - "Step 1: TH performs a wildcard read of all attributes and endpoints" - verification: | - TH(chip-tool) sends the wildcard read command to read all attributes and endpoints from DUT(Reference app/all-clusters-app) - ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF - - Please store the log for use in the next step validation. - disabled: true - - - label: - "Step 2: For every returned attribute, if the attribute type is string - and the returned value is not Null or empty, ensure the returned value - is a valid UTF-8-encoded string. It is not permitted to have partially - encoded codepoints between the last legally-encoded codepoint and the - end of the string." - verification: | - From the privious step log, Verify UTF-8 Encoding for Each Returned String Attribute. - For each returned attribute with the attribute type "string," follow the verification process: - 1. Check if the returned value is not Null or empty. - 2. If the returned value is not Null or empty, validate that it is a valid UTF-8-encoded string. - 3. Ensure that there are no partially encoded codepoints between the last legally-encoded codepoint and the end of the string. - - The following log is an example of the output obtained for Basic Inforamtion Cluster. Pls repeat this for every cluster on every endpoint. The log represents the attributes of clusters found on different endpoints. - - Verification Instructions: - Please use the provided example log as a guide to verify the attributes for other clusters and endpoints in a similar manner. - - Example verification log for 'Basic information Cluster' (0x0000_0028) on Endpoint 0 : - [1690271126.212327][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0000 DataVersion: 338522070 - [1690271126.212330][10587:10589] CHIP:TOO: DataModelRevision: 1 - [1690271126.212344][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0001 DataVersion: 338522070 - [1690271126.212348][10587:10589] CHIP:TOO: VendorName: TEST_VENDOR - [1690271126.212358][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0002 DataVersion: 338522070 - [1690271126.212361][10587:10589] CHIP:TOO: VendorID: 65521 - [1690271126.212369][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0003 DataVersion: 338522070 - [1690271126.212371][10587:10589] CHIP:TOO: ProductName: TEST_PRODUCT - [1690271126.212379][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0004 DataVersion: 338522070 - [1690271126.212382][10587:10589] CHIP:TOO: ProductID: 32769 - [1690271126.212390][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 338522070 - [1690271126.212392][10587:10589] CHIP:TOO: NodeLabel: - [1690271126.212401][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0006 DataVersion: 338522070 - [1690271126.212403][10587:10589] CHIP:TOO: Location: XX - [1690271126.212411][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0007 DataVersion: 338522070 - [1690271126.212413][10587:10589] CHIP:TOO: HardwareVersion: 0 - [1690271126.212422][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0008 DataVersion: 338522070 - [1690271126.212424][10587:10589] CHIP:TOO: HardwareVersionString: TEST_VERSION - [1690271126.212432][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0009 DataVersion: 338522070 - [1690271126.212434][10587:10589] CHIP:TOO: SoftwareVersion: 1 - [1690271126.212443][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_000A DataVersion: 338522070 - [1690271126.212445][10587:10589] CHIP:TOO: SoftwareVersionString: 1.0 - [1690271126.212453][10587:10589] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_000B DataVersion: 338522070 - [1690271126.212455][10587:10589] CHIP:TOO: ManufacturingDate: 20200101 - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_SM_1_1.yaml deleted file mode 100755 index 9929d3531f41b3..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_SM_1_1.yaml +++ /dev/null @@ -1,220 +0,0 @@ -# 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: 54.1.1. [TC-SM-1.1] Device composition - Root Node [DUT as Server] - -PICS: - - MCORE.SM.S - -config: - nodeId: 0x12344321 - cluster: "Basic Information" - endpoint: 0 - -tests: - - label: - "Step 1: TH performs a wildcard read of all attributes and endpoints" - verification: | - TH(chip-tool) sends the wildcard read command to read all attributes and endpoints from DUT(Reference app/all-clusters-app) - ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF - disabled: true - - - label: - "Step 2: C.2.10, Verify that endpoint 0 exists in the returned data" - verification: | - On TH(chip-tool), Verify that endpoint 0 exists in the returned report data Message - below is the sample log provided for the raspi platform: - - [1690185276.189258][40055:40057] CHIP:TOO: [28]: 4294048774 - [1690185276.189270][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 1390630643 - [1690185276.189273][40055:40057] CHIP:TOO: ClientList: 1 entries - [1690185276.189275][40055:40057] CHIP:TOO: [1]: 41 - [1690185276.189286][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 1390630643 - [1690185276.189290][40055:40057] CHIP:TOO: PartsList: 2 entries - [1690185276.189293][40055:40057] CHIP:TOO: [1]: 1 - [1690185276.189295][40055:40057] CHIP:TOO: [2]: 2 - [1690185276.189298][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFC DataVersion: 1390630643 - [1690185276.189300][40055:40057] CHIP:TOO: FeatureMap: 0 - [1690185276.189309][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFD DataVersion: 1390630643 - [1690185276.189311][40055:40057] CHIP:TOO: ClusterRevision: 1 - [1690185276.189326][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFF8 DataVersion: 1390630643 - [1690185276.189329][40055:40057] CHIP:TOO: GeneratedCommandList: 0 entries - [1690185276.189339][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFF9 DataVersion: 1390630643 - [1690185276.189341][40055:40057] CHIP:TOO: AcceptedCommandList: 0 entries - [1690185276.189353][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFA DataVersion: 1390630643 - [1690185276.189356][40055:40057] CHIP:TOO: EventList: 0 entries - [1690185276.189374][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFB DataVersion: 1390630643 - [1690185276.189378][40055:40057] CHIP:TOO: AttributeList: 10 entries - [1690185276.189380][40055:40057] CHIP:TOO: [1]: 0 - [1690185276.189382][40055:40057] CHIP:TOO: [2]: 1 - [1690185276.189384][40055:40057] CHIP:TOO: [3]: 2 - [1690185276.189386][40055:40057] CHIP:TOO: [4]: 3 - [1690185276.189388][40055:40057] CHIP:TOO: [5]: 65528 - [1690185276.189390][40055:40057] CHIP:TOO: [6]: 65529 - [1690185276.189392][40055:40057] CHIP:TOO: [7]: 65530 - [1690185276.189394][40055:40057] CHIP:TOO: [8]: 65531 - [1690185276.189396][40055:40057] CHIP:TOO: [9]: 65532 - [1690185276.189398][40055:40057] CHIP:TOO: [10]: 65533 - [1690185276.189408][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001E Attribute 0x0000_0000 DataVersion: 3752520678 - [1690185276.189411][40055:40057] CHIP:TOO: Binding: 0 entries - [1690185276.189414][40055:40057] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001E Attribute 0x0000_FFFC DataVersion: 3752520678 - [1690185276.189416][40055:40057] CHIP:TOO: FeatureMap: 0 - disabled: true - - - label: - "Step 3: C.2.10, Verify that the endpoint 0 descriptor cluster - DeviceTypeList includes the Root Node device type id (0x0016)" - verification: | - On TH(chip-tool), Verify that the endpoint 0 descriptor cluster DeviceTypeList includes the Root Node device type id - 0x0016(22) in the returned report data Message - below is the sample log provided for the raspi platform: - [1690191137.963592][40907:40909] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_FFFA DataVersion: 2221012748 - [1690191137.963595][40907:40909] CHIP:TOO: EventList: 0 entries - [1690191137.963612][40907:40909] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_FFFB DataVersion: 2221012748 - [1690191137.963616][40907:40909] CHIP:TOO: AttributeList: 7 entries - [1690191137.963619][40907:40909] CHIP:TOO: [1]: 0 - [1690191137.963621][40907:40909] CHIP:TOO: [2]: 65528 - [1690191137.963623][40907:40909] CHIP:TOO: [3]: 65529 - [1690191137.963625][40907:40909] CHIP:TOO: [4]: 65530 - [1690191137.963627][40907:40909] CHIP:TOO: [5]: 65531 - [1690191137.963629][40907:40909] CHIP:TOO: [6]: 65532 - [1690191137.963631][40907:40909] CHIP:TOO: [7]: 65533 - [1690191137.963649][40907:40909] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 1390630643 - [1690191137.963657][40907:40909] CHIP:TOO: DeviceTypeList: 1 entries - [1690191137.963663][40907:40909] CHIP:TOO: [1]: { - [1690191137.963665][40907:40909] CHIP:TOO: DeviceType: 22 - [1690191137.963667][40907:40909] CHIP:TOO: Revision: 1 - [1690191137.963669][40907:40909] CHIP:TOO: } - [1690191137.963704][40907:40909] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 1390630643 - [1690191137.963712][40907:40909] CHIP:TOO: ServerList: 28 entries - [1690191137.963714][40907:40909] CHIP:TOO: [1]: 3 - [1690191137.963716][40907:40909] CHIP:TOO: [2]: 4 - [1690191137.963717][40907:40909] CHIP:TOO: [3]: 29 - [1690191137.963719][40907:40909] CHIP:TOO: [4]: 30 - [1690191137.963721][40907:40909] CHIP:TOO: [5]: 31 - [1690191137.963723][40907:40909] CHIP:TOO: [6]: 40 - [1690191137.963725][40907:40909] CHIP:TOO: [7]: 42 - [1690191137.963727][40907:40909] CHIP:TOO: [8]: 43 - [1690191137.963729][40907:40909] CHIP:TOO: [9]: 44 - [1690191137.963731][40907:40909] CHIP:TOO: [10]: 45 - disabled: true - - - label: - "Step 4: {REF_SM_ENDPOINT}, For each of the non-root endpoints, verify - that the descriptor cluster DeviceTypeList does NOT include the Root - Node device type id (0x0016)" - verification: | - On TH(chip-tool), For each of the non-root endpoints(endpoint - 1 and endpoint 2), verify that the descriptor cluster DeviceTypeList does NOT include the Root Node device type id - 0x0016(22) in the returned report data Message - below is the sample log provided for the raspi platform: - - [1690191138.044893][40907:40909] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_000F Attribute 0x0000_FFFB DataVersion: 4049418703 - [1690191138.044897][40907:40909] CHIP:TOO: AttributeList: 9 entries - [1690191138.044900][40907:40909] CHIP:TOO: [1]: 81 - [1690191138.044902][40907:40909] CHIP:TOO: [2]: 85 - [1690191138.044904][40907:40909] CHIP:TOO: [3]: 111 - [1690191138.044906][40907:40909] CHIP:TOO: [4]: 65528 - [1690191138.044908][40907:40909] CHIP:TOO: [5]: 65529 - [1690191138.044910][40907:40909] CHIP:TOO: [6]: 65530 - [1690191138.044912][40907:40909] CHIP:TOO: [7]: 65531 - [1690191138.044914][40907:40909] CHIP:TOO: [8]: 65532 - [1690191138.044916][40907:40909] CHIP:TOO: [9]: 65533 - [1690191138.044941][40907:40909] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 2743502132 - [1690191138.044945][40907:40909] CHIP:TOO: DeviceTypeList: 1 entries - [1690191138.044950][40907:40909] CHIP:TOO: [1]: { - [1690191138.044952][40907:40909] CHIP:TOO: DeviceType: 256 - [1690191138.044954][40907:40909] CHIP:TOO: Revision: 1 - [1690191138.044956][40907:40909] CHIP:TOO: } - [1690191138.045023][40907:40909] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 2743502132 - [1690191138.045038][40907:40909] CHIP:TOO: ServerList: 68 entries - [1690191138.045040][40907:40909] CHIP:TOO: [1]: 3 - [1690191138.045042][40907:40909] CHIP:TOO: [2]: 4 - - [1690191138.208428][40907:40909] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_0006 Attribute 0x0000_FFFB DataVersion: 1862188847 - [1690191138.208435][40907:40909] CHIP:TOO: AttributeList: 11 entries - [1690191138.208438][40907:40909] CHIP:TOO: [1]: 0 - [1690191138.208442][40907:40909] CHIP:TOO: [2]: 16384 - [1690191138.208445][40907:40909] CHIP:TOO: [3]: 16385 - [1690191138.208447][40907:40909] CHIP:TOO: [4]: 16386 - [1690191138.208450][40907:40909] CHIP:TOO: [5]: 16387 - [1690191138.208454][40907:40909] CHIP:TOO: [6]: 65528 - [1690191138.208456][40907:40909] CHIP:TOO: [7]: 65529 - [1690191138.208459][40907:40909] CHIP:TOO: [8]: 65530 - [1690191138.208462][40907:40909] CHIP:TOO: [9]: 65531 - [1690191138.208465][40907:40909] CHIP:TOO: [10]: 65532 - [1690191138.208467][40907:40909] CHIP:TOO: [11]: 65533 - [1690191138.208488][40907:40909] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 516620155 - [1690191138.208494][40907:40909] CHIP:TOO: DeviceTypeList: 1 entries - [1690191138.208500][40907:40909] CHIP:TOO: [1]: { - [1690191138.208502][40907:40909] CHIP:TOO: DeviceType: 256 - [1690191138.208505][40907:40909] CHIP:TOO: Revision: 1 - [1690191138.208508][40907:40909] CHIP:TOO: } - [1690191138.208524][40907:40909] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 516620155 - [1690191138.208530][40907:40909] CHIP:TOO: ServerList: 5 entries - [1690191138.208532][40907:40909] CHIP:TOO: [1]: 4 - [1690191138.208536][40907:40909] CHIP:TOO: [2]: 6 - [1690191138.208539][40907:40909] CHIP:TOO: [3]: 29 - [1690191138.208542][40907:40909] CHIP:TOO: [4]: 47 - [1690191138.208546][40907:40909] CHIP:TOO: [5]: 1030 - [1690191138.208557][40907:40909] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 516620155 - [1690191138.208561][40907:40909] CHIP:TOO: ClientList: 0 entries - disabled: true - - - label: - "Step 5: C.2.10, Validate all the mandatory clusters for the Root Node - Device Type exist on the Root Node endpoint" - verification: | - On TH(chip-tool), Validate all the mandatory clusters(Basic Information(40), Access Control(31), Group Key Management(63) General Commissioning(48), Administrator Commissioning(60), Node Operational Credentials(62), Localization Configuration(43), Time Format Localization(44), Unit Localization(45), General Diagnostics(51), and ICD Management(70)) for the Root Node Device Type exist on the Root Node endpoint(endpoint 0) - - [1690191137.963649][40907:40909] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 1390630643 - [1690191137.963657][40907:40909] CHIP:TOO: DeviceTypeList: 1 entries - [1690191137.963663][40907:40909] CHIP:TOO: [1]: { - [1690191137.963665][40907:40909] CHIP:TOO: DeviceType: 22 - [1690191137.963667][40907:40909] CHIP:TOO: Revision: 1 - [1690191137.963669][40907:40909] CHIP:TOO: } - [1690191137.963704][40907:40909] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 1390630643 - [1690191137.963712][40907:40909] CHIP:TOO: ServerList: 28 entries - [1690191137.963714][40907:40909] CHIP:TOO: [1]: 3 - [1690191137.963716][40907:40909] CHIP:TOO: [2]: 4 - [1690191137.963717][40907:40909] CHIP:TOO: [3]: 29 - [1690191137.963719][40907:40909] CHIP:TOO: [4]: 30 - [1690191137.963721][40907:40909] CHIP:TOO: [5]: 31 - [1690191137.963723][40907:40909] CHIP:TOO: [6]: 40 - [1690191137.963725][40907:40909] CHIP:TOO: [7]: 42 - [1690191137.963727][40907:40909] CHIP:TOO: [8]: 43 - [1690191137.963729][40907:40909] CHIP:TOO: [9]: 44 - [1690191137.963731][40907:40909] CHIP:TOO: [10]: 45 - [1690191137.963733][40907:40909] CHIP:TOO: [11]: 47 - [1690191137.963735][40907:40909] CHIP:TOO: [12]: 48 - [1690191137.963737][40907:40909] CHIP:TOO: [13]: 49 - [1690191137.963739][40907:40909] CHIP:TOO: [14]: 50 - [1690191137.963742][40907:40909] CHIP:TOO: [15]: 51 - [1690191137.963744][40907:40909] CHIP:TOO: [16]: 52 - [1690191137.963745][40907:40909] CHIP:TOO: [17]: 53 - [1690191137.963747][40907:40909] CHIP:TOO: [18]: 54 - [1690191137.963749][40907:40909] CHIP:TOO: [19]: 55 - [1690191137.963751][40907:40909] CHIP:TOO: [20]: 56 - [1690191137.963753][40907:40909] CHIP:TOO: [21]: 60 - [1690191137.963754][40907:40909] CHIP:TOO: [22]: 62 - [1690191137.963756][40907:40909] CHIP:TOO: [23]: 63 - [1690191137.963758][40907:40909] CHIP:TOO: [24]: 64 - [1690191137.963760][40907:40909] CHIP:TOO: [25]: 65 - [1690191137.963762][40907:40909] CHIP:TOO: [26]: 70 - [1690191137.963764][40907:40909] CHIP:TOO: [27]: 1029 - [1690191137.963766][40907:40909] CHIP:TOO: [28]: 4294048774 - [1690191137.963778][40907:40909] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 1390630643 - [1690191137.963781][40907:40909] CHIP:TOO: ClientList: 1 entries - [1690191137.963783][40907:40909] CHIP:TOO: [1]: 41 - [1690191137.963795][40907:40909] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 1390630643 - [1690191137.963799][40907:40909] CHIP:TOO: PartsList: 2 entries - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SM_1_2.yaml b/src/app/tests/suites/certification/Test_TC_SM_1_2.yaml deleted file mode 100755 index 05286d1a00b825..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_SM_1_2.yaml +++ /dev/null @@ -1,132 +0,0 @@ -# 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: 54.1.2. [TC-SM-1.2] Device composition - Topology [DUT as Server] - -PICS: - - MCORE.IDM.S - -config: - nodeId: 0x12344321 - cluster: "Basic Information" - endpoint: 0 - -tests: - - label: - "Step 1: TH performs a wildcard read of all attributes on all - endpoints" - verification: | - TH(chip-tool) sends the wildcard read command to read all attributes and endpoints from DUT(Reference app/all-clusters-app) - ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF - disabled: true - - - label: - "Step 2: Verify the Descriptor cluster PartsList on endpoint 0 exactly - lists all the other (non-0) endpoints on the DUT - i.e. the endpoints - returned in step 1 (except EP 0) must be listed in the PartsList, and - all endpoints listed in the PartsList must be amongst the endpoint(s) - returned in step 1" - verification: | - On TH(chip-tool), Verify the Descriptor cluster PartsList on endpoint 0 exactly lists all the other (non-0) endpoints in the returned report data Message - below is the sample log provided for the raspi platform: - - [1690193538.813187][43091:43093] CHIP:TOO: [28]: 4294048774 - [1690193538.813213][43091:43093] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 1390630643 - [1690193538.813220][43091:43093] CHIP:TOO: ClientList: 1 entries - [1690193538.813224][43091:43093] CHIP:TOO: [1]: 41 - [1690193538.813254][43091:43093] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 1390630643 - [1690193538.813262][43091:43093] CHIP:TOO: PartsList: 2 entries - [1690193538.813268][43091:43093] CHIP:TOO: [1]: 1 - [1690193538.813276][43091:43093] CHIP:TOO: [2]: 2 - [1690193538.813281][43091:43093] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFC DataVersion: 1390630643 - [1690193538.813283][43091:43093] CHIP:TOO: FeatureMap: 0 - disabled: true - - - label: - "Step 4: For each endpoint on the DUT (including EP 0), verify the - PartsList in the Descriptor cluster on that endpoint does not include - itself" - verification: | - On TH(chip-tool), verify the PartsList in the Descriptor cluster on that endpoint does not include itself For each endpoint on the DUT (including EP 0) in the returned report data Message - below is the sample log provided for the raspi platform: - - [1690193538.813187][43091:43093] CHIP:TOO: [28]: 4294048774 - [1690193538.813213][43091:43093] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 1390630643 - [1690193538.813220][43091:43093] CHIP:TOO: ClientList: 1 entries - [1690193538.813224][43091:43093] CHIP:TOO: [1]: 41 - [1690193538.813254][43091:43093] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 1390630643 - [1690193538.813262][43091:43093] CHIP:TOO: PartsList: 2 entries - [1690193538.813268][43091:43093] CHIP:TOO: [1]: 1 - [1690193538.813276][43091:43093] CHIP:TOO: [2]: 2 - [1690193538.813281][43091:43093] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFC DataVersion: 1390630643 - [1690193538.813283][43091:43093] CHIP:TOO: FeatureMap: 0 - - - [1690193538.869392][43091:43093] CHIP:TOO: [68]: 4294048773 - [1690193538.869403][43091:43093] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 2743502132 - [1690193538.869406][43091:43093] CHIP:TOO: ClientList: 1 entries - [1690193538.869408][43091:43093] CHIP:TOO: [1]: 6 - [1690193538.869417][43091:43093] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 2743502132 - [1690193538.869420][43091:43093] CHIP:TOO: PartsList: 0 entries - [1690193538.869423][43091:43093] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFC DataVersion: 2743502132 - [1690193538.869425][43091:43093] CHIP:TOO: FeatureMap: 0 - [1690193538.869433][43091:43093] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFD DataVersion: 2743502132 - [1690193538.869435][43091:43093] CHIP:TOO: ClusterRevision: 1 - [1690193538.869450][43091:43093] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFF8 DataVersion: 2743502132 - [1690193538.869453][43091:43093] CHIP:TOO: GeneratedCommandList: 0 entries - [1690193538.869462][43091:43093] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFF9 DataVersion: 2743502132 - [1690193538.869464][43091:43093] CHIP:TOO: AcceptedCommandList: 0 entries - [1690193538.869476][43091:43093] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFA DataVersion: 2743502132 - [1690193538.869478][43091:43093] CHIP:TOO: EventList: 0 entries - [1690193538.869496][43091:43093] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_FFFB DataVersion: 2743502132 - - - [1690193539.051392][43091:43093] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 516620155 - [1690193539.051395][43091:43093] CHIP:TOO: ClientList: 0 entries - [1690193539.051410][43091:43093] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0003 DataVersion: 516620155 - [1690193539.051414][43091:43093] CHIP:TOO: PartsList: 0 entries - [1690193539.051418][43091:43093] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_FFFC DataVersion: 516620155 - [1690193539.051421][43091:43093] CHIP:TOO: FeatureMap: 0 - [1690193539.051435][43091:43093] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_FFFD DataVersion: 516620155 - [1690193539.051438][43091:43093] CHIP:TOO: ClusterRevision: 1 - [1690193539.051459][43091:43093] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_FFF8 DataVersion: 516620155 - [1690193539.051462][43091:43093] CHIP:TOO: GeneratedCommandList: 0 entries - disabled: true - - - label: - "Step 5: Create two empty list variables flat and tree, For each - non-root endpoint on the DUT, If the DeviceTypeList attribute in the - Descriptor cluster for that endpoint includes the Aggregator device - type(0x000e), add the endpoint id to the flat list, Otherwise, add - the endpoint id to the tree list" - verification: | - - disabled: true - - - label: - "Step 6: For each endpoint e in the tree list, walk the entire - PartsList tree and ensure e does not appear in any descendants." - verification: | - - disabled: true - - - label: - "Step 7: For each endpoint e in the flat list: * for each endpoint id - sub_id present in the in the PartsList of e, ensure that every id - listed in the PartsList for endpoint sub_id appears in the PartsList - of e" - verification: | - - disabled: true diff --git a/src/app/tests/suites/manualTests.json b/src/app/tests/suites/manualTests.json index cb7978bd030f2f..bba856faac0fb5 100644 --- a/src/app/tests/suites/manualTests.json +++ b/src/app/tests/suites/manualTests.json @@ -136,9 +136,7 @@ "Test_TC_IDM_6_3", "Test_TC_IDM_6_4", "Test_TC_IDM_7_1", - "Test_TC_IDM_8_1", - "Test_TC_IDM_10_1", - "Test_TC_IDM_11_1" + "Test_TC_IDM_8_1" ], "MediaControl": [ "Test_TC_LOWPOWER_2_2", From 818a21181deda895695079b4146b046ce2aec364 Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Wed, 20 Sep 2023 13:31:45 +0530 Subject: [PATCH 04/13] Fixes issue: 656 & 658 Modified tests: TC-GRPKEY-2.1 Removed test: TC-LVL-2.3_Simulated --- .../placeholder/linux/apps/app1/ciTests.json | 1 - .../certification/Test_TC_GRPKEY_2_1.yaml | 2 +- .../Test_TC_LVL_2_3_Simulated.yaml | 584 ------------------ .../app1/zap-generated/test/Commands.h | 187 ------ .../app2/zap-generated/test/Commands.h | 187 ------ 5 files changed, 1 insertion(+), 960 deletions(-) delete mode 100644 src/app/tests/suites/certification/Test_TC_LVL_2_3_Simulated.yaml diff --git a/examples/placeholder/linux/apps/app1/ciTests.json b/examples/placeholder/linux/apps/app1/ciTests.json index 66abad400a442f..63ba1ad875563c 100644 --- a/examples/placeholder/linux/apps/app1/ciTests.json +++ b/examples/placeholder/linux/apps/app1/ciTests.json @@ -14,7 +14,6 @@ "Test_TC_CC_7_5_Simulated", "Test_TC_CC_9_4_Simulated", "Test_TC_DGTHREAD_3_4_Simulated", - "Test_TC_LVL_2_3_Simulated", "Test_TC_OO_3_2_Simulated" ], "collection": ["Test"] diff --git a/src/app/tests/suites/certification/Test_TC_GRPKEY_2_1.yaml b/src/app/tests/suites/certification/Test_TC_GRPKEY_2_1.yaml index 3cef4c28dd6e4b..f6d17635840779 100644 --- a/src/app/tests/suites/certification/Test_TC_GRPKEY_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_GRPKEY_2_1.yaml @@ -170,7 +170,7 @@ tests: saveAs: MaxGroupKeysPerFabricValue constraints: type: int16u - minValue: 0 + minValue: 1 maxValue: 65535 - label: diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_3_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_3_Simulated.yaml deleted file mode 100644 index dfb6ad9787fcf5..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_3_Simulated.yaml +++ /dev/null @@ -1,584 +0,0 @@ -# Copyright (c) 2021 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. - -name: 21.2.3. [TC-LVL-2.3] Attributes with client as DUT - -PICS: - - LVL.C - - LVL.C.AM-READ - - LVL.C.AO-READ - - LVL.C.AM-WRITE - - LVL.C.AO-WRITE - -config: - nodeId: 0x12344321 - cluster: "Level Control" - endpoint: 1 - -tests: - #- label: "Wait for the device to be commissioned" - # cluster: "DelayCommands" - # command: "WaitForCommissioning" - - - label: "Read mandatory attribute CurrentLevel" - wait: "readAttribute" - attribute: "CurrentLevel" - - - label: "Read mandatory attribute OnLevel" - wait: "readAttribute" - attribute: "OnLevel" - - - label: "Read mandatory attribute Options" - wait: "readAttribute" - attribute: "Options" - - - label: "Read optional attribute RemainingTime" - wait: "readAttribute" - attribute: "RemainingTime" - - - label: "Read optional attribute StartUpCurrentLevel" - wait: "readAttribute" - attribute: "StartUpCurrentLevel" - - - label: "Read optional attribute CurrentFrequency" - wait: "readAttribute" - attribute: "CurrentFrequency" - - - label: "Read optional attribute MinFrequency" - wait: "readAttribute" - attribute: "MinFrequency" - - - label: "Read optional attribute MaxFrequency" - wait: "readAttribute" - attribute: "MaxFrequency" - - - label: "Read optional attribute MinLevel" - wait: "readAttribute" - attribute: "MinLevel" - - - label: "Read optional attribute MaxLevel" - wait: "readAttribute" - attribute: "MaxLevel" - - - label: "Read optional attribute OnOffTransitionTime" - wait: "readAttribute" - attribute: "OnOffTransitionTime" - - - label: "Read optional attribute OnTransitionTime" - wait: "readAttribute" - attribute: "OnTransitionTime" - - - label: "Read optional attribute OffTransitionTime" - wait: "readAttribute" - attribute: "OffTransitionTime" - - - label: "Read optional attribute DefaultMoveRate" - wait: "readAttribute" - attribute: "DefaultMoveRate" - - - label: "Write mandatory attribute OnLevel" - wait: "writeAttribute" - attribute: "OnLevel" - arguments: - value: - - - label: "Write mandatory attribute Options" - wait: "writeAttribute" - attribute: "Options" - arguments: - value: - - - label: "Write optional attribute OnOffTransitionTime" - wait: "writeAttribute" - attribute: "OnOffTransitionTime" - arguments: - value: - - - label: "Write optional attribute OnTransitionTime" - wait: "writeAttribute" - attribute: "OnTransitionTime" - arguments: - value: - - - label: "Write optional attribute OffTransitionTime" - wait: "writeAttribute" - attribute: "OffTransitionTime" - arguments: - value: - - - label: "Write optional attribute DefaultMoveRate" - wait: "writeAttribute" - attribute: "DefaultMoveRate" - arguments: - value: - - - label: "Write optional attribute StartUpCurrentLevel" - wait: "writeAttribute" - attribute: "StartUpCurrentLevel" - arguments: - value: - - - label: - "Configure TH such that it implements mandatory and none of the - optional attributes of the server-side of the cluster, and that it - also reflects this in global attributes such as FeatureMap and - AttributeList.Commission DUT to TH again" - 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/Client) - - ./chip-tool levelcontrol read current-level 1 1 - Verify DUT receives current-level attribute response on the TH(all-clusters-minimal-app) Log: - [1657913862.815749][3126:3126] CHIP:IM: Received Read request - [1657913862.815884][3126:3126] CHIP:DMG: ReadRequestMessage = - [1657913862.815935][3126:3126] CHIP:DMG: { - [1657913862.815975][3126:3126] CHIP:DMG: AttributePathIBs = - [1657913862.816023][3126:3126] CHIP:DMG: [ - [1657913862.816107][3126:3126] CHIP:DMG: AttributePathIB = - [1657913862.816161][3126:3126] CHIP:DMG: { - [1657913862.816212][3126:3126] CHIP:DMG: Endpoint = 0x1, - [1657913862.816268][3126:3126] CHIP:DMG: Cluster = 0x8, - [1657913862.816325][3126:3126] CHIP:DMG: Attribute = 0x0000_0000, - [1657913862.816377][3126:3126] CHIP:DMG: } - [1657913862.816431][3126:3126] CHIP:DMG: - [1657913862.816477][3126:3126] CHIP:DMG: ], - [1657913862.816527][3126:3126] CHIP:DMG: - [1657913862.816573][3126:3126] CHIP:DMG: isFabricFiltered = true, - [1657913862.816619][3126:3126] CHIP:DMG: InteractionModelRevision = 1 - [1657913862.816662][3126:3126] CHIP:DMG: }, - - - ./chip-tool levelcontrol read on-level 1 1 - Verify DUT receives on-level attribute response on the TH(all-clusters-minimal-app) Log: - [1657913877.850398][3126:3126] CHIP:IM: Received Read request - [1657913877.850525][3126:3126] CHIP:DMG: ReadRequestMessage = - [1657913877.850574][3126:3126] CHIP:DMG: { - [1657913877.850614][3126:3126] CHIP:DMG: AttributePathIBs = - [1657913877.850725][3126:3126] CHIP:DMG: [ - [1657913877.850771][3126:3126] CHIP:DMG: AttributePathIB = - [1657913877.850821][3126:3126] CHIP:DMG: { - [1657913877.850872][3126:3126] CHIP:DMG: Endpoint = 0x1, - [1657913877.850932][3126:3126] CHIP:DMG: Cluster = 0x8, - [1657913877.850989][3126:3126] CHIP:DMG: Attribute = 0x0000_0011, - [1657913877.851048][3126:3126] CHIP:DMG: } - [1657913877.851103][3126:3126] CHIP:DMG: - [1657913877.851153][3126:3126] CHIP:DMG: ], - [1657913877.851203][3126:3126] CHIP:DMG: - [1657913877.851251][3126:3126] CHIP:DMG: isFabricFiltered = true, - [1657913877.851297][3126:3126] CHIP:DMG: InteractionModelRevision = 1 - [1657913877.851343][3126:3126] CHIP:DMG: }, - [1657913877.851471][3126:3126] CHIP:DMG: IM - - - ./chip-tool levelcontrol read options 1 1 - Verify DUT receives options attribute response on the TH(all-clusters-minimal-app) Log: - [1657913895.195563][3126:3126] CHIP:IM: Received Read request - [1657913895.195705][3126:3126] CHIP:DMG: ReadRequestMessage = - [1657913895.195732][3126:3126] CHIP:DMG: { - [1657913895.195754][3126:3126] CHIP:DMG: AttributePathIBs = - [1657913895.195780][3126:3126] CHIP:DMG: [ - [1657913895.195803][3126:3126] CHIP:DMG: AttributePathIB = - [1657913895.195901][3126:3126] CHIP:DMG: { - [1657913895.195932][3126:3126] CHIP:DMG: Endpoint = 0x1, - [1657913895.195963][3126:3126] CHIP:DMG: Cluster = 0x8, - [1657913895.195993][3126:3126] CHIP:DMG: Attribute = 0x0000_000F, - [1657913895.196022][3126:3126] CHIP:DMG: } - [1657913895.196073][3126:3126] CHIP:DMG: - [1657913895.196101][3126:3126] CHIP:DMG: ], - [1657913895.196161][3126:3126] CHIP:DMG: - [1657913895.196189][3126:3126] CHIP:DMG: isFabricFiltered = true, - [1657913895.196214][3126:3126] CHIP:DMG: InteractionModelRevision = 1 - [1657913895.196236][3126:3126] CHIP:DMG: }, - - - ./chip-tool levelcontrol read attribute-list 1 1 - Verify DUT receives attribute-list attribute response on the TH(all-clusters-minimal-app) Log: - [1657913906.648918][3126:3126] CHIP:IM: Received Read request - [1657913906.649061][3126:3126] CHIP:DMG: ReadRequestMessage = - [1657913906.649115][3126:3126] CHIP:DMG: { - [1657913906.649162][3126:3126] CHIP:DMG: AttributePathIBs = - [1657913906.649225][3126:3126] CHIP:DMG: [ - [1657913906.649273][3126:3126] CHIP:DMG: AttributePathIB = - [1657913906.649330][3126:3126] CHIP:DMG: { - [1657913906.649389][3126:3126] CHIP:DMG: Endpoint = 0x1, - [1657913906.649462][3126:3126] CHIP:DMG: Cluster = 0x8, - [1657913906.649529][3126:3126] CHIP:DMG: Attribute = 0x0000_FFFB, - [1657913906.649569][3126:3126] CHIP:DMG: } - [1657913906.649593][3126:3126] CHIP:DMG: - [1657913906.649618][3126:3126] CHIP:DMG: ], - [1657913906.649645][3126:3126] CHIP:DMG: - [1657913906.649731][3126:3126] CHIP:DMG: isFabricFiltered = true, - [1657913906.649757][3126:3126] CHIP:DMG: InteractionModelRevision = 1 - [1657913906.649781][3126:3126] CHIP:DMG: }, - - - ./chip-tool levelcontrol read feature-map 1 1 - Verify DUT receives feature-map attribute response on the TH(all-clusters-minimal-app) Log: - [1663070713.467153][4422:4422] CHIP:IM: Received Read request - [1663070713.467242][4422:4422] CHIP:DMG: ReadRequestMessage = - [1663070713.467275][4422:4422] CHIP:DMG: { - [1663070713.467300][4422:4422] CHIP:DMG: AttributePathIBs = - [1663070713.467329][4422:4422] CHIP:DMG: [ - [1663070713.467355][4422:4422] CHIP:DMG: AttributePathIB = - [1663070713.467390][4422:4422] CHIP:DMG: { - [1663070713.467422][4422:4422] CHIP:DMG: Endpoint = 0x1, - [1663070713.467455][4422:4422] CHIP:DMG: Cluster = 0x8, - [1663070713.467487][4422:4422] CHIP:DMG: Attribute = 0x0000_FFFC, - [1663070713.467517][4422:4422] CHIP:DMG: } - [1663070713.467548][4422:4422] CHIP:DMG: - [1663070713.467576][4422:4422] CHIP:DMG: ], - [1663070713.467606][4422:4422] CHIP:DMG: - [1663070713.467635][4422:4422] CHIP:DMG: isFabricFiltered = true, - [1663070713.467663][4422:4422] CHIP:DMG: InteractionModelRevision = 1 - [1663070713.467689][4422:4422] CHIP:DMG: }, - [1663070713.467767][4422:4422] CHIP:DMG: IM RH moving to [GeneratingReports] - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_SKIP_SAMPLE_APP - arguments: - values: - - name: "message" - value: "Enter 'y' after success" - - name: "expectedValue" - value: "y" - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - 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/Client) - - TH all-clusters-minimal-app does not support optional attributes - - ./chip-tool levelcontrol read remaining-time 1 1 - Verify DUT(chip-tool) receives remaining-time attribute response on the TH(all-clusters-minimal-app) Log: - [1663147148.155292][37702:37702] CHIP:IM: Received Read request - [1663147148.155312][37702:37702] CHIP:DMG: ReadRequestMessage = - [1663147148.155315][37702:37702] CHIP:DMG: { - [1663147148.155317][37702:37702] CHIP:DMG: AttributePathIBs = - [1663147148.155320][37702:37702] CHIP:DMG: [ - [1663147148.155323][37702:37702] CHIP:DMG: AttributePathIB = - [1663147148.155326][37702:37702] CHIP:DMG: { - [1663147148.155328][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147148.155331][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147148.155334][37702:37702] CHIP:DMG: Attribute = 0x0000_0001, - [1663147148.155338][37702:37702] CHIP:DMG: } - [1663147148.155341][37702:37702] CHIP:DMG: - [1663147148.155343][37702:37702] CHIP:DMG: ], - [1663147148.155346][37702:37702] CHIP:DMG: - [1663147148.155349][37702:37702] CHIP:DMG: isFabricFiltered = true, - [1663147148.155351][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147148.155353][37702:37702] CHIP:DMG: }, - [1663147148.155366][37702:37702] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663147148.155376][37702:37702] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - - - - ./chip-tool levelcontrol read min-level 1 1 - Verify DUT(chip-tool) receives min-level attribute response on the TH(all-clusters-minimal-app) Log: - [1663147176.255360][37702:37702] CHIP:DMG: ReadRequestMessage = - [1663147176.255364][37702:37702] CHIP:DMG: { - [1663147176.255368][37702:37702] CHIP:DMG: AttributePathIBs = - [1663147176.255373][37702:37702] CHIP:DMG: [ - [1663147176.255376][37702:37702] CHIP:DMG: AttributePathIB = - [1663147176.255381][37702:37702] CHIP:DMG: { - [1663147176.255385][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147176.255389][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147176.255393][37702:37702] CHIP:DMG: Attribute = 0x0000_0002, - [1663147176.255396][37702:37702] CHIP:DMG: } - [1663147176.255401][37702:37702] CHIP:DMG: - [1663147176.255404][37702:37702] CHIP:DMG: ], - [1663147176.255409][37702:37702] CHIP:DMG: - [1663147176.255413][37702:37702] CHIP:DMG: isFabricFiltered = true, - [1663147176.255416][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147176.255419][37702:37702] CHIP:DMG: }, - [1663147176.255436][37702:37702] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663147176.255451][37702:37702] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - - - ./chip-tool levelcontrol read max-level 1 1 - Verify DUT(chip-tool) receives max-level attribute response on the TH(all-clusters-minimal-app) Log: - [1663147204.133512][37702:37702] CHIP:IM: Received Read request - [1663147204.133528][37702:37702] CHIP:DMG: ReadRequestMessage = - [1663147204.133531][37702:37702] CHIP:DMG: { - [1663147204.133533][37702:37702] CHIP:DMG: AttributePathIBs = - [1663147204.133536][37702:37702] CHIP:DMG: [ - [1663147204.133538][37702:37702] CHIP:DMG: AttributePathIB = - [1663147204.133541][37702:37702] CHIP:DMG: { - [1663147204.133543][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147204.133546][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147204.133549][37702:37702] CHIP:DMG: Attribute = 0x0000_0003, - [1663147204.133551][37702:37702] CHIP:DMG: } - [1663147204.133553][37702:37702] CHIP:DMG: - [1663147204.133555][37702:37702] CHIP:DMG: ], - [1663147204.133558][37702:37702] CHIP:DMG: - [1663147204.133561][37702:37702] CHIP:DMG: isFabricFiltered = true, - [1663147204.133563][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147204.133565][37702:37702] CHIP:DMG: }, - [1663147204.133577][37702:37702] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663147204.133587][37702:37702] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - - ./chip-tool levelcontrol read current-frequency 1 1 - Verify DUT(chip-tool) receives current-frequency attribute response on the TH(all-clusters-minimal-app) Log: - [1663147223.228680][37702:37702] CHIP:IM: Received Read request - [1663147223.228702][37702:37702] CHIP:DMG: ReadRequestMessage = - [1663147223.228706][37702:37702] CHIP:DMG: { - [1663147223.228710][37702:37702] CHIP:DMG: AttributePathIBs = - [1663147223.228714][37702:37702] CHIP:DMG: [ - [1663147223.228717][37702:37702] CHIP:DMG: AttributePathIB = - [1663147223.228722][37702:37702] CHIP:DMG: { - [1663147223.228726][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147223.228730][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147223.228734][37702:37702] CHIP:DMG: Attribute = 0x0000_0004, - [1663147223.228738][37702:37702] CHIP:DMG: } - [1663147223.228742][37702:37702] CHIP:DMG: - [1663147223.228746][37702:37702] CHIP:DMG: ], - [1663147223.228751][37702:37702] CHIP:DMG: - [1663147223.228754][37702:37702] CHIP:DMG: isFabricFiltered = true, - [1663147223.228758][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147223.228761][37702:37702] CHIP:DMG: }, - [1663147223.228780][37702:37702] CHIP:DMG: IM RH moving to [GeneratingReports] - - ./chip-tool levelcontrol read min-frequency 1 1 - Verify DUT(chip-tool) receives min-frequency attribute response on the TH(all-clusters-minimal-app) Log: - [1663147242.442251][37702:37702] CHIP:IM: Received Read request - [1663147242.442277][37702:37702] CHIP:DMG: ReadRequestMessage = - [1663147242.442282][37702:37702] CHIP:DMG: { - [1663147242.442287][37702:37702] CHIP:DMG: AttributePathIBs = - [1663147242.442293][37702:37702] CHIP:DMG: [ - [1663147242.442298][37702:37702] CHIP:DMG: AttributePathIB = - [1663147242.442304][37702:37702] CHIP:DMG: { - [1663147242.442309][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147242.442315][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147242.442320][37702:37702] CHIP:DMG: Attribute = 0x0000_0005, - [1663147242.442324][37702:37702] CHIP:DMG: } - [1663147242.442331][37702:37702] CHIP:DMG: - [1663147242.442336][37702:37702] CHIP:DMG: ], - [1663147242.442342][37702:37702] CHIP:DMG: - [1663147242.442347][37702:37702] CHIP:DMG: isFabricFiltered = true, - [1663147242.442352][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147242.442355][37702:37702] CHIP:DMG: }, - [1663147242.442378][37702:37702] CHIP:DMG: IM RH moving to [GeneratingReports] - - ./chip-tool levelcontrol read max-frequency 1 1 - Verify DUT(chip-tool) receives max-frequency attribute response on the TH(all-clusters-minimal-app) Log: - [1663147259.687422][37702:37702] CHIP:IM: Received Read request - [1663147259.687445][37702:37702] CHIP:DMG: ReadRequestMessage = - [1663147259.687450][37702:37702] CHIP:DMG: { - [1663147259.687454][37702:37702] CHIP:DMG: AttributePathIBs = - [1663147259.687458][37702:37702] CHIP:DMG: [ - [1663147259.687463][37702:37702] CHIP:DMG: AttributePathIB = - [1663147259.687469][37702:37702] CHIP:DMG: { - [1663147259.687474][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147259.687478][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147259.687481][37702:37702] CHIP:DMG: Attribute = 0x0000_0006, - [1663147259.687485][37702:37702] CHIP:DMG: } - [1663147259.687490][37702:37702] CHIP:DMG: - [1663147259.687494][37702:37702] CHIP:DMG: ], - [1663147259.687500][37702:37702] CHIP:DMG: - [1663147259.687504][37702:37702] CHIP:DMG: isFabricFiltered = true, - [1663147259.687509][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147259.687513][37702:37702] CHIP:DMG: }, - [1663147259.687532][37702:37702] CHIP:DMG: IM RH moving to [GeneratingReports] - - ./chip-tool levelcontrol read on-off-transition-time 1 1 - Verify DUT(chip-tool) receives on-off-transition-time attribute response on the TH(all-clusters-minimal-app) Log: - [1663147276.525081][37702:37702] CHIP:IM: Received Read request - [1663147276.525105][37702:37702] CHIP:DMG: ReadRequestMessage = - [1663147276.525110][37702:37702] CHIP:DMG: { - [1663147276.525115][37702:37702] CHIP:DMG: AttributePathIBs = - [1663147276.525120][37702:37702] CHIP:DMG: [ - [1663147276.525124][37702:37702] CHIP:DMG: AttributePathIB = - [1663147276.525129][37702:37702] CHIP:DMG: { - [1663147276.525133][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147276.525138][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147276.525143][37702:37702] CHIP:DMG: Attribute = 0x0000_0010, - [1663147276.525148][37702:37702] CHIP:DMG: } - [1663147276.525155][37702:37702] CHIP:DMG: - [1663147276.525159][37702:37702] CHIP:DMG: ], - [1663147276.525166][37702:37702] CHIP:DMG: - [1663147276.525171][37702:37702] CHIP:DMG: isFabricFiltered = true, - [1663147276.525177][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147276.525181][37702:37702] CHIP:DMG: }, - [1663147276.525202][37702:37702] CHIP:DMG: IM RH moving to [GeneratingReports] - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_SKIP_SAMPLE_APP - arguments: - values: - - name: "message" - value: "Enter 'y' after success" - - name: "expectedValue" - value: "y" - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - 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/Client) - - TH all-clusters-minimal-app does not support optional attributes - - ./chip-tool levelcontrol write on-off-transition-time 5 1 1 - Verify DUT(chip-tool) receives on-off-transition-time attribute response on the TH(all-clusters-minimal-app) Log: - [1663147558.231731][37702:37702] CHIP:IM: Received Write request - [1663147558.231735][37702:37702] CHIP:DMG: IM WH moving to [Initialized] - [1663147558.231746][37702:37702] CHIP:DMG: WriteRequestMessage = - [1663147558.231749][37702:37702] CHIP:DMG: { - [1663147558.231753][37702:37702] CHIP:DMG: suppressResponse = false, - [1663147558.231757][37702:37702] CHIP:DMG: timedRequest = false, - [1663147558.231760][37702:37702] CHIP:DMG: AttributeDataIBs = - [1663147558.231765][37702:37702] CHIP:DMG: [ - [1663147558.231767][37702:37702] CHIP:DMG: AttributeDataIB = - [1663147558.231771][37702:37702] CHIP:DMG: { - [1663147558.231773][37702:37702] CHIP:DMG: AttributePathIB = - [1663147558.231777][37702:37702] CHIP:DMG: { - [1663147558.231781][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147558.231784][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147558.231789][37702:37702] CHIP:DMG: Attribute = 0x0000_0010, - [1663147558.231792][37702:37702] CHIP:DMG: } - [1663147558.231795][37702:37702] CHIP:DMG: - [1663147558.231798][37702:37702] CHIP:DMG: Data = 5, - [1663147558.231801][37702:37702] CHIP:DMG: }, - [1663147558.231805][37702:37702] CHIP:DMG: - [1663147558.231809][37702:37702] CHIP:DMG: ], - [1663147558.231813][37702:37702] CHIP:DMG: - [1663147558.231816][37702:37702] CHIP:DMG: moreChunkedMessages = false, - [1663147558.231820][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147558.231822][37702:37702] CHIP:DMG: }, - [1663147558.231844][37702:37702] CHIP:DMG: IM WH moving to [AddStatus] - - ./chip-tool levelcontrol write on-transition-time 5 1 1 - Verify DUT(chip-tool) receives on-transition-time attribute response on the TH(all-clusters-minimal-app) Log: - [1663147582.702165][37702:37702] CHIP:IM: Received Write request - [1663147582.702168][37702:37702] CHIP:DMG: IM WH moving to [Initialized] - [1663147582.702179][37702:37702] CHIP:DMG: WriteRequestMessage = - [1663147582.702182][37702:37702] CHIP:DMG: { - [1663147582.702185][37702:37702] CHIP:DMG: suppressResponse = false, - [1663147582.702188][37702:37702] CHIP:DMG: timedRequest = false, - [1663147582.702191][37702:37702] CHIP:DMG: AttributeDataIBs = - [1663147582.702196][37702:37702] CHIP:DMG: [ - [1663147582.702199][37702:37702] CHIP:DMG: AttributeDataIB = - [1663147582.702202][37702:37702] CHIP:DMG: { - [1663147582.702205][37702:37702] CHIP:DMG: AttributePathIB = - [1663147582.702209][37702:37702] CHIP:DMG: { - [1663147582.702212][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147582.702216][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147582.702219][37702:37702] CHIP:DMG: Attribute = 0x0000_0012, - [1663147582.702222][37702:37702] CHIP:DMG: } - [1663147582.702226][37702:37702] CHIP:DMG: - [1663147582.702230][37702:37702] CHIP:DMG: Data = 5, - [1663147582.702233][37702:37702] CHIP:DMG: }, - [1663147582.702236][37702:37702] CHIP:DMG: - [1663147582.702239][37702:37702] CHIP:DMG: ], - [1663147582.702243][37702:37702] CHIP:DMG: - [1663147582.702246][37702:37702] CHIP:DMG: moreChunkedMessages = false, - [1663147582.702248][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147582.702252][37702:37702] CHIP:DMG: }, - [1663147582.702271][37702:37702] CHIP:DMG: IM WH moving to [AddStatus] - - ./chip-tool levelcontrol write off-transition-time 5 1 1 - Verify DUT(chip-tool) receives off-transition-time attribute response on the TH(all-clusters-minimal-app) Log: - [1663147605.317885][37702:37702] CHIP:IM: Received Write request - [1663147605.317891][37702:37702] CHIP:DMG: IM WH moving to [Initialized] - [1663147605.317910][37702:37702] CHIP:DMG: WriteRequestMessage = - [1663147605.317915][37702:37702] CHIP:DMG: { - [1663147605.317920][37702:37702] CHIP:DMG: suppressResponse = false, - [1663147605.317925][37702:37702] CHIP:DMG: timedRequest = false, - [1663147605.317930][37702:37702] CHIP:DMG: AttributeDataIBs = - [1663147605.317936][37702:37702] CHIP:DMG: [ - [1663147605.317941][37702:37702] CHIP:DMG: AttributeDataIB = - [1663147605.317945][37702:37702] CHIP:DMG: { - [1663147605.317950][37702:37702] CHIP:DMG: AttributePathIB = - [1663147605.317956][37702:37702] CHIP:DMG: { - [1663147605.317962][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147605.317968][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147605.317973][37702:37702] CHIP:DMG: Attribute = 0x0000_0013, - [1663147605.317978][37702:37702] CHIP:DMG: } - [1663147605.317985][37702:37702] CHIP:DMG: - [1663147605.317990][37702:37702] CHIP:DMG: Data = 5, - [1663147605.317996][37702:37702] CHIP:DMG: }, - [1663147605.318002][37702:37702] CHIP:DMG: - [1663147605.318007][37702:37702] CHIP:DMG: ], - [1663147605.318014][37702:37702] CHIP:DMG: - [1663147605.318018][37702:37702] CHIP:DMG: moreChunkedMessages = false, - [1663147605.318024][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147605.318028][37702:37702] CHIP:DMG: }, - [1663147605.318058][37702:37702] CHIP:DMG: IM WH moving to [AddStatus] - - ./chip-tool levelcontrol write default-move-rate 5 1 1 - Verify DUT(chip-tool) receives default-move-rate attribute response on the TH(all-clusters-minimal-app) Log: - [1663147644.857538][37702:37702] CHIP:IM: Received Write request - [1663147644.857541][37702:37702] CHIP:DMG: IM WH moving to [Initialized] - [1663147644.857552][37702:37702] CHIP:DMG: WriteRequestMessage = - [1663147644.857555][37702:37702] CHIP:DMG: { - [1663147644.857557][37702:37702] CHIP:DMG: suppressResponse = false, - [1663147644.857560][37702:37702] CHIP:DMG: timedRequest = false, - [1663147644.857562][37702:37702] CHIP:DMG: AttributeDataIBs = - [1663147644.857566][37702:37702] CHIP:DMG: [ - [1663147644.857568][37702:37702] CHIP:DMG: AttributeDataIB = - [1663147644.857571][37702:37702] CHIP:DMG: { - [1663147644.857574][37702:37702] CHIP:DMG: AttributePathIB = - [1663147644.857577][37702:37702] CHIP:DMG: { - [1663147644.857580][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147644.857582][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147644.857585][37702:37702] CHIP:DMG: Attribute = 0x0000_0014, - [1663147644.857587][37702:37702] CHIP:DMG: } - [1663147644.857591][37702:37702] CHIP:DMG: - [1663147644.857594][37702:37702] CHIP:DMG: Data = 5, - [1663147644.857596][37702:37702] CHIP:DMG: }, - [1663147644.857601][37702:37702] CHIP:DMG: - [1663147644.857603][37702:37702] CHIP:DMG: ], - [1663147644.857606][37702:37702] CHIP:DMG: - [1663147644.857609][37702:37702] CHIP:DMG: moreChunkedMessages = false, - [1663147644.857611][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147644.857613][37702:37702] CHIP:DMG: }, - [1663147644.857629][37702:37702] CHIP:DMG: IM WH moving to [AddStatus] - - ./chip-tool levelcontrol write start-up-current-level 5 1 1 - Verify DUT(chip-tool) receives start-up-current-level attribute response on the TH(all-clusters-minimal-app) Log: - [1663147665.149448][37702:37702] CHIP:IM: Received Write request - [1663147665.149453][37702:37702] CHIP:DMG: IM WH moving to [Initialized] - [1663147665.149474][37702:37702] CHIP:DMG: WriteRequestMessage = - [1663147665.149480][37702:37702] CHIP:DMG: { - [1663147665.149486][37702:37702] CHIP:DMG: suppressResponse = false, - [1663147665.149492][37702:37702] CHIP:DMG: timedRequest = false, - [1663147665.149497][37702:37702] CHIP:DMG: AttributeDataIBs = - [1663147665.149506][37702:37702] CHIP:DMG: [ - [1663147665.149511][37702:37702] CHIP:DMG: AttributeDataIB = - [1663147665.149520][37702:37702] CHIP:DMG: { - [1663147665.149525][37702:37702] CHIP:DMG: AttributePathIB = - [1663147665.149532][37702:37702] CHIP:DMG: { - [1663147665.149539][37702:37702] CHIP:DMG: Endpoint = 0x1, - [1663147665.149545][37702:37702] CHIP:DMG: Cluster = 0x8, - [1663147665.149552][37702:37702] CHIP:DMG: Attribute = 0x0000_4000, - [1663147665.149558][37702:37702] CHIP:DMG: } - [1663147665.149565][37702:37702] CHIP:DMG: - [1663147665.149572][37702:37702] CHIP:DMG: Data = 5, - [1663147665.149578][37702:37702] CHIP:DMG: }, - [1663147665.149586][37702:37702] CHIP:DMG: - [1663147665.149590][37702:37702] CHIP:DMG: ], - [1663147665.149598][37702:37702] CHIP:DMG: - [1663147665.149604][37702:37702] CHIP:DMG: moreChunkedMessages = false, - [1663147665.149609][37702:37702] CHIP:DMG: InteractionModelRevision = 1 - [1663147665.149614][37702:37702] CHIP:DMG: }, - [1663147665.149652][37702:37702] CHIP:DMG: IM WH moving to [AddStatus] - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_SKIP_SAMPLE_APP - arguments: - values: - - name: "message" - value: "Enter 'y' after success" - - name: "expectedValue" - value: "y" diff --git a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h index 95f1a0850a48e4..2c689ce70fe83b 100644 --- a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h @@ -1634,188 +1634,6 @@ class Test_TC_DGTHREAD_3_4_SimulatedSuite : public TestCommand } }; -class Test_TC_LVL_2_3_SimulatedSuite : public TestCommand -{ -public: - Test_TC_LVL_2_3_SimulatedSuite() : TestCommand("Test_TC_LVL_2_3_Simulated", 24) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_LVL_2_3_SimulatedSuite() {} - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - case 21: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 22: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 23: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - case 0: { - LogStep(0, "Read mandatory attribute CurrentLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id); - } - case 1: { - LogStep(1, "Read mandatory attribute OnLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id); - } - case 2: { - LogStep(2, "Read mandatory attribute Options"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::Options::Id); - } - case 3: { - LogStep(3, "Read optional attribute RemainingTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::RemainingTime::Id); - } - case 4: { - LogStep(4, "Read optional attribute StartUpCurrentLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id); - } - case 5: { - LogStep(5, "Read optional attribute CurrentFrequency"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentFrequency::Id); - } - case 6: { - LogStep(6, "Read optional attribute MinFrequency"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinFrequency::Id); - } - case 7: { - LogStep(7, "Read optional attribute MaxFrequency"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxFrequency::Id); - } - case 8: { - LogStep(8, "Read optional attribute MinLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id); - } - case 9: { - LogStep(9, "Read optional attribute MaxLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxLevel::Id); - } - case 10: { - LogStep(10, "Read optional attribute OnOffTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id); - } - case 11: { - LogStep(11, "Read optional attribute OnTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id); - } - case 12: { - LogStep(12, "Read optional attribute OffTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id); - } - case 13: { - LogStep(13, "Read optional attribute DefaultMoveRate"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id); - } - case 14: { - LogStep(14, "Write mandatory attribute OnLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id); - } - case 15: { - LogStep(15, "Write mandatory attribute Options"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::Options::Id); - } - case 16: { - LogStep(16, "Write optional attribute OnOffTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id); - } - case 17: { - LogStep(17, "Write optional attribute OnTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id); - } - case 18: { - LogStep(18, "Write optional attribute OffTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id); - } - case 19: { - LogStep(19, "Write optional attribute DefaultMoveRate"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id); - } - case 20: { - LogStep(20, "Write optional attribute StartUpCurrentLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id); - } - case 21: { - LogStep(21, - "Configure TH such that it implements mandatory and none of the optional attributes of the server-side of the " - "cluster, and that it also reflects this in global attributes such as FeatureMap and AttributeList.Commission " - "DUT to TH again"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Enter 'y' after successgarbage: not in length on purpose", 23); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - case 22: { - LogStep(22, "DUT reads all supported optional attributes from TH one at a time in a manufacturer specific order"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Enter 'y' after successgarbage: not in length on purpose", 23); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - case 23: { - LogStep(23, - "DUT writes a suitable value to all supported optional attributes on the TH one at a time in a manufacturer " - "specific order"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Enter 'y' after successgarbage: not in length on purpose", 23); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - } - return CHIP_NO_ERROR; - } -}; - class Test_TC_OO_3_2_SimulatedSuite : public TestCommand { public: @@ -1955,10 +1773,6 @@ std::unique_ptr GetTestCommand(std::string testName) { return std::unique_ptr(new Test_TC_DGTHREAD_3_4_SimulatedSuite()); } - if (testName == "Test_TC_LVL_2_3_Simulated") - { - return std::unique_ptr(new Test_TC_LVL_2_3_SimulatedSuite()); - } if (testName == "Test_TC_OO_3_2_Simulated") { return std::unique_ptr(new Test_TC_OO_3_2_SimulatedSuite()); @@ -1984,6 +1798,5 @@ void PrintTestCommands() ChipLogError(chipTool, "\t* Test_TC_CC_7_5_Simulated"); ChipLogError(chipTool, "\t* Test_TC_CC_9_4_Simulated"); ChipLogError(chipTool, "\t* Test_TC_DGTHREAD_3_4_Simulated"); - ChipLogError(chipTool, "\t* Test_TC_LVL_2_3_Simulated"); ChipLogError(chipTool, "\t* Test_TC_OO_3_2_Simulated"); } diff --git a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h index 95f1a0850a48e4..2c689ce70fe83b 100644 --- a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h @@ -1634,188 +1634,6 @@ class Test_TC_DGTHREAD_3_4_SimulatedSuite : public TestCommand } }; -class Test_TC_LVL_2_3_SimulatedSuite : public TestCommand -{ -public: - Test_TC_LVL_2_3_SimulatedSuite() : TestCommand("Test_TC_LVL_2_3_Simulated", 24) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_LVL_2_3_SimulatedSuite() {} - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - case 21: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 22: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 23: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - case 0: { - LogStep(0, "Read mandatory attribute CurrentLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id); - } - case 1: { - LogStep(1, "Read mandatory attribute OnLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id); - } - case 2: { - LogStep(2, "Read mandatory attribute Options"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::Options::Id); - } - case 3: { - LogStep(3, "Read optional attribute RemainingTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::RemainingTime::Id); - } - case 4: { - LogStep(4, "Read optional attribute StartUpCurrentLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id); - } - case 5: { - LogStep(5, "Read optional attribute CurrentFrequency"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentFrequency::Id); - } - case 6: { - LogStep(6, "Read optional attribute MinFrequency"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinFrequency::Id); - } - case 7: { - LogStep(7, "Read optional attribute MaxFrequency"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxFrequency::Id); - } - case 8: { - LogStep(8, "Read optional attribute MinLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id); - } - case 9: { - LogStep(9, "Read optional attribute MaxLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxLevel::Id); - } - case 10: { - LogStep(10, "Read optional attribute OnOffTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id); - } - case 11: { - LogStep(11, "Read optional attribute OnTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id); - } - case 12: { - LogStep(12, "Read optional attribute OffTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id); - } - case 13: { - LogStep(13, "Read optional attribute DefaultMoveRate"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id); - } - case 14: { - LogStep(14, "Write mandatory attribute OnLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id); - } - case 15: { - LogStep(15, "Write mandatory attribute Options"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::Options::Id); - } - case 16: { - LogStep(16, "Write optional attribute OnOffTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id); - } - case 17: { - LogStep(17, "Write optional attribute OnTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id); - } - case 18: { - LogStep(18, "Write optional attribute OffTransitionTime"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id); - } - case 19: { - LogStep(19, "Write optional attribute DefaultMoveRate"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id); - } - case 20: { - LogStep(20, "Write optional attribute StartUpCurrentLevel"); - return WaitAttribute(GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id); - } - case 21: { - LogStep(21, - "Configure TH such that it implements mandatory and none of the optional attributes of the server-side of the " - "cluster, and that it also reflects this in global attributes such as FeatureMap and AttributeList.Commission " - "DUT to TH again"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Enter 'y' after successgarbage: not in length on purpose", 23); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - case 22: { - LogStep(22, "DUT reads all supported optional attributes from TH one at a time in a manufacturer specific order"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Enter 'y' after successgarbage: not in length on purpose", 23); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - case 23: { - LogStep(23, - "DUT writes a suitable value to all supported optional attributes on the TH one at a time in a manufacturer " - "specific order"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Enter 'y' after successgarbage: not in length on purpose", 23); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - } - return CHIP_NO_ERROR; - } -}; - class Test_TC_OO_3_2_SimulatedSuite : public TestCommand { public: @@ -1955,10 +1773,6 @@ std::unique_ptr GetTestCommand(std::string testName) { return std::unique_ptr(new Test_TC_DGTHREAD_3_4_SimulatedSuite()); } - if (testName == "Test_TC_LVL_2_3_Simulated") - { - return std::unique_ptr(new Test_TC_LVL_2_3_SimulatedSuite()); - } if (testName == "Test_TC_OO_3_2_Simulated") { return std::unique_ptr(new Test_TC_OO_3_2_SimulatedSuite()); @@ -1984,6 +1798,5 @@ void PrintTestCommands() ChipLogError(chipTool, "\t* Test_TC_CC_7_5_Simulated"); ChipLogError(chipTool, "\t* Test_TC_CC_9_4_Simulated"); ChipLogError(chipTool, "\t* Test_TC_DGTHREAD_3_4_Simulated"); - ChipLogError(chipTool, "\t* Test_TC_LVL_2_3_Simulated"); ChipLogError(chipTool, "\t* Test_TC_OO_3_2_Simulated"); } From acd012bdf72925c44de70a5c99be23d1af333be5 Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Wed, 20 Sep 2023 16:17:22 +0530 Subject: [PATCH 05/13] Modified testcase TC-SC-5.1 --- .../tests/suites/certification/Test_TC_SC_5_1.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_SC_5_1.yaml b/src/app/tests/suites/certification/Test_TC_SC_5_1.yaml index 812dd4732ba046..7bfb258663ed7c 100644 --- a/src/app/tests/suites/certification/Test_TC_SC_5_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SC_5_1.yaml @@ -97,11 +97,11 @@ tests: GroupKeySetID: 0x01a3, GroupKeySecurityPolicy: 0, EpochKey0: "hex:d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", - EpochStartTime0: 2220000, + EpochStartTime0: 1, EpochKey1: "hex:d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", - EpochStartTime1: 2220001, + EpochStartTime1: 18446744073709551613, EpochKey2: "hex:d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", - EpochStartTime2: 2220002, + EpochStartTime2: 18446744073709551614, } - label: "Step 3: TH binds GroupId to GroupKeySet" @@ -176,11 +176,11 @@ tests: GroupKeySetID: 0x01a3, GroupKeySecurityPolicy: 0, EpochKey0: null, - EpochStartTime0: 2220000, + EpochStartTime0: 1, EpochKey1: null, - EpochStartTime1: 2220001, + EpochStartTime1: 18446744073709551613, EpochKey2: null, - EpochStartTime2: 2220002, + EpochStartTime2: 18446744073709551614, } - label: From 26a0d6efb1000b17499768a50f2ba1b761c5186a Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Thu, 21 Sep 2023 13:08:14 +0530 Subject: [PATCH 06/13] Fixes issue: 655, 660 Modified tests: TC-ACL-2.4 TC-ACL-2.5 TC-ACL-2.6 TC-ACL-2.7 TC-SC-5.2 Revert back the DGGEN-2.1 testcase --- .../suites/certification/Test_TC_ACL_2_4.yaml | 409 +++++++++++------- .../suites/certification/Test_TC_ACL_2_5.yaml | 26 +- .../suites/certification/Test_TC_ACL_2_6.yaml | 32 +- .../suites/certification/Test_TC_ACL_2_7.yaml | 30 +- .../certification/Test_TC_DGGEN_2_1.yaml | 47 +- .../suites/certification/Test_TC_SC_5_2.yaml | 7 +- 6 files changed, 311 insertions(+), 240 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_ACL_2_4.yaml b/src/app/tests/suites/certification/Test_TC_ACL_2_4.yaml index c08bba0b65f47f..bd173e7eb81427 100644 --- a/src/app/tests/suites/certification/Test_TC_ACL_2_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_ACL_2_4.yaml @@ -773,82 +773,68 @@ tests: TARGETS)" PICS: ACL.S.A0000 && PICS_SKIP_SAMPLE_APP verification: | - ./chip-tool accesscontrol write acl '[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}, { "privilege": 3, "authMode": 2, "subjects": null, "targets":[{ "cluster": 40, "endpoint": null, "deviceType": null },{ "cluster": 28, "endpoint": null, "deviceType": null }]}]' 1 0 + ./chip-tool accesscontrol write acl '[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}, { "privilege": 3, "authMode": 2, "subjects": null, "targets":[{ "cluster": 40, "endpoint": null, "deviceType": null },{ "cluster": 28, "endpoint": null, "deviceType": null },{ "cluster": 30, "endpoint": null, "deviceType": null }]}]' 1 0 - On TH1(Chiptool), Verify that the status is success when writing the AccessControl cluster ACL attribute with a value is list of AccessControlEntryStruct containing 2 elements with Subjects as null and and Target as TARGETS + Via the TH (chip-tool), Verify that the status is success when writing the AccessControl cluster ACL attribute with a value is list of AccessControlEntryStruct containing 2 elements. - [1657542520.140869][3499:3504] CHIP:DMG: { - [1657542520.140922][3499:3504] CHIP:DMG: AttributeStatusIBs = - [1657542520.140966][3499:3504] CHIP:DMG: [ - [1657542520.140999][3499:3504] CHIP:DMG: AttributeStatusIB = - [1657542520.141036][3499:3504] CHIP:DMG: { - [1657542520.141077][3499:3504] CHIP:DMG: AttributePathIB = - [1657542520.141119][3499:3504] CHIP:DMG: { - [1657542520.141163][3499:3504] CHIP:DMG: Endpoint = 0x0, - [1657542520.141207][3499:3504] CHIP:DMG: Cluster = 0x1f, - [1657542520.141255][3499:3504] CHIP:DMG: Attribute = 0x0000_0000, - [1657542520.141300][3499:3504] CHIP:DMG: } - [1657542520.141346][3499:3504] CHIP:DMG: - [1657542520.141385][3499:3504] CHIP:DMG: StatusIB = - [1657542520.141426][3499:3504] CHIP:DMG: { - [1657542520.141468][3499:3504] CHIP:DMG: status = 0x00 (SUCCESS), - [1657542520.141509][3499:3504] CHIP:DMG: }, - [1657542520.141550][3499:3504] CHIP:DMG: - [1657542520.141584][3499:3504] CHIP:DMG: }, - [1657542520.141630][3499:3504] CHIP:DMG: - [1657542520.141663][3499:3504] CHIP:DMG: AttributeStatusIB = - [1657542520.141697][3499:3504] CHIP:DMG: { - [1657542520.141731][3499:3504] CHIP:DMG: AttributePathIB = - [1657542520.141770][3499:3504] CHIP:DMG: { - [1657542520.141811][3499:3504] CHIP:DMG: Endpoint = 0x0, - [1657542520.141855][3499:3504] CHIP:DMG: Cluster = 0x1f, - [1657542520.141940][3499:3504] CHIP:DMG: Attribute = 0x0000_0000, - [1657542520.142024][3499:3504] CHIP:DMG: ListIndex = Null, - [1657542520.142106][3499:3504] CHIP:DMG: } - [1662015973.912273][3126:3132] CHIP:DMG: { - [1662015973.912301][3126:3132] CHIP:DMG: AttributeStatusIBs = - [1662015973.912375][3126:3132] CHIP:DMG: [ - [1662015973.912409][3126:3132] CHIP:DMG: AttributeStatusIB = - [1662015973.912452][3126:3132] CHIP:DMG: { - [1662015973.912488][3126:3132] CHIP:DMG: AttributePathIB = - [1662015973.912534][3126:3132] CHIP:DMG: { - [1662015973.912577][3126:3132] CHIP:DMG: Endpoint = 0x0, - [1662015973.912640][3126:3132] CHIP:DMG: Cluster = 0x1f, - [1662015973.912687][3126:3132] CHIP:DMG: Attribute = 0x0000_0000, - [1662015973.912743][3126:3132] CHIP:DMG: } - [1662015973.912792][3126:3132] CHIP:DMG: - [1662015973.912849][3126:3132] CHIP:DMG: StatusIB = - [1662015973.912893][3126:3132] CHIP:DMG: { - [1662015973.912948][3126:3132] CHIP:DMG: status = 0x00 (SUCCESS), - [1662015973.912992][3126:3132] CHIP:DMG: }, - [1662015973.913046][3126:3132] CHIP:DMG: - [1662015973.913082][3126:3132] CHIP:DMG: }, - [1662015973.913142][3126:3132] CHIP:DMG: - [1662015973.913173][3126:3132] CHIP:DMG: AttributeStatusIB = - [1662015973.913225][3126:3132] CHIP:DMG: { - [1662015973.913260][3126:3132] CHIP:DMG: AttributePathIB = - [1662015973.913315][3126:3132] CHIP:DMG: { - [1662015973.913360][3126:3132] CHIP:DMG: Endpoint = 0x0, - [1662015973.913421][3126:3132] CHIP:DMG: Cluster = 0x1f, - [1662015973.913465][3126:3132] CHIP:DMG: Attribute = 0x0000_0000, - [1662015973.913518][3126:3132] CHIP:DMG: ListIndex = Null, - [1662015973.913561][3126:3132] CHIP:DMG: } - [1662015973.913622][3126:3132] CHIP:DMG: - [1662015973.913662][3126:3132] CHIP:DMG: StatusIB = - [1662015973.913716][3126:3132] CHIP:DMG: { - [1662015973.913759][3126:3132] CHIP:DMG: status = 0x00 (SUCCESS), - [1662015973.913814][3126:3132] CHIP:DMG: }, - [1662015973.913855][3126:3132] CHIP:DMG: - [1662015973.913902][3126:3132] CHIP:DMG: }, - [1662015973.913952][3126:3132] CHIP:DMG: - [1662015973.913983][3126:3132] CHIP:DMG: AttributeStatusIB = - [1662015973.914021][3126:3132] CHIP:DMG: { - [1662015973.914056][3126:3132] CHIP:DMG: AttributePathIB = - [1662015973.914095][3126:3132] CHIP:DMG: { - [1662015973.914139][3126:3132] CHIP:DMG: Endpoint = 0x0, - [1662015973.914183][3126:3132] CHIP:DMG: Cluster = 0x1f, - [1662015973.914228][3126:3132] CHIP:DMG: Attribute = 0x0000_0000, - [1662015973.914270][3126:3132] CHIP:DMG: ListIndex = Null, + [1686292221.429177][33589:33591] CHIP:DMG: WriteResponseMessage = + [1686292221.429234][33589:33591] CHIP:DMG: { + [1686292221.429283][33589:33591] CHIP:DMG: AttributeStatusIBs = + [1686292221.429355][33589:33591] CHIP:DMG: [ + [1686292221.429411][33589:33591] CHIP:DMG: AttributeStatusIB = + [1686292221.429475][33589:33591] CHIP:DMG: { + [1686292221.429534][33589:33591] CHIP:DMG: AttributePathIB = + [1686292221.429691][33589:33591] CHIP:DMG: { + [1686292221.429771][33589:33591] CHIP:DMG: Endpoint = 0x0, + [1686292221.429847][33589:33591] CHIP:DMG: Cluster = 0x1f, + [1686292221.429923][33589:33591] CHIP:DMG: Attribute = 0x0000_0000, + [1686292221.429989][33589:33591] CHIP:DMG: } + [1686292221.430067][33589:33591] CHIP:DMG: + [1686292221.430136][33589:33591] CHIP:DMG: StatusIB = + [1686292221.430206][33589:33591] CHIP:DMG: { + [1686292221.430277][33589:33591] CHIP:DMG: status = 0x00 (SUCCESS), + [1686292221.430346][33589:33591] CHIP:DMG: }, + [1686292221.430415][33589:33591] CHIP:DMG: + [1686292221.430474][33589:33591] CHIP:DMG: }, + [1686292221.430558][33589:33591] CHIP:DMG: + [1686292221.430614][33589:33591] CHIP:DMG: AttributeStatusIB = + [1686292221.430675][33589:33591] CHIP:DMG: { + [1686292221.430734][33589:33591] CHIP:DMG: AttributePathIB = + [1686292221.430801][33589:33591] CHIP:DMG: { + [1686292221.430870][33589:33591] CHIP:DMG: Endpoint = 0x0, + [1686292221.430944][33589:33591] CHIP:DMG: Cluster = 0x1f, + [1686292221.431020][33589:33591] CHIP:DMG: Attribute = 0x0000_0000, + [1686292221.431263][33589:33591] CHIP:DMG: ListIndex = Null, + [1686292221.431342][33589:33591] CHIP:DMG: } + [1686292221.431419][33589:33591] CHIP:DMG: + [1686292221.431486][33589:33591] CHIP:DMG: StatusIB = + [1686292221.431554][33589:33591] CHIP:DMG: { + [1686292221.431635][33589:33591] CHIP:DMG: status = 0x00 (SUCCESS), + [1686292221.431705][33589:33591] CHIP:DMG: }, + [1686292221.431774][33589:33591] CHIP:DMG: + [1686292221.431833][33589:33591] CHIP:DMG: }, + [1686292221.431918][33589:33591] CHIP:DMG: + [1686292221.431973][33589:33591] CHIP:DMG: AttributeStatusIB = + [1686292221.432035][33589:33591] CHIP:DMG: { + [1686292221.432093][33589:33591] CHIP:DMG: AttributePathIB = + [1686292221.432161][33589:33591] CHIP:DMG: { + [1686292221.432231][33589:33591] CHIP:DMG: Endpoint = 0x0, + [1686292221.432305][33589:33591] CHIP:DMG: Cluster = 0x1f, + [1686292221.432381][33589:33591] CHIP:DMG: Attribute = 0x0000_0000, + [1686292221.432453][33589:33591] CHIP:DMG: ListIndex = Null, + [1686292221.432523][33589:33591] CHIP:DMG: } + [1686292221.432600][33589:33591] CHIP:DMG: + [1686292221.432666][33589:33591] CHIP:DMG: StatusIB = + [1686292221.432734][33589:33591] CHIP:DMG: { + [1686292221.432803][33589:33591] CHIP:DMG: status = 0x00 (SUCCESS), + [1686292221.432873][33589:33591] CHIP:DMG: }, + [1686292221.432949][33589:33591] CHIP:DMG: + [1686292221.433008][33589:33591] CHIP:DMG: }, + [1686292221.433077][33589:33591] CHIP:DMG: + [1686292221.433132][33589:33591] CHIP:DMG: ], + [1686292221.433218][33589:33591] CHIP:DMG: + [1686292221.433273][33589:33591] CHIP:DMG: InteractionModelRevision = 1 + [1686292221.433327][33589:33591] CHIP:DMG: } cluster: "LogCommands" command: "UserPrompt" arguments: @@ -863,33 +849,41 @@ tests: PICS: ACL.S.A0000 && PICS_SKIP_SAMPLE_APP verification: | ./chip-tool accesscontrol read acl 1 0 - On TH1(Chiptool) , Verify that the AccessControlEntryStruct contains 2 elements with Subjects as null and and Target as TARGETS - [1662016086.501582][3138:3143] CHIP:TOO: ACL: 2 entries - [1662016086.501643][3138:3143] CHIP:TOO: [1]: { - [1662016086.501673][3138:3143] CHIP:TOO: Privilege: 5 - [1662016086.501698][3138:3143] CHIP:TOO: AuthMode: 2 - [1662016086.501727][3138:3143] CHIP:TOO: Subjects: 1 entries - [1662016086.501758][3138:3143] CHIP:TOO: [1]: 112233 - [1662016086.501786][3138:3143] CHIP:TOO: Targets: null - [1662016086.501811][3138:3143] CHIP:TOO: FabricIndex: 1 - [1662016086.501835][3138:3143] CHIP:TOO: } - [1662016086.501873][3138:3143] CHIP:TOO: [2]: { - [1662016086.501899][3138:3143] CHIP:TOO: Privilege: 3 - [1662016086.501924][3138:3143] CHIP:TOO: AuthMode: 2 - [1662016086.501948][3138:3143] CHIP:TOO: Subjects: null - [1662016086.501979][3138:3143] CHIP:TOO: Targets: 2 entries - [1662016086.502016][3138:3143] CHIP:TOO: [1]: { - [1662016086.502043][3138:3143] CHIP:TOO: Cluster: 40 - [1662016086.502069][3138:3143] CHIP:TOO: Endpoint: null - [1662016086.502094][3138:3143] CHIP:TOO: DeviceType: null - [1662016086.502117][3138:3143] CHIP:TOO: } - [1662016086.502148][3138:3143] CHIP:TOO: [2]: { - [1662016086.502174][3138:3143] CHIP:TOO: Cluster: 28 - [1662016086.502198][3138:3143] CHIP:TOO: Endpoint: null - [1662016086.502223][3138:3143] CHIP:TOO: DeviceType: null - [1662016086.502247][3138:3143] CHIP:TOO: } - [1662016086.502273][3138:3143] CHIP:TOO: FabricIndex: 1 + Via the TH (chip-tool), Verify that the AccessControlEntryStruct contains 4 elements. + + [1686292292.890253][33601:33603] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_0000 DataVersion: 2420291518 + [1686292292.890488][33601:33603] CHIP:TOO: ACL: 2 entries + [1686292292.890620][33601:33603] CHIP:TOO: [1]: { + [1686292292.890708][33601:33603] CHIP:TOO: Privilege: 5 + [1686292292.890762][33601:33603] CHIP:TOO: AuthMode: 2 + [1686292292.890850][33601:33603] CHIP:TOO: Subjects: 1 entries + [1686292292.890918][33601:33603] CHIP:TOO: [1]: 112233 + [1686292292.890976][33601:33603] CHIP:TOO: Targets: null + [1686292292.891028][33601:33603] CHIP:TOO: FabricIndex: 1 + [1686292292.891078][33601:33603] CHIP:TOO: } + [1686292292.891170][33601:33603] CHIP:TOO: [2]: { + [1686292292.891220][33601:33603] CHIP:TOO: Privilege: 3 + [1686292292.891272][33601:33603] CHIP:TOO: AuthMode: 2 + [1686292292.891324][33601:33603] CHIP:TOO: Subjects: null + [1686292292.891397][33601:33603] CHIP:TOO: Targets: 3 entries + [1686292292.891480][33601:33603] CHIP:TOO: [1]: { + [1686292292.891536][33601:33603] CHIP:TOO: Cluster: 40 + [1686292292.891590][33601:33603] CHIP:TOO: Endpoint: null + [1686292292.891642][33601:33603] CHIP:TOO: DeviceType: null + [1686292292.891692][33601:33603] CHIP:TOO: } + [1686292292.891760][33601:33603] CHIP:TOO: [2]: { + [1686292292.891815][33601:33603] CHIP:TOO: Cluster: 28 + [1686292292.891866][33601:33603] CHIP:TOO: Endpoint: null + [1686292292.891916][33601:33603] CHIP:TOO: DeviceType: null + [1686292292.891966][33601:33603] CHIP:TOO: } + [1686292292.892032][33601:33603] CHIP:TOO: [3]: { + [1686292292.892087][33601:33603] CHIP:TOO: Cluster: 30 + [1686292292.892138][33601:33603] CHIP:TOO: Endpoint: null + [1686292292.892188][33601:33603] CHIP:TOO: DeviceType: null + [1686292292.892238][33601:33603] CHIP:TOO: } + [1686292292.892293][33601:33603] CHIP:TOO: FabricIndex: 1 + [1686292292.892345][33601:33603] CHIP:TOO: } cluster: "LogCommands" command: "UserPrompt" arguments: @@ -908,6 +902,7 @@ tests: response: saveAs: MAXENTRIES + #Made following steps as prompt, As at the moment YAML doesn't support sending the elements based on the MAXENTRIES from the previous steps. - label: "Step 27:TH1 writes DUT Endpoint 0 AccessControl cluster ACL attribute, value is list of AccessControlEntryStruct containing @@ -915,64 +910,160 @@ tests: field: CASE (2) Subjects field: [N1] Targets field: null 2.struct Privilege field: Operate (3) AuthMode field: CASE (2) Subjects field: null Targets field: null subsequent elements same as second element" - PICS: ACL.S.A0000 - command: "writeAttribute" - attribute: "ACL" + PICS: ACL.S.A0000 && PICS_SKIP_SAMPLE_APP + verification: | + ./chip-tool accesscontrol write acl '[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}, { "privilege": 3, "authMode": 2, "subjects": null, "targets":null}, { "privilege": 3, "authMode": 2, "subjects": null, "targets":null},{ "privilege": 3, "authMode": 2, "subjects": null, "targets":null}]' 1 0 + + Via the TH (chip-tool), Verify that the status is success when writing the AccessControl cluster ACL attribute with a value is list of AccessControlEntryStruct containing MAXENTRIES elements. + + [1686292560.130383][33642:33644] CHIP:DMG: WriteClient moving to [ResponseRe] + [1686292560.130530][33642:33644] CHIP:DMG: WriteResponseMessage = + [1686292560.130588][33642:33644] CHIP:DMG: { + [1686292560.130671][33642:33644] CHIP:DMG: AttributeStatusIBs = + [1686292560.130749][33642:33644] CHIP:DMG: [ + [1686292560.130807][33642:33644] CHIP:DMG: AttributeStatusIB = + [1686292560.130893][33642:33644] CHIP:DMG: { + [1686292560.130955][33642:33644] CHIP:DMG: AttributePathIB = + [1686292560.131045][33642:33644] CHIP:DMG: { + [1686292560.131119][33642:33644] CHIP:DMG: Endpoint = 0x0, + [1686292560.131216][33642:33644] CHIP:DMG: Cluster = 0x1f, + [1686292560.131293][33642:33644] CHIP:DMG: Attribute = 0x0000_0000, + [1686292560.131387][33642:33644] CHIP:DMG: } + [1686292560.131469][33642:33644] CHIP:DMG: + [1686292560.131535][33642:33644] CHIP:DMG: StatusIB = + [1686292560.131628][33642:33644] CHIP:DMG: { + [1686292560.131702][33642:33644] CHIP:DMG: status = 0x00 (SUCCESS), + [1686292560.131793][33642:33644] CHIP:DMG: }, + [1686292560.131865][33642:33644] CHIP:DMG: + [1686292560.131947][33642:33644] CHIP:DMG: }, + [1686292560.132033][33642:33644] CHIP:DMG: + [1686292560.132107][33642:33644] CHIP:DMG: AttributeStatusIB = + [1686292560.132181][33642:33644] CHIP:DMG: { + [1686292560.132241][33642:33644] CHIP:DMG: AttributePathIB = + [1686292560.132330][33642:33644] CHIP:DMG: { + [1686292560.132400][33642:33644] CHIP:DMG: Endpoint = 0x0, + [1686292560.132497][33642:33644] CHIP:DMG: Cluster = 0x1f, + [1686292560.132573][33642:33644] CHIP:DMG: Attribute = 0x0000_0000, + [1686292560.132666][33642:33644] CHIP:DMG: ListIndex = Null, + [1686292560.132738][33642:33644] CHIP:DMG: } + [1686292560.132843][33642:33644] CHIP:DMG: + [1686292560.132911][33642:33644] CHIP:DMG: StatusIB = + [1686292560.132979][33642:33644] CHIP:DMG: { + [1686292560.133074][33642:33644] CHIP:DMG: status = 0x00 (SUCCESS), + [1686292560.133146][33642:33644] CHIP:DMG: }, + [1686292560.133237][33642:33644] CHIP:DMG: + [1686292560.133297][33642:33644] CHIP:DMG: }, + [1686292560.133402][33642:33644] CHIP:DMG: + [1686292560.133461][33642:33644] CHIP:DMG: AttributeStatusIB = + [1686292560.133522][33642:33644] CHIP:DMG: { + [1686292560.133708][33642:33644] CHIP:DMG: AttributePathIB = + [1686292560.133801][33642:33644] CHIP:DMG: { + [1686292560.133873][33642:33644] CHIP:DMG: Endpoint = 0x0, + [1686292560.133947][33642:33644] CHIP:DMG: Cluster = 0x1f, + [1686292560.134046][33642:33644] CHIP:DMG: Attribute = 0x0000_0000, + [1686292560.134119][33642:33644] CHIP:DMG: ListIndex = Null, + [1686292560.134210][33642:33644] CHIP:DMG: } + [1686292560.134288][33642:33644] CHIP:DMG: + [1686292560.134372][33642:33644] CHIP:DMG: StatusIB = + [1686292560.134440][33642:33644] CHIP:DMG: { + [1686292560.134531][33642:33644] CHIP:DMG: status = 0x00 (SUCCESS), + [1686292560.134601][33642:33644] CHIP:DMG: }, + [1686292560.134690][33642:33644] CHIP:DMG: + [1686292560.134751][33642:33644] CHIP:DMG: }, + [1686292560.134837][33642:33644] CHIP:DMG: + [1686292560.134914][33642:33644] CHIP:DMG: AttributeStatusIB = + [1686292560.134976][33642:33644] CHIP:DMG: { + [1686292560.135063][33642:33644] CHIP:DMG: AttributePathIB = + [1686292560.135132][33642:33644] CHIP:DMG: { + [1686292560.135221][33642:33644] CHIP:DMG: Endpoint = 0x0, + [1686292560.135297][33642:33644] CHIP:DMG: Cluster = 0x1f, + [1686292560.135372][33642:33644] CHIP:DMG: Attribute = 0x0000_0000, + [1686292560.135466][33642:33644] CHIP:DMG: ListIndex = Null, + [1686292560.135537][33642:33644] CHIP:DMG: } + [1686292560.135634][33642:33644] CHIP:DMG: + [1686292560.135701][33642:33644] CHIP:DMG: StatusIB = + [1686292560.135789][33642:33644] CHIP:DMG: { + [1686292560.135859][33642:33644] CHIP:DMG: status = 0x00 (SUCCESS), + [1686292560.135967][33642:33644] CHIP:DMG: }, + [1686292560.136043][33642:33644] CHIP:DMG: + [1686292560.136102][33642:33644] CHIP:DMG: }, + [1686292560.136210][33642:33644] CHIP:DMG: + [1686292560.136266][33642:33644] CHIP:DMG: AttributeStatusIB = + [1686292560.136349][33642:33644] CHIP:DMG: { + [1686292560.136409][33642:33644] CHIP:DMG: AttributePathIB = + [1686292560.136496][33642:33644] CHIP:DMG: { + [1686292560.136567][33642:33644] CHIP:DMG: Endpoint = 0x0, + [1686292560.136642][33642:33644] CHIP:DMG: Cluster = 0x1f, + [1686292560.136739][33642:33644] CHIP:DMG: Attribute = 0x0000_0000, + [1686292560.136811][33642:33644] CHIP:DMG: ListIndex = Null, + [1686292560.136900][33642:33644] CHIP:DMG: } + [1686292560.136979][33642:33644] CHIP:DMG: + [1686292560.137065][33642:33644] CHIP:DMG: StatusIB = + [1686292560.137134][33642:33644] CHIP:DMG: { + [1686292560.137201][33642:33644] CHIP:DMG: status = 0x00 (SUCCESS), + [1686292560.137295][33642:33644] CHIP:DMG: }, + [1686292560.137366][33642:33644] CHIP:DMG: + [1686292560.137451][33642:33644] CHIP:DMG: }, + [1686292560.137522][33642:33644] CHIP:DMG: + [1686292560.137630][33642:33644] CHIP:DMG: ], + [1686292560.137740][33642:33644] CHIP:DMG: + [1686292560.137816][33642:33644] CHIP:DMG: InteractionModelRevision = 1 + [1686292560.137873][33642:33644] CHIP:DMG: } + cluster: "LogCommands" + command: "UserPrompt" arguments: - value: - [ - { - Privilege: 5, - AuthMode: 2, - Subjects: [CommissionerNodeId], - Targets: null, - FabricIndex: CurrentFabricIndexValue, - }, - { - Privilege: 3, - AuthMode: 2, - Subjects: null, - Targets: null, - FabricIndex: CurrentFabricIndexValue, - }, - { - Privilege: 3, - AuthMode: 2, - Subjects: null, - Targets: null, - FabricIndex: CurrentFabricIndexValue, - }, - ] + values: + - name: "message" + value: "Enter 'y' after success" + - name: "expectedValue" + value: "y" - label: "Step 28:TH1 reads AccessControl cluster ACL attribute" - PICS: ACL.S.A0000 - command: "readAttribute" - attribute: "ACL" - response: - value: - [ - { - Privilege: 5, - AuthMode: 2, - Subjects: [CommissionerNodeId], - Targets: null, - FabricIndex: CurrentFabricIndexValue, - }, - { - Privilege: 3, - AuthMode: 2, - Subjects: null, - Targets: null, - FabricIndex: CurrentFabricIndexValue, - }, - { - Privilege: 3, - AuthMode: 2, - Subjects: null, - Targets: null, - FabricIndex: CurrentFabricIndexValue, - }, - ] + PICS: ACL.S.A0000 && PICS_SKIP_SAMPLE_APP + verification: | + ./chip-tool accesscontrol read acl 1 0 + + Via the TH (chip-tool), Verify that the AccessControlEntryStruct containing MAXENTRIES elements. + + [1686292633.355733][33659:33661] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_0000 DataVersion: 2420291523 + [1686292633.355957][33659:33661] CHIP:TOO: ACL: 4 entries + [1686292633.356089][33659:33661] CHIP:TOO: [1]: { + [1686292633.356177][33659:33661] CHIP:TOO: Privilege: 5 + [1686292633.356262][33659:33661] CHIP:TOO: AuthMode: 2 + [1686292633.356356][33659:33661] CHIP:TOO: Subjects: 1 entries + [1686292633.356450][33659:33661] CHIP:TOO: [1]: 112233 + [1686292633.356510][33659:33661] CHIP:TOO: Targets: null + [1686292633.356599][33659:33661] CHIP:TOO: FabricIndex: 1 + [1686292633.356652][33659:33661] CHIP:TOO: } + [1686292633.356726][33659:33661] CHIP:TOO: [2]: { + [1686292633.356803][33659:33661] CHIP:TOO: Privilege: 3 + [1686292633.356855][33659:33661] CHIP:TOO: AuthMode: 2 + [1686292633.356905][33659:33661] CHIP:TOO: Subjects: null + [1686292633.356977][33659:33661] CHIP:TOO: Targets: null + [1686292633.357024][33659:33661] CHIP:TOO: FabricIndex: 1 + [1686292633.357073][33659:33661] CHIP:TOO: } + [1686292633.357166][33659:33661] CHIP:TOO: [3]: { + [1686292633.357221][33659:33661] CHIP:TOO: Privilege: 3 + [1686292633.357272][33659:33661] CHIP:TOO: AuthMode: 2 + [1686292633.357345][33659:33661] CHIP:TOO: Subjects: null + [1686292633.357395][33659:33661] CHIP:TOO: Targets: null + [1686292633.357446][33659:33661] CHIP:TOO: FabricIndex: 1 + [1686292633.357513][33659:33661] CHIP:TOO: } + [1686292633.357659][33659:33661] CHIP:TOO: [4]: { + [1686292633.357717][33659:33661] CHIP:TOO: Privilege: 3 + [1686292633.357793][33659:33661] CHIP:TOO: AuthMode: 2 + [1686292633.357845][33659:33661] CHIP:TOO: Subjects: null + [1686292633.357895][33659:33661] CHIP:TOO: Targets: null + [1686292633.357963][33659:33661] CHIP:TOO: FabricIndex: 1 + [1686292633.358021][33659:33661] CHIP:TOO: } + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Enter 'y' after success" + - name: "expectedValue" + value: "y" - label: "Step 29:TH1 writes DUT Endpoint 0 AccessControl cluster ACL @@ -1073,8 +1164,8 @@ tests: FabricIndex: CurrentFabricIndexValue, }, { - Privilege: "6", - AuthMode: 3, + Privilege: 6, + AuthMode: 2, Subjects: null, Targets: null, FabricIndex: CurrentFabricIndexValue, @@ -1100,8 +1191,8 @@ tests: FabricIndex: CurrentFabricIndexValue, }, { - Privilege: "6", - AuthMode: "4", + Privilege: 3, + AuthMode: 4, Subjects: null, Targets: null, FabricIndex: CurrentFabricIndexValue, diff --git a/src/app/tests/suites/certification/Test_TC_ACL_2_5.yaml b/src/app/tests/suites/certification/Test_TC_ACL_2_5.yaml index 981ebc8c5d30d6..e9a8bfc830c999 100644 --- a/src/app/tests/suites/certification/Test_TC_ACL_2_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_ACL_2_5.yaml @@ -33,7 +33,7 @@ config: defaultValue: "hex:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700D00000F1FF02003248656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E7420616761696E2E2E2E2E2E2E0018" tests: - - label: "Step 1: TH commissions DUT using admin node ID N1" + - label: "Step 1: TH1 commissions DUT using admin node ID N1" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -50,7 +50,7 @@ tests: saveAs: CommissionerNodeId - label: - "Step 2: TH reads DUT Endpoint 0 OperationalCredentials cluster + "Step 2: TH1 reads DUT Endpoint 0 OperationalCredentials cluster CurrentFabricIndex attribute" command: "readAttribute" cluster: "Operational Credentials" @@ -60,7 +60,7 @@ tests: #Issue: https://github.com/project-chip/connectedhomeip/issues/24081 - label: - "Step 3: TH reads DUT Endpoint 0 AccessControl cluster + "Step 3: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlExtensionChanged event" verification: | ./chip-tool accesscontrol read-event access-control-extension-changed 1 0 @@ -87,7 +87,7 @@ tests: value: "y" - label: - "Step 4: TH writes DUT Endpoint 0 AccessControl cluster Extension + "Step 4: TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute, value is list of AccessControlExtensionStruct containing 1 element struct Data field: D_OK_EMPTY" PICS: ACL.S.A0001 @@ -97,7 +97,7 @@ tests: value: [{ Data: D_OK_EMPTY, FabricIndex: CurrentFabricIndexValue }] - label: - "Step 5: TH reads DUT Endpoint 0 AccessControl cluster + "Step 5: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlExtensionChanged event" PICS: ACL.S.E01 command: "readEvent" @@ -118,7 +118,7 @@ tests: } - label: - "Step 6: TH writes DUT Endpoint 0 AccessControl cluster Extension + "Step 6: TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute, value is list of AccessControlExtensionStruct containing 1 element struct Data field: D_OK_SINGLE" PICS: ACL.S.A0001 @@ -128,7 +128,7 @@ tests: value: [{ Data: D_OK_SINGLE, FabricIndex: CurrentFabricIndexValue }] - label: - "Step 7: TH reads DUT Endpoint 0 AccessControl cluster + "Step 7: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlExtensionChanged event" PICS: ACL.S.E01 command: "readEvent" @@ -163,7 +163,7 @@ tests: } - label: - "Step 8: TH writes DUT Endpoint 0 AccessControl cluster Extension + "Step 8: TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute, value is list of AccessControlExtensionStruct containing 1 element struct Data field: D_BAD_LENGTH" PICS: ACL.S.A0001 @@ -175,7 +175,7 @@ tests: error: CONSTRAINT_ERROR - label: - "Step 9: TH reads DUT Endpoint 0 AccessControl cluster + "Step 9: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlExtensionChanged event" PICS: ACL.S.E01 command: "readEvent" @@ -196,7 +196,7 @@ tests: } - label: - "Step 10: TH writes DUT Endpoint 0 AccessControl cluster Extension + "Step 10: TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute, value is list of AccessControlExtensionStruct containing 2 elements struct Data field: D_OK_EMPTY struct Data field: D_OK_SINGLE" PICS: ACL.S.A0001 @@ -212,7 +212,7 @@ tests: error: CONSTRAINT_ERROR - label: - "Step 11: TH reads DUT Endpoint 0 AccessControl cluster + "Step 11: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlExtensionChanged event" PICS: ACL.S.E01 command: "readEvent" @@ -233,7 +233,7 @@ tests: } - label: - "Step 12: TH writes DUT Endpoint 0 AccessControl cluster Extension + "Step 12: TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute, value is an empty list" PICS: ACL.S.A0001 command: "writeAttribute" @@ -242,7 +242,7 @@ tests: value: [] - label: - "Step 13: TH reads DUT Endpoint 0 AccessControl cluster + "Step 13: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlExtensionChanged event" PICS: ACL.S.E01 command: "readEvent" diff --git a/src/app/tests/suites/certification/Test_TC_ACL_2_6.yaml b/src/app/tests/suites/certification/Test_TC_ACL_2_6.yaml index 946c1e0fdeda1b..d5cc1c31b30101 100644 --- a/src/app/tests/suites/certification/Test_TC_ACL_2_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_ACL_2_6.yaml @@ -23,7 +23,7 @@ config: endpoint: 0 tests: - - label: "Step 1: TH commissions DUT using admin node ID N1" + - label: "Step 1: TH1 commissions DUT using admin node ID N1" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -40,7 +40,7 @@ tests: saveAs: CommissionerNodeId - label: - "Step 2: TH reads DUT Endpoint 0 OperationalCredentials cluster + "Step 2: TH1 reads DUT Endpoint 0 OperationalCredentials cluster CurrentFabricIndex attribute" command: "readAttribute" cluster: "Operational Credentials" @@ -49,7 +49,7 @@ tests: saveAs: CurrentFabricIndexValue - label: - "Step 3: TH reads DUT Endpoint 0 AccessControl cluster + "Step 3: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlEntryChanged event" PICS: ACL.S.E00 command: "readEvent" @@ -73,10 +73,10 @@ tests: } - label: - "Step 4: TH writes DUT Endpoint 0 AccessControl cluster ACL attribute, - value is list of AccessControlEntryStruct containing 2 elements - 1.struct Privilege field: Administer (5) AuthMode field: CASE (2) - Subjects field: [N1] Targets field: null 2struct Privilege field: + "Step 4: TH1 writes DUT Endpoint 0 AccessControl cluster ACL + attribute, value is list of AccessControlEntryStruct containing 2 + elements 1.struct Privilege field: Administer (5) AuthMode field: CASE + (2) Subjects field: [N1] Targets field: null 2struct Privilege field: Operate (3) AuthMode field: Group (3) Subjects field: null Targets field: null" PICS: ACL.S.E00 @@ -102,7 +102,7 @@ tests: ] - label: - "Step 5: TH reads DUT Endpoint 0 AccessControl cluster + "Step 5: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlEntryChanged event" PICS: ACL.S.E00 command: "readEvent" @@ -159,13 +159,13 @@ tests: } - label: - "Step 6: TH writes DUT Endpoint 0 AccessControl cluster ACL attribute, - value is list of AccessControlEntryStruct containing 2 elements. The - first item is valid, the second item is invalid due to group ID 0 - being used, which is illegal. 1.struct Privilege field: Administer (5) - AuthMode field: CASE (2) Subjects field: [N1] Targets field: null - 2.struct Privilege field: Operate (3) AuthMode field: Group (3) - Subjects field: [0] Targets field: null" + "Step 6: TH1 writes DUT Endpoint 0 AccessControl cluster ACL + attribute, value is list of AccessControlEntryStruct containing 2 + elements. The first item is valid, the second item is invalid due to + group ID 0 being used, which is illegal. 1.struct Privilege field: + Administer (5) AuthMode field: CASE (2) Subjects field: [N1] Targets + field: null 2.struct Privilege field: Operate (3) AuthMode field: + Group (3) Subjects field: [0] Targets field: null" PICS: ACL.S.E00 command: "writeAttribute" attribute: "ACL" @@ -191,7 +191,7 @@ tests: error: CONSTRAINT_ERROR - label: - "Step 7: TH reads DUT Endpoint 0 AccessControl cluster + "Step 7: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlEntryChanged event" PICS: ACL.S.E00 command: "readEvent" diff --git a/src/app/tests/suites/certification/Test_TC_ACL_2_7.yaml b/src/app/tests/suites/certification/Test_TC_ACL_2_7.yaml index 195e2fbf5c5d51..949d2f3831e884 100644 --- a/src/app/tests/suites/certification/Test_TC_ACL_2_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_ACL_2_7.yaml @@ -45,7 +45,7 @@ config: defaultValue: "hex:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018" tests: - - label: "Step 1:Wait for the commissioned device to be retrieved" + - label: "Step 1: TH1 commissions DUT using admin node ID N1" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -62,7 +62,7 @@ tests: saveAs: TH1CommissionerNodeId - label: - "Step 2:TH1 reads OperationalCredentials cluster CurrentFabricIndex + "Step 2: TH1 reads OperationalCredentials cluster CurrentFabricIndex attribute" command: "readAttribute" cluster: "Operational Credentials" @@ -70,7 +70,7 @@ tests: response: saveAs: TH1FabricIndex - - label: "Step 3:TH1 puts DUT into commissioning mode" + - label: "Step 3a: TH1 puts DUT into commissioning mode" cluster: "Administrator Commissioning" command: "OpenCommissioningWindow" timedInteractionTimeoutMs: 10000 @@ -128,7 +128,7 @@ tests: - name: "ms" value: waitAfterCommissioning - - label: "Step 4:TH2 starts a commissioning process with DUT" + - label: "Step 3b:TH2 starts a commissioning process with DUT" identity: "beta" PICS: PICS_SDK_CI_ONLY cluster: "CommissionerCommands" @@ -161,7 +161,7 @@ tests: saveAs: TH2CommissionerNodeId - label: - "Step 5:TH2 reads OperationalCredentials cluster CurrentFabricIndex + "Step 4: TH2 reads OperationalCredentials cluster CurrentFabricIndex attribute" identity: "beta" PICS: PICS_SDK_CI_ONLY @@ -172,7 +172,7 @@ tests: saveAs: TH2FabricIndex - label: - "Step 5:TH2 reads OperationalCredentials cluster CurrentFabricIndex + "Step 4: TH2 reads OperationalCredentials cluster CurrentFabricIndex attribute" verification: | ./chip-tool operationalcredentials read current-fabric-index 2 0 --commissioner-name beta --commissioner-nodeid 223344 @@ -191,7 +191,7 @@ tests: value: "y" - label: - "Step 6:TH1 writes DUT Endpoint 0 AccessControl cluster Extension + "Step 5: TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute, value is list of AccessControlExtensionStruct containing 1 element" PICS: ACL.S.A0001 @@ -201,7 +201,7 @@ tests: value: [{ Data: D_OK_EMPTY, FabricIndex: TH1FabricIndex }] - label: - "Step 7:TH2 writes DUT Endpoint 0 AccessControl cluster Extension + "Step 6: TH2 writes DUT Endpoint 0 AccessControl cluster Extension attribute, value is list of AccessControlExtensionStruct containing 1 element" PICS: ACL.S.A0001 && PICS_SDK_CI_ONLY @@ -213,7 +213,7 @@ tests: #Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768 - label: - "Step 7:TH2 writes DUT Endpoint 0 AccessControl cluster Extension + "Step 6: TH2 writes DUT Endpoint 0 AccessControl cluster Extension attribute, value is list of AccessControlExtensionStruct containing 1 element" verification: | @@ -272,14 +272,14 @@ tests: - name: "expectedValue" value: "y" - - label: "Step 8:TH1 reads AccessControl cluster Extension attribute" + - label: "Step 7: TH1 reads AccessControl cluster Extension attribute" PICS: ACL.S.A0001 command: "readAttribute" attribute: "Extension" response: value: [{ Data: D_OK_EMPTY, FabricIndex: TH1FabricIndex }] - - label: "Step 9:TH2 reads AccessControl cluster Extension attribute" + - label: "Step 8: TH2 reads AccessControl cluster Extension attribute" PICS: ACL.S.A0001 && PICS_SDK_CI_ONLY identity: "beta" command: "readAttribute" @@ -288,7 +288,7 @@ tests: value: [{ Data: D_OK_SINGLE, FabricIndex: TH2FabricIndex }] #Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768 - - label: "Step 9:TH2 reads AccessControl cluster Extension attribute" + - label: "Step 8: TH2 reads AccessControl cluster Extension attribute" verification: | ./chip-tool accesscontrol read extension 2 0 --commissioner-name beta --commissioner-nodeid 223344 @@ -310,7 +310,7 @@ tests: value: "y" - label: - "Step 10:TH1 reads DUT Endpoint 0 AccessControl cluster + "Step 9: TH1 reads DUT Endpoint 0 AccessControl cluster AccessControlExtensionChanged event" PICS: ACL.S.E01 command: "readEvent" @@ -327,7 +327,7 @@ tests: } - label: - "Step 11:TH2 reads DUT Endpoint 0 AccessControl cluster + "Step 10: TH2 reads DUT Endpoint 0 AccessControl cluster AccessControlExtensionChanged event" PICS: ACL.S.E01 && PICS_SDK_CI_ONLY identity: "beta" @@ -346,7 +346,7 @@ tests: #Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768 - label: - "Step 11:TH2 reads DUT Endpoint 0 AccessControl cluster + "Step 10: TH2 reads DUT Endpoint 0 AccessControl cluster AccessControlExtensionChanged event" verification: | ./chip-tool accesscontrol read-event access-control-extension-changed 2 0 --commissioner-name beta --commissioner-nodeid 223344 diff --git a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml index 5234392577b4b1..d54e779a15d2e1 100644 --- a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml @@ -47,14 +47,9 @@ tests: - label: "Step 1a: Reset Devices to factory defaults" PICS: PICS_USER_PROMPT verification: | - To perform Factory reset on DUT(all-clusters-app) follow the below step in RPI platform , Pls use equivalent command on the respective platform - sudo rm -rf /tmp/chip_* + Reset DUT to factory defaults - execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT - - step-1: create a file using touch command , something like touch mytest.txt - step-2: chmod 777 mytest.txt - step-3: launch the app ./chip-all-clusters-app --KVS ./mytest.txt + Set the DUT to Discoverable mode. cluster: "LogCommands" command: "UserPrompt" arguments: @@ -64,7 +59,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Step 1b: Recommission the DUT after a factory reset" + - label: "Step 1b: Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -91,9 +86,7 @@ tests: - label: "Step 2b: Reboot target device(DUT)" PICS: PICS_USER_PROMPT verification: | - execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT - - After reboot launch the app ./chip-all-clusters-app --KVS ./mytest.txt + Did the DUT successfully reboot? cluster: "LogCommands" command: "UserPrompt" arguments: @@ -103,7 +96,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Recommission the DUT after a reboot" + - label: "Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -229,9 +222,7 @@ tests: - label: "Step 4c:Reboot target device(DUT)" PICS: PICS_USER_PROMPT verification: | - execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT - - After reboot launch the app ./chip-all-clusters-app --KVS ./mytest.txt + Did the DUT successfully reboot? cluster: "LogCommands" command: "UserPrompt" arguments: @@ -241,7 +232,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Recommission the DUT after a reboot" + - label: "Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -269,9 +260,7 @@ tests: - label: "Step 5a: Reboot target device(DUT)" PICS: PICS_USER_PROMPT verification: | - execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT - - After reboot launch the app ./chip-all-clusters-app --KVS ./mytest.txt + Did the DUT successfully reboot? cluster: "LogCommands" command: "UserPrompt" arguments: @@ -281,7 +270,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Recommission the DUT after a reboot" + - label: "Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -439,15 +428,9 @@ tests: - label: "Step 10b: Reset Devices to factory defaults" PICS: PICS_USER_PROMPT verification: | - To perform Factory reset on DUT(all-clusters-app) follow the below step in RPI platform , Pls use equivalent command on the respective platform - - sudo rm -rf /tmp/chip_* - - execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT + Reset DUT to factory defaults - step-1: create a file using touch command , something like touch mytest.txt - step-2: chmod 777 mytest.txt - step-3: launch the app ./chip-all-clusters-app --KVS ./mytest.txt + Set the DUT to Discoverable mode. cluster: "LogCommands" command: "UserPrompt" arguments: @@ -457,7 +440,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Step 10b: Recommission the DUT after a factory reset" + - label: "Step 10b: Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -504,9 +487,7 @@ tests: - label: "Step 10d: Reboot target device(DUT)" PICS: PICS_USER_PROMPT verification: | - execute the below mentioned command to put DUT into a commissionable state, Pls use equivalent command on the respective DUT - - After reboot launch the app ./chip-all-clusters-app --KVS ./mytest.txt + Did the DUT successfully reboot? cluster: "LogCommands" command: "UserPrompt" arguments: @@ -516,7 +497,7 @@ tests: - name: "expectedValue" value: "y" - - label: "Recommission the DUT after a reboot" + - label: "Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: diff --git a/src/app/tests/suites/certification/Test_TC_SC_5_2.yaml b/src/app/tests/suites/certification/Test_TC_SC_5_2.yaml index d6fa8b817564f0..2e138b9cac6680 100644 --- a/src/app/tests/suites/certification/Test_TC_SC_5_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SC_5_2.yaml @@ -11,7 +11,6 @@ # 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: 26.1.2. [TC-SC-5.2] Receiving a group message - TH to DUT @@ -77,11 +76,11 @@ tests: GroupKeySetID: 0x01a3, GroupKeySecurityPolicy: 0, EpochKey0: "hex:d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", - EpochStartTime0: 2220000, + EpochStartTime0: 1, EpochKey1: "hex:d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", - EpochStartTime1: 2220001, + EpochStartTime1: 18446744073709551613, EpochKey2: "hex:d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", - EpochStartTime2: 2220002, + EpochStartTime2: 18446744073709551614, } - label: "Step 3: TH binds GroupId to GroupKeySet" From ea3d70c77440f37671bdfbe62a9191e8a36ae70f Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Thu, 21 Sep 2023 13:19:38 +0530 Subject: [PATCH 07/13] Modified test FLW-2.1 --- src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml | 5 ++--- .../darwin-framework-tool/zap-generated/test/Commands.h | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml b/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml index 621cdadeb56c17..bad927c19b6ba6 100644 --- a/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml @@ -42,9 +42,8 @@ tests: minValue: 0 maxValue: 65533 - #Skipping in CI due to SDK issue: https://github.com/project-chip/connectedhomeip/issues/27543 - label: "Step 3: Read the mandatory attribute: MaxMeasuredValue" - PICS: FLW.S.A0002 && PICS_SKIP_SAMPLE_APP + PICS: FLW.S.A0002 command: "readAttribute" attribute: "MaxMeasuredValue" response: @@ -55,7 +54,7 @@ tests: maxValue: 65534 - label: "Step 4: Read the mandatory attribute: MeasuredValue" - PICS: FLW.S.A0000 && PICS_SKIP_SAMPLE_APP + PICS: FLW.S.A0000 command: "readAttribute" attribute: "MeasuredValue" response: 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 5c71dc48b4543e..01902b12bbeeb9 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -46079,7 +46079,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: Read the mandatory attribute: MaxMeasuredValue\n"); - if (ShouldSkip("FLW.S.A0002 && PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("FLW.S.A0002")) { NextTest(); return; } @@ -46087,7 +46087,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Step 4: Read the mandatory attribute: MeasuredValue\n"); - if (ShouldSkip("FLW.S.A0000 && PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("FLW.S.A0000")) { NextTest(); return; } From 019e4046eda9c364cb190612da9e0913b93cb3a8 Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Wed, 27 Sep 2023 16:29:51 +0530 Subject: [PATCH 08/13] Fixes YAML script issue: 664, 668, 671, 672, 673 TC-DGGEN-2.1 TC-TSTAT-1.1 TC-TSUIC-1.1 TC-TSTAT-2.1 TC-WNCV-3.4 TC-WNCV-3.5 Manual tests: TC-REFALM-2.2 TC-REFALM-2.3 --- .../certification/Test_TC_DGGEN_2_1.yaml | 34 +++- .../certification/Test_TC_REFALM_2_2.yaml | 5 + .../certification/Test_TC_REFALM_2_3.yaml | 55 ++++-- .../certification/Test_TC_TSTAT_1_1.yaml | 16 +- .../certification/Test_TC_TSTAT_2_2.yaml | 44 ++++- .../certification/Test_TC_TSUIC_1_1.yaml | 27 ++- .../certification/Test_TC_WNCV_3_4.yaml | 2 +- .../certification/Test_TC_WNCV_3_5.yaml | 2 +- .../zap-generated/test/Commands.h | 165 ++++++++++++------ 9 files changed, 260 insertions(+), 90 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml index d54e779a15d2e1..ee30eddb496568 100644 --- a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml @@ -30,6 +30,10 @@ config: type: int64u defaultValue: "0x0000000000000003" + payloadValue: + type: char_string + defaultValue: "MT:-24J0AFN00KA0648G00" + tests: - label: "Wait for the commissioned device to be retrieved" cluster: "DelayCommands" @@ -47,9 +51,7 @@ tests: - label: "Step 1a: Reset Devices to factory defaults" PICS: PICS_USER_PROMPT verification: | - Reset DUT to factory defaults - - Set the DUT to Discoverable mode. + Reset Devices to factory defaults cluster: "LogCommands" command: "UserPrompt" arguments: @@ -59,6 +61,16 @@ tests: - name: "expectedValue" value: "y" + - label: "Recommission the DUT" + cluster: "CommissionerCommands" + command: "PairWithCode" + arguments: + values: + - name: "nodeId" + value: nodeId + - name: "payload" + value: payloadValue + - label: "Step 1b: Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" @@ -428,9 +440,7 @@ tests: - label: "Step 10b: Reset Devices to factory defaults" PICS: PICS_USER_PROMPT verification: | - Reset DUT to factory defaults - - Set the DUT to Discoverable mode. + Reset Devices to factory defaults cluster: "LogCommands" command: "UserPrompt" arguments: @@ -440,7 +450,17 @@ tests: - name: "expectedValue" value: "y" - - label: "Step 10b: Wait for the commissioned device to be retrieved" + - label: "Recommission the DUT" + cluster: "CommissionerCommands" + command: "PairWithCode" + arguments: + values: + - name: "nodeId" + value: nodeId + - name: "payload" + value: payloadValue + + - label: "Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: diff --git a/src/app/tests/suites/certification/Test_TC_REFALM_2_2.yaml b/src/app/tests/suites/certification/Test_TC_REFALM_2_2.yaml index ac82c955979496..da9473dc7e9d22 100644 --- a/src/app/tests/suites/certification/Test_TC_REFALM_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_REFALM_2_2.yaml @@ -24,6 +24,11 @@ config: endpoint: 0 tests: + - label: "Note" + verification: | + This is a simulated example log for instructional purposes only. In real scenarios, the actual log may vary depending on the feature implementation in Reference App. + disabled: true + - label: "Step 1: Commission DUT to TH (can be skipped if done in a preceding test)" diff --git a/src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml b/src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml index ef4b026cf81dc5..d55390534ed735 100644 --- a/src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml @@ -35,58 +35,93 @@ tests: - label: "Step 2: Ensure that the door on the DUT is closed" verification: | - + Ensure that the door on the DUT is closed disabled: true - label: "Step 3: TH reads from the DUT the State attribute" PICS: REFALM.S.A0002 verification: | - Verify that the DUT response contains a 32-bit value with bit 0 set to 0 + ./chip-tool refrigeratoralarm read state 1 1 + On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0. + + [1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772 + [1688447820.603415][4247:4249] CHIP:TOO: State: 0 + [1688447820.603708][4247:4249] CHIP:EM: <<< [E:2198i S:4260 M:156565261 (Ack:46517349)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck) disabled: true - label: "Step 4: TH reads from the DUT the Mask attribute" PICS: REFALM.S.A0000 verification: | - Verify that the DUT response contains a 32-bit value with bit 0 set to 1 + ./chip-tool refrigeratoralarm read mask 1 1 + On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1. + + [1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772 + [1688447677.833165][4229:4231] CHIP:TOO: Mask: 1 + [1688447677.833494][4229:4231] CHIP:EM: <<< [E:27636i S:5449 M:199797248 (Ack:151091416)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck) disabled: true - label: "Step 5: Manually open the door on the DUT" verification: | - + Manually open the door on the DUT disabled: true - label: "Step 6: Wait for the time defined in PIXIT.REFALM.AlarmThreshold" verification: | - + Wait for the time defined in PIXIT.REFALM.AlarmThreshold disabled: true - label: "Step 7: TH reads from the DUT the State attribute" PICS: REFALM.S.A0002 verification: | - Verify that the DUT response contains a 32-bit value with bit 0 set to 1 + ./chip-tool refrigeratoralarm read state 1 1 + On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0. + + [1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772 + [1688447820.603415][4247:4249] CHIP:TOO: State: 1 + [1688447820.603708][4247:4249] CHIP:EM: <<< [E:2198i S:4260 M:156565261 (Ack:46517349)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck) disabled: true - label: "Step 8: Invoke the on DUT sequence to suppress the alarm, do not close the door" verification: | - + Invoke the on DUT sequence to suppress the alarm, do not close the door disabled: true - label: "Step 9: TH reads from the DUT the State attribute" PICS: REFALM.S.A0002 verification: | - Verify that the DUT response contains a 32-bit value with bit 0 set to 0 + ./chip-tool refrigeratoralarm read state 1 1 + On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0. + + [1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772 + [1688447820.603415][4247:4249] CHIP:TOO: State: 0 + [1688447820.603708][4247:4249] CHIP:EM: <<< [E:2198i S:4260 M:156565261 (Ack:46517349)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck) disabled: true - label: "Step 10: TH reads from the DUT the Mask attribute" PICS: REFALM.S.A0000 verification: | - Verify that the DUT response contains a 32-bit value with bit 0 set to 0 + ./chip-tool refrigeratoralarm read mask 1 1 + On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1. + + [1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772 + [1688447677.833165][4229:4231] CHIP:TOO: Mask: 0 + [1688447677.833494][4229:4231] CHIP:EM: <<< [E:27636i S:5449 M:199797248 (Ack:151091416)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck) disabled: true - label: "Step 11: TH reads from the DUT the Supported attribute" PICS: REFALM.S.A0003 verification: | - Verify that the DUT response contains a 32-bit value with bit 0 set to 1 + ./chip-tool refrigeratoralarm read supported 1 1 + On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1. + + [1689677642.708638][18413:18415] CHIP:DMG: SuppressResponse = true, + [1689677642.708645][18413:18415] CHIP:DMG: InteractionModelRevision = 1 + [1689677642.708651][18413:18415] CHIP:DMG: } + [1689677642.708726][18413:18415] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0003 DataVersion: 1517282962 + [1689677642.708773][18413:18415] CHIP:TOO: Supported: 1 + [1689677642.708845][18413:18415] CHIP:EM: <<< [E:32432i S:53289 M:29829407 (Ack:142651059)] (S) Msg TX to 1:0000000000000001 [BFDE] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1689677642.708859][18413:18415] CHIP:IN: (S) Sending msg 29829407 on secure session with LSID: 53289 + [1689677642.708900][18413:18415] CHIP:EM: Flushed pending ack for MessageCounter:142651059 on exchange 32432i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml index f6d1aae6b8a9b2..2081e133f84876 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml @@ -553,8 +553,16 @@ tests: type: list contains: [30] + - label: "Step 5a: Read the mandatory commands in AcceptedCommandList" + command: "readAttribute" + attribute: "AcceptedCommandList" + response: + constraints: + type: list + contains: [0] + - label: - "Step 5a: Read Feature dependent(TSTAT.S.F03(SCH)) commands in + "Step 5b: Read Feature dependent(TSTAT.S.F03(SCH)) commands in AcceptedCommandList" PICS: TSTAT.S.F03 command: "readAttribute" @@ -562,9 +570,11 @@ tests: response: constraints: type: list - contains: [0, 1, 2, 3] + contains: [1, 2, 3] - - label: "Step 5b: Read the optional attribute: AcceptedCommandList" + - label: + "Step 5c: Read the optional (GetRelayStatusLog) command in + AcceptedCommandList" PICS: TSTAT.S.C04.Rsp command: "readAttribute" attribute: "AcceptedCommandList" diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml index 574725b5c06b84..56187bddae7a31 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml @@ -1736,20 +1736,52 @@ tests: anyOf: [4, 5] - label: - "Step 12: Write Attribute command for ControlSequenceOfOperation with - a new valid value" + "Step 12: TH writes value 1 for attribute ControlSequenceOfOperation. + If TSTAT.S.F00 is true & TSTAT.S.F01 is false" command: "writeAttribute" attribute: "ControlSequenceOfOperation" - PICS: TSTAT.S.F00 || TSTAT.S.F01 + PICS: TSTAT.S.F00 && !TSTAT.S.F01 arguments: - value: 2 + value: 1 - label: "Step 12: Read it back again to confirm the successful write" command: "readAttribute" attribute: "ControlSequenceOfOperation" - PICS: TSTAT.S.F00 || TSTAT.S.F01 + PICS: TSTAT.S.F00 && !TSTAT.S.F01 + response: + value: 1 + + - label: + "Step 12: TH writes value 3 for attribute ControlSequenceOfOperation. + If TSTAT.S.F01 is true & TSTAT.S.F00 is false" + command: "writeAttribute" + attribute: "ControlSequenceOfOperation" + PICS: TSTAT.S.F01 && !TSTAT.S.F00 + arguments: + value: 3 + + - label: "Step 12: Read it back again to confirm the successful write" + command: "readAttribute" + attribute: "ControlSequenceOfOperation" + PICS: TSTAT.S.F01 && !TSTAT.S.F00 + response: + value: 3 + + - label: + "Step 12: TH writes value 4 for attribute ControlSequenceOfOperation. + If TSTAT.S.F01 & TSTAT.S.F00 are true" + command: "writeAttribute" + attribute: "ControlSequenceOfOperation" + PICS: TSTAT.S.F00 && TSTAT.S.F01 + arguments: + value: 4 + + - label: "Step 12: Read it back again to confirm the successful write" + command: "readAttribute" + attribute: "ControlSequenceOfOperation" + PICS: TSTAT.S.F00 && TSTAT.S.F01 response: - value: 2 + value: 4 - label: "Writes MaxHeatSetpointLimit attribute to default value of 2950 to diff --git a/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml index e88ffbd7703897..56d387720a5e23 100644 --- a/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml @@ -31,7 +31,7 @@ tests: - name: "nodeId" value: nodeId - - label: "Step 2: TH read ClusterRevision attribute from the DUT" + - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." command: "readAttribute" attribute: "ClusterRevision" response: @@ -39,7 +39,7 @@ tests: constraints: type: int16u - - label: "Step 3: Read FeatureMap attribute from the DUT" + - label: "Step 3: TH reads from the DUT the FeatureMap attribute." command: "readAttribute" attribute: "FeatureMap" response: @@ -47,25 +47,36 @@ tests: constraints: type: bitmap32 - - label: "Step 4: Read the global attribute: AttributeList" + - label: "Step 4a: TH reads from the DUT the AttributeList attribute." PICS: PICS_EVENT_LIST_ENABLED command: "readAttribute" attribute: "AttributeList" response: constraints: type: list - contains: [0, 1, 2, 65528, 65529, 65530, 65531, 65532, 65533] + contains: [0, 1, 65528, 65529, 65530, 65531, 65532, 65533] - - label: "Step 4: Read the global attribute: AttributeList" + - label: "Step 4a: TH reads from the DUT the AttributeList attribute." PICS: "!PICS_EVENT_LIST_ENABLED" command: "readAttribute" attribute: "AttributeList" response: constraints: type: list - contains: [0, 1, 2, 65528, 65529, 65531, 65532, 65533] + contains: [0, 1, 65528, 65529, 65531, 65532, 65533] - - label: "Step 5: Read the global attribute: AcceptedCommandList" + - label: + "Step 4b: TH reads optional attribute(ScheduleProgrammingVisibility) + in AttributeList" + PICS: TSUIC.S.A0002 + command: "readAttribute" + attribute: "AttributeList" + response: + constraints: + type: list + contains: [2] + + - label: "Step 5: TH reads from the DUT the AcceptedCommandList attribute." command: "readAttribute" attribute: "AcceptedCommandList" response: @@ -73,7 +84,7 @@ tests: constraints: type: list - - label: "Step 6: Read the global attribute: GeneratedCommandList" + - label: "Step 6: TH reads from the DUT the GeneratedCommandList attribute." command: "readAttribute" attribute: "GeneratedCommandList" response: diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_3_4.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_3_4.yaml index 1a2431a63c9386..7f0951646ba01b 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_3_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_3_4.yaml @@ -25,7 +25,7 @@ config: endpoint: 1 fastMotionDuration: type: int16u - defaultValue: 3000 + defaultValue: 5000 fullMotionDuration: type: int16u defaultValue: 6000 diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_3_5.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_3_5.yaml index 54ce50c8176b59..735fb0aaff648f 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_3_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_3_5.yaml @@ -25,7 +25,7 @@ config: endpoint: 1 fastMotionDuration: type: int16u - defaultValue: 3000 + defaultValue: 5000 fullMotionDuration: type: int16u defaultValue: 6000 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 01902b12bbeeb9..8157a21713bcc6 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -94789,47 +94789,51 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { err = TestStep4rReadTheFeatureDependentTSTATSF05AUTOOptionalAttributeInAttributeList_52(); break; case 53: - ChipLogProgress(chipTool, " ***** Test Step 53 : Step 5a: Read Feature dependent(TSTAT.S.F03(SCH)) commands in AcceptedCommandList\n"); + ChipLogProgress(chipTool, " ***** Test Step 53 : Step 5a: Read the mandatory commands in AcceptedCommandList\n"); + err = TestStep5aReadTheMandatoryCommandsInAcceptedCommandList_53(); + break; + case 54: + ChipLogProgress(chipTool, " ***** Test Step 54 : Step 5b: Read Feature dependent(TSTAT.S.F03(SCH)) commands in AcceptedCommandList\n"); if (ShouldSkip("TSTAT.S.F03")) { NextTest(); return; } - err = TestStep5aReadFeatureDependentTSTATSF03SCHCommandsInAcceptedCommandList_53(); + err = TestStep5bReadFeatureDependentTSTATSF03SCHCommandsInAcceptedCommandList_54(); break; - case 54: - ChipLogProgress(chipTool, " ***** Test Step 54 : Step 5b: Read the optional attribute: AcceptedCommandList\n"); + case 55: + ChipLogProgress(chipTool, " ***** Test Step 55 : Step 5c: Read the optional (GetRelayStatusLog) command in AcceptedCommandList\n"); if (ShouldSkip("TSTAT.S.C04.Rsp")) { NextTest(); return; } - err = TestStep5bReadTheOptionalAttributeAcceptedCommandList_54(); + err = TestStep5cReadTheOptionalGetRelayStatusLogCommandInAcceptedCommandList_55(); break; - case 55: - ChipLogProgress(chipTool, " ***** Test Step 55 : Step 6a: Read the global attribute: GeneratedCommandList\n"); + case 56: + ChipLogProgress(chipTool, " ***** Test Step 56 : Step 6a: Read the global attribute: GeneratedCommandList\n"); if (ShouldSkip(" !TSTAT.S.C04.Rsp && !TSTAT.S.C02.Rsp ")) { NextTest(); return; } - err = TestStep6aReadTheGlobalAttributeGeneratedCommandList_55(); + err = TestStep6aReadTheGlobalAttributeGeneratedCommandList_56(); break; - case 56: - ChipLogProgress(chipTool, " ***** Test Step 56 : Step 6b: Read Feature dependent(TSTAT.S.F03(SCH)) commands in GeneratedCommandList\n"); + case 57: + ChipLogProgress(chipTool, " ***** Test Step 57 : Step 6b: Read Feature dependent(TSTAT.S.F03(SCH)) commands in GeneratedCommandList\n"); if (ShouldSkip("TSTAT.S.F03")) { NextTest(); return; } - err = TestStep6bReadFeatureDependentTSTATSF03SCHCommandsInGeneratedCommandList_56(); + err = TestStep6bReadFeatureDependentTSTATSF03SCHCommandsInGeneratedCommandList_57(); break; - case 57: - ChipLogProgress(chipTool, " ***** Test Step 57 : Step 6c: Read optional command (GetRelayStatusLogResponse) in GeneratedCommandList\n"); + case 58: + ChipLogProgress(chipTool, " ***** Test Step 58 : Step 6c: Read optional command (GetRelayStatusLogResponse) in GeneratedCommandList\n"); if (ShouldSkip("TSTAT.S.C04.Rsp")) { NextTest(); return; } - err = TestStep6cReadOptionalCommandGetRelayStatusLogResponseInGeneratedCommandList_57(); + err = TestStep6cReadOptionalCommandGetRelayStatusLogResponseInGeneratedCommandList_58(); break; - case 58: - ChipLogProgress(chipTool, " ***** Test Step 58 : Step 7: Read EventList attribute from the DUT.\n"); + case 59: + ChipLogProgress(chipTool, " ***** Test Step 59 : Step 7: Read EventList attribute from the DUT.\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED")) { NextTest(); return; @@ -95024,6 +95028,9 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { case 58: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 59: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -95034,7 +95041,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 59; + const uint16_t mTestCount = 60; chip::Optional mNodeId; chip::Optional mCluster; @@ -96156,7 +96163,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep5aReadFeatureDependentTSTATSF03SCHCommandsInAcceptedCommandList_53() + CHIP_ERROR TestStep5aReadTheMandatoryCommandsInAcceptedCommandList_53() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96164,12 +96171,32 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 5a: Read Feature dependent(TSTAT.S.F03(SCH)) commands in AcceptedCommandList Error: %@", err); + NSLog(@"Step 5a: Read the mandatory commands in AcceptedCommandList Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "list", "list")); VerifyOrReturn(CheckConstraintContains("acceptedCommandList", value, 0UL)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestStep5bReadFeatureDependentTSTATSF03SCHCommandsInAcceptedCommandList_54() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeAcceptedCommandListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Step 5b: Read Feature dependent(TSTAT.S.F03(SCH)) commands in AcceptedCommandList Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("acceptedCommandList", "list", "list")); VerifyOrReturn(CheckConstraintContains("acceptedCommandList", value, 1UL)); VerifyOrReturn(CheckConstraintContains("acceptedCommandList", value, 2UL)); VerifyOrReturn(CheckConstraintContains("acceptedCommandList", value, 3UL)); @@ -96180,7 +96207,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep5bReadTheOptionalAttributeAcceptedCommandList_54() + CHIP_ERROR TestStep5cReadTheOptionalGetRelayStatusLogCommandInAcceptedCommandList_55() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96188,7 +96215,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 5b: Read the optional attribute: AcceptedCommandList Error: %@", err); + NSLog(@"Step 5c: Read the optional (GetRelayStatusLog) command in AcceptedCommandList Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96201,7 +96228,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep6aReadTheGlobalAttributeGeneratedCommandList_55() + CHIP_ERROR TestStep6aReadTheGlobalAttributeGeneratedCommandList_56() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96225,7 +96252,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep6bReadFeatureDependentTSTATSF03SCHCommandsInGeneratedCommandList_56() + CHIP_ERROR TestStep6bReadFeatureDependentTSTATSF03SCHCommandsInGeneratedCommandList_57() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96246,7 +96273,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep6cReadOptionalCommandGetRelayStatusLogResponseInGeneratedCommandList_57() + CHIP_ERROR TestStep6cReadOptionalCommandGetRelayStatusLogResponseInGeneratedCommandList_58() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96313,39 +96340,47 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { err = TestStep1WaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Step 2: TH read ClusterRevision attribute from the DUT\n"); - err = TestStep2ThReadClusterRevisionAttributeFromTheDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Step 2: TH reads from the DUT the ClusterRevision attribute.\n"); + err = TestStep2ThReadsFromTheDutTheClusterRevisionAttribute_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: Read FeatureMap attribute from the DUT\n"); - err = TestStep3ReadFeatureMapAttributeFromTheDut_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: TH reads from the DUT the FeatureMap attribute.\n"); + err = TestStep3ThReadsFromTheDutTheFeatureMapAttribute_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Step 4: Read the global attribute: AttributeList\n"); + ChipLogProgress(chipTool, " ***** Test Step 3 : Step 4a: TH reads from the DUT the AttributeList attribute.\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED")) { NextTest(); return; } - err = TestStep4ReadTheGlobalAttributeAttributeList_3(); + err = TestStep4aThReadsFromTheDutTheAttributeListAttribute_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Step 4: Read the global attribute: AttributeList\n"); + ChipLogProgress(chipTool, " ***** Test Step 4 : Step 4a: TH reads from the DUT the AttributeList attribute.\n"); if (ShouldSkip("!PICS_EVENT_LIST_ENABLED")) { NextTest(); return; } - err = TestStep4ReadTheGlobalAttributeAttributeList_4(); + err = TestStep4aThReadsFromTheDutTheAttributeListAttribute_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Step 5: Read the global attribute: AcceptedCommandList\n"); - err = TestStep5ReadTheGlobalAttributeAcceptedCommandList_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Step 4b: TH reads optional attribute(ScheduleProgrammingVisibility) in AttributeList\n"); + if (ShouldSkip("TSUIC.S.A0002")) { + NextTest(); + return; + } + err = TestStep4bThReadsOptionalAttributeScheduleProgrammingVisibilityInAttributeList_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Step 6: Read the global attribute: GeneratedCommandList\n"); - err = TestStep6ReadTheGlobalAttributeGeneratedCommandList_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Step 5: TH reads from the DUT the AcceptedCommandList attribute.\n"); + err = TestStep5ThReadsFromTheDutTheAcceptedCommandListAttribute_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Step 7: TH reads from the DUT the EventList attribute.\n"); + ChipLogProgress(chipTool, " ***** Test Step 7 : Step 6: TH reads from the DUT the GeneratedCommandList attribute.\n"); + err = TestStep6ThReadsFromTheDutTheGeneratedCommandListAttribute_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Step 7: TH reads from the DUT the EventList attribute.\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED")) { NextTest(); return; @@ -96387,6 +96422,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 8: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -96397,7 +96435,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 8; + const uint16_t mTestCount = 9; chip::Optional mNodeId; chip::Optional mCluster; @@ -96412,7 +96450,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestStep2ThReadClusterRevisionAttributeFromTheDut_1() + CHIP_ERROR TestStep2ThReadsFromTheDutTheClusterRevisionAttribute_1() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96420,7 +96458,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 2: TH read ClusterRevision attribute from the DUT Error: %@", err); + NSLog(@"Step 2: TH reads from the DUT the ClusterRevision attribute. Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96436,7 +96474,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep3ReadFeatureMapAttributeFromTheDut_2() + CHIP_ERROR TestStep3ThReadsFromTheDutTheFeatureMapAttribute_2() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96444,7 +96482,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 3: Read FeatureMap attribute from the DUT Error: %@", err); + NSLog(@"Step 3: TH reads from the DUT the FeatureMap attribute. Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96460,7 +96498,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep4ReadTheGlobalAttributeAttributeList_3() + CHIP_ERROR TestStep4aThReadsFromTheDutTheAttributeListAttribute_3() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96468,14 +96506,13 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 4: Read the global attribute: AttributeList Error: %@", err); + NSLog(@"Step 4a: TH reads from the DUT the AttributeList attribute. Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "list", "list")); VerifyOrReturn(CheckConstraintContains("attributeList", value, 0UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 1UL)); - VerifyOrReturn(CheckConstraintContains("attributeList", value, 2UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 65530UL)); @@ -96489,7 +96526,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep4ReadTheGlobalAttributeAttributeList_4() + CHIP_ERROR TestStep4aThReadsFromTheDutTheAttributeListAttribute_4() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96497,14 +96534,13 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 4: Read the global attribute: AttributeList Error: %@", err); + NSLog(@"Step 4a: TH reads from the DUT the AttributeList attribute. Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "list", "list")); VerifyOrReturn(CheckConstraintContains("attributeList", value, 0UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 1UL)); - VerifyOrReturn(CheckConstraintContains("attributeList", value, 2UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 65531UL)); @@ -96517,7 +96553,28 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep5ReadTheGlobalAttributeAcceptedCommandList_5() + CHIP_ERROR TestStep4bThReadsOptionalAttributeScheduleProgrammingVisibilityInAttributeList_5() + { + + MTRBaseDevice * device = GetDevice("alpha"); + __auto_type * cluster = [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Step 4b: TH reads optional attribute(ScheduleProgrammingVisibility) in AttributeList Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("attributeList", "list", "list")); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 2UL)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestStep5ThReadsFromTheDutTheAcceptedCommandListAttribute_6() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96525,7 +96582,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 5: Read the global attribute: AcceptedCommandList Error: %@", err); + NSLog(@"Step 5: TH reads from the DUT the AcceptedCommandList attribute. Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -96541,7 +96598,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestStep6ReadTheGlobalAttributeGeneratedCommandList_6() + CHIP_ERROR TestStep6ThReadsFromTheDutTheGeneratedCommandListAttribute_7() { MTRBaseDevice * device = GetDevice("alpha"); @@ -96549,7 +96606,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 6: Read the global attribute: GeneratedCommandList Error: %@", err); + NSLog(@"Step 6: TH reads from the DUT the GeneratedCommandList attribute. Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -107686,7 +107743,7 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = mFastMotionDuration.HasValue() ? mFastMotionDuration.Value() : 3000UL; + value.ms = mFastMotionDuration.HasValue() ? mFastMotionDuration.Value() : 5000UL; return WaitForMs("alpha", value); } @@ -108038,7 +108095,7 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = mFastMotionDuration.HasValue() ? mFastMotionDuration.Value() : 3000UL; + value.ms = mFastMotionDuration.HasValue() ? mFastMotionDuration.Value() : 5000UL; return WaitForMs("alpha", value); } From 9132749a1e8bab203da3f1d6c37ba5bc0bc00cdb Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 27 Sep 2023 11:00:27 +0000 Subject: [PATCH 09/13] Restyled by whitespace --- src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml b/src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml index d55390534ed735..be1df892bd9bcb 100644 --- a/src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml @@ -116,7 +116,7 @@ tests: ./chip-tool refrigeratoralarm read supported 1 1 On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1. - [1689677642.708638][18413:18415] CHIP:DMG: SuppressResponse = true, + [1689677642.708638][18413:18415] CHIP:DMG: SuppressResponse = true, [1689677642.708645][18413:18415] CHIP:DMG: InteractionModelRevision = 1 [1689677642.708651][18413:18415] CHIP:DMG: } [1689677642.708726][18413:18415] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0003 DataVersion: 1517282962 From 6325934ecf3a8df2ba6a3c12fb11d6fff1d85a6d Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Wed, 27 Sep 2023 21:44:57 +0530 Subject: [PATCH 10/13] Fixes issue 984 TC-TCTL-1.1 --- src/app/tests/suites/certification/Test_TC_TCTL_1_1.yaml | 2 +- .../darwin-framework-tool/zap-generated/test/Commands.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_TCTL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TCTL_1_1.yaml index 0a88b2982d45ba..680b359d2b7d32 100644 --- a/src/app/tests/suites/certification/Test_TC_TCTL_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TCTL_1_1.yaml @@ -75,7 +75,7 @@ tests: be 1 if and only if TCTL.S.F02(A_STEP) & TCTL.S.F00(TN)" command: "readAttribute" attribute: "FeatureMap" - PICS: TCTL.S.F02 && !TCTL.S.F00 + PICS: TCTL.S.F02 && TCTL.S.F00 response: constraints: type: bitmap32 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 8157a21713bcc6..6c6d0618e7d06b 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -93001,7 +93001,7 @@ class Test_TC_TCTL_1_1 : public TestCommandBridge { break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Step 3d: TH reads from the DUT the FeatureMap attribute. bit 2: SHALL be 1 if and only if TCTL.S.F02(A_STEP) & TCTL.S.F00(TN)\n"); - if (ShouldSkip("TCTL.S.F02 && !TCTL.S.F00")) { + if (ShouldSkip("TCTL.S.F02 && TCTL.S.F00")) { NextTest(); return; } From ac5be76a4eeb1c9695eeadf06673a0a73fb23bae Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Fri, 29 Sep 2023 14:47:54 +0530 Subject: [PATCH 11/13] Reverted back changes for tests: TC-DGGEN-2.1 TC-REFALM-2.1 TC-RVCCLEANM-3.3 --- .../templates/tests/ciTests.json | 4 +- .../certification/Test_TC_DGGEN_2_1.yaml | 24 - .../certification/Test_TC_REFALM_2_1.yaml | 81 ++- .../certification/Test_TC_RVCCLEANM_3_3.yaml | 342 +++++---- .../certification/Test_TC_TSTAT_2_2.yaml | 12 +- .../zap-generated/test/Commands.h | 669 ++---------------- 6 files changed, 347 insertions(+), 785 deletions(-) diff --git a/examples/darwin-framework-tool/templates/tests/ciTests.json b/examples/darwin-framework-tool/templates/tests/ciTests.json index b370831d5a126d..efcf63386a1002 100644 --- a/examples/darwin-framework-tool/templates/tests/ciTests.json +++ b/examples/darwin-framework-tool/templates/tests/ciTests.json @@ -54,6 +54,8 @@ "Disabled because darwin-framework-tool does not support EqualityCommands pseudo-cluster", "Test_TC_TCCM_3_1", "Test_TC_TCTL_2_1", - "Test_TC_RVCCLEANM_3_3" + "Disabled because darwin-framework-tool does not support constraints arithmetic opertaions", + "Test_TC_FLW_2_1", + "Test_TC_RH_2_1" ] } diff --git a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml index ee30eddb496568..22a222055e689f 100644 --- a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml @@ -30,10 +30,6 @@ config: type: int64u defaultValue: "0x0000000000000003" - payloadValue: - type: char_string - defaultValue: "MT:-24J0AFN00KA0648G00" - tests: - label: "Wait for the commissioned device to be retrieved" cluster: "DelayCommands" @@ -61,16 +57,6 @@ tests: - name: "expectedValue" value: "y" - - label: "Recommission the DUT" - cluster: "CommissionerCommands" - command: "PairWithCode" - arguments: - values: - - name: "nodeId" - value: nodeId - - name: "payload" - value: payloadValue - - label: "Step 1b: Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" @@ -450,16 +436,6 @@ tests: - name: "expectedValue" value: "y" - - label: "Recommission the DUT" - cluster: "CommissionerCommands" - command: "PairWithCode" - arguments: - values: - - name: "nodeId" - value: nodeId - - name: "payload" - value: payloadValue - - label: "Wait for the commissioned device to be retrieved" cluster: "DelayCommands" command: "WaitForCommissionee" diff --git a/src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml b/src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml index 3b46870a94654c..a133eb9a975531 100644 --- a/src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml @@ -11,64 +11,71 @@ # 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: 223.2.1. [TC-REFALM-2.1] Attributes with DUT as Server +name: 222.2.1. [TC-REFALM-2.1] Attributes with DUT as Server PICS: - REFALM.S config: nodeId: 0x12344321 - cluster: "Refrigerator Alarm" - endpoint: 1 + cluster: "Basic Information" + endpoint: 0 tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId + - label: "Note" + verification: | + This is a simulated example log for instructional purposes only. In real scenarios, the actual log may vary depending on the feature implementation in Reference App. + disabled: true + + - label: + "Step 1: Commission DUT to TH (can be skipped if done in a preceding + test)" + verification: | + + disabled: true - label: "Step 2: Ensure that the door alarm is not locally suppressed and the door is closed" verification: | Ensure that the door alarm is not locally suppressed and the door is closed - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_SKIP_SAMPLE_APP - arguments: - values: - - name: "message" - value: "Enter 'y' after success" - - name: "expectedValue" - value: "y" + disabled: true - label: "Step 3: TH reads from the DUT the Mask attribute" PICS: REFALM.S.A0000 - command: "readAttribute" - attribute: "Mask" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] + verification: | + ./chip-tool refrigeratoralarm read mask 1 1 + On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1. + [1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772 + [1688447677.833165][4229:4231] CHIP:TOO: Mask: 1 + [1688447677.833494][4229:4231] CHIP:EM: <<< [E:27636i S:5449 M:199797248 (Ack:151091416)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck) + disabled: true - label: "Step 4: TH reads from the DUT the State attribute" PICS: REFALM.S.A0002 - command: "readAttribute" - attribute: "State" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] + verification: | + ./chip-tool refrigeratoralarm read state 1 1 + On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0. + + [1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772 + [1688447820.603415][4247:4249] CHIP:TOO: State: 0 + [1688447820.603708][4247:4249] CHIP:EM: <<< [E:2198i S:4260 M:156565261 (Ack:46517349)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck) + disabled: true - label: "Step 5: TH reads from the DUT the Supported attribute" PICS: REFALM.S.A0003 - command: "readAttribute" - attribute: "Supported" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] + verification: | + ./chip-tool refrigeratoralarm read supported 1 1 + On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1. + + [1689677642.708638][18413:18415] CHIP:DMG: SuppressResponse = true, + [1689677642.708645][18413:18415] CHIP:DMG: InteractionModelRevision = 1 + [1689677642.708651][18413:18415] CHIP:DMG: } + [1689677642.708726][18413:18415] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0003 DataVersion: 1517282962 + [1689677642.708773][18413:18415] CHIP:TOO: Supported: 1 + [1689677642.708845][18413:18415] CHIP:EM: <<< [E:32432i S:53289 M:29829407 (Ack:142651059)] (S) Msg TX to 1:0000000000000001 [BFDE] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1689677642.708859][18413:18415] CHIP:IN: (S) Sending msg 29829407 on secure session with LSID: 53289 + [1689677642.708900][18413:18415] CHIP:EM: Flushed pending ack for MessageCounter:142651059 on exchange 32432i + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_RVCCLEANM_3_3.yaml b/src/app/tests/suites/certification/Test_TC_RVCCLEANM_3_3.yaml index dfef361c8b8bae..7fa5f670b18342 100644 --- a/src/app/tests/suites/certification/Test_TC_RVCCLEANM_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_RVCCLEANM_3_3.yaml @@ -11,6 +11,7 @@ # 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: 92.4.3. [TC-RVCCLEANM-3.3] On Mode and Startup Mode functionality with DUT @@ -23,166 +24,267 @@ PICS: config: nodeId: 0x12344321 - cluster: "RVC Clean Mode" - endpoint: 1 - new_start_up_mode_th: - type: int8u - defaultValue: 0 - new_mode_th: - type: int8u - defaultValue: 1 + cluster: "Basic Information" + endpoint: 0 tests: + - label: "Precondition" + verification: | + This test case is verified after the device is provisioned. Pls provision device first, Pass appropriate nodeID in the below command + disabled: true + + - label: "Note" + verification: | + To Execute the TC-RVCCLEANM-3.3 test case using reboot in raspi device we followed the below suggested way: + + To run a reboot test case on raspi, run the app with --KVS flag with a file in local directory and pass that file to the command to launch the app. Steps + + step-1: create a file using touch command , something like touch mytest.txt + step-2: chmod 777 mytest.txt + step-3: launch the app ./chip-all-clusters-app --KVS ./mytest.txt + + if you launch the app with the above commands and provision the app, even when you reboot the app with 'sudo reboot' , next time you launch the app with 'sudo ./out/all-clusters-app/chip-all-clusters-app --KVS ./mytest.txt' , you can run read/write attribs and commands without reprovisioning the device. + disabled: true + - label: "Step 1: Commission DUT to TH (can be skipped if done in a preceding test)." - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId + verification: | + + disabled: true - label: "Step 2: TH reads from the DUT the StartUpMode attribute." PICS: RVCCLEANM.S.A0002 - command: "readAttribute" - attribute: "StartUpMode" - response: - saveAs: startup_mode_dut - constraints: - type: int8u - minValue: 0 - maxValue: 254 + verification: | + ./chip-tool rvcrunmode read start-up-mode 1 1 - - label: - "If startup_mode_dut is null proceed to step 3. Else save - startup_mode_dut as new_start_up_mode_th and proceed to step 5." - PICS: RVCCLEANM.S.A0002 - cluster: "EqualityCommands" - command: "UnsignedNumberEquals" - arguments: - values: - - name: "Value1" - value: startup_mode_dut - - name: "Value2" - value: null - response: - - values: - - name: "Equals" - saveAs: IsExpectedValue + On TH(chip-tool), Verify that StartUpMode attribute value is an integer or Null + - Save the value as startup_mode_dut, below is the sample log provided for the raspi platform, Here StartUpMode attribute value is null + + NOTE: if startup_mode_dut is null proceed to step 3. Else save startup_mode_dut as new_start_up_mode_th and proceed to step 5. + + [1690546417.725863][3168:3170] CHIP:DMG: } + [1690546417.726042][3168:3170] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0054 Attribute 0x0000_0002 DataVersion: 3746592465 + [1690546417.726109][3168:3170] CHIP:TOO: StartUpMode: null + disabled: true - label: "Step 3: TH reads from the DUT the SupportedModes attribute." - runIf: IsExpectedValue PICS: RVCCLEANM.S.A0000 - command: "readAttribute" - attribute: "SupportedModes" - response: - constraints: - type: list - minLength: 2 + verification: | + ./chip-tool rvccleanmode read supported-modes 1 1 + + On TH(chip-tool) log, Verify DUT response contains a list of ModeOptionsStruct entries + - Verify that the list has two or more entries + - Save the Mode field values as supported_modes_dut + - Select a value from supported_modes_dut and save the value as new_start_up_mode_th, below is the sample log provided for the raspi platform: + + [1690184020.818299][15321:15323] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0000 DataVersion: 3807724300 + [1690184020.818324][15321:15323] CHIP:TOO: SupportedModes: 3 entries + [1690184020.818332][15321:15323] CHIP:TOO: [1]: { + [1690184020.818336][15321:15323] CHIP:TOO: Label: Vacuum + [1690184020.818341][15321:15323] CHIP:TOO: Mode: 0 + [1690184020.818345][15321:15323] CHIP:TOO: ModeTags: 1 entries + [1690184020.818351][15321:15323] CHIP:TOO: [1]: { + [1690184020.818354][15321:15323] CHIP:TOO: Value: 16385 + [1690184020.818357][15321:15323] CHIP:TOO: } + [1690184020.818360][15321:15323] CHIP:TOO: } + [1690184020.818365][15321:15323] CHIP:TOO: [2]: { + [1690184020.818368][15321:15323] CHIP:TOO: Label: Wash + [1690184020.818370][15321:15323] CHIP:TOO: Mode: 1 + [1690184020.818372][15321:15323] CHIP:TOO: ModeTags: 1 entries + [1690184020.818376][15321:15323] CHIP:TOO: [1]: { + [1690184020.818379][15321:15323] CHIP:TOO: Value: 16386 + [1690184020.818381][15321:15323] CHIP:TOO: } + [1690184020.818384][15321:15323] CHIP:TOO: } + [1690184020.818389][15321:15323] CHIP:TOO: [3]: { + [1690184020.818392][15321:15323] CHIP:TOO: Label: Deep clean + [1690184020.818394][15321:15323] CHIP:TOO: Mode: 2 + [1690184020.818398][15321:15323] CHIP:TOO: ModeTags: 2 entries + [1690184020.818402][15321:15323] CHIP:TOO: [1]: { + [1690184020.818404][15321:15323] CHIP:TOO: Value: 7 + [1690184020.818407][15321:15323] CHIP:TOO: } + [1690184020.818410][15321:15323] CHIP:TOO: [2]: { + [1690184020.818412][15321:15323] CHIP:TOO: Value: 16384 + [1690184020.818415][15321:15323] CHIP:TOO: } + [1690184020.818418][15321:15323] CHIP:TOO: } + disabled: true - label: "Step 4: TH writes to the DUT the StartUpMode attribute with the new_start_up_mode_th value" PICS: RVCCLEANM.S.A0002 - runIf: IsExpectedValue - command: "writeAttribute" - attribute: "StartUpMode" - arguments: - value: new_start_up_mode_th + verification: | + ./chip-tool rvcrunmode write start-up-mode 0 1 1 + + On TH(chip-tool) log, Verify that DUT responds with a successful (value 0x00) status response and below is the sample log provided for the raspi platform: + + 1690183885.227143][15298:15300] CHIP:DMG: StatusIB = + [1690183885.227148][15298:15300] CHIP:DMG: { + [1690183885.227152][15298:15300] CHIP:DMG: status = 0x00 (SUCCESS), + [1690183885.227156][15298:15300] CHIP:DMG: }, + + ./chip-tool rvcrunmode read start-up-mode 1 1 + + On TH(chip-tool), Verify that StartUpMode attribute value is 0 and below is the sample log provided for the raspi platform + + [1692178796.077748][3730:3732] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0054 Attribute 0x0000_0002 DataVersion: 1431406600 + [1692178796.077821][3730:3732] CHIP:TOO: StartUpMode: 0 + disabled: true - label: "Step 5: TH reads from the DUT the OnMode attribute." - PICS: RVCCLEANM.S.A0002 && RVCCLEANM.S.A0003 - command: "readAttribute" - attribute: "OnMode" - response: - saveAs: old_on_mode_dut + PICS: RVCCLEANM.S.A0003 && RVCCLEANM.S.A0002 + verification: | + As default value of OnMode attribute is NULL. Set the OnMode to any mode value listed in the SupportedModes entries. - - label: - "If startup_mode_dut is equal to old_on_mode_dut proceed to step 6. - Else proceed to step 8." - PICS: RVCCLEANM.S.A0002 && RVCCLEANM.S.A0003 - cluster: "EqualityCommands" - command: "UnsignedNumberEquals" - arguments: - values: - - name: "Value1" - value: startup_mode_dut - - name: "Value2" - value: old_on_mode_dut - response: - - values: - - name: "Equals" - saveAs: Step5IsExpectedValue + ./chip-tool rvccleanmode write on-mode 0 1 1 + + On TH(chip-tool) log, Verify DUT responds with a successful (value 0x00) status response and below is the sample log provided for the raspi platform: + + [1690184081.114871][15327:15329] CHIP:DMG: StatusIB = + [1690184081.114874][15327:15329] CHIP:DMG: { + [1690184081.114877][15327:15329] CHIP:DMG: status = 0x00 (SUCCESS), + [1690184081.114879][15327:15329] CHIP:DMG: }, + [1690184081.114883][15327:15329] CHIP:DMG: + + ./chip-tool rvccleanmode read on-mode 1 1 + + On TH(chip-tool), Verify that OnMode attribute value is an integer + - Save the value as old_on_mode_dut, below is the sample log provided for the raspi platform, here OnMode attribute value is 0 + + NOTE: If startup_mode_dut is equal to old_on_mode_dut proceed to step 6. Else proceed to step 8. + + [1690184107.425807][15339:15341] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0003 DataVersion: 3807724302 + [1690184107.425849][15339:15341] CHIP:TOO: OnMode: 0 + disabled: true - label: "Step 6: TH reads from the DUT the SupportedModes attribute." - runIf: Step5IsExpectedValue PICS: RVCCLEANM.S.A0000 && RVCCLEANM.S.A0002 - command: "readAttribute" - attribute: "SupportedModes" - response: - constraints: - type: list - minLength: 2 + verification: | + ./chip-tool rvccleanmode read supported-modes 1 1 + + On TH(chip-tool) log, Verify DUT response contains a list of ModeOptionsStruct entries + - Verify that the list has two or more entries + - Save the Mode field values as supported_modes_dut + - Select a value from supported_modes_dut different from startup_mode_dut. Save the value as new_mode_th, below is the sample log provided for the raspi platform: + + [1690184020.818299][15321:15323] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0000 DataVersion: 3807724300 + [1690184020.818324][15321:15323] CHIP:TOO: SupportedModes: 3 entries + [1690184020.818332][15321:15323] CHIP:TOO: [1]: { + [1690184020.818336][15321:15323] CHIP:TOO: Label: Vacuum + [1690184020.818341][15321:15323] CHIP:TOO: Mode: 0 + [1690184020.818345][15321:15323] CHIP:TOO: ModeTags: 1 entries + [1690184020.818351][15321:15323] CHIP:TOO: [1]: { + [1690184020.818354][15321:15323] CHIP:TOO: Value: 16385 + [1690184020.818357][15321:15323] CHIP:TOO: } + [1690184020.818360][15321:15323] CHIP:TOO: } + [1690184020.818365][15321:15323] CHIP:TOO: [2]: { + [1690184020.818368][15321:15323] CHIP:TOO: Label: Wash + [1690184020.818370][15321:15323] CHIP:TOO: Mode: 1 + [1690184020.818372][15321:15323] CHIP:TOO: ModeTags: 1 entries + [1690184020.818376][15321:15323] CHIP:TOO: [1]: { + [1690184020.818379][15321:15323] CHIP:TOO: Value: 16386 + [1690184020.818381][15321:15323] CHIP:TOO: } + [1690184020.818384][15321:15323] CHIP:TOO: } + [1690184020.818389][15321:15323] CHIP:TOO: [3]: { + [1690184020.818392][15321:15323] CHIP:TOO: Label: Deep clean + [1690184020.818394][15321:15323] CHIP:TOO: Mode: 2 + [1690184020.818398][15321:15323] CHIP:TOO: ModeTags: 2 entries + [1690184020.818402][15321:15323] CHIP:TOO: [1]: { + [1690184020.818404][15321:15323] CHIP:TOO: Value: 7 + [1690184020.818407][15321:15323] CHIP:TOO: } + [1690184020.818410][15321:15323] CHIP:TOO: [2]: { + [1690184020.818412][15321:15323] CHIP:TOO: Value: 16384 + [1690184020.818415][15321:15323] CHIP:TOO: } + [1690184020.818418][15321:15323] CHIP:TOO: } + disabled: true - label: "Step 7: TH writes to the DUT the OnMode attribute with the new_mode_th value" - runIf: Step5IsExpectedValue PICS: RVCCLEANM.S.A0003 - command: "writeAttribute" - attribute: "OnMode" - arguments: - value: new_mode_th + verification: | + ./chip-tool rvccleanmode write on-mode 1 1 1 + + On TH(chip-tool) log, Verify DUT responds with a successful (value 0x00) status response and below is the sample log provided for the raspi platform: + + [1690184081.114871][15327:15329] CHIP:DMG: StatusIB = + [1690184081.114874][15327:15329] CHIP:DMG: { + [1690184081.114877][15327:15329] CHIP:DMG: status = 0x00 (SUCCESS), + [1690184081.114879][15327:15329] CHIP:DMG: }, + [1690184081.114883][15327:15329] CHIP:DMG: + disabled: true - label: "Step 8: TH reads from the DUT the OnMode attribute." PICS: RVCCLEANM.S.A0003 && RVCCLEANM.S.F00 - command: "readAttribute" - attribute: "OnMode" - response: - saveAs: new_on_mode_dut + verification: | + ./chip-tool rvccleanmode read on-mode 1 1 + + On TH(chip-tool), Verify that OnMode attribute value is an integer value + - Save the value as new_on_mode_dut and is equal to new_mode_th, below is the sample log provided for the raspi platform, Here OnMode attribute value is 1 + + [1690184107.425807][15339:15341] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0003 DataVersion: 3807724302 + [1690184107.425849][15339:15341] CHIP:TOO: OnMode: 1 + disabled: true - label: "Step 9: TH writes to the DUT the StartUpOnOff attribute with the value 1." PICS: OO.S.A4003 - cluster: "On/Off" - command: "writeAttribute" - attribute: "StartUpOnOff" - arguments: - value: 1 + verification: | + ./chip-tool onoff write start-up-on-off 1 1 1 - - label: "Step 10: Physically power cycle the device." + On TH(chip-tool) log, Verify DUT responds with a successful (value 0x00) status response and below is the sample log provided for the raspi platform: + + [1651101661959] [90832:7598169] CHIP: [DMG] WriteResponseMessage = + [1651101661959] [90832:7598169] CHIP: [DMG] { + [1651101661959] [90832:7598169] CHIP: [DMG] AttributeStatusIBs = + [1651101661959] [90832:7598169] CHIP: [DMG] [ + [1651101661959] [90832:7598169] CHIP: [DMG] AttributeStatusIB = + [1651101661959] [90832:7598169] CHIP: [DMG] { + [1651101661960] [90832:7598169] CHIP: [DMG] AttributePathIB = + [1651101661960] [90832:7598169] CHIP: [DMG] { + [1651101661960] [90832:7598169] CHIP: [DMG] Endpoint = 0x1, + [1651101661960] [90832:7598169] CHIP: [DMG] Cluster = 0x6, + [1651101661960] [90832:7598169] CHIP: [DMG] Attribute = 0x0000_4003, + [1651101661960] [90832:7598169] CHIP: [DMG] } + [1651101661960] [90832:7598169] CHIP: [DMG] + [1651101661960] [90832:7598169] CHIP: [DMG] StatusIB = + [1651101661960] [90832:7598169] CHIP: [DMG] { + [1651101661960] [90832:7598169] CHIP: [DMG] status = 0x00 (SUCCESS), + [1651101661960] [90832:7598169] CHIP: [DMG] }, + [1651101661960] [90832:7598169] CHIP: [DMG] + [1651101661960] [90832:7598169] CHIP: [DMG] }, + [1651101661960] [90832:7598169] CHIP: [DMG] + [1651101661960] [90832:7598169] CHIP: [DMG] ], + [1651101661960] [90832:7598169] CHIP: [DMG] + [1651101661960] [90832:7598169] CHIP: [DMG] InteractionModelRevision = 1 + [1651101661960] [90832:7598169] CHIP: [DMG] } + disabled: true + + - label: "Step 10: Physically power cycle the device" verification: | Physically power cycle the device. - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" - - - label: "Recommission after physically power cycle of the device." - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId + disabled: true - label: "Step 11: TH reads from the DUT the StartUpMode attribute." - PICS: RVCCLEANM.S.A0002 && PICS_USER_PROMPT - command: "readAttribute" - attribute: "StartUpMode" - response: - value: new_start_up_mode_th + PICS: RVCCLEANM.S.A0002 + verification: | + ./chip-tool rvcrunmode read start-up-mode 1 1 + + On TH(chip-tool), Verify that StartUpMode attribute value is an integer and is equal to new_start_up_mode_th, below is the sample log provided for the raspi platform, Here StartUpMode attribute value is 0 + + [1690546417.725863][3168:3170] CHIP:DMG: } + [1690546417.726042][3168:3170] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0054 Attribute 0x0000_0002 DataVersion: 3746592465 + [1690546417.726109][3168:3170] CHIP:TOO: StartUpMode: 0 + disabled: true - label: "Step 12: TH reads from the DUT the CurrentMode attribute." - PICS: RVCCLEANM.S.A0001 && PICS_USER_PROMPT - command: "readAttribute" - attribute: "CurrentMode" - response: - value: new_on_mode_dut + PICS: RVCCLEANM.S.A0001 + verification: | + ./chip-tool rvccleanmode read current-mode 1 1 + + On TH(chip-tool), Verify that CurrentMode attribute value is an integer value and is equal to new_on_mode_dut, below is the sample log provided for the raspi platform, Here CurrentMode attribute value is 1 + + [1690551030.852196][219235:219237] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0055 Attribute 0x0000_0001 DataVersion: 2491081179 + [1690551030.852224][219235:219237] CHIP:TOO: CurrentMode: 1 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml index 56187bddae7a31..4d4ee2d4c7b70b 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml @@ -1737,33 +1737,33 @@ tests: - label: "Step 12: TH writes value 1 for attribute ControlSequenceOfOperation. - If TSTAT.S.F00 is true & TSTAT.S.F01 is false" + If TSTAT.S.F01 is true & TSTAT.S.F00 is false" command: "writeAttribute" attribute: "ControlSequenceOfOperation" - PICS: TSTAT.S.F00 && !TSTAT.S.F01 + PICS: TSTAT.S.F01 && !TSTAT.S.F00 arguments: value: 1 - label: "Step 12: Read it back again to confirm the successful write" command: "readAttribute" attribute: "ControlSequenceOfOperation" - PICS: TSTAT.S.F00 && !TSTAT.S.F01 + PICS: TSTAT.S.F01 && !TSTAT.S.F00 response: value: 1 - label: "Step 12: TH writes value 3 for attribute ControlSequenceOfOperation. - If TSTAT.S.F01 is true & TSTAT.S.F00 is false" + If TSTAT.S.F00 is true & TSTAT.S.F01 is false" command: "writeAttribute" attribute: "ControlSequenceOfOperation" - PICS: TSTAT.S.F01 && !TSTAT.S.F00 + PICS: TSTAT.S.F00 && !TSTAT.S.F01 arguments: value: 3 - label: "Step 12: Read it back again to confirm the successful write" command: "readAttribute" attribute: "ControlSequenceOfOperation" - PICS: TSTAT.S.F01 && !TSTAT.S.F00 + PICS: TSTAT.S.F00 && !TSTAT.S.F01 response: value: 3 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 6c6d0618e7d06b..8e74261b10e923 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -96,7 +96,6 @@ class TestList : public Command { printf("Test_TC_DGETH_2_1\n"); printf("Test_TC_DGETH_2_2\n"); printf("Test_TC_FLW_1_1\n"); - printf("Test_TC_FLW_2_1\n"); printf("Test_TC_FLABEL_1_1\n"); printf("Test_TC_FAN_1_1\n"); printf("Test_TC_FAN_2_1\n"); @@ -198,8 +197,8 @@ class TestList : public Command { printf("Test_TC_REFALM_1_1\n"); printf("Test_TC_REFALM_2_1\n"); printf("Test_TC_RH_1_1\n"); - printf("Test_TC_RH_2_1\n"); printf("Test_TC_RVCCLEANM_1_1\n"); + printf("Test_TC_RVCCLEANM_3_3\n"); printf("Test_TC_RVCRUNM_1_1\n"); printf("Test_TC_RVCOPSTATE_1_1\n"); printf("Test_TC_SMOKECO_1_1\n"); @@ -46025,239 +46024,6 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { } }; -class Test_TC_FLW_2_1 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_FLW_2_1() - : TestCommandBridge("Test_TC_FLW_2_1") - , mTestIndex(0) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - - ~Test_TC_FLW_2_1() - { - } - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_FLW_2_1\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_FLW_2_1\n"); - SetCommandExitStatus(CHIP_NO_ERROR); - return; - } - - Wait(); - - // Ensure we increment mTestIndex before we start running the relevant - // command. That way if we lose the timeslice after we send the message - // but before our function call returns, we won't end up with an - // incorrect mTestIndex value observed when we get the response. - switch (mTestIndex++) { - case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Step 1: Wait for the commissioned device to be retrieved\n"); - err = TestStep1WaitForTheCommissionedDeviceToBeRetrieved_0(); - break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Step 2: Read the mandatory attribute: MinMeasuredValue\n"); - if (ShouldSkip("FLW.S.A0001")) { - NextTest(); - return; - } - err = TestStep2ReadTheMandatoryAttributeMinMeasuredValue_1(); - break; - case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: Read the mandatory attribute: MaxMeasuredValue\n"); - if (ShouldSkip("FLW.S.A0002")) { - NextTest(); - return; - } - err = TestStep3ReadTheMandatoryAttributeMaxMeasuredValue_2(); - break; - case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Step 4: Read the mandatory attribute: MeasuredValue\n"); - if (ShouldSkip("FLW.S.A0000")) { - NextTest(); - return; - } - err = TestStep4ReadTheMandatoryAttributeMeasuredValue_3(); - break; - case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Step 5: TH reads from the DUT the Tolerance attribute\n"); - if (ShouldSkip("FLW.S.A0003")) { - NextTest(); - return; - } - err = TestStep5ThReadsFromTheDutTheToleranceAttribute_4(); - break; - } - - if (CHIP_NO_ERROR != err) { - ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); - SetCommandExitStatus(err); - } - } - - void OnStatusUpdate(const chip::app::StatusIB & status) override - { - switch (mTestIndex - 1) { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - } - - // Go on to the next test. - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - - chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); } - -private: - std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 5; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - CHIP_ERROR TestStep1WaitForTheCommissionedDeviceToBeRetrieved_0() - { - - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee("alpha", value); - } - NSNumber * _Nullable MinMeasuredVariable; - - CHIP_ERROR TestStep2ReadTheMandatoryAttributeMinMeasuredValue_1() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeMinMeasuredValueWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 2: Read the mandatory attribute: MinMeasuredValue Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - if (value != nil) { - - VerifyOrReturn(CheckConstraintType("minMeasuredValue", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("minMeasuredValue", [value unsignedShortValue], 0U)); - VerifyOrReturn(CheckConstraintMaxValue("minMeasuredValue", [value unsignedShortValue], 65533U)); - } - { - MinMeasuredVariable = value; - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - NSNumber * _Nullable MaxMeasuredVariable; - - CHIP_ERROR TestStep3ReadTheMandatoryAttributeMaxMeasuredValue_2() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeMaxMeasuredValueWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 3: Read the mandatory attribute: MaxMeasuredValue Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - if (value != nil) { - - VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("maxMeasuredValue", [value unsignedShortValue], MinMeasuredVariable + 1)); - VerifyOrReturn(CheckConstraintMaxValue("maxMeasuredValue", [value unsignedShortValue], 65534U)); - } - { - MaxMeasuredVariable = value; - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestStep4ReadTheMandatoryAttributeMeasuredValue_3() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeMeasuredValueWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 4: Read the mandatory attribute: MeasuredValue Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - if (value != nil) { - - VerifyOrReturn(CheckConstraintType("measuredValue", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("measuredValue", [value unsignedShortValue], MinMeasuredVariable)); - VerifyOrReturn(CheckConstraintMaxValue("measuredValue", [value unsignedShortValue], MaxMeasuredVariable)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestStep5ThReadsFromTheDutTheToleranceAttribute_4() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeToleranceWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 5: TH reads from the DUT the Tolerance attribute Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("tolerance", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("tolerance", [value unsignedShortValue], 0U)); - VerifyOrReturn(CheckConstraintMaxValue("tolerance", [value unsignedShortValue], 2048U)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } -}; - class Test_TC_FLABEL_1_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced @@ -88693,42 +88459,6 @@ class Test_TC_REFALM_2_1 : public TestCommandBridge { // but before our function call returns, we won't end up with an // incorrect mTestIndex value observed when we get the response. switch (mTestIndex++) { - case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Step 1: Wait for the commissioned device to be retrieved\n"); - err = TestStep1WaitForTheCommissionedDeviceToBeRetrieved_0(); - break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Step 2: Ensure that the door alarm is not locally suppressed and the door is closed\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestStep2EnsureThatTheDoorAlarmIsNotLocallySuppressedAndTheDoorIsClosed_1(); - break; - case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: TH reads from the DUT the Mask attribute\n"); - if (ShouldSkip("REFALM.S.A0000")) { - NextTest(); - return; - } - err = TestStep3ThReadsFromTheDutTheMaskAttribute_2(); - break; - case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Step 4: TH reads from the DUT the State attribute\n"); - if (ShouldSkip("REFALM.S.A0002")) { - NextTest(); - return; - } - err = TestStep4ThReadsFromTheDutTheStateAttribute_3(); - break; - case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Step 5: TH reads from the DUT the Supported attribute\n"); - if (ShouldSkip("REFALM.S.A0003")) { - NextTest(); - return; - } - err = TestStep5ThReadsFromTheDutTheSupportedAttribute_4(); - break; } if (CHIP_NO_ERROR != err) { @@ -88740,21 +88470,6 @@ class Test_TC_REFALM_2_1 : public TestCommandBridge { void OnStatusUpdate(const chip::app::StatusIB & status) override { switch (mTestIndex - 1) { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; } // Go on to the next test. @@ -88765,87 +88480,12 @@ class Test_TC_REFALM_2_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 5; + const uint16_t mTestCount = 0; chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; chip::Optional mTimeout; - - CHIP_ERROR TestStep1WaitForTheCommissionedDeviceToBeRetrieved_0() - { - - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee("alpha", value); - } - - CHIP_ERROR TestStep2EnsureThatTheDoorAlarmIsNotLocallySuppressedAndTheDoorIsClosed_1() - { - - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Enter 'y' after successgarbage: not in length on purpose", 23); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestStep3ThReadsFromTheDutTheMaskAttribute_2() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeMaskWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 3: TH reads from the DUT the Mask attribute Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("mask", "bitmap32", "bitmap32")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestStep4ThReadsFromTheDutTheStateAttribute_3() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 4: TH reads from the DUT the State attribute Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("state", "bitmap32", "bitmap32")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestStep5ThReadsFromTheDutTheSupportedAttribute_4() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeSupportedWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 5: TH reads from the DUT the Supported attribute Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("supported", "bitmap32", "bitmap32")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } }; class Test_TC_RH_1_1 : public TestCommandBridge { @@ -89178,239 +88818,6 @@ class Test_TC_RH_1_1 : public TestCommandBridge { } }; -class Test_TC_RH_2_1 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_RH_2_1() - : TestCommandBridge("Test_TC_RH_2_1") - , mTestIndex(0) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - - ~Test_TC_RH_2_1() - { - } - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_RH_2_1\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_RH_2_1\n"); - SetCommandExitStatus(CHIP_NO_ERROR); - return; - } - - Wait(); - - // Ensure we increment mTestIndex before we start running the relevant - // command. That way if we lose the timeslice after we send the message - // but before our function call returns, we won't end up with an - // incorrect mTestIndex value observed when we get the response. - switch (mTestIndex++) { - case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Step 1: Wait for the commissioned device to be retrieved\n"); - err = TestStep1WaitForTheCommissionedDeviceToBeRetrieved_0(); - break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Step 2: TH reads the MinMeasuredValue attribute from the DUT\n"); - if (ShouldSkip("RH.S.A0001")) { - NextTest(); - return; - } - err = TestStep2ThReadsTheMinMeasuredValueAttributeFromTheDut_1(); - break; - case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: TH reads the MaxMeasuredValue attribute from the DUT\n"); - if (ShouldSkip("RH.S.A0002")) { - NextTest(); - return; - } - err = TestStep3ThReadsTheMaxMeasuredValueAttributeFromTheDut_2(); - break; - case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Step 4: TH reads the MeasuredValue attribute from the DUT\n"); - if (ShouldSkip("RH.S.A0000")) { - NextTest(); - return; - } - err = TestStep4ThReadsTheMeasuredValueAttributeFromTheDut_3(); - break; - case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Step 5: TH reads the Tolerance attribute from the DUT\n"); - if (ShouldSkip("RH.S.A0003")) { - NextTest(); - return; - } - err = TestStep5ThReadsTheToleranceAttributeFromTheDut_4(); - break; - } - - if (CHIP_NO_ERROR != err) { - ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); - SetCommandExitStatus(err); - } - } - - void OnStatusUpdate(const chip::app::StatusIB & status) override - { - switch (mTestIndex - 1) { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - } - - // Go on to the next test. - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - - chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); } - -private: - std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 5; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - CHIP_ERROR TestStep1WaitForTheCommissionedDeviceToBeRetrieved_0() - { - - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee("alpha", value); - } - NSNumber * _Nullable CurrentMinMeasured; - - CHIP_ERROR TestStep2ThReadsTheMinMeasuredValueAttributeFromTheDut_1() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeMinMeasuredValueWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 2: TH reads the MinMeasuredValue attribute from the DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - if (value != nil) { - - VerifyOrReturn(CheckConstraintType("minMeasuredValue", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("minMeasuredValue", [value unsignedShortValue], 0U)); - VerifyOrReturn(CheckConstraintMaxValue("minMeasuredValue", [value unsignedShortValue], 9999U)); - } - { - CurrentMinMeasured = value; - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - NSNumber * _Nullable CurrentMaxMeasured; - - CHIP_ERROR TestStep3ThReadsTheMaxMeasuredValueAttributeFromTheDut_2() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeMaxMeasuredValueWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 3: TH reads the MaxMeasuredValue attribute from the DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - if (value != nil) { - - VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("maxMeasuredValue", [value unsignedShortValue], CurrentMinMeasured + 1)); - VerifyOrReturn(CheckConstraintMaxValue("maxMeasuredValue", [value unsignedShortValue], 10000U)); - } - { - CurrentMaxMeasured = value; - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestStep4ThReadsTheMeasuredValueAttributeFromTheDut_3() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeMeasuredValueWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 4: TH reads the MeasuredValue attribute from the DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - if (value != nil) { - - VerifyOrReturn(CheckConstraintType("measuredValue", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("measuredValue", [value unsignedShortValue], CurrentMinMeasured)); - VerifyOrReturn(CheckConstraintMaxValue("measuredValue", [value unsignedShortValue], CurrentMaxMeasured)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestStep5ThReadsTheToleranceAttributeFromTheDut_4() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeToleranceWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Step 5: TH reads the Tolerance attribute from the DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("tolerance", "int16u", "int16u")); - VerifyOrReturn(CheckConstraintMinValue("tolerance", [value unsignedShortValue], 0U)); - VerifyOrReturn(CheckConstraintMaxValue("tolerance", [value unsignedShortValue], 2048U)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } -}; - class Test_TC_RVCCLEANM_1_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced @@ -89847,6 +89254,75 @@ class Test_TC_RVCCLEANM_1_1 : public TestCommandBridge { } }; +class Test_TC_RVCCLEANM_3_3 : public TestCommandBridge { +public: + // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced + Test_TC_RVCCLEANM_3_3() + : TestCommandBridge("Test_TC_RVCCLEANM_3_3") + , mTestIndex(0) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) + + ~Test_TC_RVCCLEANM_3_3() + { + } + + /////////// TestCommand Interface ///////// + void NextTest() override + { + CHIP_ERROR err = CHIP_NO_ERROR; + + if (0 == mTestIndex) { + ChipLogProgress(chipTool, " **** Test Start: Test_TC_RVCCLEANM_3_3\n"); + } + + if (mTestCount == mTestIndex) { + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_RVCCLEANM_3_3\n"); + SetCommandExitStatus(CHIP_NO_ERROR); + return; + } + + Wait(); + + // Ensure we increment mTestIndex before we start running the relevant + // command. That way if we lose the timeslice after we send the message + // but before our function call returns, we won't end up with an + // incorrect mTestIndex value observed when we get the response. + switch (mTestIndex++) { + } + + if (CHIP_NO_ERROR != err) { + ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); + SetCommandExitStatus(err); + } + } + + void OnStatusUpdate(const chip::app::StatusIB & status) override + { + switch (mTestIndex - 1) { + } + + // Go on to the next test. + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + + chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); } + +private: + std::atomic_uint16_t mTestIndex; + const uint16_t mTestCount = 0; + + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; +}; + class Test_TC_RVCRUNM_1_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced @@ -174032,7 +173508,6 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), - make_unique(), make_unique(), make_unique(), make_unique(), @@ -174134,8 +173609,8 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), - make_unique(), make_unique(), + make_unique(), make_unique(), make_unique(), make_unique(), From 2050299698a19c205b209bf22d3770685a527e55 Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Fri, 29 Sep 2023 16:41:34 +0530 Subject: [PATCH 12/13] Modify ciTest.json file --- src/app/tests/suites/ciTests.json | 3 +- src/app/tests/suites/manualTests.json | 8 +- .../zap-generated/test/Commands.h | 142 ------------------ 3 files changed, 7 insertions(+), 146 deletions(-) diff --git a/src/app/tests/suites/ciTests.json b/src/app/tests/suites/ciTests.json index 10e57244751b84..1f2d48eae8f5d5 100644 --- a/src/app/tests/suites/ciTests.json +++ b/src/app/tests/suites/ciTests.json @@ -179,11 +179,10 @@ "Test_TC_PCC_2_4" ], "PowerSourceConfiguration": ["Test_TC_PSCFG_1_1", "Test_TC_PSCFG_2_1"], - "RefrigeratorAlarm": ["Test_TC_REFALM_1_1", "Test_TC_REFALM_2_1"], + "RefrigeratorAlarm": ["Test_TC_REFALM_1_1"], "RelativeHumidityMeasurement": ["Test_TC_RH_1_1", "Test_TC_RH_2_1"], "RoboticVacuumCleaner": [ "Test_TC_RVCCLEANM_1_1", - "Test_TC_RVCCLEANM_3_3", "Test_TC_RVCRUNM_1_1", "Test_TC_RVCOPSTATE_1_1" ], diff --git a/src/app/tests/suites/manualTests.json b/src/app/tests/suites/manualTests.json index bba856faac0fb5..e5c4da8fc77b85 100644 --- a/src/app/tests/suites/manualTests.json +++ b/src/app/tests/suites/manualTests.json @@ -267,8 +267,12 @@ "OperationalState": ["Test_TC_OPSTATE_2_2"], "RelativeHumidityMeasurement": ["Test_TC_RH_2_2"], "SmokeCOAlarm": [], - "RefrigeratorAlarm": ["Test_TC_REFALM_2_2", "Test_TC_REFALM_2_3"], - "RVCCleanMode": [], + "RefrigeratorAlarm": [ + "Test_TC_REFALM_2_1", + "Test_TC_REFALM_2_2", + "Test_TC_REFALM_2_3" + ], + "RVCCleanMode": ["Test_TC_RVCCLEANM_3_3"], "RVCOperationalState": ["Test_TC_RVCOPSTATE_2_2"], "RVCRunMode": ["Test_TC_RVCRUNM_3_3"], "TemperatureControlledCabinetMode": [ 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 8e74261b10e923..7a5ea81c45d24c 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -195,10 +195,8 @@ class TestList : public Command { printf("Test_TC_PCC_2_3\n"); printf("Test_TC_PCC_2_4\n"); printf("Test_TC_REFALM_1_1\n"); - printf("Test_TC_REFALM_2_1\n"); printf("Test_TC_RH_1_1\n"); printf("Test_TC_RVCCLEANM_1_1\n"); - printf("Test_TC_RVCCLEANM_3_3\n"); printf("Test_TC_RVCRUNM_1_1\n"); printf("Test_TC_RVCOPSTATE_1_1\n"); printf("Test_TC_SMOKECO_1_1\n"); @@ -88419,75 +88417,6 @@ class Test_TC_REFALM_1_1 : public TestCommandBridge { } }; -class Test_TC_REFALM_2_1 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_REFALM_2_1() - : TestCommandBridge("Test_TC_REFALM_2_1") - , mTestIndex(0) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - - ~Test_TC_REFALM_2_1() - { - } - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_REFALM_2_1\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_REFALM_2_1\n"); - SetCommandExitStatus(CHIP_NO_ERROR); - return; - } - - Wait(); - - // Ensure we increment mTestIndex before we start running the relevant - // command. That way if we lose the timeslice after we send the message - // but before our function call returns, we won't end up with an - // incorrect mTestIndex value observed when we get the response. - switch (mTestIndex++) { - } - - if (CHIP_NO_ERROR != err) { - ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); - SetCommandExitStatus(err); - } - } - - void OnStatusUpdate(const chip::app::StatusIB & status) override - { - switch (mTestIndex - 1) { - } - - // Go on to the next test. - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - - chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); } - -private: - std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; -}; - class Test_TC_RH_1_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced @@ -89254,75 +89183,6 @@ class Test_TC_RVCCLEANM_1_1 : public TestCommandBridge { } }; -class Test_TC_RVCCLEANM_3_3 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_RVCCLEANM_3_3() - : TestCommandBridge("Test_TC_RVCCLEANM_3_3") - , mTestIndex(0) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - - ~Test_TC_RVCCLEANM_3_3() - { - } - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_RVCCLEANM_3_3\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_RVCCLEANM_3_3\n"); - SetCommandExitStatus(CHIP_NO_ERROR); - return; - } - - Wait(); - - // Ensure we increment mTestIndex before we start running the relevant - // command. That way if we lose the timeslice after we send the message - // but before our function call returns, we won't end up with an - // incorrect mTestIndex value observed when we get the response. - switch (mTestIndex++) { - } - - if (CHIP_NO_ERROR != err) { - ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); - SetCommandExitStatus(err); - } - } - - void OnStatusUpdate(const chip::app::StatusIB & status) override - { - switch (mTestIndex - 1) { - } - - // Go on to the next test. - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - - chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); } - -private: - std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; -}; - class Test_TC_RVCRUNM_1_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced @@ -173607,10 +173467,8 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), - make_unique(), make_unique(), make_unique(), - make_unique(), make_unique(), make_unique(), make_unique(), From 8608cfdfe06a0179c580ea95bc59571d6ede1ccc Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Fri, 29 Sep 2023 20:49:13 +0530 Subject: [PATCH 13/13] Fix type --- examples/darwin-framework-tool/templates/tests/ciTests.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/darwin-framework-tool/templates/tests/ciTests.json b/examples/darwin-framework-tool/templates/tests/ciTests.json index efcf63386a1002..d3d9dcb2f04581 100644 --- a/examples/darwin-framework-tool/templates/tests/ciTests.json +++ b/examples/darwin-framework-tool/templates/tests/ciTests.json @@ -54,7 +54,7 @@ "Disabled because darwin-framework-tool does not support EqualityCommands pseudo-cluster", "Test_TC_TCCM_3_1", "Test_TC_TCTL_2_1", - "Disabled because darwin-framework-tool does not support constraints arithmetic opertaions", + "Disabled because darwin-framework-tool does not support constraints arithmetic operations", "Test_TC_FLW_2_1", "Test_TC_RH_2_1" ]