diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_1_1.yaml new file mode 100644 index 00000000000000..b9a1d573d4d064 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGETH_1_1.yaml @@ -0,0 +1,161 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 3.1.1. [TC-DGETH-1.1] Global attributes with server as DUT + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Commission DUT to TH" + verification: | + ./chip-tool pairing ble-wifi NODEID SSID PASSWD 20202021 3840 (commissioner side) + disabled: true + + - label: "TH reads the ClusterRevision from DUT" + verification: | + ./chip-tool ethernetnetworkdiagnostics read cluster-revision 1 0 + [1651786680.895436][240893:240898] CHIP:DMG: ReportDataMessage = + [1651786680.895449][240893:240898] CHIP:DMG: { + [1651786680.895459][240893:240898] CHIP:DMG: AttributeReportIBs = + [1651786680.895476][240893:240898] CHIP:DMG: [ + [1651786680.895487][240893:240898] CHIP:DMG: AttributeReportIB = + [1651786680.895505][240893:240898] CHIP:DMG: { + [1651786680.895515][240893:240898] CHIP:DMG: AttributeDataIB = + [1651786680.895527][240893:240898] CHIP:DMG: { + [1651786680.895538][240893:240898] CHIP:DMG: DataVersion = 0xb89e4c30, + [1651786680.895548][240893:240898] CHIP:DMG: AttributePathIB = + [1651786680.895559][240893:240898] CHIP:DMG: { + [1651786680.895572][240893:240898] CHIP:DMG: Endpoint = 0x0, + [1651786680.895585][240893:240898] CHIP:DMG: Cluster = 0x36, + [1651786680.895603][240893:240898] CHIP:DMG: Attribute = 0x0000_FFFD, + [1651786680.895615][240893:240898] CHIP:DMG: } + [1651786680.895630][240893:240898] CHIP:DMG: + [1651786680.895644][240893:240898] CHIP:DMG: Data = 1, + [1651786680.895657][240893:240898] CHIP:DMG: }, + [1651786680.895672][240893:240898] CHIP:DMG: + [1651786680.895684][240893:240898] CHIP:DMG: }, + [1651786680.895701][240893:240898] CHIP:DMG: + [1651786680.895711][240893:240898] CHIP:DMG: ], + [1651786680.895727][240893:240898] CHIP:DMG: + [1651786680.895739][240893:240898] CHIP:DMG: SuppressResponse = true, + [1651786680.895751][240893:240898] CHIP:DMG: InteractionModelRevision = 1 + [1651786680.895762][240893:240898] CHIP:DMG: } + disabled: true + + - label: "TH reads the FeatureMap from DUT" + verification: | + ./chip-tool ethernetnetworkdiagnostics read feature-map 1 0 + [1651786827.581901][240914:240920] CHIP:DMG: ReportDataMessage = + [1651786827.581920][240914:240920] CHIP:DMG: { + [1651786827.581933][240914:240920] CHIP:DMG: AttributeReportIBs = + [1651786827.581959][240914:240920] CHIP:DMG: [ + [1651786827.581977][240914:240920] CHIP:DMG: AttributeReportIB = + [1651786827.582002][240914:240920] CHIP:DMG: { + [1651786827.582020][240914:240920] CHIP:DMG: AttributeDataIB = + [1651786827.582040][240914:240920] CHIP:DMG: { + [1651786827.582060][240914:240920] CHIP:DMG: DataVersion = 0xa7929b20, + [1651786827.582078][240914:240920] CHIP:DMG: AttributePathIB = + [1651786827.582099][240914:240920] CHIP:DMG: { + [1651786827.582121][240914:240920] CHIP:DMG: Endpoint = 0x0, + [1651786827.582144][240914:240920] CHIP:DMG: Cluster = 0x37, + [1651786827.582168][240914:240920] CHIP:DMG: Attribute = 0x0000_FFFC, + [1651786827.582189][240914:240920] CHIP:DMG: } + [1651786827.582213][240914:240920] CHIP:DMG: + [1651786827.582234][240914:240920] CHIP:DMG: Data = 3, + [1651786827.582255][240914:240920] CHIP:DMG: }, + [1651786827.582278][240914:240920] CHIP:DMG: + [1651786827.582294][240914:240920] CHIP:DMG: }, + [1651786827.582319][240914:240920] CHIP:DMG: + [1651786827.582334][240914:240920] CHIP:DMG: ], + [1651786827.582358][240914:240920] CHIP:DMG: + [1651786827.582376][240914:240920] CHIP:DMG: SuppressResponse = true, + [1651786827.582393][240914:240920] CHIP:DMG: InteractionModelRevision = 1 + [1651786827.582407][240914:240920] CHIP:DMG: } + [1651786827.582555][240914:240920] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_FFFC DataVersion: 2811403040 + [1651786827.582608][240914:240920] CHIP:TOO: FeatureMap: 3 + disabled: true + + - label: "TH reads AttribubteList from DUT" + verification: | + ./chip-tool ethernetnetworkdiagnostics read attribute-list 1 0 + [1651786900.043572][240929:240934] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_FFFB DataVersion: 2811403040 + [1651786900.043655][240929:240934] CHIP:TOO: AttributeList: 14 entries + [1651786900.043689][240929:240934] CHIP:TOO: [1]: 0 + [1651786900.043710][240929:240934] CHIP:TOO: [2]: 1 + [1651786900.043730][240929:240934] CHIP:TOO: [3]: 2 + [1651786900.043744][240929:240934] CHIP:TOO: [4]: 3 + [1651786900.043757][240929:240934] CHIP:TOO: [5]: 4 + [1651786900.043775][240929:240934] CHIP:TOO: [6]: 5 + [1651786900.043796][240929:240934] CHIP:TOO: [7]: 6 + [1651786900.043817][240929:240934] CHIP:TOO: [8]: 7 + [1651786900.043838][240929:240934] CHIP:TOO: [9]: 8 + [1651786900.043862][240929:240934] CHIP:TOO: [10]: 65528 + [1651786900.043884][240929:240934] CHIP:TOO: [11]: 65529 + [1651786900.043907][240929:240934] CHIP:TOO: [12]: 65531 + [1651786900.043930][240929:240934] CHIP:TOO: [13]: 65532 + [1651786900.043952][240929:240934] CHIP:TOO: [14]: 65533 + disabled: true + + - label: "TH reads AcceptedCommandList from DUT" + verification: | + ./chip-tool ethernetnetworkdiagnostics read accepted-command-list 1 0 + + [1651786971.201258][240944:240949] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_FFF9 DataVersion: 2811403040 + [1651786971.201322][240944:240949] CHIP:TOO: AcceptedCommandList: 1 entries + [1651786971.201347][240944:240949] CHIP:TOO: [1]: 0 + disabled: true + + - label: "TH reads GeneratedCommandList from DUT" + verification: | + ./chip-tool ethernetnetworkdiagnostics read generated-command-list 1 0 + [1651787190.402854][240971:240976] CHIP:DMG: ReportDataMessage = + [1651787190.402875][240971:240976] CHIP:DMG: { + [1651787190.402891][240971:240976] CHIP:DMG: AttributeReportIBs = + [1651787190.402917][240971:240976] CHIP:DMG: [ + [1651787190.402933][240971:240976] CHIP:DMG: AttributeReportIB = + [1651787190.402956][240971:240976] CHIP:DMG: { + [1651787190.402970][240971:240976] CHIP:DMG: AttributeDataIB = + [1651787190.402987][240971:240976] CHIP:DMG: { + [1651787190.403007][240971:240976] CHIP:DMG: DataVersion = 0xa7929b20, + [1651787190.403025][240971:240976] CHIP:DMG: AttributePathIB = + [1651787190.403045][240971:240976] CHIP:DMG: { + [1651787190.403065][240971:240976] CHIP:DMG: Endpoint = 0x0, + [1651787190.403089][240971:240976] CHIP:DMG: Cluster = 0x37, + [1651787190.403111][240971:240976] CHIP:DMG: Attribute = 0x0000_FFF8, + [1651787190.403136][240971:240976] CHIP:DMG: } + [1651787190.403158][240971:240976] CHIP:DMG: + [1651787190.403177][240971:240976] CHIP:DMG: Data = [ + [1651787190.403197][240971:240976] CHIP:DMG: + [1651787190.403220][240971:240976] CHIP:DMG: ], + [1651787190.403240][240971:240976] CHIP:DMG: }, + [1651787190.403264][240971:240976] CHIP:DMG: + [1651787190.403282][240971:240976] CHIP:DMG: }, + [1651787190.403326][240971:240976] CHIP:DMG: + [1651787190.403342][240971:240976] CHIP:DMG: ], + [1651787190.403366][240971:240976] CHIP:DMG: + [1651787190.403382][240971:240976] CHIP:DMG: SuppressResponse = true, + [1651787190.403399][240971:240976] CHIP:DMG: InteractionModelRevision = 1 + [1651787190.403420][240971:240976] CHIP:DMG: } + [1651787190.403639][240971:240976] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_FFF8 DataVersion: 2811403040 + [1651787190.403729][240971:240976] CHIP:TOO: GeneratedCommandList: 0 entries + disabled: true + + - label: "TH reads EventList from DUT" + verification: | + Out of scope v1.0 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ETHDIAG_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_2_1.yaml similarity index 99% rename from src/app/tests/suites/certification/Test_TC_ETHDIAG_1_1.yaml rename to src/app/tests/suites/certification/Test_TC_DGETH_2_1.yaml index 5d6aeb1806afa5..25739999b1f84b 100644 --- a/src/app/tests/suites/certification/Test_TC_ETHDIAG_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGETH_2_1.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 48.1.1. [TC-ETHDIAG-1.1] Attributes with server as DUT +name: 45.2.1. [TC-DGETH-2.1] Attributes with server as DUT config: nodeId: 0x12344321 diff --git a/src/app/tests/suites/certification/Test_TC_ETHDIAG_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_2_2.yaml similarity index 95% rename from src/app/tests/suites/certification/Test_TC_ETHDIAG_2_1.yaml rename to src/app/tests/suites/certification/Test_TC_DGETH_2_2.yaml index 1e6a1b284d27e5..0c9dcc20d59c28 100644 --- a/src/app/tests/suites/certification/Test_TC_ETHDIAG_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGETH_2_2.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 48.1.3. [TC-ETHDIAG-2.1] Command received functionality with server as DUT +name: 45.2.2. [TC-DGETH-2.2] Command received functionality with server as DUT config: nodeId: 0x12344321 diff --git a/src/app/tests/suites/certification/Test_TC_ETHDIAG_1_2.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_3_1.yaml similarity index 99% rename from src/app/tests/suites/certification/Test_TC_ETHDIAG_1_2.yaml rename to src/app/tests/suites/certification/Test_TC_DGETH_3_1.yaml index 0decc448e3eb2d..03c2b7056eee43 100644 --- a/src/app/tests/suites/certification/Test_TC_ETHDIAG_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGETH_3_1.yaml @@ -13,7 +13,7 @@ # 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: 45.1.2. [TC-ETHDIAG-1.2] Attributes with client as DUT +name: 45.3.1. [TC-DGETH-3.1] Attributes with client as DUT config: nodeId: 0x12344321 diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml new file mode 100644 index 00000000000000..da71687fe184df --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml @@ -0,0 +1,65 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 3.3.2. [TC-DGETH-3.2] Command generated functionality with client as DUT + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Commission DUT to TH" + verification: | + + disabled: true + + - label: "TH sends ResetCounts to DUT" + verification: | + Verify Command data recieved from running the below command is a success + + ./chip-tool ethernetnetworkdiagnostics reset-counts 1 1 + CHIP:DMG: InvokeResponseMessage = + [1649664146.639743][8173:8178] CHIP:DMG: { + [1649664146.639789][8173:8178] CHIP:DMG: suppressResponse = false, + [1649664146.639836][8173:8178] CHIP:DMG: InvokeResponseIBs = + [1649664146.639895][8173:8178] CHIP:DMG: [ + [1649664146.639941][8173:8178] CHIP:DMG: InvokeResponseIB = + [1649664146.640006][8173:8178] CHIP:DMG: { + [1649664146.640059][8173:8178] CHIP:DMG: CommandStatusIB = + [1649664146.640119][8173:8178] CHIP:DMG: { + [1649664146.640175][8173:8178] CHIP:DMG: CommandPathIB = + [1649664146.640238][8173:8178] CHIP:DMG: { + [1649664146.640302][8173:8178] CHIP:DMG: EndpointId = 0x0, + [1649664146.640373][8173:8178] CHIP:DMG: ClusterId = 0x37, + [1649664146.640438][8173:8178] CHIP:DMG: CommandId = 0x0, + [1649664146.640500][8173:8178] CHIP:DMG: }, + [1649664146.640574][8173:8178] CHIP:DMG: + [1649664146.640632][8173:8178] CHIP:DMG: StatusIB = + [1649664146.640693][8173:8178] CHIP:DMG: { + [1649664146.640762][8173:8178] CHIP:DMG: status = 0x00 (SUCCESS), + [1649664146.640824][8173:8178] CHIP:DMG: }, + [1649664146.640886][8173:8178] CHIP:DMG: + [1649664146.640943][8173:8178] CHIP:DMG: }, + [1649664146.641007][8173:8178] CHIP:DMG: + [1649664146.641058][8173:8178] CHIP:DMG: }, + [1649664146.641126][8173:8178] CHIP:DMG: + [1649664146.641174][8173:8178] CHIP:DMG: ], + [1649664146.641230][8173:8178] CHIP:DMG: + [1649664146.641275][8173:8178] CHIP:DMG: InteractionModelRevision = 1 + [1649664146.641318][8173:8178] CHIP:DMG: }, + [1649664146.641424][8173:8178] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0037 Command=0x0000_0000 Status=0x0 + [1649664146.641499][8173:8178] CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_1_1.yaml new file mode 100644 index 00000000000000..bcdb38a1aa3f2e --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_1_1.yaml @@ -0,0 +1,93 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 3.1.1. [TC-DGWIFI-1.1] Global attributes with server as DUT + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Commission DUT to TH" + verification: | + ./chip-tool pairing ble-wifi NODEID SSID PASSWD 20202021 3840 (commissioner side) + disabled: true + + - label: "TH reads the ClusterRevision from DUT" + verification: | + ./chip-tool wifinetworkdiagnostics read cluster-revision 1 0 + + + [1651834623.658618][3910:3916] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_FFFD DataVersion: 2858283115 + [1651834623.658776][3910:3916] CHIP:TOO: ClusterRevision: 1 + disabled: true + + - label: "TH reads the FeatureMap from DUT" + verification: | + ./chip-tool wifinetworkdiagnostics read feature-map 1 0 + + + [1651834671.432383][3919:3924] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_FFFC DataVersion: 2858283115 + [1651834671.432466][3919:3924] CHIP:TOO: FeatureMap: 3 + disabled: true + + - label: "TH reads AttribubteList from DUT" + verification: | + ./chip-tool wifinetworkdiagnostics read attribute-list 1 0 + + [1651834734.844051][3928:3933] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_FFFB DataVersion: 2858283115 + [1651834734.844159][3928:3933] CHIP:TOO: AttributeList: 18 entries + [1651834734.844193][3928:3933] CHIP:TOO: [1]: 0 + [1651834734.844218][3928:3933] CHIP:TOO: [2]: 1 + [1651834734.844240][3928:3933] CHIP:TOO: [3]: 2 + [1651834734.844264][3928:3933] CHIP:TOO: [4]: 3 + [1651834734.844287][3928:3933] CHIP:TOO: [5]: 4 + [1651834734.844311][3928:3933] CHIP:TOO: [6]: 5 + [1651834734.844335][3928:3933] CHIP:TOO: [7]: 6 + [1651834734.844358][3928:3933] CHIP:TOO: [8]: 7 + [1651834734.844382][3928:3933] CHIP:TOO: [9]: 8 + [1651834734.844403][3928:3933] CHIP:TOO: [10]: 9 + [1651834734.844427][3928:3933] CHIP:TOO: [11]: 10 + [1651834734.844451][3928:3933] CHIP:TOO: [12]: 11 + [1651834734.844475][3928:3933] CHIP:TOO: [13]: 12 + [1651834734.844499][3928:3933] CHIP:TOO: [14]: 65528 + [1651834734.844523][3928:3933] CHIP:TOO: [15]: 65529 + [1651834734.844548][3928:3933] CHIP:TOO: [16]: 65531 + [1651834734.844571][3928:3933] CHIP:TOO: [17]: 65532 + [1651834734.844596][3928:3933] CHIP:TOO: [18]: 65533 + disabled: true + + - label: "TH reads AcceptedCommandList from DUT" + verification: | + ./chip-tool wifinetworkdiagnostics read accepted-command-list 1 0 + + [1651788161.332422][241228:241233] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_FFF9 DataVersion: 3097381936 + [1651788161.332475][241228:241233] CHIP:TOO: AcceptedCommandList: 1 entries + [1651788161.332500][241228:241233] CHIP:TOO: [1]: 0 + disabled: true + + - label: "TH reads GeneratedCommandList from DUT" + verification: | + ./chip-tool wifinetworkdiagnostics read generated-command-list 1 0 + + [1651788208.608429][241239:241244] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_FFF8 DataVersion: 3097381936 + [1651788208.608490][241239:241244] CHIP:TOO: GeneratedCommandList: 0 entries + disabled: true + + - label: "TH reads EventList from DUT" + verification: | + (Out of scope for v1.0) + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml similarity index 98% rename from src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_1.yaml rename to src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml index 874b641c0423a4..99009cd96db468 100644 --- a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 54.1.1. [TC-WIFIDIAG-1.1] Attributes with server as DUT +name: 51.2.1. [TC-DGWIFI-2.1] Attributes with server as DUT config: nodeId: 0x12344321 diff --git a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_2.yaml similarity index 95% rename from src/app/tests/suites/certification/Test_TC_WIFIDIAG_2_1.yaml rename to src/app/tests/suites/certification/Test_TC_DGWIFI_2_2.yaml index a6829aaed7cbe2..5b22bf5d467348 100644 --- a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_2.yaml @@ -13,7 +13,7 @@ # 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: 51.2.2. [TC-WIFIDIAG-2.1] Event functionality with server as DUT +name: 51.2.2. [TC-DGWIFI-2.2] Event functionality with server as DUT config: nodeId: 0x12344321 diff --git a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_3.yaml similarity index 97% rename from src/app/tests/suites/certification/Test_TC_WIFIDIAG_3_1.yaml rename to src/app/tests/suites/certification/Test_TC_DGWIFI_2_3.yaml index 1920e7f7724a47..6cf1873005ab72 100644 --- a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_3.yaml @@ -12,8 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: - 54.2.3. [TC-WIFIDIAG-3.1] Command received functionality with server as DUT +name: 51.2.3. [TC-DGWIFI-2.3] Command received functionality with server as DUT config: nodeId: 0x12344321 diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml new file mode 100644 index 00000000000000..046ad728cc69e4 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml @@ -0,0 +1,147 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 3.3.1. [TC-DGWIFI-3.1] Attributes with client as DUT + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Commission TH to DUT" + verification: | + + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute value is non-zero and the value data type matches + + ./chip-tool wifinetworkdiagnostics read bssid 1 0 + [1650451782.025188][9063:9068] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0000 DataVersion: 1028539580 + [1650451782.025262][9063:9068] CHIP:TOO: bssid: 210200000000 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute value is non-zero and the value data type matches + + ./chip-tool wifinetworkdiagnostics read security-type 1 0 + [1650451927.587236][9086:9091] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0001 DataVersion: 1028539580 + [1650451927.587329][9086:9091] CHIP:TOO: SecurityType: 0 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + ./chip-tool wifinetworkdiagnostics read wi-fi-version 1 0 + + [1650451948.677197][9092:9097] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0002 DataVersion: 1028539580 + [1650451948.677299][9092:9097] CHIP:TOO: WiFiVersion: 3 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + ./chip-tool wifinetworkdiagnostics read channel-number 1 0 + + [1650451989.021486][9112:9117] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0003 DataVersion: 1028539580 + [1650451989.021547][9112:9117] CHIP:TOO: ChannelNumber: null + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. + + ./chip-tool wifinetworkdiagnostics read rssi 1 0 + [1650452156.130334][9132:9137] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0004 DataVersion: 1028539580 + [1650452156.130405][9132:9137] CHIP:TOO: Rssi: null + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. + + ./chip-tool wifinetworkdiagnostics read beacon-lost-count 1 0 + + [1650450239.341208][5252:5257] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0005 DataVersion: 1626643502 + [1650450239.341280][5252:5257] CHIP:TOO: BeaconLostCount: 0 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. + + ./chip-tool wifinetworkdiagnostics read beacon-rx-count 1 0 + [1650454625.960728][9290:9295] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0006 DataVersion: 1028539580 + [1650454625.960813][9290:9295] CHIP:TOO: BeaconRxCount: 0 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. + + ./chip-tool wifinetworkdiagnostics read packet-multicast-rx-count 1 0 + [1650454695.550436][9303:9308] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0007 DataVersion: 1028539580 + [1650454695.550515][9303:9308] CHIP:TOO: PacketMulticastRxCount: 401028 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. + + ./chip-tool wifinetworkdiagnostics read packet-multicast-tx-count 1 0 + + [1650454724.371654][9311:9316] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0008 DataVersion: 1028539580 + [1650454724.371740][9311:9316] CHIP:TOO: PacketMulticastTxCount: 0 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. + + ./chip-tool wifinetworkdiagnostics read packet-unicast-rx-count 1 0 + + [1650454751.954086][9317:9322] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0009 DataVersion: 1028539580 + [1650454751.954174][9317:9322] CHIP:TOO: PacketUnicastRxCount: 653833 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. + + ./chip-tool wifinetworkdiagnostics read packet-unicast-tx-count 1 0 + [1650454782.789340][9323:9328] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_000A DataVersion: 1028539580 + [1650454782.789426][9323:9328] CHIP:TOO: PacketUnicastTxCount: 1123 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. + + ./chip-tool wifinetworkdiagnostics read current-max-rate 1 0 + + [1650451685.092993][5470:5475] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_000B DataVersion: 1626643502 + [1650451685.093078][5470:5475] CHIP:TOO: CurrentMaxRate: 24000000 + disabled: true + + - label: "DUT reads a attribute value from TH." + verification: | + Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. + + ./chip-tool wifinetworkdiagnostics read overrun-count 1 0 + + [1650451635.634814][9056:9061] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_000C DataVersion: 1028539580 + [1650451635.634882][9056:9061] CHIP:TOO: OverrunCount: 0 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml new file mode 100644 index 00000000000000..a9a2fe4d52544d --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml @@ -0,0 +1,65 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 3.2.2. [TC-DGWIFI-3.2] Commands with client as DUT + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Commission DUT to TH" + verification: | + + disabled: true + + - label: "DUT sends ResetCounts command to TH" + verification: | + Verify Command data recieved from running the below command is a success + + ./chip-tool wifinetworkdiagnostics reset-counts 1 1 + CHIP:DMG: InvokeResponseMessage = + [1649664146.639743][8173:8178] CHIP:DMG: { + [1649664146.639789][8173:8178] CHIP:DMG: suppressResponse = false, + [1649664146.639836][8173:8178] CHIP:DMG: InvokeResponseIBs = + [1649664146.639895][8173:8178] CHIP:DMG: [ + [1649664146.639941][8173:8178] CHIP:DMG: InvokeResponseIB = + [1649664146.640006][8173:8178] CHIP:DMG: { + [1649664146.640059][8173:8178] CHIP:DMG: CommandStatusIB = + [1649664146.640119][8173:8178] CHIP:DMG: { + [1649664146.640175][8173:8178] CHIP:DMG: CommandPathIB = + [1649664146.640238][8173:8178] CHIP:DMG: { + [1649664146.640302][8173:8178] CHIP:DMG: EndpointId = 0x0, + [1649664146.640373][8173:8178] CHIP:DMG: ClusterId = 0x36, + [1649664146.640438][8173:8178] CHIP:DMG: CommandId = 0x0, + [1649664146.640500][8173:8178] CHIP:DMG: }, + [1649664146.640574][8173:8178] CHIP:DMG: + [1649664146.640632][8173:8178] CHIP:DMG: StatusIB = + [1649664146.640693][8173:8178] CHIP:DMG: { + [1649664146.640762][8173:8178] CHIP:DMG: status = 0x00 (SUCCESS), + [1649664146.640824][8173:8178] CHIP:DMG: }, + [1649664146.640886][8173:8178] CHIP:DMG: + [1649664146.640943][8173:8178] CHIP:DMG: }, + [1649664146.641007][8173:8178] CHIP:DMG: + [1649664146.641058][8173:8178] CHIP:DMG: }, + [1649664146.641126][8173:8178] CHIP:DMG: + [1649664146.641174][8173:8178] CHIP:DMG: ], + [1649664146.641230][8173:8178] CHIP:DMG: + [1649664146.641275][8173:8178] CHIP:DMG: InteractionModelRevision = 1 + [1649664146.641318][8173:8178] CHIP:DMG: }, + [1649664146.641424][8173:8178] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0036 Command=0x0000_0000 Status=0x0 + [1649664146.641499][8173:8178] CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DM_1_1.yaml index 3b1f6f53de78de..6151bf5c8d09b4 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_1_1.yaml @@ -13,7 +13,9 @@ # 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: 10.1.1. [TC-DM-1.1] Basic Cluster Server Attributes +name: + 10.1.1. [TC-DM-1.1] Global Attributes for Basic Information Cluster + [DUT-Server] config: nodeId: 0x12344321 @@ -21,172 +23,80 @@ config: endpoint: 0 tests: - - label: "Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Query Data Model Revision" - command: "readAttribute" - attribute: "DataModelRevision" - response: - constraints: - type: uint16 - - - label: "Query Vendor Name" - command: "readAttribute" - attribute: "VendorName" - response: - constraints: - type: string - maxLength: 32 - - - label: "Query VendorID" - command: "readAttribute" - attribute: "VendorID" - response: - constraints: - type: uint16 - - - label: "Query Product Name" - command: "readAttribute" - attribute: "ProductName" - response: - constraints: - type: string - maxLength: 32 - - - label: "Query ProductID" - command: "readAttribute" - attribute: "ProductID" - response: - constraints: - type: uint16 - - - label: "Query Node Label" - command: "readAttribute" - attribute: "NodeLabel" - response: - constraints: - type: string - maxLength: 32 - - - label: "Query User Location" - command: "readAttribute" - attribute: "Location" - response: - constraints: - type: string - maxLength: 2 - format: "ISO 3166-1 alpha-2" # Step 6 11.2.3.1-6 Verify it follows ISO 3166-1 alpha-2 code / or it is empty, since it is user-defined - - - label: "Query HardwareVersion" - command: "readAttribute" - attribute: "HardwareVersion" - response: - constraints: - type: uint16 - - - label: "Query HardwareVersionString" - command: "readAttribute" - attribute: "HardwareVersionString" - response: - constraints: - type: string - minLength: 1 - maxLength: 64 - - - label: "Query SoftwareVersion" - command: "readAttribute" - attribute: "SoftwareVersion" - response: - constraints: - type: uint32 - - - label: "Query SoftwareVersionString" - command: "readAttribute" - attribute: "SoftwareVersionString" - response: - constraints: - type: string - minLength: 1 - maxLength: 64 - format: "ASCII" # Step 10 11.2.3.1-10 Verify it uses 7-bit ASCII alphanumeric and punctuation characters - - - label: "Query ManufacturingDate" - command: "readAttribute" - attribute: "ManufacturingDate" - PICS: MANF_DATE - optional: true - response: - constraints: - type: string - minLength: 8 - maxLength: 16 - format: "ISO 8601" # Step 11 11.2.3.1-11 Verify if the first 8 characters specify date according to ISO 8601, i.e, YYYYMMDD - - - label: "Query PartNumber" - command: "readAttribute" - attribute: "PartNumber" - PICS: PART_NUM - optional: true - response: - constraints: - type: string - maxLength: 32 - - - label: "Query ProductURL" - command: "readAttribute" - attribute: "ProductURL" - optional: true - response: - constraints: - type: string - maxLength: 256 - format: "RFC3986" # Step 13 11.2.3.1-13 Verify that it follows the syntax rules specified in RFC 3986 - - - label: "Query ProductLabel" - command: "readAttribute" - attribute: "ProductLabel" - optional: true - response: - constraints: - type: string - maxLength: 64 - - - label: "Query SerialNumber" - command: "readAttribute" - attribute: "SerialNumber" - optional: true - response: - constraints: - type: string - maxLength: 32 - - - label: "Query LocalConfigDisabled" - command: "readAttribute" - attribute: "LocalConfigDisabled" - optional: true - response: - constraints: - type: boolean - - - label: "Query Reachable" - command: "readAttribute" - attribute: "Reachable" - optional: true - response: - constraints: - type: boolean - - - label: "Query UniqueID" - command: "readAttribute" - attribute: "UniqueID" - optional: true - response: - constraints: - type: string - maxLength: 32 + - label: "Commission DUT to TH" + verification: | + + disabled: true + + - label: "TH reads the ClusterRevision from DUT" + verification: | + ./chip-tool basic read cluster-revision 1 0 + + + [1651214669.313397][2666:2671] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_FFFD DataVersion: 158558310 + [1651214669.313472][2666:2671] CHIP:TOO: ClusterRevision: 1 + disabled: true + + - label: "TH reads the FeatureMap from DUT" + verification: | + ./chip-tool basic read feature-map 1 0 + + [1653459580.065669][29174:29179] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_FFFC DataVersion: 46104872 + [1653459580.065758][29174:29179] CHIP:TOO: FeatureMap: 0 + [1653459580.065936][29174:29179] CHIP:EM: Sending Standalone Ack for MessageCounter:14961519 on exchange 31457i + disabled: true + + - label: "TH reads AttributeList from DUT" + verification: | + ./chip-tool basic read attribute-list 1 0 + + [1651214730.462010][2685:2690] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_FFFB DataVersion: 158558310 + [1651214730.462091][2685:2690] CHIP:TOO: AttributeList: 24 entries + [1651214730.462123][2685:2690] CHIP:TOO: [1]: 0 + [1651214730.462158][2685:2690] CHIP:TOO: [2]: 1 + [1651214730.462183][2685:2690] CHIP:TOO: [3]: 2 + [1651214730.462207][2685:2690] CHIP:TOO: [4]: 3 + [1651214730.462241][2685:2690] CHIP:TOO: [5]: 4 + [1651214730.462266][2685:2690] CHIP:TOO: [6]: 5 + [1651214730.462300][2685:2690] CHIP:TOO: [7]: 6 + [1651214730.462325][2685:2690] CHIP:TOO: [8]: 7 + [1651214730.462349][2685:2690] CHIP:TOO: [9]: 8 + [1651214730.462383][2685:2690] CHIP:TOO: [10]: 9 + [1651214730.462407][2685:2690] CHIP:TOO: [11]: 10 + [1651214730.462441][2685:2690] CHIP:TOO: [12]: 11 + [1651214730.462465][2685:2690] CHIP:TOO: [13]: 12 + [1651214730.462499][2685:2690] CHIP:TOO: [14]: 13 + [1651214730.462523][2685:2690] CHIP:TOO: [15]: 14 + [1651214730.462556][2685:2690] CHIP:TOO: [16]: 15 + [1651214730.462580][2685:2690] CHIP:TOO: [17]: 16 + [1651214730.462615][2685:2690] CHIP:TOO: [18]: 17 + [1651214730.462640][2685:2690] CHIP:TOO: [19]: 18 + [1651214730.462676][2685:2690] CHIP:TOO: [20]: 19 + [1651214730.462700][2685:2690] CHIP:TOO: [21]: 65528 + [1651214730.462736][2685:2690] CHIP:TOO: [22]: 65529 + [1651214730.462761][2685:2690] CHIP:TOO: [23]: 65531 + [1651214730.462799][2685:2690] CHIP:TOO: [24]: 65533 + disabled: true + + - label: "TH reads EventList from DUT" + verification: | + out of scope for V1.0 + disabled: true + + - label: "TH reads AcceptedCommandList from DUT" + verification: | + ./chip-tool basic read accepted-command-list 1 0 + + + [1651214820.355561][2695:2700] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_FFF9 DataVersion: 158558310 + [1651214820.355673][2695:2700] CHIP:TOO: AcceptedCommandList: 0 entries + disabled: true + + - label: "TH reads GeneratedCommandList from DUT" + verification: | + ./chip-tool basic read generated-command-list 1 0 + + + [1651214861.208575][2702:2707] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_FFF8 DataVersion: 158558310 + [1651214861.208682][2702:2707] CHIP:TOO: GeneratedCommandList: 0 entries + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_1_2.yaml b/src/app/tests/suites/certification/Test_TC_DM_1_2.yaml index e4f4c86f822396..2e66c83c99b59e 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_1_2.yaml @@ -21,78 +21,78 @@ config: nodeId: 0x12344321 cluster: "Basic" endpoint: 0 + tests: - - label: "Test Step" - verification: | - chip-tool verification steps - disabled: true - label: "Commission DUT to TH" - verification: |4+ + verification: | disabled: true + - label: "TH reads the ClusterRevision from DUT" verification: | - ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool operationalcredentials read cluster-revision 1 0 + ./chip-tool operationalcredentials read cluster-revision 1 0 + - [1649422711.953376][3312:3317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFFD DataVersion: 698307857 - [1649422711.953487][3312:3317] CHIP:TOO: ClusterRevision: 1 - [1649422711.953574][3312:3317] CHIP:EM: Sending Standalone Ack for MessageCounter:9018855 on exchange 29017i + [1651215068.211617][3121:3134] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFFD DataVersion: 3662641304 + [1651215068.211771][3121:3134] CHIP:TOO: ClusterRevision: 1 disabled: true + - label: "TH reads the FeatureMap from DUT" verification: | - ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool operationalcredentials read feature-map 1 0 + ./chip-tool operationalcredentials read feature-map 1 0 - [1649423105.884270][3334:3339] CHIP:TOO: Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE) - [1649423105.884373][3334:3339] CHIP:EM: Sending Standalone Ack for MessageCounter:5943193 on exchange 30408i + [1653459610.168569][29181:29186] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFFC DataVersion: 760966542 + [1653459610.168681][29181:29186] CHIP:TOO: FeatureMap: 0 + [1653459610.168856][29181:29186] CHIP:EM: Sending Standalone Ack for MessageCounter:15955740 on exchange 48874i disabled: true + - label: "TH reads AttributeList from DUT" verification: | - ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool operationalcredentials read attribute-list 1 0 + ./chip-tool operationalcredentials read attribute-list 1 0 - [1649423226.138143][3345:3350] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFFB DataVersion: 698307857 - [1649423226.138237][3345:3350] CHIP:TOO: AttributeList: 10 entries - [1649423226.138287][3345:3350] CHIP:TOO: [1]: 0 - [1649423226.138317][3345:3350] CHIP:TOO: [2]: 1 - [1649423226.138345][3345:3350] CHIP:TOO: [3]: 2 - [1649423226.138373][3345:3350] CHIP:TOO: [4]: 3 - [1649423226.138401][3345:3350] CHIP:TOO: [5]: 4 - [1649423226.138429][3345:3350] CHIP:TOO: [6]: 5 - [1649423226.138457][3345:3350] CHIP:TOO: [7]: 65528 - [1649423226.138485][3345:3350] CHIP:TOO: [8]: 65529 - [1649423226.138513][3345:3350] CHIP:TOO: [9]: 65531 - [1649423226.138541][3345:3350] CHIP:TOO: [10]: 65533 - [1649423226.138683][3345:3350] CHIP:EM: Sending Standalone Ack for MessageCounter:185027 on exchange 31246i + [1651215134.318088][3238:3243] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFFB DataVersion: 3662641304 + [1651215134.318171][3238:3243] CHIP:TOO: AttributeList: 10 entries + [1651215134.318204][3238:3243] CHIP:TOO: [1]: 0 + [1651215134.318231][3238:3243] CHIP:TOO: [2]: 1 + [1651215134.318256][3238:3243] CHIP:TOO: [3]: 2 + [1651215134.318278][3238:3243] CHIP:TOO: [4]: 3 + [1651215134.318303][3238:3243] CHIP:TOO: [5]: 4 + [1651215134.318328][3238:3243] CHIP:TOO: [6]: 5 + [1651215134.318355][3238:3243] CHIP:TOO: [7]: 65528 + [1651215134.318381][3238:3243] CHIP:TOO: [8]: 65529 + [1651215134.318407][3238:3243] CHIP:TOO: [9]: 65531 + [1651215134.318432][3238:3243] CHIP:TOO: [10]: 65533 disabled: true + - label: "TH reads EventList from DUT" verification: | - No Event-list is on attributes list + out of scope for V1.0 disabled: true + - label: "TH reads AcceptedCommandList from DUT" verification: | - ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool operationalcredentials read accepted-command-list 1 0 - - [1649423499.262187][3365:3370] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFF9 DataVersion: 698307857 - [1649423499.262316][3365:3370] CHIP:TOO: AcceptedCommandList: 9 entries - [1649423499.262386][3365:3370] CHIP:TOO: [1]: 0 - [1649423499.262430][3365:3370] CHIP:TOO: [2]: 2 - [1649423499.262472][3365:3370] CHIP:TOO: [3]: 4 - [1649423499.262513][3365:3370] CHIP:TOO: [4]: 6 - [1649423499.262553][3365:3370] CHIP:TOO: [5]: 7 - [1649423499.262593][3365:3370] CHIP:TOO: [6]: 9 - [1649423499.262635][3365:3370] CHIP:TOO: [7]: 10 - [1649423499.262676][3365:3370] CHIP:TOO: [8]: 11 - [1649423499.262717][3365:3370] CHIP:TOO: [9]: 12 - [1649423499.262866][3365:3370] CHIP:EM: Sending Standalone Ack for MessageCounter:8288254 on exchange 44255i + ./chip-tool operationalcredentials read accepted-command-list 1 0 + [1651215195.652771][3248:3253] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFF9 DataVersion: 3662641304 + [1651215195.652861][3248:3253] CHIP:TOO: AcceptedCommandList: 9 entries + [1651215195.652900][3248:3253] CHIP:TOO: [1]: 0 + [1651215195.652931][3248:3253] CHIP:TOO: [2]: 2 + [1651215195.652962][3248:3253] CHIP:TOO: [3]: 4 + [1651215195.652992][3248:3253] CHIP:TOO: [4]: 6 + [1651215195.653022][3248:3253] CHIP:TOO: [5]: 7 + [1651215195.653051][3248:3253] CHIP:TOO: [6]: 9 + [1651215195.653082][3248:3253] CHIP:TOO: [7]: 10 + [1651215195.653112][3248:3253] CHIP:TOO: [8]: 11 + [1651215195.653142][3248:3253] CHIP:TOO: [9]: 12 disabled: true + - label: "TH reads GeneratedCommandList from DUT" verification: | - ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool operationalcredentials read generated-command-list 1 0 + ./chip-tool operationalcredentials read generated-command-list 1 0 - [1649423586.012638][3376:3381] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFF8 DataVersion: 698307857 - [1649423586.012746][3376:3381] CHIP:TOO: GeneratedCommandList: 4 entries - [1649423586.012809][3376:3381] CHIP:TOO: [1]: 1 - [1649423586.012848][3376:3381] CHIP:TOO: [2]: 3 - [1649423586.012884][3376:3381] CHIP:TOO: [3]: 5 - [1649423586.012919][3376:3381] CHIP:TOO: [4]: 8 - [1649423586.013057][3376:3381] CHIP:EM: Sending Standalone Ack for MessageCounter:4917669 on exchange 24524i + [1651215270.028855][3260:3265] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFF8 DataVersion: 3662641304 + [1651215270.028955][3260:3265] CHIP:TOO: GeneratedCommandList: 4 entries + [1651215270.029001][3260:3265] CHIP:TOO: [1]: 1 + [1651215270.029039][3260:3265] CHIP:TOO: [2]: 3 + [1651215270.029076][3260:3265] CHIP:TOO: [3]: 5 + [1651215270.029112][3260:3265] CHIP:TOO: [4]: 8 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_1_3.yaml b/src/app/tests/suites/certification/Test_TC_DM_1_3.yaml new file mode 100644 index 00000000000000..0c0905ff2cd7a4 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DM_1_3.yaml @@ -0,0 +1,113 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: + 10.1.3. [TC-DM-1.3] Global Attributes for Networking commissioning cluster + [DUT-Server] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Commission TH and DUT over BLE to setup the Wi-Fi" + verification: | + + disabled: true + + - label: "TH reads the ClusterRevision from DUT" + verification: | + ./chip-tool networkcommissioning read cluster-revision 1 0 + + [1649244866.275684][30440:30446] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFD DataVersion: 2702518944 + [1649244866.277721][30440:30446] CHIP:TOO: ClusterRevision: 1 + [1649244866.277827][30440:30446] CHIP:EM: Sending Standalone Ack for MessageCounter:10092551 on exchange 64234i + disabled: true + + - label: "TH reads the FeatureMap from DUT" + verification: | + ./chip-tool networkcommissioning read feature-map 1 0 + + [1651215443.195852][3285:3290] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFC DataVersion: 2584224280 + [1651215443.195939][3285:3290] CHIP:TOO: FeatureMap: 4 + disabled: true + + - label: "TH reads AttributeList from DUT" + verification: | + ./chip-tool networkcommissioning read attribute-list 1 0 + + [1651215479.539148][3293:3298] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFB DataVersion: 2584224280 + [1651215479.539230][3293:3298] CHIP:TOO: AttributeList: 13 entries + [1651215479.539262][3293:3298] CHIP:TOO: [1]: 0 + [1651215479.539288][3293:3298] CHIP:TOO: [2]: 1 + [1651215479.539323][3293:3298] CHIP:TOO: [3]: 2 + [1651215479.539348][3293:3298] CHIP:TOO: [4]: 3 + [1651215479.539373][3293:3298] CHIP:TOO: [5]: 4 + [1651215479.539397][3293:3298] CHIP:TOO: [6]: 5 + [1651215479.539420][3293:3298] CHIP:TOO: [7]: 6 + [1651215479.539444][3293:3298] CHIP:TOO: [8]: 7 + [1651215479.539468][3293:3298] CHIP:TOO: [9]: 65528 + [1651215479.539493][3293:3298] CHIP:TOO: [10]: 65529 + [1651215479.539517][3293:3298] CHIP:TOO: [11]: 65531 + [1651215479.539541][3293:3298] CHIP:TOO: [12]: 65532 + [1651215479.539564][3293:3298] CHIP:TOO: [13]: 65533 + disabled: true + + - label: "TH reads EventList from the DUT" + verification: | + out of scope for V1.0 + disabled: true + + - label: "TH reads AcceptedCommandList from DUT" + verification: | + In case of chip tool, here is an example command to use + + ./chip-tool networkcommissioning read generated-command-list 1 0 + + [1652255227.644007][7509:7514] CHIP:DMG: SuppressResponse = true, + [1652255227.644083][7509:7514] CHIP:DMG: InteractionModelRevision = 1 + [1652255227.644139][7509:7514] CHIP:DMG: } + [1652255227.644480][7509:7514] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFF9 DataVersion: 2580824733 + [1652255227.644609][7509:7514] CHIP:TOO: AcceptedCommandList: 0 entries + disabled: true + + - label: "TH reads GeneratedCommandList from DUT" + verification: | + ( WiFi) ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read generated-command-list 1 0 + + [1650370123.417759][42418:42423] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFF8 DataVersion: 3182776035 + [1650370123.417866][42418:42423] CHIP:TOO: GeneratedCommandList: 3 entries + [1650370123.417938][42418:42423] CHIP:TOO: [1]: 1 + [1650370123.417977][42418:42423] CHIP:TOO: [2]: 5 + [1650370123.418013][42418:42423] CHIP:TOO: [3]: 7 + [1650370123.418143][42418:42423] CHIP:EM: Sending Standalone Ack for MessageCounter:759910 on exchange 25409i + + ( Thread ) ./chip-tool networkcommissioning read generated-command-list 51 0 + + [1650370342.693373][7450:7455] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFF8 DataVersion: 1032683896 + [1650370342.693536][7450:7455] CHIP:TOO: GeneratedCommandList: 2 entries + 1650370123.417938][42418:42423] CHIP:TOO: [1]: 1 + [1650370123.417977][42418:42423] CHIP:TOO: [2]: 5 + [1650370123.418013][42418:42423] CHIP:TOO: [3]: 7 + [1650370342.693995][7450:7455] CHIP:EM: Sending Standalone Ack for MessageCounter:2345375 on exchange 25146i + disabled: true + + - label: + "NOTE: Repeat the test case by Commission DUT to TH on the Thread and + Ethernet setups" + verification: | + + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_1_4.yaml b/src/app/tests/suites/certification/Test_TC_DM_1_4.yaml deleted file mode 100644 index bba40c0640b062..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DM_1_4.yaml +++ /dev/null @@ -1,42 +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. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 3.1.4. [TC-DM-1.4] Basic Information Cluster Events [DUT - Controller] - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Simulate a reboot on the TH" - verification: | - ./chip-tool basic read-event-by-id 0x0 1 0 - disabled: true - - - label: "Simulate a Shut down on the TH" - verification: | - ./chip-tool basic read-event-by-id 0x01 1 0 - disabled: true - - - label: "Simulate a reboot on the TH" - verification: | - - disabled: true - - - label: "Simulate a Factory Reset the TH" - verification: | - ./chip-tool basic read-event-by-id 0x0 1 0 - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DM_2_1.yaml index 09d68ad2422ee8..a4b344e1f38870 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_2_1.yaml @@ -13,7 +13,7 @@ # 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: 3.2.1. [TC-DM-2.1] Operational Credential Commands +name: 10.2.1. [TC-DM-2.1] Basic Information Cluster Server Attributes config: nodeId: 0x12344321 @@ -21,83 +21,193 @@ config: endpoint: 0 tests: - - label: "Commission DUT to TH" - verification: | - - disabled: true - - - label: "TH Sends Attestation Request to DUT" - verification: | - https://github.com/project-chip/connectedhomeip/issues/14395 - disabled: true - - - label: "TH Sends Attestation Certificate Chain Request to DUT" - verification: | - ./chip-tool operationalcredentials certificate-chain-request 1 1 0 - disabled: true - - - label: "TH Sends CSR Request to DUT" - verification: | - - disabled: true - - - label: "TH Sends Add Trusted Root Certificate Request to DUT" - verification: | - - disabled: true - - - label: "TH Sends Add Op Cert Request to DUT" - verification: | - - disabled: true - - - label: "Verify DUT and TH are on the same Fabric" - verification: | - - disabled: true - - - label: "TH Sends Update Op Cert Request to DUT" - verification: | - - disabled: true + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId + + - label: "Query Data Model Revision" + command: "readAttribute" + attribute: "DataModelRevision" + response: + constraints: + type: uint16 + + - label: "Query Vendor Name" + command: "readAttribute" + attribute: "VendorName" + response: + constraints: + type: string + maxLength: 32 + + - label: "Query VendorID" + command: "readAttribute" + attribute: "VendorID" + response: + constraints: + type: uint16 + + - label: "Query Product Name" + command: "readAttribute" + attribute: "ProductName" + response: + constraints: + type: string + maxLength: 32 + + - label: "Query ProductID" + command: "readAttribute" + attribute: "ProductID" + response: + constraints: + type: uint16 + + - label: "Query Node Label" + command: "readAttribute" + attribute: "NodeLabel" + response: + constraints: + type: string + maxLength: 32 + + - label: "Query User Location" + command: "readAttribute" + attribute: "Location" + response: + constraints: + type: string + maxLength: 16 + + - label: "Query HardwareVersion" + command: "readAttribute" + attribute: "HardwareVersion" + response: + constraints: + type: uint16 + + - label: "Query HardwareVersionString" + command: "readAttribute" + attribute: "HardwareVersionString" + response: + constraints: + type: string + minLength: 1 + maxLength: 64 - label: - "TH Sends Update Op Cert Request to DUT with a Fabric Label not - already in use" + "TH reads SoftwareVersionString from the DUT and Verify it is of type + string and verify the format" verification: | - - disabled: true + ./chip-tool basic read software-version 1 0 + + [1654069233.033848][11164:11169] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0009 DataVersion: 2079473958 + [1654069233.033880][11164:11169] CHIP:TOO: SoftwareVersion: 1 + [1654069233.033902][11164:11169] CHIP:EM: Sending Standalone Ack for MessageCounter:3270959 on exchange 29106i + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: - "TH Sends Update Op Cert Request to DUT with a Fabric label already in - use" + "TH reads ManufacturingDate from the DUT and Verify it is of type + string and verify the format" verification: | - - disabled: true + ./chip-tool basic read manufacturing-date 1 0 + + + [1640336849.202099][14335:14340] CHIP:DMG: + [1640336849.202186][14335:14340] CHIP:DMG: SuppressResponse = true, + [1640336849.202239][14335:14340] CHIP:DMG: } + [1640336849.202479][14335:14340] CHIP:TOO: Basic.ManufacturingDate response: 20210614123456ZZ + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" + + - label: "Query PartNumber" + command: "readAttribute" + attribute: "PartNumber" + PICS: PART_NUM + optional: true + response: + constraints: + type: string + maxLength: 32 - label: - "TH Sends Remove Fabric Request to DUT with a non-Valid Fabric index" - verification: | - ./chip-tool operationalcredentials remove-fabric 2 1 0 - - CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 - [1646390608.860327][6336:6341] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 - [1646390608.860465][6336:6341] CHIP:TOO: NOCResponse: { - [1646390608.860548][6336:6341] CHIP:TOO: statusCode: 11 - [1646390608.860611][6336:6341] CHIP:TOO: } - [1646390608.860695][6336:6341] CHIP:DMG: ICR moving to [AwaitingDe] - [1646390608.860801][6336:6341] CHIP:EM: Sending Standalone Ack for MessageCounter:1477607 on exchange 51257i - disabled: true - - - label: "TH Sends Remove Fabric Request to DUT with a valid Fabric ID" + "TH reads ProductURL from the DUT and Verify it is of type string and + verify the format" verification: | - ./chip-tool operationalcredentials remove-fabric 1 1 0 - - CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 - [1646390764.134501][6347:6352] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 - [1646390764.134673][6347:6352] CHIP:TOO: NOCResponse: { - [1646390764.134894][6347:6352] CHIP:TOO: statusCode: 0 - [1646390764.134985][6347:6352] CHIP:TOO: fabricIndex: 1 - [1646390764.135047][6347:6352] CHIP:TOO: } - [1646390764.135157][6347:6352] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + ./chip-tool basic read product-url 1 0 + + + [1640337847.187590][14399:14404] CHIP:DMG: + [1640337847.187633][14399:14404] CHIP:DMG: SuppressResponse = true, + [1640337847.187676][14399:14404] CHIP:DMG: } + [1640337847.187868][14399:14404] CHIP:TOO: Basic.ProductURL response: + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" + + - label: "Query ProductLabel" + command: "readAttribute" + attribute: "ProductLabel" + optional: true + response: + constraints: + type: string + maxLength: 64 + + - label: "Query SerialNumber" + command: "readAttribute" + attribute: "SerialNumber" + optional: true + response: + constraints: + type: string + maxLength: 32 + + - label: "Query LocalConfigDisabled" + command: "readAttribute" + attribute: "LocalConfigDisabled" + optional: true + response: + constraints: + type: boolean + + - label: "Query Reachable" + command: "readAttribute" + attribute: "Reachable" + optional: true + response: + constraints: + type: boolean + + - label: "Query UniqueID" + command: "readAttribute" + attribute: "UniqueID" + optional: true + response: + constraints: + type: string + maxLength: 32 diff --git a/src/app/tests/suites/certification/Test_TC_DM_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DM_2_2.yaml index d8934af3a4c884..92777da7006dd4 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_2_2.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 3.2.2. [TC-DM-2.2] Operational Credential Attributes +name: 10.2.2. [TC-DM-2.2] Basic Information Cluster Events config: nodeId: 0x12344321 diff --git a/src/app/tests/suites/certification/Test_TC_DM_2_3_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_DM_2_3_Simulated.yaml index e31f0ff97c9d7e..2f50455b8bb285 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_2_3_Simulated.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_2_3_Simulated.yaml @@ -12,48 +12,100 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 10.2.3. [TC-DM-2.3] Operational Credential Commands [DUT - Commissioner] +name: + 10.2.3. [TC-DM-2.3] Basic Information Cluster Server Attributes [DUT - + Controller] config: nodeId: 0x12344321 - cluster: "Operational Credentials" + cluster: "Basic" endpoint: 0 tests: - - label: "Wait for Arm Fail Safe" - wait: "ArmFailSafe" - cluster: "General Commissioning" + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" - - label: "Wait for Set Regulatory Config" - wait: "SetRegulatoryConfig" - cluster: "General Commissioning" + - label: "Log OnOff Test Startup" + cluster: "LogCommands" + command: "Log" + arguments: + values: + - name: "message" + value: "*** Basic Cluster Tests Ready" - - label: "Wait for Attestation Certificate Chain Request" - wait: "CertificateChainRequest" + - label: "Query Data Model Revision" + wait: "readAttribute" + attribute: "DataModelRevision" - - label: "Wait for Attestation Certificate Chain Request" - wait: "CertificateChainRequest" + - label: "Query Vendor Name" + wait: "readAttribute" + attribute: "VendorName" - - label: "Wait for Attestation Request" - wait: "AttestationRequest" + - label: "Query VendorID" + wait: "readAttribute" + attribute: "VendorID" - - label: "Wait for CSR Request" - wait: "CSRRequest" + - label: "Query Product Name" + wait: "readAttribute" + attribute: "ProductName" - - label: "Wait for Add Trusted Root Certificate Request" - wait: "AddTrustedRootCertificate" + - label: "Query ProductID" + wait: "readAttribute" + attribute: "ProductID" - - label: "Wait for Add Op NOC" - wait: "AddNOC" + - label: "Query Node Label" + wait: "readAttribute" + attribute: "NodeLabel" - - label: "Wait for Commissioning Complete" - wait: "CommissioningComplete" - cluster: "General Commissioning" + - label: "Query User Location" + wait: "readAttribute" + attribute: "Location" - - label: "Wait 3000ms" - cluster: "DelayCommands" - command: "WaitForMs" - arguments: - values: - - name: "ms" - value: 3000 + - label: "Query HardwareVersion" + wait: "readAttribute" + attribute: "HardwareVersion" + + - label: "Query HardwareVersionString" + wait: "readAttribute" + attribute: "HardwareVersionString" + + - label: "Query SoftwareVersion" + wait: "readAttribute" + attribute: "SoftwareVersion" + + - label: "Query SoftwareVersionString" + wait: "readAttribute" + attribute: "SoftwareVersionString" + + - label: "Query ManufacturingDate" + wait: "readAttribute" + attribute: "ManufacturingDate" + + - label: "Query PartNumber" + wait: "readAttribute" + attribute: "PartNumber" + + - label: "Query ProductURL" + wait: "readAttribute" + attribute: "ProductURL" + + - label: "Query ProductLabel" + wait: "readAttribute" + attribute: "ProductLabel" + + - label: "Query SerialNumber" + wait: "readAttribute" + attribute: "SerialNumber" + + - label: "Query LocalConfigDisabled" + wait: "readAttribute" + attribute: "LocalConfigDisabled" + + - label: "Query Reachable" + wait: "readAttribute" + attribute: "Reachable" + + - label: "Query UniqueID" + wait: "readAttribute" + attribute: "UniqueID" diff --git a/src/app/tests/suites/certification/Test_TC_DM_2_4.yaml b/src/app/tests/suites/certification/Test_TC_DM_2_4.yaml index 59e4b7239bc44e..c53bc44662b465 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_2_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_2_4.yaml @@ -13,7 +13,7 @@ # 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: 10.2.4. [TC-DM-2.4] Operational Credential Attributes [DUT - Commissioner] +name: 3.1.4. [TC-DM-2.4] Basic Information Cluster Events [DUT - Controller] config: nodeId: 0x12344321 @@ -21,27 +21,101 @@ config: endpoint: 0 tests: - - label: "Commission TH to DUT" + - label: "Simulate a reboot on the TH" verification: | + ./chip-tool basic read-event start-up 1 0 + + [1651229405.704017][2825:2825] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:11744980 on exchange 35983r + [1651229405.704064][2825:2825] CHIP:EM: Handling via exchange: 35983r, Delegate: 0xaaaae659a088 + [1651229405.704208][2825:2825] CHIP:IM: Received Read request + [1651229405.704271][2825:2825] CHIP:DMG: ReadRequestMessage = + [1651229405.704303][2825:2825] CHIP:DMG: { + [1651229405.704329][2825:2825] CHIP:DMG: EventPathIBs = + [1651229405.704362][2825:2825] CHIP:DMG: [ + [1651229405.704392][2825:2825] CHIP:DMG: EventPath = + [1651229405.704428][2825:2825] CHIP:DMG: { + [1651229405.704463][2825:2825] CHIP:DMG: Endpoint = 0x0, + [1651229405.704501][2825:2825] CHIP:DMG: Cluster = 0x28, + [1651229405.704539][2825:2825] CHIP:DMG: Event = 0x0, + [1651229405.704575][2825:2825] CHIP:DMG: }, + [1651229405.704613][2825:2825] CHIP:DMG: + [1651229405.704641][2825:2825] CHIP:DMG: ], + [1651229405.704676][2825:2825] CHIP:DMG: + [1651229405.704707][2825:2825] CHIP:DMG: isFabricFiltered = true, + [1651229405.704737][2825:2825] CHIP:DMG: InteractionModelRevision = 1 + [1651229405.704766][2825:2825] CHIP:DMG: }, + disabled: true + + - label: "Simulate a Shut down on the TH" + verification: | + 1. Launch chip-tool into interactive mode with the command ./chip-tool interactive start + + 2. Turn down the DUT and run below command in interactive mode shell + basic subscribe-event shut-down 1 3 1 0 + + CHIP:ZCL: Emitting ShutDown event + [1653392378.033015][19010:19010] CHIP:EVL: LogEvent event number: 0x0000000000000005 priority: 2, endpoint id: 0x0 cluster id: 0x0000_0028 event id: 0x1 Sys timestamp: 0x0000000006AD1297 disabled: true - - label: "DUT reads the NOCs attribute from TH" + - label: "Simulate a reboot on the TH" verification: | - ./chip-tool operationalcredentials read nocs 1 0 + ./chip-tool basic read-event start-up 1 0 + + + [1651229405.704017][2825:2825] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:11744980 on exchange 35983r + [1651229405.704064][2825:2825] CHIP:EM: Handling via exchange: 35983r, Delegate: 0xaaaae659a088 + [1651229405.704208][2825:2825] CHIP:IM: Received Read request + [1651229405.704271][2825:2825] CHIP:DMG: ReadRequestMessage = + [1651229405.704303][2825:2825] CHIP:DMG: { + [1651229405.704329][2825:2825] CHIP:DMG: EventPathIBs = + [1651229405.704362][2825:2825] CHIP:DMG: [ + [1651229405.704392][2825:2825] CHIP:DMG: EventPath = + [1651229405.704428][2825:2825] CHIP:DMG: { + [1651229405.704463][2825:2825] CHIP:DMG: Endpoint = 0x0, + [1651229405.704501][2825:2825] CHIP:DMG: Cluster = 0x28, + [1651229405.704539][2825:2825] CHIP:DMG: Event = 0x0, + [1651229405.704575][2825:2825] CHIP:DMG: }, + [1651229405.704613][2825:2825] CHIP:DMG: + [1651229405.704641][2825:2825] CHIP:DMG: ], + [1651229405.704676][2825:2825] CHIP:DMG: + [1651229405.704707][2825:2825] CHIP:DMG: isFabricFiltered = true, + [1651229405.704737][2825:2825] CHIP:DMG: InteractionModelRevision = 1 + [1651229405.704766][2825:2825] CHIP:DMG: }, disabled: true - - label: "DUT reads the Fabrics attribute from TH" + - label: "Simulate a Factory Reset the TH" verification: | - ./chip-tool operationalcredentials read fabrics 1 0 + ./chip-tool basic read-event leave 1 0 disabled: true - - label: "DUT reads the SupportedFabrics attribute from TH" + - label: "Simulate a reboot on the TH" verification: | - ./chip-tool operationalcredentials read supported-fabrics 1 0 + ./chip-tool basic read-event start-up 1 0 + + + [1651229405.704017][2825:2825] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:11744980 on exchange 35983r + [1651229405.704064][2825:2825] CHIP:EM: Handling via exchange: 35983r, Delegate: 0xaaaae659a088 + [1651229405.704208][2825:2825] CHIP:IM: Received Read request + [1651229405.704271][2825:2825] CHIP:DMG: ReadRequestMessage = + [1651229405.704303][2825:2825] CHIP:DMG: { + [1651229405.704329][2825:2825] CHIP:DMG: EventPathIBs = + [1651229405.704362][2825:2825] CHIP:DMG: [ + [1651229405.704392][2825:2825] CHIP:DMG: EventPath = + [1651229405.704428][2825:2825] CHIP:DMG: { + [1651229405.704463][2825:2825] CHIP:DMG: Endpoint = 0x0, + [1651229405.704501][2825:2825] CHIP:DMG: Cluster = 0x28, + [1651229405.704539][2825:2825] CHIP:DMG: Event = 0x0, + [1651229405.704575][2825:2825] CHIP:DMG: }, + [1651229405.704613][2825:2825] CHIP:DMG: + [1651229405.704641][2825:2825] CHIP:DMG: ], + [1651229405.704676][2825:2825] CHIP:DMG: + [1651229405.704707][2825:2825] CHIP:DMG: isFabricFiltered = true, + [1651229405.704737][2825:2825] CHIP:DMG: InteractionModelRevision = 1 + [1651229405.704766][2825:2825] CHIP:DMG: }, disabled: true - - label: "DUT reads the CommissionedFabrics attribute from TH" + - label: "Simulate a Reachable attribute change on the TH" verification: | - ./chip-tool operationalcredentials read commissioned-fabrics 1 0 + ./chip-tool basic read-event reachable-changed 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DM_3_1.yaml index eb83e45c5553b6..0cb43fa8f9785a 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_3_1.yaml @@ -11,35 +11,358 @@ # 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: 10.3.1. [TC-DM-3.1] Network Commissioning Attributes +name: + 3.2.1. [TC-DM-3.1] Attribute-NOCs, TrustedRootCertificates list validation + [DUT-Commissionee] config: nodeId: 0x12344321 - cluster: "Network Commissioning" + cluster: "Basic" endpoint: 0 tests: - - label: "Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Query MaxNetworks" - command: "readAttribute" - attribute: "MaxNetworks" - optional: true - response: - constraints: - type: uint8 - - - label: "Query Networks" - command: "readAttribute" - attribute: "Networks" - optional: true - response: - constraints: - type: list + - label: + "Factory Reset DUT (to ensure NOC list is empty at the beginning of + the following steps)" + verification: | + Not Verifiable + disabled: true + + - label: "Start the commissioning process DUT by TH1 on a first Fabric" + verification: | + ./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 + + [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success + disabled: true + + - label: + "TH sends CertificateChainRequest Command to DUT for both PAI and DAC" + verification: | + ./chip-tool operationalcredentials certificate-chain-request 1 1 0 + + [1651570197.289787][3689:3694] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0003 + [1651570197.289857][3689:3694] CHIP:TOO: CertificateChainResponse: { + [1651570197.289898][3689:3694] CHIP:TOO: certificate: Elided value too large of size 491 + [1651570197.289954][3689:3694] CHIP:TOO: } + disabled: true + + - label: "TH saves DAC and the PAI certificates." + verification: | + Not Verifiable + disabled: true + + - label: + "TH completes the Device Attestation Procedures validation using the + DAC and PAI certificates" + verification: | + Not Verifiable + disabled: true + + - label: "TH Sends CSRRequest command" + verification: | + Not Verifiable + disabled: true + + - label: + "TH validates the attestation response, obtains the NOC, the Root CA + Certificate and ICAC (optional) and also allocates the FabricID and + NodeID. Save RCAC certificate as Root_CA_Certificate_Original_TH1" + verification: | + Not Verifiable + disabled: true + + - label: + "TH sends AddTrustedRootCertificate command to DUT to install the Root + CA Certificate to the trust store" + verification: | + Not Verifiable + disabled: true + + - label: + "TH sends AddTrustedRootCertificate command to DUT for the + installation of the same Root_CA_Certificate_Original_TH1" + verification: | + Not Verifiable + disabled: true + + - label: "Read the TrustedRootCertificates list from DUT" + verification: | + ./chip-tool operationalcredentials read trusted-root-certificates 1 0 + + [1651570587.562845][3714:3719] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0004 DataVersion: 2018783037 + [1651570587.562960][3714:3719] CHIP:TOO: TrustedRootCertificates: 2 entries + [1651570587.565701][3714:3719] CHIP:TOO: [1]: Elided value too large of size 231 + [1651570587.565758][3714:3719] CHIP:TOO: [2]: Elided value too large of size 231 + disabled: true + + - label: + "TH sends AddTrustedRootCertificate command to DUT to install the Root + CA Certificate which differs from Root_CA_Certificate_Original_TH1 by + one byte in the Subject field" + verification: | + Not Verifiable + disabled: true + + - label: "Read the TrustedRootCertificates list from DUT" + verification: | + ./chip-tool operationalcredentials read trusted-root-certificates 1 0 + + [1651570587.562845][3714:3719] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0004 DataVersion: 2018783037 + [1651570587.562960][3714:3719] CHIP:TOO: TrustedRootCertificates: 2 entries + [1651570587.565701][3714:3719] CHIP:TOO: [1]: Elided value too large of size 231 + [1651570587.565758][3714:3719] CHIP:TOO: [2]: Elided value too large of size 231 + disabled: true + + - label: + "TH sends AddTrustedRootCertificate command to DUT to install a + malformed Root CA Certificate where the signature does not match the + public key" + verification: | + Not Verifiable + disabled: true + + - label: "TH1 sends the AddNOC Command to DUT" + verification: | + Not Verifiable + disabled: true + + - label: "Save the FabricIndex as FabricIndex_Test for future use" + verification: | + Not Verifiable + disabled: true + + - label: "Read the NOCs (NOCStruct) list from DUT" + verification: | + ./chip-tool operationalcredentials read nocs 1 0 + + [1651570741.707935][3729:3734] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 2018783037 + [1651570741.708034][3729:3734] CHIP:TOO: NOCs: 1 entries + [1651570741.708122][3729:3734] CHIP:TOO: [1]: { + [1651570741.708163][3729:3734] CHIP:TOO: Noc: Elided value too large of size 241 + [1651570741.708202][3729:3734] CHIP:TOO: Icac: Elided value too large of size 231 + [1651570741.708238][3729:3734] CHIP:TOO: FabricIndex: 1 + [1651570741.708272][3729:3734] CHIP:TOO: } + disabled: true + + - label: "Read the first NOCStruct element from the list" + verification: | + ./chip-tool operationalcredentials read nocs 1 0 + + [1651570741.707935][3729:3734] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 2018783037 + [1651570741.708034][3729:3734] CHIP:TOO: NOCs: 1 entries + [1651570741.708122][3729:3734] CHIP:TOO: [1]: { + [1651570741.708163][3729:3734] CHIP:TOO: Noc: Elided value too large of size 241 + [1651570741.708202][3729:3734] CHIP:TOO: Icac: Elided value too large of size 231 + [1651570741.708238][3729:3734] CHIP:TOO: FabricIndex: 1 + [1651570741.708272][3729:3734] CHIP:TOO: } + disabled: true + + - label: + "TH sends UpdateFabricLabel command with 'Node Ope Credits 1' as Label + field to DUT" + verification: | + ./chip-tool operationalcredentials update-fabric-label NodeOpeCredits1 1 0 + + [1651571821.028022][3803:3808] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1651571821.028086][3803:3808] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 + [1651571821.028181][3803:3808] CHIP:TOO: NOCResponse: { + [1651571821.028226][3803:3808] CHIP:TOO: statusCode: 0 + [1651571821.028259][3803:3808] CHIP:TOO: fabricIndex: 1 + [1651571821.028292][3803:3808] CHIP:TOO: } + disabled: true + + - label: + "Read the Fabrics List from DUT and get the FabricDescriptorStruct for + which FabricIndex = fabric-id field from the operational certificate" + verification: | + ./chip-tool operationalcredentials read fabrics 1 0 --fabric-filtered 0 + + [1651572032.170920][3815:3820] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 2018783041 + [1651572032.171031][3815:3820] CHIP:TOO: Fabrics: 2 entries + [1651572032.171179][3815:3820] CHIP:TOO: [1]: { + [1651572032.171223][3815:3820] CHIP:TOO: RootPublicKey: 0412894491026CDACAC117D232D252EF827691D378BCCC9E8E717E6C70B3D36E4C5430FDF26B783EC579506D3E748BABFBC6D400302C72CD5BD40B152AA303724B + [1651572032.171262][3815:3820] CHIP:TOO: VendorId: 65521 + [1651572032.171296][3815:3820] CHIP:TOO: FabricId: 1 + [1651572032.171328][3815:3820] CHIP:TOO: NodeId: 1 + [1651572032.171360][3815:3820] CHIP:TOO: Label: NodeOpeCredits1 + [1651572032.171393][3815:3820] CHIP:TOO: FabricIndex: 1 + [1651572032.171427][3815:3820] CHIP:TOO: } + [1651572032.171472][3815:3820] CHIP:TOO: [2]: { + [1651572032.171511][3815:3820] CHIP:TOO: RootPublicKey: 040983D9AC57DBF8DA04F818B1A15B2BD2821AD2BA1807099EAE1A52C62B404767972D4D7AB6B583395769881A666DCA8776EBC662EA1DE19B1DDDD9306A5DCB91 + [1651572032.171547][3815:3820] CHIP:TOO: VendorId: 65521 + [1651572032.171579][3815:3820] CHIP:TOO: FabricId: 1 + [1651572032.171610][3815:3820] CHIP:TOO: NodeId: 2 + [1651572032.171641][3815:3820] CHIP:TOO: Label: + [1651572032.171673][3815:3820] CHIP:TOO: FabricIndex: 2 + [1651572032.171705][3815:3820] CHIP:TOO: } + disabled: true + + - label: "Read the TrustedRootCertificates list from DUT" + verification: | + "./chip-tool operationalcredentials read trusted-root-certificates 1 0 + + [1651570587.562845][3714:3719] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0004 DataVersion: 2018783037 + [1651570587.562960][3714:3719] CHIP:TOO: TrustedRootCertificates: 2 entries + [1651570587.565701][3714:3719] CHIP:TOO: [1]: Elided value too large of size 231 + [1651570587.565758][3714:3719] CHIP:TOO: [2]: Elided value too large of size 231" + disabled: true + + - label: + 'TH sends UpdateFabricLabel command with "Node Ope Credits 1" as Label + field to DUT' + verification: | + ./chip-tool operationalcredentials update-fabric-label 2 1 0 + + [1650455515.088785][4397:4402] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1650455515.088888][4397:4402] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 + [1650455515.089107][4397:4402] CHIP:TOO: NOCResponse: { + [1650455515.089208][4397:4402] CHIP:TOO: statusCode: 0 + [1650455515.089268][4397:4402] CHIP:TOO: fabricIndex: 1 + [1650455515.089326][4397:4402] CHIP:TOO: } + disabled: true + + - label: + "Start the commissioning process DUT by TH2 on a second Fabric Repeat + steps 3 to 38 for TH2 For UpdateFabricLabel command set the label + value as 'Node Ope Credits 2' Save RCAC certificate as + Root_CA_Certificate_Original_TH2" + verification: | + ./chip-tool operationalcredentials update-fabric-label NodeOpeCredits2 2 0 + + [1651574223.789186][4176:4181] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1651574223.789322][4176:4181] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 + [1651574223.789490][4176:4181] CHIP:TOO: NOCResponse: { + [1651574223.789565][4176:4181] CHIP:TOO: statusCode: 0 + [1651574223.789622][4176:4181] CHIP:TOO: fabricIndex: 2 + [1651574223.789681][4176:4181] CHIP:TOO: } + disabled: true + + - label: "Read the TrustedRootCertificates list from DUT" + verification: | + ./chip-tool operationalcredentials read trusted-root-certificates 2 0 + + [1651574260.271930][4183:4188] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0004 DataVersion: 2018783045 + [1651574260.272108][4183:4188] CHIP:TOO: TrustedRootCertificates: 2 entries + [1651574260.275506][4183:4188] CHIP:TOO: [1]: Elided value too large of size 231 + [1651574260.275672][4183:4188] CHIP:TOO: [2]: Elided value too large of size 231 + disabled: true + + - label: + "TH2 sends UpdateFabricLabel command with 'Node Ope Credits 1' as + Label field to DUT" + verification: | + ./chip-tool operationalcredentials update-fabric-label NodeOpeCredits1 2 0 + + [1651574185.259939][4167:4172] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1651574185.260038][4167:4172] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 + [1651574185.260186][4167:4172] CHIP:TOO: NOCResponse: { + [1651574185.260394][4167:4172] CHIP:TOO: statusCode: 10 + [1651574185.260464][4167:4172] CHIP:TOO: } + disabled: true + + - label: "Read the Fabrics List from DUT" + verification: | + ./chip-tool operationalcredentials read fabrics 1 0 + + [1651239584.030782][2559:2564] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 693340809 + [1651239584.032687][2559:2564] CHIP:TOO: Fabrics: 1 entries + [1651239584.033091][2559:2564] CHIP:TOO: [1]: { + [1651239584.033165][2559:2564] CHIP:TOO: RootPublicKey: 048661B0C0D119C7636D1ADC7EBE1D26A374FFA6C944F7457DF1DDD1163677D4D00AF9FF1A620E73066F326118124D7C2521CFF2B4EDE69E87AF364D1CAD1D2C0A + [1651239584.033207][2559:2564] CHIP:TOO: VendorId: 65521 + [1651239584.033240][2559:2564] CHIP:TOO: FabricId: 1 + [1651239584.033272][2559:2564] CHIP:TOO: NodeId: 1 + [1651239584.033304][2559:2564] CHIP:TOO: Label: + [1651239584.033336][2559:2564] CHIP:TOO: FabricIndex: 1 + [1651239584.033370][2559:2564] CHIP:TOO: } + disabled: true + + - label: + "Read the Fabrics List from DUT and get the FabricDescriptorStruct for + which FabricIndex = fabric-id field from the operational certificate" + verification: | + ./chip-tool operationalcredentials read fabrics 2 0 --fabric-filtered 0 + + [1651575635.120166][4259:4264] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 2018783045 + [1651575635.120365][4259:4264] CHIP:TOO: Fabrics: 2 entries + [1651575635.120654][4259:4264] CHIP:TOO: [1]: { + [1651575635.120726][4259:4264] CHIP:TOO: RootPublicKey: 0412894491026CDACAC117D232D252EF827691D378BCCC9E8E717E6C70B3D36E4C5430FDF26B783EC579506D3E748BABFBC6D400302C72CD5BD40B152AA303724B + [1651575635.120789][4259:4264] CHIP:TOO: VendorId: 65521 + [1651575635.120844][4259:4264] CHIP:TOO: FabricId: 1 + [1651575635.120896][4259:4264] CHIP:TOO: NodeId: 1 + [1651575635.120948][4259:4264] CHIP:TOO: Label: NodeOpeCredits1 + [1651575635.121002][4259:4264] CHIP:TOO: FabricIndex: 1 + [1651575635.121057][4259:4264] CHIP:TOO: } + [1651575635.121134][4259:4264] CHIP:TOO: [2]: { + [1651575635.121224][4259:4264] CHIP:TOO: RootPublicKey: 040983D9AC57DBF8DA04F818B1A15B2BD2821AD2BA1807099EAE1A52C62B404767972D4D7AB6B583395769881A666DCA8776EBC662EA1DE19B1DDDD9306A5DCB91 + [1651575635.121287][4259:4264] CHIP:TOO: VendorId: 65521 + [1651575635.121341][4259:4264] CHIP:TOO: FabricId: 1 + [1651575635.121394][4259:4264] CHIP:TOO: NodeId: 2 + [1651575635.121446][4259:4264] CHIP:TOO: Label: NodeOpeCredits2 + [1651575635.121499][4259:4264] CHIP:TOO: FabricIndex: 2 + [1651575635.121552][4259:4264] CHIP:TOO: } + disabled: true + + - label: + "From TH2 send RemoveFabric command with Fabric Index as + FabricIndex_Test + 5 (Invalid Fabric Index)to DUT" + verification: | + ./chip-tool operationalcredentials remove-fabric 25 1 0 + + CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1646390608.860327][6336:6341] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 + [1646390608.860465][6336:6341] CHIP:TOO: NOCResponse: { + [1646390608.860548][6336:6341] CHIP:TOO: statusCode: 11 + [1646390608.860611][6336:6341] CHIP:TOO: } + [1646390608.860695][6336:6341] CHIP:DMG: ICR moving to [AwaitingDe] + [1646390608.860801][6336:6341] CHIP:EM: Sending Standalone Ack for MessageCounter:1477607 on exchange 51257i + disabled: true + + - label: + "From TH2 sends RemoveFabric command with Fabric Index as + FabricIndex_Test (Valid Fabric Index)to DUT" + verification: | + ./chip-tool operationalcredentials remove-fabric 1 1 0 + + CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 + CHIP:TOO: NOCResponse: { + CHIP:TOO: statusCode: 0 + CHIP:TOO: fabricIndex: 2 + CHIP:TOO: } + CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true + + - label: + "From TH2 send RemoveTrustedRootCertificate command with certificate + value as Root_CA_Certificate_Original_TH2 to DUT" + verification: | + Not Verifiable + disabled: true + + - label: "From TH Read the TrustedRootCertificates list from DUT." + verification: | + ./chip-tool operationalcredentials read trusted-root-certificates 2 0 + + [1651577039.219545][4506:4511] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0004 DataVersion: 2998576972 + [1651577039.219645][4506:4511] CHIP:TOO: TrustedRootCertificates: 2 entries + [1651577039.219727][4506:4511] CHIP:TOO: [1]: Elided value too large of size 231 + [1651577039.219771][4506:4511] CHIP:TOO: [2]: Elided value too large of size 231 + disabled: true + + - label: "From TH Read the Fabrics list from DUT." + verification: | + ./chip-tool operationalcredentials read fabrics 2 0 + + [1651577163.247975][4519:4524] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 2998576972 + [1651577163.248161][4519:4524] CHIP:TOO: Fabrics: 1 entries + [1651577163.248349][4519:4524] CHIP:TOO: [1]: { + [1651577163.248425][4519:4524] CHIP:TOO: RootPublicKey: 040983D9AC57DBF8DA04F818B1A15B2BD2821AD2BA1807099EAE1A52C62B404767972D4D7AB6B583395769881A666DCA8776EBC662EA1DE19B1DDDD9306A5DCB91 + [1651577163.248489][4519:4524] CHIP:TOO: VendorId: 65521 + [1651577163.248545][4519:4524] CHIP:TOO: FabricId: 1 + [1651577163.248599][4519:4524] CHIP:TOO: NodeId: 2 + [1651577163.248653][4519:4524] CHIP:TOO: Label: + [1651577163.248706][4519:4524] CHIP:TOO: FabricIndex: 2 + [1651577163.248763][4519:4524] CHIP:TOO: } + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DM_3_2.yaml index 7e3051f784a390..aa9eab9a5b1ed0 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_3_2.yaml @@ -13,7 +13,9 @@ # 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: 10.3.2. [TC-DM-3.2] Network Commissioning Commands [DUT - Commissionee] +name: + 10.3.2. [TC-DM-3.2] Attribute-CurrentFabricIndex validation + [DUT-Commissionee] config: nodeId: 0x12344321 @@ -21,37 +23,139 @@ config: endpoint: 0 tests: + - label: "Factory Reset DUT" + verification: | + + disabled: true + - label: - "if PICS_WIFI) OR (PICS_THREAD then DUT issues a ScanNetworks command" + "Commission DUT to TH1s Fabric When DUT sends NOC response save + fabricindex as fabindex1" verification: | - ./chip-tool networkcommissioning scan-networks null 0 1 0 + ./chip-tool operationalcredentials read current-fabric-index 1 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0005 DataVersion: 2445178920 + CHIP:TOO: CurrentFabricIndex: 1 + CHIP:EM: Sending Standalone Ack for MessageCounter:7141893 on exchange 26909i" disabled: true - - label: "if (PICS_WIFI) then DUT issues an AddOrUpdateWiFiNetwork command" + - label: "Save TH1s Fabric ID as FabricID1" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning add-or-update-wi-fi-network GRLPrivate_EXT matter123 0 1 0 + Take the CurrentFabricIndex as fabindex1 disabled: true - label: - "if (PICS_THREAD) then DUT issues an AddOrUpdateThreadNetwork command" + "Commission DUT to TH2s Fabric When DUT sends NOC response save + fabricindex as fabindex2" + verification: | + ./chip-tool operationalcredentials read current-fabric-index 2 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0005 DataVersion: 2445178920 + CHIP:TOO: CurrentFabricIndex: 2 + CHIP:EM: Sending Standalone Ack for MessageCounter:8900122 on exchange 26519i + disabled: true + + - label: "Save TH2s Fabric ID as FabricID2" + verification: | + Take the CurrentFabricIndex as fabindex2 + disabled: true + + - label: "From TH1 read the CurrentFabricIndex" verification: | - ./chip-tool networkcommissioning add-or-update-thread-network 1111161622222211 0 1 0 + ./chip-tool operationalcredentials read current-fabric-index 1 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0005 DataVersion: 2445178920 + CHIP:TOO: CurrentFabricIndex: 1 + CHIP:EM: Sending Standalone Ack for MessageCounter:7141893 on exchange 26909i disabled: true - label: - "if PICS_WIFI) OR (PICS_THREAD then DUT issues a RemoveNetwork command" + "From TH1 read the NOCs List attribute having entry index 0 and entry + index 1" verification: | - ./chip-tool networkcommissioning remove-network 1111161622222211 0 1 0 + ./chip-tool operationalcredentials read nocs 1 0 + + [1651577468.074462][4512:4517] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 2998576972 + [1651577468.074533][4512:4517] CHIP:TOO: NOCs: 1 entries + [1651577468.074596][4512:4517] CHIP:TOO: [1]: { + [1651577468.074626][4512:4517] CHIP:TOO: Noc: Elided value too large of size 241 + [1651577468.074652][4512:4517] CHIP:TOO: Icac: Elided value too large of size 231 + [1651577468.074676][4512:4517] CHIP:TOO: FabricIndex: 1 + [1651577468.074699][4512:4517] CHIP:TOO: } disabled: true - - label: "DUT issues a ConnectNetwork command" + - label: "Read NOCStruct values from entry at index 0" verification: | - ./chip-tool networkcommissioning connect-network 1111161622222211 0 1 0 + ./chip-tool operationalcredentials read nocs 1 0 + + [1651577468.074462][4512:4517] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 2998576972 + [1651577468.074533][4512:4517] CHIP:TOO: NOCs: 1 entries + [1651577468.074596][4512:4517] CHIP:TOO: [1]: { + [1651577468.074626][4512:4517] CHIP:TOO: Noc: Elided value too large of size 241 + [1651577468.074652][4512:4517] CHIP:TOO: Icac: Elided value too large of size 231 + [1651577468.074676][4512:4517] CHIP:TOO: FabricIndex: 1 + [1651577468.074699][4512:4517] CHIP:TOO: } disabled: true - label: - "if PICS_WIFI) OR (PICS_THREAD then DUT issues a ReorderNetwork - command" + "Read the FabricDescriptorStruct from Fabrics list for FabricID = + FabricID1 from DUT" + verification: | + ./chip-tool operationalcredentials read fabrics 1 0 + + [1651578337.008417][4553:4558] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 2998576972 + [1651578337.008501][4553:4558] CHIP:TOO: Fabrics: 1 entries + [1651578337.008588][4553:4558] CHIP:TOO: [1]: { + [1651578337.008787][4553:4558] CHIP:TOO: RootPublicKey: 04807D3A8F50C29C29D10352FEC75DC2E9965E86A64FEBDCF4CF671C8A77A3EBA96AC62B4615BA857297AE9D22656BC1076457E2CC46C5E864F6D03B8AC811F938 + [1651578337.008826][4553:4558] CHIP:TOO: VendorId: 65521 + [1651578337.008849][4553:4558] CHIP:TOO: FabricId: 1 + [1651578337.008873][4553:4558] CHIP:TOO: NodeId: 1 + [1651578337.008896][4553:4558] CHIP:TOO: Label: + [1651578337.008918][4553:4558] CHIP:TOO: FabricIndex: 1 + [1651578337.008941][4553:4558] CHIP:TOO: } + disabled: true + + - label: "From TH2 read the CurrentFabricIndex" + verification: | + ./chip-tool operationalcredentials read current-fabric-index 2 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0005 DataVersion: 2445178920 + CHIP:TOO: CurrentFabricIndex: 2 + CHIP:EM: Sending Standalone Ack for MessageCounter:8900122 on exchange 26519i + disabled: true + + - label: "From TH2 read the NOCs List attribute having two entries" + verification: | + ./chip-tool operationalcredentials read nocs 2 0 + + [1651578024.197989][4573:4578] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 2998576972 + [1651578024.198153][4573:4578] CHIP:TOO: NOCs: 1 entries + [1651578024.198294][4573:4578] CHIP:TOO: [1]: { + [1651578024.198363][4573:4578] CHIP:TOO: Noc: Elided value too large of size 241 + [1651578024.198425][4573:4578] CHIP:TOO: Icac: Elided value too large of size 231 + [1651578024.198485][4573:4578] CHIP:TOO: FabricIndex: 2 + [1651578024.198542][4573:4578] CHIP:TOO: } + disabled: true + + - label: "Read NOCStruct values from entry at index 1" + verification: | + ./chip-tool operationalcredentials read nocs 2 0 + + [1651578024.197989][4573:4578] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 2998576972 + [1651578024.198153][4573:4578] CHIP:TOO: NOCs: 1 entries + [1651578024.198294][4573:4578] CHIP:TOO: [1]: { + [1651578024.198363][4573:4578] CHIP:TOO: Noc: Elided value too large of size 241 + [1651578024.198425][4573:4578] CHIP:TOO: Icac: Elided value too large of size 231 + [1651578024.198485][4573:4578] CHIP:TOO: FabricIndex: 2 + [1651578024.198542][4573:4578] CHIP:TOO: } + disabled: true + + - label: "From TH2 Read the TrustedRootCertificates list from DUT" verification: | + ./chip-tool operationalcredentials read trusted-root-certificates 2 0 + [1651578083.266945][4581:4586] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0004 DataVersion: 2998576972 + [1651578083.267107][4581:4586] CHIP:TOO: TrustedRootCertificates: 2 entries + [1651578083.267238][4581:4586] CHIP:TOO: [1]: Elided value too large of size 231 + [1651578083.267311][4581:4586] CHIP:TOO: [2]: Elided value too large of size 231 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_3_3.yaml b/src/app/tests/suites/certification/Test_TC_DM_3_3.yaml new file mode 100644 index 00000000000000..f3be978230a6aa --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DM_3_3.yaml @@ -0,0 +1,259 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 10.3.3. [TC-DM-3.3] Attribute-NOCs, Commands [DUT-Commissioner] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: + "Factory Reset DUT (to ensure NOC list is empty at the beginning of + the following steps)" + verification: | + + disabled: true + + - label: "Start the commissioning process of TH1 with DUT" + verification: | + + disabled: true + + - label: + "TH saves the following values as: NOCValue as nocvalue1 ICACValue as + icacvalue1 IpkValue as ipkvalue1 CaseAdminNode as caseadmin1 + AdminVendorId as adminvendorid1" + verification: | + Not Verifiable + disabled: true + + - label: "DUT reads the NOCs (NOCStruct) list from TH1" + verification: | + ./chip-tool operationalcredentials read nocs 1 0 + + [1651578833.213718][4404:4404] CHIP:IM: Received Read request + [1651578833.213786][4404:4404] CHIP:DMG: ReadRequestMessage = + [1651578833.213824][4404:4404] CHIP:DMG: { + [1651578833.213855][4404:4404] CHIP:DMG: AttributePathIBs = + [1651578833.213893][4404:4404] CHIP:DMG: [ + [1651578833.213927][4404:4404] CHIP:DMG: AttributePathIB = + [1651578833.213977][4404:4404] CHIP:DMG: { + [1651578833.214018][4404:4404] CHIP:DMG: Endpoint = 0x0, + [1651578833.214064][4404:4404] CHIP:DMG: Cluster = 0x3e, + [1651578833.214110][4404:4404] CHIP:DMG: Attribute = 0x0000_0000, + [1651578833.214152][4404:4404] CHIP:DMG: } + [1651578833.214196][4404:4404] CHIP:DMG: + [1651578833.214235][4404:4404] CHIP:DMG: ], + [1651578833.214275][4404:4404] CHIP:DMG: + [1651578833.214313][4404:4404] CHIP:DMG: isFabricFiltered = true, + [1651578833.214350][4404:4404] CHIP:DMG: InteractionModelRevision = 1 + [1651578833.214385][4404:4404] CHIP:DMG: }, + disabled: true + + - label: + "Extract the following FabricDescriptorStruct values from TH1 + RootPublicKey VendorID FabricID NodeID Label" + verification: | + "./chip-tool operationalcredentials read fabrics 1 0 --fabric-filtered 0 + + [1651572032.170920][3815:3820] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 2018783041 + [1651572032.171031][3815:3820] CHIP:TOO: Fabrics: 2 entries + [1651572032.171179][3815:3820] CHIP:TOO: [1]: { + [1651572032.171223][3815:3820] CHIP:TOO: RootPublicKey: 0412894491026CDACAC117D232D252EF827691D378BCCC9E8E717E6C70B3D36E4C5430FDF26B783EC579506D3E748BABFBC6D400302C72CD5BD40B152AA303724B + [1651572032.171262][3815:3820] CHIP:TOO: VendorId: 65521 + [1651572032.171296][3815:3820] CHIP:TOO: FabricId: 1 + [1651572032.171328][3815:3820] CHIP:TOO: NodeId: 1 + [1651572032.171360][3815:3820] CHIP:TOO: Label: NodeOpeCredits1 + [1651572032.171393][3815:3820] CHIP:TOO: FabricIndex: 1 + [1651572032.171427][3815:3820] CHIP:TOO: } + [1651572032.171472][3815:3820] CHIP:TOO: [2]: { + [1651572032.171511][3815:3820] CHIP:TOO: RootPublicKey: 040983D9AC57DBF8DA04F818B1A15B2BD2821AD2BA1807099EAE1A52C62B404767972D4D7AB6B583395769881A666DCA8776EBC662EA1DE19B1DDDD9306A5DCB91 + [1651572032.171547][3815:3820] CHIP:TOO: VendorId: 65521 + [1651572032.171579][3815:3820] CHIP:TOO: FabricId: 1 + [1651572032.171610][3815:3820] CHIP:TOO: NodeId: 2 + [1651572032.171641][3815:3820] CHIP:TOO: Label: + [1651572032.171673][3815:3820] CHIP:TOO: FabricIndex: 2 + [1651572032.171705][3815:3820] CHIP:TOO: }" + disabled: true + + - label: "DUT sends UpdateNOC to TH1" + verification: | + Not Verifiable + disabled: true + + - label: "DUT sends UpdateFabricLabel to TH1" + verification: | + ./chip-tool operationalcredentials update-fabric-label node1 1 0 + + [1651579074.158732][4404:4404] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:2322191 on exchange 64215r + [1651579074.158787][4404:4404] CHIP:EM: Handling via exchange: 64215r, Delegate: 0xaaaaae69a088 + [1651579074.158905][4404:4404] CHIP:DMG: InvokeRequestMessage = + [1651579074.158945][4404:4404] CHIP:DMG: { + [1651579074.158979][4404:4404] CHIP:DMG: suppressResponse = false, + [1651579074.159019][4404:4404] CHIP:DMG: timedRequest = false, + [1651579074.159055][4404:4404] CHIP:DMG: InvokeRequests = + [1651579074.159100][4404:4404] CHIP:DMG: [ + [1651579074.159135][4404:4404] CHIP:DMG: CommandDataIB = + [1651579074.159207][4404:4404] CHIP:DMG: { + [1651579074.159249][4404:4404] CHIP:DMG: CommandPathIB = + [1651579074.159289][4404:4404] CHIP:DMG: { + [1651579074.159335][4404:4404] CHIP:DMG: EndpointId = 0x0, + [1651579074.159384][4404:4404] CHIP:DMG: ClusterId = 0x3e, + [1651579074.159433][4404:4404] CHIP:DMG: CommandId = 0x9, + [1651579074.159477][4404:4404] CHIP:DMG: }, + [1651579074.159525][4404:4404] CHIP:DMG: + [1651579074.159563][4404:4404] CHIP:DMG: CommandData = + [1651579074.159608][4404:4404] CHIP:DMG: { + [1651579074.159656][4404:4404] CHIP:DMG: 0x0 = "node1", + [1651579074.159707][4404:4404] CHIP:DMG: }, + [1651579074.159748][4404:4404] CHIP:DMG: }, + [1651579074.159793][4404:4404] CHIP:DMG: + [1651579074.159829][4404:4404] CHIP:DMG: ], + [1651579074.159872][4404:4404] CHIP:DMG: + [1651579074.159907][4404:4404] CHIP:DMG: InteractionModelRevision = 1 + [1651579074.159947][4404:4404] CHIP:DMG: }, + [1651579074.160036][4404:4404] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003E e=0 p=a + [1651579074.160085][4404:4404] CHIP:DMG: AccessControl: allowed + disabled: true + + - label: "DUT reads SupportedFabrics from TH1" + verification: | + ./chip-tool operationalcredentials read supported-fabrics 1 0 + [1651579155.243425][4404:4404] CHIP:IM: Received Read request + [1651579155.243484][4404:4404] CHIP:DMG: ReadRequestMessage = + [1651579155.243516][4404:4404] CHIP:DMG: { + [1651579155.243542][4404:4404] CHIP:DMG: AttributePathIBs = + [1651579155.243575][4404:4404] CHIP:DMG: [ + [1651579155.243604][4404:4404] CHIP:DMG: AttributePathIB = + [1651579155.243648][4404:4404] CHIP:DMG: { + [1651579155.243683][4404:4404] CHIP:DMG: Endpoint = 0x0, + [1651579155.243724][4404:4404] CHIP:DMG: Cluster = 0x3e, + [1651579155.243762][4404:4404] CHIP:DMG: Attribute = 0x0000_0002, + [1651579155.243798][4404:4404] CHIP:DMG: } + [1651579155.243834][4404:4404] CHIP:DMG: + [1651579155.243867][4404:4404] CHIP:DMG: ], + [1651579155.243901][4404:4404] CHIP:DMG: + [1651579155.243933][4404:4404] CHIP:DMG: isFabricFiltered = true, + [1651579155.243964][4404:4404] CHIP:DMG: InteractionModelRevision = 1 + [1651579155.243992][4404:4404] CHIP:DMG: }, + disabled: true + + - label: "DUT reads CommissionedFabrics attribute from TH1" + verification: | + ./chip-tool operationalcredentials read commissioned-fabrics 1 0 + [1651579198.627299][4404:4404] CHIP:IM: Received Read request + [1651579198.627363][4404:4404] CHIP:DMG: ReadRequestMessage = + [1651579198.627398][4404:4404] CHIP:DMG: { + [1651579198.627427][4404:4404] CHIP:DMG: AttributePathIBs = + [1651579198.627462][4404:4404] CHIP:DMG: [ + [1651579198.627494][4404:4404] CHIP:DMG: AttributePathIB = + [1651579198.627535][4404:4404] CHIP:DMG: { + [1651579198.627573][4404:4404] CHIP:DMG: Endpoint = 0x0, + [1651579198.627614][4404:4404] CHIP:DMG: Cluster = 0x3e, + [1651579198.627657][4404:4404] CHIP:DMG: Attribute = 0x0000_0003, + [1651579198.627696][4404:4404] CHIP:DMG: } + [1651579198.627734][4404:4404] CHIP:DMG: + [1651579198.627769][4404:4404] CHIP:DMG: ], + [1651579198.627807][4404:4404] CHIP:DMG: + [1651579198.627842][4404:4404] CHIP:DMG: isFabricFiltered = true, + [1651579198.627875][4404:4404] CHIP:DMG: InteractionModelRevision = 1 + [1651579198.627906][4404:4404] CHIP:DMG: }, + disabled: true + + - label: "DUT reads TrustedRootCertificates attribute from TH1" + verification: | + ./chip-tool operationalcredentials read trusted-root-certificates 1 0 + [1651579224.947817][4404:4404] CHIP:IM: Received Read request + [1651579224.947879][4404:4404] CHIP:DMG: ReadRequestMessage = + [1651579224.947911][4404:4404] CHIP:DMG: { + [1651579224.947937][4404:4404] CHIP:DMG: AttributePathIBs = + [1651579224.947970][4404:4404] CHIP:DMG: [ + [1651579224.947999][4404:4404] CHIP:DMG: AttributePathIB = + [1651579224.948067][4404:4404] CHIP:DMG: { + [1651579224.948108][4404:4404] CHIP:DMG: Endpoint = 0x0, + [1651579224.948150][4404:4404] CHIP:DMG: Cluster = 0x3e, + [1651579224.948195][4404:4404] CHIP:DMG: Attribute = 0x0000_0004, + [1651579224.948236][4404:4404] CHIP:DMG: } + [1651579224.948274][4404:4404] CHIP:DMG: + [1651579224.948308][4404:4404] CHIP:DMG: ], + [1651579224.948343][4404:4404] CHIP:DMG: + [1651579224.948376][4404:4404] CHIP:DMG: isFabricFiltered = true, + [1651579224.948407][4404:4404] CHIP:DMG: InteractionModelRevision = 1 + [1651579224.948438][4404:4404] CHIP:DMG: }, + disabled: true + + - label: "DUT reads CurrentFabricIndex attribute from TH1" + verification: | + ./chip-tool operationalcredentials read current-fabric-index 1 0 + [1651579270.634540][4404:4404] CHIP:DMG: ReadRequestMessage = + [1651579270.634587][4404:4404] CHIP:DMG: { + [1651579270.634627][4404:4404] CHIP:DMG: AttributePathIBs = + [1651579270.634675][4404:4404] CHIP:DMG: [ + [1651579270.634719][4404:4404] CHIP:DMG: AttributePathIB = + [1651579270.634774][4404:4404] CHIP:DMG: { + [1651579270.634826][4404:4404] CHIP:DMG: Endpoint = 0x0, + [1651579270.634883][4404:4404] CHIP:DMG: Cluster = 0x3e, + [1651579270.634946][4404:4404] CHIP:DMG: Attribute = 0x0000_0005, + [1651579270.635001][4404:4404] CHIP:DMG: } + [1651579270.635056][4404:4404] CHIP:DMG: + [1651579270.635105][4404:4404] CHIP:DMG: ], + [1651579270.635188][4404:4404] CHIP:DMG: + [1651579270.635239][4404:4404] CHIP:DMG: isFabricFiltered = true, + [1651579270.635286][4404:4404] CHIP:DMG: InteractionModelRevision = 1 + [1651579270.635329][4404:4404] CHIP:DMG: }, + disabled: true + + - label: "DUT sends RemoveFabric command to TH1" + verification: | + ./chip-tool operationalcredentials remove-fabric 1 1 0 + + + [1651579316.916807][4404:4404] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:13617524 on exchange 52666r + [1651579316.916893][4404:4404] CHIP:EM: Handling via exchange: 52666r, Delegate: 0xaaaaae69a088 + [1651579316.917074][4404:4404] CHIP:DMG: InvokeRequestMessage = + [1651579316.917139][4404:4404] CHIP:DMG: { + [1651579316.917194][4404:4404] CHIP:DMG: suppressResponse = false, + [1651579316.917258][4404:4404] CHIP:DMG: timedRequest = false, + [1651579316.917317][4404:4404] CHIP:DMG: InvokeRequests = + [1651579316.917390][4404:4404] CHIP:DMG: [ + [1651579316.917449][4404:4404] CHIP:DMG: CommandDataIB = + [1651579316.917520][4404:4404] CHIP:DMG: { + [1651579316.917583][4404:4404] CHIP:DMG: CommandPathIB = + [1651579316.917656][4404:4404] CHIP:DMG: { + [1651579316.917731][4404:4404] CHIP:DMG: EndpointId = 0x0, + [1651579316.917813][4404:4404] CHIP:DMG: ClusterId = 0x3e, + [1651579316.917892][4404:4404] CHIP:DMG: CommandId = 0xa, + [1651579316.917965][4404:4404] CHIP:DMG: }, + [1651579316.918043][4404:4404] CHIP:DMG: + [1651579316.918111][4404:4404] CHIP:DMG: CommandData = + [1651579316.918185][4404:4404] CHIP:DMG: { + [1651579316.918261][4404:4404] CHIP:DMG: 0x0 = 1, + [1651579316.918339][4404:4404] CHIP:DMG: }, + [1651579316.918408][4404:4404] CHIP:DMG: }, + [1651579316.918484][4404:4404] CHIP:DMG: + [1651579316.918541][4404:4404] CHIP:DMG: ], + [1651579316.918612][4404:4404] CHIP:DMG: + [1651579316.918669][4404:4404] CHIP:DMG: InteractionModelRevision = 1 + [1651579316.918726][4404:4404] CHIP:DMG: }, + [1651579316.918863][4404:4404] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003E e=0 p=a + [1651579316.918939][4404:4404] CHIP:DMG: AccessControl: allowed + disabled: true + + - label: "Commission TH1 with DUT" + verification: | + + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_3_4.yaml b/src/app/tests/suites/certification/Test_TC_DM_3_4.yaml index ddbf2c34ff2b88..d7d3890ef1029b 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_3_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_3_4.yaml @@ -13,7 +13,7 @@ # 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: 3.3.4. [TC-DM-3.4] Network Commissioning Attributes [DUT - Commissioner] +name: 10.3.4. [TC-DM-3.4] UpdateNOC-Error Condition [DUT-Commissionee] config: nodeId: 0x12344321 @@ -21,12 +21,74 @@ config: endpoint: 0 tests: - - label: "if (PICS_WIFI) DUT reads MaxNetworks attribute on TH" + - label: + "Modify the contents of NOC_Tests Subject and save the certificate TH1 + sends UpdateNOC Command with NOC_Test to DUT" verification: | - ./chip-tool networkcommissioning read max-networks 1 0 + Not Verifiable disabled: true - - label: "if (PICS_WIFI) DUT reads Networks attribute on TH" + - label: + "From TH1 Read the NOCs (NOCStruct) list from DUT Extract the NOC from + NOCStruct" verification: | - ./chip-tool networkcommissioning read networks 1 0 + Not Verifiable + disabled: true + + - label: + "Modify the public key to a value different from Key 1 in the NOC_Test + and save the certificate TH1 sends UpdateNOC Command with NOC_Test to + DUT" + verification: | + Not Verifiable + disabled: true + + - label: + "Modify the Node Operational ID in the NOC_Test and save the + certificate TH1 sends UpdateNOC Command with NOC_Test to DUT" + verification: | + Not Verifiable + disabled: true + + - label: + "Extract a NOC that is not in the TrustedRootCertificates of DUT and + save the certificate as NOC_Test TH1 sends UpdateNOC Command with + NOC_Test to DUT" + verification: | + Not Verifiable + disabled: true + + - label: + "Modify the NOC_Test certificate with corrupt CSR value and save the + certificate TH1 sends UpdateNOC Command with NOC_Test to DUT" + verification: | + Not Verifiable + disabled: true + + - label: + "Start the Commissioning process of TH on DUT TH1 sends ADDNOC Command + with missing CaseAdminNode field to DUT" + verification: | + Not Verifiable + disabled: true + + - label: + "Start the Commissioning process of TH on DUT TH1 sends ADDNOC Command + with missing IpkValue field to DUT" + verification: | + Not Verifiable + disabled: true + + - label: + "Start the Commissioning process of TH on DUT TH1 sends ADDNOC Command + with valid fields to DUT" + verification: | + Not Verifiable + disabled: true + + - label: + "TH1 sends ADDNOC Command with valid fields same as previous step to + DUT" + verification: | + Not Verifiable disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_1.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_1.yaml index 415a2184425a42..c51a3503268236 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_1.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.1. [TC-DM-4.1][WiFi] Verification for attributes check [DUT - + 10.4.1. [TC-DM-4.1] [WiFi] Verification for attributes check [DUT - Commissionee] config: @@ -28,16 +28,16 @@ tests: disabled: true - - label: "TH1 is commissioned with DUT" + - label: "Commission TH and DUT over BLE to setup the Wi-Fi" verification: | disabled: true - label: - "TH1 reads Descriptor Cluster from the DUT with EP0 TH1 reads - ServerList from the DUT" + "TH reads Descriptor Cluster from the DUT with EP0 TH reads ServerList + from the DUT" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool descriptor read server-list 1 0 + ./chip-tool descriptor read server-list 1 0 [1646214614.113925][6900:6905] CHIP:DMG: SuppressResponse = true, [1646214614.113950][6900:6905] CHIP:DMG: InteractionModelRevision = 1 @@ -72,7 +72,7 @@ tests: [1646214614.116434][6900:6905] CHIP:EM: Sending Standalone Ack for MessageCounter:1857540 on exchange 31492i disabled: true - - label: "TH1 reads FeatureMap attribute from the DUT" + - label: "TH reads FeatureMap attribute from the DUT" verification: | ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read feature-map 1 0 @@ -81,9 +81,9 @@ tests: [1649244936.458371][30450:30455] CHIP:EM: Sending Standalone Ack for MessageCounter:12082532 on exchange 64223i disabled: true - - label: "TH1 reads the MaxNetworks attribute from the DUT" + - label: "TH reads the MaxNetworks attribute from the DUT" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read max-networks 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read max-networks 1 0 [1646216356.472036][7021:7026] CHIP:DMG: SuppressResponse = true, [1646216356.472088][7021:7026] CHIP:DMG: InteractionModelRevision = 1 @@ -94,13 +94,13 @@ tests: disabled: true - label: - "TH1 saves the MaxNetworks attribute value as 'maxvalue' for furture - use" + "TH saves the MaxNetworks attribute value as 'MaxNetworksValue' for + future use" verification: | - + TH1 saves the MaxNetworks attribute value disabled: true - - label: "TH1 reads the Networks attribute list from the DUT" + - label: "TH reads the Networks attribute list from the DUT" verification: | ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 1 0 @@ -113,7 +113,7 @@ tests: [1649249212.073266][30681:30686] CHIP:EM: Sending Standalone Ack for MessageCounter:8988360 on exchange 58610i disabled: true - - label: "TH1 reads ScanMaxTimeSeconds attribute from the DUT" + - label: "TH reads ScanMaxTimeSeconds attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip$ sudo ./examples/chip-tool/out/debug/chip-tool networkcommissioning read scan-max-time-seconds 1 0 --paa-trust-store-path ./credentials/development/paa-root-certs @@ -122,7 +122,7 @@ tests: [1648122894.380642][8770:8775] CHIP:EM: Sending Standalone Ack for MessageCounter:12629308 on exchange 33084i disabled: true - - label: "TH1 reads ConnectMaxTimeSeconds Attribute from the DUT" + - label: "TH reads ConnectMaxTimeSeconds Attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip$ sudo ./examples/chip-tool/out/debug/chip-tool networkcommissioning read connect-max-time-seconds 1 0 --paa-trust-store-path ./credentials/development/paa-root-certs @@ -131,7 +131,7 @@ tests: [1648122935.626539][8780:8785] CHIP:EM: Sending Standalone Ack for MessageCounter:11607262 on exchange 19306i disabled: true - - label: "TH1 reads InterfaceEnabled attribute from the DUT" + - label: "TH reads InterfaceEnabled attribute from the DUT" verification: | ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read interface-enabled 1 0 @@ -140,7 +140,7 @@ tests: [1649250241.092852][30726:30731] CHIP:EM: Sending Standalone Ack for MessageCounter:3120276 on exchange 4316i disabled: true - - label: "TH1 reads LastNetworkingStatus attribute from the DUT" + - label: "TH reads LastNetworkingStatus attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip$ sudo ./examples/chip-tool/out/debug/chip-tool networkcommissioning read last-networking-status 1 0 --paa-trust-store-path ./credentials/development/paa-root-certs @@ -150,7 +150,7 @@ tests: disabled: true - label: - "TH1 reads the LastNetworkID attribute from the DUT TH1 reads the + "TH reads the LastNetworkID attribute from the DUT TH reads the Networks attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip$ sudo ./examples/chip-tool/out/debug/chip-tool networkcommissioning read last-network-id 1 0 --paa-trust-store-path ./credentials/development/paa-root-certs @@ -160,7 +160,7 @@ tests: [1648123296.959180][8824:8829] CHIP:EM: Sending Standalone Ack for MessageCounter:7786733 on exchange 2835i disabled: true - - label: "TH1 reads the LastConnectErrorValue attribute from the DUT" + - label: "TH reads the LastConnectErrorValue attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip$ sudo ./examples/chip-tool/out/debug/chip-tool networkcommissioning read last-connect-error-value 1 0 --paa-trust-store-path ./credentials/development/paa-root-certs diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_10.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_10.yaml index 4f46c00418286e..a4ad9e8e51edc7 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_10.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_10.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.10. [TC-DM-4.10][Thread] Verification for RemoveNetwork Command + 10.4.10. [TC-DM-4.10] [Thread] Verification for RemoveNetwork Command [DUT-Commissionee] config: @@ -23,7 +23,7 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: "TH sends ArmFailSafe command to the DUT" verification: | ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool generalcommissioning arm-fail-safe 900 0 62 0 @@ -37,8 +37,8 @@ tests: disabled: true - label: - "TH1 sends RemoveNetwork Command to the DUT with NetworkID argument - value as 'Userth_op' and Breadcrumb argument value as 0" + "TH sends RemoveNetwork Command to the DUT with NetworkID argument + value as 'Userth_op' and Breadcrumb argument value as 1" verification: | ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network 0119100899082022 62 0 @@ -50,7 +50,7 @@ tests: [1650391420.469902][10048:10053] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - - label: "TH1 reads MaxNetworks attribute from the DUT" + - label: "TH reads MaxNetworks attribute from the DUT" verification: | ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read max-networks 62 0 @@ -59,7 +59,7 @@ tests: [1650391430.631837][10054:10059] CHIP:EM: Sending Standalone Ack for MessageCounter:6413170 on exchange 3154i disabled: true - - label: "TH1 reads LastNetworkingStatus attribute from the DUT" + - label: "TH reads LastNetworkingStatus attribute from the DUT" verification: | ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read last-networking-status 62 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_11.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_11.yaml index c2b20008d5a334..b22a0e4502fb0b 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_11.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.11. [TC-DM-4.11][WiFi] Verification for ConnectNetwork Command + 10.4.11. [TC-DM-4.11] [WiFi] Verification for ConnectNetwork Command [DUT-Commissionee] config: @@ -23,87 +23,83 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: "TH sends ArmFailSafe command to the DUT" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool generalcommissioning arm-fail-safe 60 0 1 0 - [1650376197.742950][42857:42862] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1650376197.743013][42857:42862] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1650376197.743113][42857:42862] CHIP:TOO: ArmFailSafeResponse: { - [1650376197.743172][42857:42862] CHIP:TOO: errorCode: 0 - [1650376197.743208][42857:42862] CHIP:TOO: debugText: - [1650376197.743242][42857:42862] CHIP:TOO: } - [1650376197.743296][42857:42862] CHIP:DMG: ICR moving to [AwaitingDe] - [1650376197.743367][42857:42862] CHIP:EM: Sending Standalone Ack for MessageCounter:11807454 on exchange 55345i + [1653480530.006012][27845:27850] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 + [1653480530.006109][27845:27850] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 + [1653480530.006209][27845:27850] CHIP:TOO: ArmFailSafeResponse: { + [1653480530.006278][27845:27850] CHIP:TOO: errorCode: 0 + [1653480530.006328][27845:27850] CHIP:TOO: debugText: + [1653480530.006374][27845:27850] CHIP:TOO: } disabled: true - label: "TH1 sends AddOrUpdateWiFiNetwork command to the DUT with SSID argument value as 'Userwifi_ssid', Credentials argument value as - 'xxxxx' and Breadcrumb argument value as 0" + 'Userwifi_Credentials' and Breadcrumb argument value as 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivatewifi092010 1 0 - [1650376203.648598][42863:42868] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1650376203.648659][42863:42868] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1650376203.648761][42863:42868] CHIP:TOO: NetworkConfigResponse: { - [1650376203.648822][42863:42868] CHIP:TOO: networkingStatus: 0 - [1650376203.648860][42863:42868] CHIP:TOO: networkIndex: 0 - [1650376203.648894][42863:42868] CHIP:TOO: } - [1650376203.648948][42863:42868] CHIP:DMG: ICR moving to [AwaitingDe] - [1650376203.649015][42863:42868] CHIP:EM: Sending Standalone Ack for MessageCounter:1508553 on exchange 44250i + Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 + [1653480530.517643][27851:27856] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 + [165 + 3480530.517748][27851:27856] CHIP:TOO: NetworkConfigResponse: { + [1653480530.517808][27851:27856] CHIP:TOO: networkingStatus: 0 + [1653480530.517854][27851:27856] CHIP:TOO: networkIndex: 0 + [1653480530.517894][27851:27856] CHIP:TOO: } disabled: true - label: "TH1 reads Networks attribute from the DUT" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 1 0 - [1650376210.400416][42869:42874] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3182776035 - [1650376210.400521][42869:42874] CHIP:TOO: Networks: 1 entries - [1650376210.400580][42869:42874] CHIP:TOO: [1]: { - [1650376210.400615][42869:42874] CHIP:TOO: NetworkID: 47524C50726976617465 - [1650376210.400646][42869:42874] CHIP:TOO: Connected: FALSE - [1650376210.400677][42869:42874] CHIP:TOO: } - [1650376210.400786][42869:42874] CHIP:EM: Sending Standalone Ack for MessageCounter:3301439 on exchange 38417i + [1653480531.027668][27857:27863] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3424382863 + [1653480531.027835][27857:27863] CHIP:TOO: Networks: 1 entries + [1653480531.027946][27857:27863] CHIP:TOO: [1]: { + [1653480531.028015][27857:27863] CHIP:TOO: NetworkID: 47524C50726976617465 + [1653480531.028073][27857:27863] CHIP:TOO: Connected: TRUE + [1653480531.028128][27857:27863] CHIP:TOO: } disabled: true - - label: "TH1 saves the timestamp as CT1" + - label: + "TH saves record current wall clock time with seconds resolution as + CT1" verification: | - + TH1 saves the timestamp as CT1 disabled: true - label: - "TH1 sends ConnectNetwork command to the DUT with NetworkID argument - value as 'Userwifi_ssid1' and Breadcrumb argument value as 0" + "TH sends ConnectNetwork command to the DUT with NetworkID argument + value as 'Userwifi_ssid1' and Breadcrumb argument value as 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning connect-network hex:47524C50726976617465 1 0 - [1650376217.124606][42876:42881] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0007 - [1650376217.124707][42876:42881] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0007 - [1650376217.124870][42876:42881] CHIP:TOO: ConnectNetworkResponse: { - [1650376217.124968][42876:42881] CHIP:TOO: networkingStatus: 0 - [1650376217.125030][42876:42881] CHIP:TOO: errorValue: null - [1650376217.125087][42876:42881] CHIP:TOO: } - [1650376217.125179][42876:42881] CHIP:DMG: ICR moving to [AwaitingDe] - [1650376217.125282][42876:42881] CHIP:EM: Sending Standalone Ack for MessageCounter:7901929 on exchange 1050i + Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0007 + [1653480537.209041][27864:27869] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0007 + [1653480537.209113][27864:27869] CHIP:TOO: ConnectNetworkResponse: { + [1653480537.209154][27864:27869] CHIP:TOO: networkingStatus: 0 + [1653480537.209179][27864:27869] CHIP:TOO: errorValue: null + [1653480537.209201][27864:27869] CHIP:TOO: } + [1653480537.209240][27864:27869] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - - label: "TH1 saves the timestamp as CT2" + - label: + "TH saves record current wall clock time with seconds resolution as + CT2" verification: | - + TH1 saves the timestamp as CT2 disabled: true - - label: "TH1 reads Networks attribute from the DUT" + - label: "TH reads Networks attribute from the DUT" verification: | - https://github.com/project-chip/connectedhomeip/issues/17106 - ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 1 0 - [1650376224.551341][42882:42887] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3182776035 - [1650376224.551440][42882:42887] CHIP:TOO: Networks: 1 entries - [1650376224.551501][42882:42887] CHIP:TOO: [1]: { - [1650376224.551535][42882:42887] CHIP:TOO: NetworkID: 47524C50726976617465 - [1650376224.551565][42882:42887] CHIP:TOO: Connected: FALSE - [1650376224.551596][42882:42887] CHIP:TOO: } - [1650376224.551703][42882:42887] CHIP:EM: Sending Standalone Ack for MessageCounter:16427109 on exchange 14955i + [1653481261.622658][27982:27987] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3424382863 + [1653481261.622821][27982:27987] CHIP:TOO: Networks: 1 entries + [1653481261.622927][27982:27987] CHIP:TOO: [1]: { + [1653481261.622996][27982:27987] CHIP:TOO: NetworkID: 47524C50726976617465 + [1653481261.623056][27982:27987] CHIP:TOO: Connected: TRUE + [1653481261.623112][27982:27987] CHIP:TOO: } disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_12.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_12.yaml index 1690bd3e566c6a..21673517513655 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_12.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.12. [TC-DM-4.12][Thread]Verification for ConnectNetwork Command + 10.4.12. [TC-DM-4.12] [Thread]Verification for ConnectNetwork Command [DUT-Commissionee] config: @@ -23,7 +23,9 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: + "During the commissioning process, TH and DUT, TH sends ArmFailSafe + command to the DUT" verification: | Executed during the commissioning ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool pairing ble-thread 62 hex:0e080000000000010000000300001035060004001fffe0020801191008990820220708fd067fa7635e1066051009116253045736078899aabbccddeeff030e4f70656e686b72657069446f6e6f01021234041029282c49503302ea4536648015d1ff180c0402a0fff8 20202021 3840 @@ -37,14 +39,36 @@ tests: [1650388635.103426][9682:9687] CHIP:CTL: Successfully finished commissioning step 'ArmFailSafe' disabled: true - - label: "TH1 saves the timestamp as CT1" + - label: + "During the commissioning process, TH sends AddOrUpdateThreadNetwork + command to the DUT with OperationalDataset argument value as + 'Userth_op' and Breadcrumb argument value as 1" verification: | + Executed during the commissioning + ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool pairing ble-thread 62 hex:0e080000000000010000000300001035060004001fffe0020801191008990820220708fd067fa7635e1066051009116253045736078899aabbccddeeff030e4f70656e686b72657069446f6e6f01021234041029282c49503302ea4536648015d1ff180c0402a0fff8 20202021 3840 + [1650388629.653868][9682:9682] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_kvs + + [1650388638.775935][9682:9687] CHIP:CTL: Successfully finished commissioning step 'SendNOC' + [1650388638.775991][9682:9687] CHIP:CTL: Commissioning stage next step: 'SendNOC' -> 'ThreadNetworkSetup' + [1650388638.776048][9682:9687] CHIP:CTL: Performing next commissioning step 'ThreadNetworkSetup' + [1650388639.091089][9682:9687] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 + [1650388639.091215][9682:9687] CHIP:CTL: Received NetworkConfig response + [1650388639.091281][9682:9687] CHIP:CTL: Successfully finished commissioning step 'ThreadNetworkSetup' + [1650388639.091336][9682:9687] CHIP:CTL: Commissioning stage next step: 'ThreadNetworkSetup' -> 'ThreadNetworkEnable' + [1650388639.091393][9682:9687] CHIP:CTL: Performing next commissioning step 'ThreadNetworkEnable' disabled: true - label: - "TH1 sends ConnectNetwork command to the DUT with NetworkID argument - value as 'Userth_op' and Breadcrumb argument value as 0" + "TH saves record current wall clock time with seconds resolution as + CT1" + verification: | + TH1 saves the timestamp as CT1 + disabled: true + + - label: + "TH sends ConnectNetwork command to the DUT with NetworkID argument + value as 'Userth_op' and Breadcrumb argument value as 1" verification: | Executed during the commissioning @@ -53,12 +77,16 @@ tests: [1650388642.195614][9682:9687] CHIP:CTL: Successfully finished commissioning step 'ThreadNetworkEnable' disabled: true - - label: "TH1 saves the timestamp as CT2" + - label: + "TH saves record current wall clock time with seconds resolution as + CT2" verification: | - + TH1 saves the timestamp as CT2 disabled: true - - label: "TH1 reads Networks attribute from the DUT" + - label: + "After commissioning completes, TH reads Networks attribute from the + DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 162 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_13.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_13.yaml index 0399b0343a00be..5cba69fd7257c7 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_13.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_13.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.13. [TC-DM-4.13][WiFi] Verification for ReorderNetwork command + 10.4.13. [TC-DM-4.13] [WiFi] Verification for ReorderNetwork command [DUT-Commissionee] config: @@ -23,95 +23,56 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: "TH sends ArmFailSafe command to the DUT" verification: | - ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool generalcommissioning arm-fail-safe 60 0 1 0 - - [1650381469.290921][44062:44067] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1650381469.290983][44062:44067] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1650381469.291087][44062:44067] CHIP:TOO: ArmFailSafeResponse: { - [1650381469.291148][44062:44067] CHIP:TOO: errorCode: 0 - [1650381469.291184][44062:44067] CHIP:TOO: debugText: - [1650381469.291218][44062:44067] CHIP:TOO: } - [1650381469.291273][44062:44067] CHIP:DMG: ICR moving to [AwaitingDe] - [1650381469.291343][44062:44067] CHIP:EM: Sending Standalone Ack for MessageCounter:7893211 on exchange 64557i + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) disabled: true - label: "TH1 sends AddOrUpdateWiFiNetwork command to the DUT with SSID argument value as 'Userwifi_ssid1', Credentials argument value as - 'xxxxx' and Breadcrumb argument value as 0" + 'Userwifi_Credentials' and Breadcrumb argument value as 1" verification: | - ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivatewifi092010 1 0 + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) + disabled: true - [1650381475.218029][44068:44073] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1650381475.218092][44068:44073] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1650381475.218190][44068:44073] CHIP:TOO: NetworkConfigResponse: { - [1650381475.218252][44068:44073] CHIP:TOO: networkingStatus: 0 - [1650381475.218289][44068:44073] CHIP:TOO: networkIndex: 0 - [1650381475.218323][44068:44073] CHIP:TOO: } - [1650381475.218376][44068:44073] CHIP:DMG: ICR moving to [AwaitingDe] - [1650381475.218447][44068:44073] CHIP:EM: Sending Standalone Ack for MessageCounter:7658401 on exchange 620i + - label: "TH reads MaxNetworks attribute from the DUT" + verification: | + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) disabled: true - label: "TH1 sends AddOrUpdateWiFiNetwork command to the DUT with SSID argument value as 'Userwifi_ssid2', Credentials argument value as - 'xxxxx' and Breadcrumb argument value as 0" + 'Userwifi_Credentials' and Breadcrumb argument value as 1" verification: | - ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C507269766174655F455854 matter123 1 0 - - [1650381481.251038][44074:44079] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1650381481.251102][44074:44079] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1650381481.251189][44074:44079] CHIP:TOO: NetworkConfigResponse: { - [1650381481.251250][44074:44079] CHIP:TOO: networkingStatus: 2 - [1650381481.251289][44074:44079] CHIP:TOO: } - [1650381481.251342][44074:44079] CHIP:DMG: ICR moving to [AwaitingDe] - [1650381481.251412][44074:44079] CHIP:EM: Sending Standalone Ack for MessageCounter:11373968 on exchange 55916i + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) disabled: true - label: "TH1 sends AddOrUpdateWiFiNetwork command to the DUT with SSID argument value as 'Userwifi_ssid3', Credentials argument value as - 'xxxxx' and Breadcrumb argument value as 0" + 'Userwifi_Credentials' and Breadcrumb argument value as 1" verification: | - ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:7369766172616D2773206950686F6E65 maskmask 1 0 - - [1650381487.889851][44081:44086] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1650381487.889909][44081:44086] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1650381487.889987][44081:44086] CHIP:TOO: NetworkConfigResponse: { - [1650381487.890043][44081:44086] CHIP:TOO: networkingStatus: 2 - [1650381487.890079][44081:44086] CHIP:TOO: } - [1650381487.890127][44081:44086] CHIP:DMG: ICR moving to [AwaitingDe] - [1650381487.890188][44081:44086] CHIP:EM: Sending Standalone Ack for MessageCounter:3375326 on exchange 62297i + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) disabled: true - label: - "TH1 sends ReorderNetwork Command to the DUT with the following + "TH sends ReorderNetwork Command to the DUT with the following arguments: NetworkID argument value as 'Userwifi_ssid1' NetworkIndex - argument value as 'Wifinet_idx3' Breadcrumb argument value as 0" + argument value as 'Userwifi_netidx3' Breadcrumb argument value as 1" verification: | - ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning reorder-network hex:47524C50726976617465 3 1 0 - - [1650381494.820649][44087:44092] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1650381494.820749][44087:44092] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1650381494.820860][44087:44092] CHIP:TOO: NetworkConfigResponse: { - [1650381494.820940][44087:44092] CHIP:TOO: networkingStatus: 0 - [1650381494.820979][44087:44092] CHIP:TOO: networkIndex: 3 - [1650381494.821016][44087:44092] CHIP:TOO: } - [1650381494.821087][44087:44092] CHIP:DMG: ICR moving to [AwaitingDe] - [1650381494.821174][44087:44092] CHIP:EM: Sending Standalone Ack for MessageCounter:5656346 on exchange 4849i + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) disabled: true - - label: "TH1 reads Networks attribute list from the DUT" + - label: "TH reads Networks attribute list from the DUT" verification: | - ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 1 0 - - [1650381501.447787][44093:44098] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3182776035 - [1650381501.447899][44093:44098] CHIP:TOO: Networks: 1 entries - [1650381501.447965][44093:44098] CHIP:TOO: [1]: { - [1650381501.448003][44093:44098] CHIP:TOO: NetworkID: 47524C50726976617465 - [1650381501.448037][44093:44098] CHIP:TOO: Connected: FALSE - [1650381501.448071][44093:44098] CHIP:TOO: } - [1650381501.448221][44093:44098] CHIP:EM: Sending Standalone Ack for MessageCounter:10492805 on exchange 43057i + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_14.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_14.yaml index d5bd40a2fb13aa..de94eff81de9df 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_14.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_14.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.14. [TC-DM-4.14][Thread] Verification for ReorderNetwork command + 10.4.14. [TC-DM-4.14] [Thread] Verification for ReorderNetwork command [DUT-Commissionee] config: @@ -23,47 +23,23 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: "TH sends ArmFailSafe command to the DUT" verification: | - ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool generalcommissioning arm-fail-safe 900 0 62 0 - - [1650392597.976230][10152:10157] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1650392597.976363][10152:10157] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1650392597.976539][10152:10157] CHIP:TOO: ArmFailSafeResponse: { - [1650392597.976665][10152:10157] CHIP:TOO: errorCode: 0 - [1650392597.976729][10152:10157] CHIP:TOO: debugText: - [1650392597.976785][10152:10157] CHIP:TOO: } - [1650392597.976874][10152:10157] CHIP:DMG: ICR moving to [AwaitingDe] - [1650392597.976987][10152:10157] CHIP:EM: Sending Standalone Ack for MessageCounter:10494017 on exchange 14665i + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) disabled: true - label: - "TH1 sends ReorderNetwork Command to the DUT with the following + "TH sends ReorderNetwork Command to the DUT with the following arguments: NetworkID argument value as 'Userth_op1' NetworkIndex - argument value as 'Thnet_idx2' Breadcrumb argument value as 0" + argument value as 'Userth_netidx2' Breadcrumb argument value as 1" verification: | - ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning reorder-network 0119100899082022 3 62 0 - - [1650392602.379377][10158:10163] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1650392602.379490][10158:10163] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1650392602.379618][10158:10163] CHIP:TOO: NetworkConfigResponse: { - [1650392602.379725][10158:10163] CHIP:TOO: networkingStatus: 3 - [1650392602.379792][10158:10163] CHIP:TOO: } - [1650392602.379882][10158:10163] CHIP:DMG: ICR moving to [AwaitingDe] + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) disabled: true - - label: "TH1 reads Networks attribute list from the DUT" + - label: "TH reads Networks attribute list from the DUT" verification: | - ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 162 0 - - [1645772651.445097][3856:3861] CHIP:DMG: SuppressResponse = true, - [1645772651.445149][3856:3861] CHIP:DMG: InteractionModelRevision = 1 - [1645772651.445209][3856:3861] CHIP:DMG: } - [1645772651.445754][3856:3861] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001DataVersion: 92121563 - [1645772651.445875][3856:3861] CHIP:TOO: Networks: 1 entries - [1645772651.446057][3856:3861] CHIP:TOO: [1]: { - [1645772651.446120][3856:3861] CHIP:TOO: NetworkID: 0119100899082022 - [1650389742.394958][9809:9814] CHIP:TOO: Connected: TRUE - [1645772651.446228][3856:3861] CHIP:TOO: } - [1645772651.446431][3856:3861] CHIP:EM: Sending Standalone Ack for MessageCounter:12695576 on exchange 11133i + The test case is not verifiable. As MaxNetworks value is 1 but expected is 4 + ( Pre-Condition) disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_15.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_15.yaml index 6bed8548a1aa9d..83d8bbf5b18578 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_15.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_15.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.15. [TC-DM-4.15][WiFi] NetworkIDNotFound value as LastNetworkingStatus + 10.4.15. [TC-DM-4.15] [WiFi] NetworkIDNotFound value as LastNetworkingStatus argument validation [DUT-Commissionee] config: @@ -23,7 +23,25 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: + "TH reads Network attribute from the DUT * TH saves the single entrys + NetworkID value as 'userwifi_ssid' value for the future use" + verification: | + ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 162 0 + + [1645772651.445097][3856:3861] CHIP:DMG: SuppressResponse = true, + [1645772651.445149][3856:3861] CHIP:DMG: InteractionModelRevision = 1 + [1645772651.445209][3856:3861] CHIP:DMG: } + [1645772651.445754][3856:3861] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001DataVersion: 92121563 + [1645772651.445875][3856:3861] CHIP:TOO: Networks: 1 entries + [1645772651.446057][3856:3861] CHIP:TOO: [1]: { + [1645772651.446120][3856:3861] CHIP:TOO: NetworkID: 0119100899082022 + [1650389742.394958][9809:9814] CHIP:TOO: Connected: TRUE + [1645772651.446228][3856:3861] CHIP:TOO: } + [1645772651.446431][3856:3861] CHIP:EM: Sending Standalone Ack for MessageCounter:12695576 on exchange 11133i + disabled: true + + - label: "TH sends ArmFailSafe command to the DUT" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool generalcommissioning arm-fail-safe 60 0 1 0 @@ -38,8 +56,9 @@ tests: disabled: true - label: - "TH1 sends RemoveNetwork Command to the DUT with NetworkID argument - value as 'Userwifi_ssid1' and Breadcrumb argument value as 0" + "TH sends RemoveNetwork Command to the DUT with NetworkID argument + value as 'Userwifi_ssid1' that not matches 'userwifi_ssid' value and + Breadcrumb argument value as 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 @@ -53,8 +72,9 @@ tests: disabled: true - label: - "TH1 sends ConnectNetwork Command to the DUT with NetworkID value as - 'Userwifi_ssid1' and Breadcrumb value as 0" + "TH sends ConnectNetwork Command to the DUT with NetworkID value as + 'Userwifi_ssid1' that not matches 'userwifi_ssid' value and Breadcrumb + argument value as 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning connect-network hex:47524C50726976617465 1 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_16.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_16.yaml index 259ba14c19a815..6926e14de28ee9 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_16.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_16.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.16. [TC-DM-4.16][Thread] NetworkIDNotFound value as + 10.4.16. [TC-DM-4.16] [Thread] NetworkIDNotFound value as LastNetworkingStatus argument validation [DUT-Commissionee] config: @@ -23,7 +23,25 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: + "TH reads Network attribute from the DUT TH saves the single entrys + NetworkID value as 'Userth_op' value for the future use" + verification: | + ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 162 0 + + [1645772651.445097][3856:3861] CHIP:DMG: SuppressResponse = true, + [1645772651.445149][3856:3861] CHIP:DMG: InteractionModelRevision = 1 + [1645772651.445209][3856:3861] CHIP:DMG: } + [1645772651.445754][3856:3861] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001DataVersion: 92121563 + [1645772651.445875][3856:3861] CHIP:TOO: Networks: 1 entries + [1645772651.446057][3856:3861] CHIP:TOO: [1]: { + [1645772651.446120][3856:3861] CHIP:TOO: NetworkID: 47524C50726976617465 + [1650389742.394958][9809:9814] CHIP:TOO: Connected: TRUE + [1645772651.446228][3856:3861] CHIP:TOO: } + [1645772651.446431][3856:3861] CHIP:EM: Sending Standalone Ack for MessageCounter:12695576 on exchange 11133i + disabled: true + + - label: "TH sends ArmFailSafe command to the DUT" verification: | ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool generalcommissioning arm-fail-safe 900 0 62 0 @@ -38,8 +56,9 @@ tests: disabled: true - label: - "TH1 sends RemoveNetwork Command to the DUT with NetworkID argument - value as 'Userth_op1' and Breadcrumb argument value as 0" + "TH sends RemoveNetwork Command to the DUT with NetworkID argument + value as 'Userth_op1' that not matches 'Userth_op' value and + Breadcrumb argument value as 1" verification: | ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network 0119100899082022 62 0 @@ -53,8 +72,9 @@ tests: disabled: true - label: - "TH1 sends ConnectNetwork Command to the DUT with NetworkID value as - 'Userth_op1' and Breadcrumb value as 0" + "TH sends ConnectNetwork Command to the DUT with NetworkID value as + 'Userth_op1' that not matches 'Userth_op' value and Breadcrumb + argument value as 1" verification: | ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning connect-network 0119100899082022 62 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_17.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_17.yaml index 74808c6f28b797..b3526be525b11a 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_17.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_17.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.17. [TC-DM-4.17][WiFi] Verification for attributes check + 10.4.17. [TC-DM-4.17] [WiFi] Verification for attributes check [DUT-Commissioner] config: @@ -25,7 +25,7 @@ config: tests: - label: "DUT reads the MaxNetworks attribute from the TH" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read max-networks 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read max-networks 1 0 [1646216356.472036][7021:7026] CHIP:DMG: SuppressResponse = true, [1646216356.472088][7021:7026] CHIP:DMG: InteractionModelRevision = 1 @@ -77,7 +77,7 @@ tests: [1649250241.092852][30726:30731] CHIP:EM: Sending Standalone Ack for MessageCounter:3120276 on exchange 4316i disabled: true - - label: "DUT reads LastNetowrkingStatus attribute from the TH" + - label: "DUT reads LastNetworkingStatus attribute from the TH" verification: | ubuntu@ubuntu:~/connectedhomeip$ sudo ./examples/chip-tool/out/debug/chip-tool networkcommissioning read last-networking-status 1 0 --paa-trust-store-path ./credentials/development/paa-root-certs diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_18.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_18.yaml index e3893f207f0992..5ce962852935df 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_18.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_18.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.18. [TC-DM-4.18][Thread] Verification for attributes check + 10.4.18. [TC-DM-4.18] [Thread] Verification for attributes check [DUT-Commissioner] config: @@ -88,7 +88,7 @@ tests: [1645772984.654530][3895:3900] CHIP:EM: Sending Standalone Ack for MessageCounter:14026610 on exchange 33717i disabled: true - - label: "DUT reads LastNetowrkingStatus attribute from the TH" + - label: "DUT reads LastNetworkingStatus attribute from the TH" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read last-networking-status 162 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_19.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_19.yaml index 85fef99d3d1cf9..644b6ba9f1be77 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_19.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_19.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.19. [TC-DM-4.19][Ethernet] Verification for attributes check + 10.4.19. [TC-DM-4.19] [Ethernet] Verification for attributes check [DUT-Commissioner] config: @@ -25,7 +25,7 @@ config: tests: - label: "DUT reads the MaxNetworks attribute from the TH" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read max-networks 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read max-networks 1 0 [1646226441.815782][2475:2480] CHIP:DMG: SuppressResponse = true, [1646226441.815849][2475:2480] CHIP:DMG: InteractionModelRevision = 1 @@ -37,18 +37,20 @@ tests: - label: "DUT reads the Networks attribute from the TH" verification: | - Expected 1 entire - ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 1 0 - [1649310351.178908][2677:2682] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3138976789 - [1649310351.178985][2677:2682] CHIP:TOO: Networks: 0 entries - [1649310351.179103][2677:2682] CHIP:EM: Sending Standalone Ack for MessageCounter:8390931 on exchange 1768i + [1653483289.382372][28210:28215] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3189790698 + [1653483289.382458][28210:28215] CHIP:TOO: Networks: 1 entries + [1653483289.382507][28210:28215] CHIP:TOO: [1]: { + [1653483289.382537][28210:28215] CHIP:TOO: NetworkID: 65746830 + [1653483289.382561][28210:28215] CHIP:TOO: Connected: TRUE + [1653483289.382584][28210:28215] CHIP:TOO: } + [1653483289.382684][28210:28215] CHIP:EM: Sending Standalone Ack for MessageCounter:13711908 on exchange 32535i disabled: true - label: "DUT reads InterfaceEnabled attribute from the TH" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read interface-enabled 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read interface-enabled 1 0 [1646226615.428003][2502:2507] CHIP:DMG: [1646226615.428035][2502:2507] CHIP:DMG: SuppressResponse = true, @@ -59,9 +61,9 @@ tests: [1646226615.428415][2502:2507] CHIP:EM: Sending Standalone Ack for MessageCounter:3894401 on exchange 55691i disabled: true - - label: "DUT reads LastNetowrkingStatus attribute from the TH" + - label: "DUT reads LastNetworkingStatus attribute from the TH" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read last-networking-status 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read last-networking-status 1 0 [1646227167.614060][2533:2538] CHIP:DMG: SuppressResponse = true, [1646227167.614095][2533:2538] CHIP:DMG: InteractionModelRevision = 1 @@ -73,7 +75,7 @@ tests: - label: "DUT reads LastNetworkID attribute from the TH" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read last-network-id 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read last-network-id 1 0 [1646227218.543427][2545:2550] CHIP:DMG: [1646227218.543462][2545:2550] CHIP:DMG: SuppressResponse = true, @@ -86,13 +88,9 @@ tests: - label: "DUT reads LastConnectErrorValue attribute from the TH" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read last-connect-error-value 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read last-connect-error-value 1 0 - [1646227266.753206][2560:2565] CHIP:DMG: - [1646227266.753239][2560:2565] CHIP:DMG: SuppressResponse = true, - [1646227266.753272][2560:2565] CHIP:DMG: InteractionModelRevision = 1 - [1646227266.753303][2560:2565] CHIP:DMG: } - [1646227266.753472][2560:2565] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0007DataVersion: 3622667250 - [1646227266.753556][2560:2565] CHIP:TOO: LastConnectErrorValue: 0 - [1646227266.753632][2560:2565] CHIP:EM: Sending Standalone Ack for MessageCounter:7911198 on exchange 43970i + [1653483224.839873][28189:28194] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0007 DataVersion: 3189790698 + [1653483224.839927][28189:28194] CHIP:TOO: LastConnectErrorValue: null + [1653483224.840028][28189:28194] CHIP:EM: Sending Standalone Ack for MessageCounter:289132 on exchange 60682i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_2.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_2.yaml index 70250ac5c3b1cd..6302d2cfc7926e 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_2.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.2. [TC-DM-4.2][Thread] Verification for attributes check [DUT - + 10.4.2. [TC-DM-4.2] [Thread] Verification for attributes check [DUT - Commissionee] config: @@ -28,14 +28,14 @@ tests: disabled: true - - label: "TH1 is commissioned with DUT" + - label: "Commmission TH and DUT on Thread setup" verification: | disabled: true - label: - "TH1 reads Descriptor Cluster from the DUT with EP0 TH1 reads - ServerList from the DUT" + "TH reads Descriptor Cluster from the DUT with EP0 TH reads ServerList + from the DUT" verification: | buntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool descriptor read server-list 162 0 @@ -68,7 +68,7 @@ tests: [1645772414.102925][3827:3832] CHIP:EM: Sending Standalone Ack for MessageCounter:15329672 on exchange 6140i disabled: true - - label: "TH1 reads FeatureMap attribute from the DUT" + - label: "TH reads FeatureMap attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read feature-map 162 0 @@ -81,7 +81,7 @@ tests: [1645772204.503556][3809:3814] CHIP:EM: Sending Standalone Ack for MessageCounter:5988746 on exchange 46140i disabled: true - - label: "TH1 reads the MaxNetworks attribute from the DUT" + - label: "TH reads the MaxNetworks attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read max-networks 162 0 @@ -95,13 +95,13 @@ tests: disabled: true - label: - "TH1 saves the MaxNetworks attribute value as 'maxvalue' for furture - use" + "TH saves the MaxNetworks attribute value as 'MaxNetworksValue' for + future use" verification: | - + TH1 saves the MaxNetworks attribute value disabled: true - - label: "TH1 reads the Networks attribute list from the DUT" + - label: "TH reads the Networks attribute list from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 162 0 @@ -117,7 +117,7 @@ tests: [1645772651.446431][3856:3861] CHIP:EM: Sending Standalone Ack for MessageCounter:12695576 on exchange 11133i disabled: true - - label: "TH1 reads ScanMaxTimeSeconds attribute from the DUT" + - label: "TH reads ScanMaxTimeSeconds attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read scan-max-time-seconds 162 0 @@ -129,7 +129,7 @@ tests: [1645772820.741512][3867:3872] CHIP:EM: Sending Standalone Ack for MessageCounter:10309775 on exchange 55305i disabled: true - - label: "TH1 reads ConnectMaxTimeSeconds Attribute from the DUT" + - label: "TH reads ConnectMaxTimeSeconds Attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read connect-max-time-seconds 162 0 @@ -141,7 +141,7 @@ tests: [1645772901.120100][3879:3884] CHIP:EM: Sending Standalone Ack for MessageCounter:11917538 on exchange 4188 disabled: true - - label: "TH1 reads InterfaceEnabled attribute from the DUT" + - label: "TH reads InterfaceEnabled attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read interface-enabled 162 0 @@ -153,7 +153,7 @@ tests: [1645772984.654530][3895:3900] CHIP:EM: Sending Standalone Ack for MessageCounter:14026610 on exchange 33717i disabled: true - - label: "TH1 reads LastNetworkingStatus attribute from the DUT" + - label: "TH reads LastNetworkingStatus attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read last-networking-status 162 0 @@ -166,7 +166,7 @@ tests: disabled: true - label: - "TH1 reads the LastNetworkID attribute from the DUT TH1 reads the + "TH reads the LastNetworkID attribute from the DUT TH reads the Networks attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read last-network-id 162 0 @@ -179,7 +179,7 @@ tests: [1645773167.182422][3913:3918] CHIP:EM: Sending Standalone Ack for MessageCounter:2029571 on exchange 18566i disabled: true - - label: "TH1 reads the LastConnectErrorValue attribute from the DUT" + - label: "TH reads the LastConnectErrorValue attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read last-connect-error-value 162 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_20.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_20.yaml index fb450ff5647182..c50477e78e0334 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_20.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_20.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.20. [TC-DM-4.20][WiFi] Verification for commands check + 10.4.20. [TC-DM-4.20] [WiFi] Verification for commands check [DUT-Commissioner] config: @@ -25,12 +25,135 @@ config: tests: - label: "DUT sends the ScanNetwork command to the TH" verification: | - ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning scan-networks 1 0 + ./chip-tool networkcommissioning scan-networks 1 0 --Ssid null --Breadcrumb 1 - [1650388358.049099][44522:44527] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0000 Status=0x85 - [1650388358.049146][44522:44527] CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) - [1650388358.049196][44522:44527] CHIP:DMG: ICR moving to [AwaitingDe] - [1650388358.049270][44522:44527] CHIP:EM: Sending Standalone Ack for MessageCounter:9254237 on exchange 22295i + [1653475026.012811][29937:29942] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0001 + [1653475026.012942][29937:29942] CHIP:TOO: ScanNetworksResponse: { + [1653475026.012983][29937:29942] CHIP:TOO: networkingStatus: 0 + [1653475026.013075][29937:29942] CHIP:TOO: wiFiScanResults: 15 entries + [1653475026.013143][29937:29942] CHIP:TOO: [1]: { + [1653475026.013169][29937:29942] CHIP:TOO: Security: 8 + [1653475026.013195][29937:29942] CHIP:TOO: Ssid: 47524C507269766174655F455854 + [1653475026.013219][29937:29942] CHIP:TOO: Bssid: E01CFCE4B236 + [1653475026.013242][29937:29942] CHIP:TOO: Channel: 11 + [1653475026.013264][29937:29942] CHIP:TOO: WiFiBand: 0 + [1653475026.013286][29937:29942] CHIP:TOO: Rssi: -9 + [1653475026.013310][29937:29942] CHIP:TOO: } + [1653475026.013344][29937:29942] CHIP:TOO: [2]: { + [1653475026.013368][29937:29942] CHIP:TOO: Security: 8 + [1653475026.013390][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 + [1653475026.013414][29937:29942] CHIP:TOO: Bssid: C006C3F95EEB + [1653475026.013436][29937:29942] CHIP:TOO: Channel: 153 + [1653475026.013458][29937:29942] CHIP:TOO: WiFiBand: 2 + [1653475026.013479][29937:29942] CHIP:TOO: Rssi: -52 + [1653475026.013500][29937:29942] CHIP:TOO: } + [1653475026.013531][29937:29942] CHIP:TOO: [3]: { + [1653475026.013556][29937:29942] CHIP:TOO: Security: 8 + [1653475026.013578][29937:29942] CHIP:TOO: Ssid: + [1653475026.013599][29937:29942] CHIP:TOO: Bssid: C606C3F95EEB + [1653475026.013621][29937:29942] CHIP:TOO: Channel: 153 + [1653475026.013642][29937:29942] CHIP:TOO: WiFiBand: 2 + [1653475026.013663][29937:29942] CHIP:TOO: Rssi: -52 + [1653475026.013684][29937:29942] CHIP:TOO: } + [1653475026.013715][29937:29942] CHIP:TOO: [4]: { + [1653475026.013738][29937:29942] CHIP:TOO: Security: 12 + [1653475026.013762][29937:29942] CHIP:TOO: Ssid: 7A69676265652D7468726561642D3547487A + [1653475026.013784][29937:29942] CHIP:TOO: Bssid: 6C198FC83ABE + [1653475026.013806][29937:29942] CHIP:TOO: Channel: 44 + [1653475026.013827][29937:29942] CHIP:TOO: WiFiBand: 2 + [1653475026.013848][29937:29942] CHIP:TOO: Rssi: -55 + [1653475026.013869][29937:29942] CHIP:TOO: } + [1653475026.013900][29937:29942] CHIP:TOO: [5]: { + [1653475026.013923][29937:29942] CHIP:TOO: Security: 8 + [1653475026.013945][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 + [1653475026.013967][29937:29942] CHIP:TOO: Bssid: C006C3F95F31 + [1653475026.013988][29937:29942] CHIP:TOO: Channel: 48 + [1653475026.014029][29937:29942] CHIP:TOO: WiFiBand: 2 + [1653475026.014051][29937:29942] CHIP:TOO: Rssi: -65 + [1653475026.014073][29937:29942] CHIP:TOO: } + [1653475026.014106][29937:29942] CHIP:TOO: [6]: { + [1653475026.014129][29937:29942] CHIP:TOO: Security: 8 + [1653475026.014151][29937:29942] CHIP:TOO: Ssid: + [1653475026.014172][29937:29942] CHIP:TOO: Bssid: C606C3F95F31 + [1653475026.014194][29937:29942] CHIP:TOO: Channel: 48 + [1653475026.014215][29937:29942] CHIP:TOO: WiFiBand: 2 + [1653475026.014236][29937:29942] CHIP:TOO: Rssi: -65 + [1653475026.014257][29937:29942] CHIP:TOO: } + [1653475026.014288][29937:29942] CHIP:TOO: [7]: { + [1653475026.014311][29937:29942] CHIP:TOO: Security: 8 + [1653475026.014335][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 + [1653475026.014357][29937:29942] CHIP:TOO: Bssid: C006C3F95ECF + [1653475026.014379][29937:29942] CHIP:TOO: Channel: 153 + [1653475026.014400][29937:29942] CHIP:TOO: WiFiBand: 2 + [1653475026.014421][29937:29942] CHIP:TOO: Rssi: -68 + [1653475026.014442][29937:29942] CHIP:TOO: } + [1653475026.014473][29937:29942] CHIP:TOO: [8]: { + [1653475026.014496][29937:29942] CHIP:TOO: Security: 8 + [1653475026.014518][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 + [1653475026.014540][29937:29942] CHIP:TOO: Bssid: 1027F5374EC7 + [1653475026.014561][29937:29942] CHIP:TOO: Channel: 153 + [1653475026.014582][29937:29942] CHIP:TOO: WiFiBand: 2 + [1653475026.014603][29937:29942] CHIP:TOO: Rssi: -73 + [1653475026.014624][29937:29942] CHIP:TOO: } + [1653475026.014654][29937:29942] CHIP:TOO: [9]: { + [1653475026.014677][29937:29942] CHIP:TOO: Security: 8 + [1653475026.014698][29937:29942] CHIP:TOO: Ssid: + [1653475026.014720][29937:29942] CHIP:TOO: Bssid: 1627F5374EC7 + [1653475026.014741][29937:29942] CHIP:TOO: Channel: 153 + [1653475026.014762][29937:29942] CHIP:TOO: WiFiBand: 2 + [1653475026.014783][29937:29942] CHIP:TOO: Rssi: -72 + [1653475026.014804][29937:29942] CHIP:TOO: } + [1653475026.014834][29937:29942] CHIP:TOO: [10]: { + [1653475026.014858][29937:29942] CHIP:TOO: Security: 12 + [1653475026.014880][29937:29942] CHIP:TOO: Ssid: 4368697031 + [1653475026.014902][29937:29942] CHIP:TOO: Bssid: 0C0E764EF1C8 + [1653475026.014923][29937:29942] CHIP:TOO: Channel: 11 + [1653475026.014944][29937:29942] CHIP:TOO: WiFiBand: 0 + [1653475026.014965][29937:29942] CHIP:TOO: Rssi: -38 + [1653475026.014986][29937:29942] CHIP:TOO: } + [1653475026.015017][29937:29942] CHIP:TOO: [11]: { + [1653475026.015039][29937:29942] CHIP:TOO: Security: 8 + [1653475026.015061][29937:29942] CHIP:TOO: Ssid: 4368697073657475703442 + [1653475026.015083][29937:29942] CHIP:TOO: Bssid: E01CFCEA2A46 + [1653475026.015105][29937:29942] CHIP:TOO: Channel: 11 + [1653475026.015126][29937:29942] CHIP:TOO: WiFiBand: 0 + [1653475026.015147][29937:29942] CHIP:TOO: Rssi: -34 + [1653475026.015168][29937:29942] CHIP:TOO: } + [1653475026.015198][29937:29942] CHIP:TOO: [12]: { + [1653475026.015221][29937:29942] CHIP:TOO: Security: 8 + [1653475026.015244][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 + [1653475026.015266][29937:29942] CHIP:TOO: Bssid: 6032B197B89E + [1653475026.015288][29937:29942] CHIP:TOO: Channel: 11 + [1653475026.015309][29937:29942] CHIP:TOO: WiFiBand: 0 + [1653475026.015330][29937:29942] CHIP:TOO: Rssi: -37 + [1653475026.015351][29937:29942] CHIP:TOO: } + [1653475026.015381][29937:29942] CHIP:TOO: [13]: { + [1653475026.015404][29937:29942] CHIP:TOO: Security: 12 + [1653475026.015427][29937:29942] CHIP:TOO: Ssid: 7A69676265652D746872656164 + [1653475026.015449][29937:29942] CHIP:TOO: Bssid: 6C198FC83ABC + [1653475026.015470][29937:29942] CHIP:TOO: Channel: 2 + [1653475026.015491][29937:29942] CHIP:TOO: WiFiBand: 0 + [1653475026.015512][29937:29942] CHIP:TOO: Rssi: -40 + [1653475026.015533][29937:29942] CHIP:TOO: } + [1653475026.015563][29937:29942] CHIP:TOO: [14]: { + [1653475026.015587][29937:29942] CHIP:TOO: Security: 8 + [1653475026.015609][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 + [1653475026.015631][29937:29942] CHIP:TOO: Bssid: 1027F5374EC6 + [1653475026.015652][29937:29942] CHIP:TOO: Channel: 6 + [1653475026.015673][29937:29942] CHIP:TOO: WiFiBand: 0 + [1653475026.015694][29937:29942] CHIP:TOO: Rssi: -53 + [1653475026.015714][29937:29942] CHIP:TOO: } + [1653475026.015745][29937:29942] CHIP:TOO: [15]: { + [1653475026.015768][29937:29942] CHIP:TOO: Security: 8 + [1653475026.015789][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 + [1653475026.015811][29937:29942] CHIP:TOO: Bssid: C006C3F95ECE + [1653475026.015832][29937:29942] CHIP:TOO: Channel: 6 + [1653475026.015853][29937:29942] CHIP:TOO: WiFiBand: 0 + [1653475026.015874][29937:29942] CHIP:TOO: Rssi: -50 + [1653475026.015896][29937:29942] CHIP:TOO: } + [1653475026.015920][29937:29942] CHIP:TOO: } + [1653475026.016050][29937:29942] CHIP:DMG: ICR moving to [AwaitingDe] + [1653475026.016114][29937:29942] CHIP:EM: Sending Standalone Ack for MessageCounter:14684023 on exchange 35456i disabled: true - label: "DUT sends the ArmFailSafe command to the TH" @@ -61,20 +184,6 @@ tests: [1650371276.622728][42488:42493] CHIP:EM: Sending Standalone Ack for MessageCounter:9593846 on exchange 33754i disabled: true - - label: "DUT sends the RemoveNetwork command to the TH" - verification: | - ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 - - [1650373300.704806][42697:42702] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1650373300.704864][42697:42702] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1650373300.704957][42697:42702] CHIP:TOO: NetworkConfigResponse: { - [1650373300.705012][42697:42702] CHIP:TOO: networkingStatus: 0 - [1650373300.705044][42697:42702] CHIP:TOO: networkIndex: 0 - [1650373300.705073][42697:42702] CHIP:TOO: } - [1650373300.705120][42697:42702] CHIP:DMG: ICR moving to [AwaitingDe] - [1650373300.705181][42697:42702] CHIP:EM: Sending Standalone Ack for MessageCounter:9924068 on exchange 3557i - disabled: true - - label: "DUT sends the ConnectNetwork command to the TH" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning connect-network hex:47524C50726976617465 1 0 @@ -102,3 +211,17 @@ tests: [1650381494.821087][44087:44092] CHIP:DMG: ICR moving to [AwaitingDe] [1650381494.821174][44087:44092] CHIP:EM: Sending Standalone Ack for MessageCounter:5656346 on exchange 4849i disabled: true + + - label: "DUT sends the RemoveNetwork command to the TH" + verification: | + ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 + + [1650373300.704806][42697:42702] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 + [1650373300.704864][42697:42702] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 + [1650373300.704957][42697:42702] CHIP:TOO: NetworkConfigResponse: { + [1650373300.705012][42697:42702] CHIP:TOO: networkingStatus: 0 + [1650373300.705044][42697:42702] CHIP:TOO: networkIndex: 0 + [1650373300.705073][42697:42702] CHIP:TOO: } + [1650373300.705120][42697:42702] CHIP:DMG: ICR moving to [AwaitingDe] + [1650373300.705181][42697:42702] CHIP:EM: Sending Standalone Ack for MessageCounter:9924068 on exchange 3557i + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_21.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_21.yaml index 65e9587e3578f0..01b958e5247a99 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_21.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_21.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.21. [TC-DM-4.21][Thread] Verification for commands check + 10.4.21. [TC-DM-4.21] [Thread] Verification for commands check [DUT-Commissioner] config: @@ -105,18 +105,6 @@ tests: [1650388639.091393][9682:9687] CHIP:CTL: Performing next commissioning step 'ThreadNetworkEnable' disabled: true - - label: "DUT sends the RemoveNetwork command to the TH" - verification: | - ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network 0119100899082022 62 0 - - [1650391420.469341][10048:10053] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1650391420.469452][10048:10053] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1650391420.469634][10048:10053] CHIP:TOO: NetworkConfigResponse: { - [1650391420.469746][10048:10053] CHIP:TOO: networkingStatus: 3 - [1650391420.469812][10048:10053] CHIP:TOO: } - [1650391420.469902][10048:10053] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true - - label: "DUT sends the ConnectNetwork command to the TH" verification: | Executed during the commissioning @@ -137,3 +125,15 @@ tests: [1650392602.379792][10158:10163] CHIP:TOO: } [1650392602.379882][10158:10163] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true + + - label: "DUT sends the RemoveNetwork command to the TH" + verification: | + ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network 0119100899082022 62 0 + + [1650391420.469341][10048:10053] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 + [1650391420.469452][10048:10053] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 + [1650391420.469634][10048:10053] CHIP:TOO: NetworkConfigResponse: { + [1650391420.469746][10048:10053] CHIP:TOO: networkingStatus: 3 + [1650391420.469812][10048:10053] CHIP:TOO: } + [1650391420.469902][10048:10053] CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_3.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_3.yaml index 07e4403383c21d..0b457cb5934d26 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_3.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.3. [TC-DM-4.3][Ethernet] Verification for attributes check [DUT - + 10.4.3. [TC-DM-4.3] [Ethernet] Verification for attributes check [DUT - Commissionee] config: @@ -28,16 +28,16 @@ tests: disabled: true - - label: "TH1 is commissioned with DUT" + - label: "Commmission TH and DUT on Ethernet setup" verification: | disabled: true - label: - "TH1 reads Descriptor Cluster from the DUT with EP0 TH1 reads - ServerList from the DUT" + "TH reads Descriptor Cluster from the DUT with EP0 TH reads ServerList + from the DUT" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool descriptor read server-list 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool descriptor read server-list 1 0 [1646226258.250313][2446:2451] CHIP:DMG: SuppressResponse = true, @@ -73,7 +73,7 @@ tests: [1646226258.255517][2446:2451] CHIP:EM: Sending Standalone Ack for MessageCounter:10627940 on exchange 21443i disabled: true - - label: "TH1 reads FeatureMap attribute from the DUT" + - label: "TH reads FeatureMap attribute from the DUT" verification: | ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read feature-map 1 0 @@ -84,9 +84,9 @@ tests: [1649309323.278863][2611:2617] CHIP:EM: Sending Standalone Ack for MessageCounter:532597 on exchange 51560i disabled: true - - label: "TH1 reads the MaxNetworks attribute from the DUT" + - label: "TH reads the MaxNetworks attribute from the DUT" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read max-networks 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read max-networks 1 0 [1646226441.815782][2475:2480] CHIP:DMG: SuppressResponse = true, [1646226441.815849][2475:2480] CHIP:DMG: InteractionModelRevision = 1 @@ -97,26 +97,28 @@ tests: disabled: true - label: - "TH1 saves the MaxNetworks attribute value as 'maxvalue' for furture - use" + "TH saves the MaxNetworks attribute value as 'MaxNetworksValue' for + future use" verification: | - + TH saves MaxNetworks attribute value disabled: true - - label: "TH1 reads the Networks attribute list from the DUT" + - label: "TH reads the Networks attribute list from the DUT" verification: | - Expected 1 entires - - ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 1 0 - - [1649310351.178908][2677:2682] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3138976789 - [1649310351.178985][2677:2682] CHIP:TOO: Networks: 0 entries - [1649310351.179103][2677:2682] CHIP:EM: Sending Standalone Ack for MessageCounter:8390931 on exchange 1768i + ./chip-tool networkcommissioning read networks 1 0 + + [1653483289.382372][28210:28215] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3189790698 + [1653483289.382458][28210:28215] CHIP:TOO: Networks: 1 entries + [1653483289.382507][28210:28215] CHIP:TOO: [1]: { + [1653483289.382537][28210:28215] CHIP:TOO: NetworkID: 65746830 + [1653483289.382561][28210:28215] CHIP:TOO: Connected: TRUE + [1653483289.382584][28210:28215] CHIP:TOO: } + [1653483289.382684][28210:28215] CHIP:EM: Sending Standalone Ack for MessageCounter:13711908 on exchange 32535i disabled: true - - label: "TH1 reads InterfaceEnabled attribute from the DUT" + - label: "TH reads InterfaceEnabled attribute from the DUT" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read interface-enabled 1 0 + ./chip-tool networkcommissioning read interface-enabled 1 0 [1646226615.428003][2502:2507] CHIP:DMG: [1646226615.428035][2502:2507] CHIP:DMG: SuppressResponse = true, @@ -127,9 +129,9 @@ tests: [1646226615.428415][2502:2507] CHIP:EM: Sending Standalone Ack for MessageCounter:3894401 on exchange 55691i disabled: true - - label: "TH1 reads LastNetworkingStatus attribute from the DUT" + - label: "TH reads LastNetworkingStatus attribute from the DUT" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read last-networking-status 1 0 + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read last-networking-status 1 0 [1646227167.614060][2533:2538] CHIP:DMG: SuppressResponse = true, [1646227167.614095][2533:2538] CHIP:DMG: InteractionModelRevision = 1 @@ -140,29 +142,21 @@ tests: disabled: true - label: - "TH1 reads the LastNetworkID attribute from the DUT TH1 reads the + "TH reads the LastNetworkID attribute from the DUT TH reads the Networks attribute from the DUT" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read last-network-id 1 0 - - [1646227218.543427][2545:2550] CHIP:DMG: - [1646227218.543462][2545:2550] CHIP:DMG: SuppressResponse = true, - [1646227218.543506][2545:2550] CHIP:DMG: InteractionModelRevision = 1 - [1646227218.543538][2545:2550] CHIP:DMG: } - [1646227218.543748][2545:2550] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0006DataVersion: 3622667250 - [1646227218.543836][2545:2550] CHIP:TOO: LastNetworkID: - [1646227218.543924][2545:2550] CHIP:EM: Sending Standalone Ack for MessageCounter:9758721 on exchange 15256i + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read last-network-id 1 0 + + [1653483162.950672][28180:28185] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0006 DataVersion: 3189790698 + [1653483162.950726][28180:28185] CHIP:TOO: LastNetworkID: null + [1653483162.950827][28180:28185] CHIP:EM: Sending Standalone Ack for MessageCounter:13275609 on exchange 15586i disabled: true - - label: "TH1 reads the LastConnectErrorValue attribute from the DUT" + - label: "TH reads the LastConnectErrorValue attribute from the DUT" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning read last-connect-error-value 1 0 - - [1646227266.753206][2560:2565] CHIP:DMG: - [1646227266.753239][2560:2565] CHIP:DMG: SuppressResponse = true, - [1646227266.753272][2560:2565] CHIP:DMG: InteractionModelRevision = 1 - [1646227266.753303][2560:2565] CHIP:DMG: } - [1646227266.753472][2560:2565] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0007DataVersion: 3622667250 - [1646227266.753556][2560:2565] CHIP:TOO: LastConnectErrorValue: 0 - [1646227266.753632][2560:2565] CHIP:EM: Sending Standalone Ack for MessageCounter:7911198 on exchange 43970i + ubuntu@ubuntu:~/apps$ ./chip-tool networkcommissioning read last-connect-error-value 1 0 + + [1653483224.839873][28189:28194] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0007 DataVersion: 3189790698 + [1653483224.839927][28189:28194] CHIP:TOO: LastConnectErrorValue: null + [1653483224.840028][28189:28194] CHIP:EM: Sending Standalone Ack for MessageCounter:289132 on exchange 60682i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_4.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_4.yaml index b75aea60b2bfec..db23be3e48f84d 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_4.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.4. [TC-DM-4.4][WiFi]Verification for ScanNetworks command + 10.4.4. [TC-DM-4.4] [WiFi]Verification for ScanNetworks command [DUT-Commissionee] config: @@ -24,8 +24,8 @@ config: tests: - label: - "TH1 sends ScanNetworks command to the DUT with the SSID argument - value as null and Breadcrumb argument value as 0" + "TH sends ScanNetworks command to the DUT with the SSID argument value + as 'null' and Breadcrumb argument value as 1" verification: | ubuntu@ubuntu:~/connectedhomeip$ sudo ./examples/chip-tool/out/debug/chip-tool networkcommissioning scan-networks null 0 1 0 --paa-trust-store-path ./credentials/development/paa-root-certs @@ -160,8 +160,8 @@ tests: disabled: true - label: - "TH1 sends ScanNetworks Command to the DUT with SSID argument value as - 'Userwifi_ssid' and Breadcrumb argument value 0" + "TH sends ScanNetworks Command to the DUT with SSID argument value as + 'Userwifi_ssid' and Breadcrumb argument value 1" verification: | ubuntu@ubuntu:~/sethu-apr1/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning scan-networks 47524C507269766174655F455854 0 1 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_5.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_5.yaml index 0b269c572dd68e..22cc50794822da 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_5.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.5. [TC-DM-4.5][WiFi] UNSUPPORTED_ACCESS message Validation + 10.4.5. [TC-DM-4.5] [WiFi] UNSUPPORTED_ACCESS message Validation [DUT-Commissionee] config: @@ -24,9 +24,10 @@ config: tests: - label: - "TH1 sends the AddOrUpdateWiFiNetwork command to the DUT with the + "TH sends the AddOrUpdateWiFiNetwork command to the DUT with the following argument: SSID argument value as 'Userwifi_ssid' Credentials - argument value as 'xxxxx' Breadcrumb argument value as 0" + argument value as 'Userwifi_Credentials' Breadcrumb argument value as + 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivatewifi092010 1 0 @@ -37,8 +38,8 @@ tests: disabled: true - label: - "TH1 sends RemoveNetwork command to the DUT with NetworkID argument - value as 'Userwifi_ssid' and Breadcrumb argument value as 0" + "TH sends RemoveNetwork command to the DUT with NetworkID argument + value as 'Userwifi_ssid' and Breadcrumb argument value as 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 @@ -49,8 +50,8 @@ tests: disabled: true - label: - "TH1 sends ConnectNetwork command to the DUT with NetworkID argument - value as 'Userwifi_ssid' and Breadcrumb argument value as 0" + "TH sends ConnectNetwork command to the DUT with NetworkID argument + value as 'Userwifi_ssid' and Breadcrumb argument value as 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning connect-network hex:47524C50726976617465 1 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_6.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_6.yaml index 5e3794d153ffff..1d58f4faa54a63 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_6.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.6. [TC-DM-4.6][Thread] UNSUPPORTED_ACCESS message Validation + 10.4.6. [TC-DM-4.6] [Thread] UNSUPPORTED_ACCESS message Validation [DUT-Commissionee] config: @@ -24,9 +24,9 @@ config: tests: - label: - "TH1 sends the AddOrUpdateThreadNetwork command to the DUT with the + "TH sends the AddOrUpdateThreadNetwork command to the DUT with the following argument: OperationalDataset argument value as 'Userth_op' - Breadcrumb argument value as 0" + Breadcrumb argument value as 1" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning add-or-update-thread-network 1232034768527434274 51 0 @@ -37,8 +37,8 @@ tests: disabled: true - label: - "TH1 sends RemoveNetwork command to the DUT with NetworkID argument - value as 'Userth_op' and Breadcrumb argument value as 0" + "TH sends RemoveNetwork command to the DUT with NetworkID argument + value as 'Userth_op' and Breadcrumb argument value as 1" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network 1232034768527434274 51 0 @@ -49,8 +49,8 @@ tests: disabled: true - label: - "TH1 sends ConnectNetwork command to the DUT with NetworkID argument - value as 'Userth_op' and Breadcrumb argument value as 0" + "TH sends ConnectNetwork command to the DUT with NetworkID argument + value as 'Userth_op' and Breadcrumb argument value as 1" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning connect-network 1232034768527434274 51 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_7.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_7.yaml index 474eaf73912efb..b2e500498edc92 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_7.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.7. [TC-DM-4.7][WiFi] Verification for AddOrUpdateWiFiNetwork command + 10.4.7. [TC-DM-4.7] [WiFi] Verification for AddOrUpdateWiFiNetwork command [DUT-Commissionee] config: @@ -23,7 +23,7 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: "Verify that DUT sends ArmFailSafeResponse command to the TH" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool generalcommissioning arm-fail-safe 60 0 1 0 @@ -38,9 +38,9 @@ tests: disabled: true - label: - "TH1 sends AddOrUpdateWiFiNetwork command to the DUT with SSID - argument value as 'Userwifi_ssid', Credentials argument value as - 'xxxxx' and Breadcrumb argument value as 0" + "TH sends AddOrUpdateWiFiNetwork command to the DUT with SSID argument + value as 'Userwifi_ssid', Credentials argument value as + 'Userwifi_Credentials' and Breadcrumb argument value as 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivatewifi092010 1 0 @@ -54,7 +54,7 @@ tests: [1650371276.622728][42488:42493] CHIP:EM: Sending Standalone Ack for MessageCounter:9593846 on exchange 33754i disabled: true - - label: "TH1 reads MaxNetworks attribute from the DUT" + - label: "TH reads MaxNetworks attribute from the DUT" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read max-networks 1 0 @@ -63,7 +63,7 @@ tests: [1650371283.620939][42495:42500] CHIP:EM: Sending Standalone Ack for MessageCounter:8017442 on exchange 15049i disabled: true - - label: "TH1 reads LastNetworkingStatus attribute from the DUT" + - label: "TH reads LastNetworkingStatus attribute from the DUT" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read last-networking-status 1 0 @@ -72,7 +72,7 @@ tests: [1650371290.738335][42502:42507] CHIP:EM: Sending Standalone Ack for MessageCounter:4381870 on exchange 56044i disabled: true - - label: "TH1 reads Networks attribute from the DUT" + - label: "TH reads Networks attribute from the DUT" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 1 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_8.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_8.yaml index 1474aaea5cdd73..ee3679aae370dd 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_8.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_8.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.8. [TC-DM-4.8][Thread] Verification for AddOrUpdateThreadNetwork + 10.4.8. [TC-DM-4.8] [Thread] Verification for AddOrUpdateThreadNetwork command [DUT-Commissionee] config: @@ -23,7 +23,9 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: + "During the commissioning process, TH sends ArmFailSafe command to the + DUT" verification: | Executed during the commissioning ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool pairing ble-thread 62 hex:0e080000000000010000000300001035060004001fffe0020801191008990820220708fd067fa7635e1066051009116253045736078899aabbccddeeff030e4f70656e686b72657069446f6e6f01021234041029282c49503302ea4536648015d1ff180c0402a0fff8 20202021 3840 @@ -38,9 +40,9 @@ tests: disabled: true - label: - "TH1 sends AddOrUpdateThreadNetwork command to the DUT with - OperationalDataset argument value as 'Userth_op' and Breadcrumb - argument value as 0" + "During the commissioning process, TH sends AddOrUpdateThreadNetwork + command to the DUT with OperationalDataset argument value as + 'Userth_op' and Breadcrumb argument value as 1" verification: | Executed during the commissioning ubuntu@ubuntu:~/cntl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool pairing ble-thread 62 hex:0e080000000000010000000300001035060004001fffe0020801191008990820220708fd067fa7635e1066051009116253045736078899aabbccddeeff030e4f70656e686b72657069446f6e6f01021234041029282c49503302ea4536648015d1ff180c0402a0fff8 20202021 3840 @@ -57,7 +59,9 @@ tests: [1650388639.091393][9682:9687] CHIP:CTL: Performing next commissioning step 'ThreadNetworkEnable' disabled: true - - label: "TH1 reads MaxNetworks attribute from the DUT" + - label: + "After commissioning completes, TH reads MaxNetworks attribute from + the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read max-networks 162 0 @@ -70,7 +74,7 @@ tests: [1645772548.258032][3837:3842] CHIP:EM: Sending Standalone Ack for MessageCounter:7388528 on exchange 41499i disabled: true - - label: "TH1 reads LastNetworkingStatus attribute from the DUT" + - label: "TH reads LastNetworkingStatus attribute from the DUT" verification: | ./chip-tool networkcommissioning read last-networking-status 51 0 @@ -79,7 +83,7 @@ tests: [1650371954.334942][7548:7553] CHIP:EM: Sending Standalone Ack for MessageCounter:4654405 on exchange 45344i disabled: true - - label: "TH1 reads Networks attribute from the DUT" + - label: "TH reads Networks attribute from the DUT" verification: | ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read networks 162 0 diff --git a/src/app/tests/suites/certification/Test_TC_DM_4_9.yaml b/src/app/tests/suites/certification/Test_TC_DM_4_9.yaml index 3750369acbc5f7..84ef9ae662a150 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_4_9.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_4_9.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 10.4.9. [TC-DM-4.9][WiFi] Verification for RemoveNetwork Command + 10.4.9. [TC-DM-4.9] [WiFi] Verification for RemoveNetwork Command [DUT-Commissionee] config: @@ -23,7 +23,7 @@ config: endpoint: 0 tests: - - label: "TH1 sends ArmFailSafe command to the DUT" + - label: "TH sends ArmFailSafe command to the DUT" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool generalcommissioning arm-fail-safe 60 0 1 0 @@ -39,7 +39,7 @@ tests: - label: "TH1 sends AddOrUpdateWiFiNetwork command to the DUT with SSID argument value as 'Userwifi_ssid', Credentials argument value as - 'xxxxx' and Breadcrumb argument value as 0" + 'Userwifi_Credentials' and Breadcrumb argument value as 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivatewifi092010 1 0 @@ -67,8 +67,8 @@ tests: disabled: true - label: - "TH1 sends RemoveNetwork Command to the DUT with NetworkID argument - value as 'Userwifi_ssid' and Breadcrumb argument value as 0" + "TH sends RemoveNetwork Command to the DUT with NetworkID argument + value as 'Userwifi_ssid' and Breadcrumb argument value as 1" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 @@ -91,7 +91,7 @@ tests: [1650373307.420120][42703:42708] CHIP:EM: Sending Standalone Ack for MessageCounter:11050013 on exchange 13049i disabled: true - - label: "TH1 reads LastNetworkingStatus attribute from the DUT" + - label: "TH reads LastNetworkingStatus attribute from the DUT" verification: | ubuntu@TE-8:~/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool networkcommissioning read last-networking-status 1 0 diff --git a/src/app/tests/suites/certification/Test_TC_MC_10_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_10_2.yaml deleted file mode 100644 index 627861154de51d..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_MC_10_2.yaml +++ /dev/null @@ -1,86 +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. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 18.12.2. [TC-MC-10.1] Read Content Launcher Attributes (DUT as Client) - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "DUT reads the AcceptHeader attribute from the TH" - verification: | - ./chip-tool contentlauncher read accept-header-list 1 1 - [1642143310.771536][4307:4312] CHIP:DMG: ReportDataMessage = - [1642143310.771560][4307:4312] CHIP:DMG: { - [1642143310.771578][4307:4312] CHIP:DMG: AttributeReportIBs = - [1642143310.771607][4307:4312] CHIP:DMG: [ - [1642143310.771669][4307:4312] CHIP:DMG: AttributeReportIB = - [1642143310.771706][4307:4312] CHIP:DMG: { - [1642143310.771733][4307:4312] CHIP:DMG: AttributeDataIB = - [1642143310.771761][4307:4312] CHIP:DMG: { - [1642143310.771787][4307:4312] CHIP:DMG: DataVersion = 0x0, - [1642143310.771815][4307:4312] CHIP:DMG: AttributePathIB = - [1642143310.771875][4307:4312] CHIP:DMG: { - [1642143310.771921][4307:4312] CHIP:DMG: Endpoint = 0x1, - [1642143310.771968][4307:4312] CHIP:DMG: Cluster = 0x50a, - [1642143310.772015][4307:4312] CHIP:DMG: Attribute = 0x0000_0000, - [1642143310.772059][4307:4312] CHIP:DMG: } - [1642143310.772107][4307:4312] CHIP:DMG: - [1642143310.772150][4307:4312] CHIP:DMG: Data = [ - [1642143310.772195][4307:4312] CHIP:DMG: - [1642143310.772240][4307:4312] CHIP:DMG: ], - [1642143310.772283][4307:4312] CHIP:DMG: }, - [1642143310.772327][4307:4312] CHIP:DMG: - [1642143310.772354][4307:4312] CHIP:DMG: }, - [1642143310.772385][4307:4312] CHIP:DMG: - [1642143310.772409][4307:4312] CHIP:DMG: ], - [1642143310.772440][4307:4312] CHIP:DMG: - [1642143310.772464][4307:4312] CHIP:DMG: SuppressResponse = true, - [1642143310.772487][4307:4312] CHIP:DMG: } - [1642143310.772653][4307:4312] CHIP:TOO: ContentLauncher.AcceptHeaderList response: 0 entries - disabled: true - - - label: "DUT reads the SupportedStreamingProtocols attribute from the TH" - verification: | - ./chip-tool contentlauncher read supported-streaming-protocols 1 1 - [1642143572.943704][4325:4330] CHIP:DMG: ReportDataMessage = - [1642143572.943750][4325:4330] CHIP:DMG: { - [1642143572.943798][4325:4330] CHIP:DMG: AttributeReportIBs = - [1642143572.943844][4325:4330] CHIP:DMG: [ - [1642143572.943881][4325:4330] CHIP:DMG: AttributeReportIB = - [1642143572.943940][4325:4330] CHIP:DMG: { - [1642143572.943967][4325:4330] CHIP:DMG: AttributeDataIB = - [1642143572.944014][4325:4330] CHIP:DMG: { - [1642143572.944069][4325:4330] CHIP:DMG: DataVersion = 0x0, - [1642143572.944095][4325:4330] CHIP:DMG: AttributePathIB = - [1642143572.944141][4325:4330] CHIP:DMG: { - [1642143572.944230][4325:4330] CHIP:DMG: Endpoint = 0x1, - [1642143572.944274][4325:4330] CHIP:DMG: Cluster = 0x50a, - [1642143572.944320][4325:4330] CHIP:DMG: Attribute = 0x0000_0001, - [1642143572.944382][4325:4330] CHIP:DMG: } - [1642143572.944415][4325:4330] CHIP:DMG: - [1642143572.944462][4325:4330] CHIP:DMG: Data = 0, - [1642143572.944493][4325:4330] CHIP:DMG: }, - [1642143572.944522][4325:4330] CHIP:DMG: - [1642143572.944547][4325:4330] CHIP:DMG: }, - [1642143572.944578][4325:4330] CHIP:DMG: - [1642143572.944598][4325:4330] CHIP:DMG: ], - [1642143572.944625][4325:4330] CHIP:DMG: - [1642143572.944649][4325:4330] CHIP:DMG: SuppressResponse = true, - [1642143572.944670][4325:4330] CHIP:DMG: } - [1642143572.944820][4325:4330] CHIP:TOO: ContentLauncher.SupportedStreamingProtocols response: 0 - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_10_4.yaml b/src/app/tests/suites/certification/Test_TC_MC_10_4.yaml deleted file mode 100644 index a0039a1ebfcfe1..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_MC_10_4.yaml +++ /dev/null @@ -1,36 +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. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 18.12.4. [TC-MC-10.4] Launch Content Verification (DUT as Client) - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: - "DUT sends a LaunchContent command to the TH with a search parameter - and string, and AutoPlay flag set to false" - verification: | - ./chip-tool contentlauncher launch-content-request 0 'Star Wars' 1 1 - disabled: true - - - label: - "DUT sends a LaunchContent command to the TH with a search parameter - and string, and AutoPlay flag set to true" - verification: | - ./chip-tool contentlauncher launch-content-request 1 'Star Wars' 1 1 - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_10_6.yaml b/src/app/tests/suites/certification/Test_TC_MC_10_6.yaml deleted file mode 100644 index 4772408983919b..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_MC_10_6.yaml +++ /dev/null @@ -1,50 +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. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 18.12.6. [TC-MC-10.6] Launch URL Verification (DUT as Client) - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: - "DUT sends a LaunchURL command to the TH with a known good content URL - string" - verification: | - ./chip-tool contentlauncher launch-urlrequest https://csa-iot.org/ 1 1 - disabled: true - - - label: - "DUT sends a LaunchURL command to the TH with a known good content URL - string and a display string" - verification: | - ./chip-tool contentlauncher launch-urlrequest https://csa-iot.org/ 'Test content' 1 1 - disabled: true - - - label: - "DUT sends a LaunchURL command to the TH with a known good content URL - string and a brand information object." - verification: | - Not supported by chip-tool - disabled: true - - - label: - "DUT sends a LaunchURL command to the DUT with a known unreachable - content URL string." - verification: | - ./chip-tool contentlauncher launch-urlrequest https://badurl 1 1 - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_11_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_11_1.yaml new file mode 100644 index 00000000000000..21fe3a05fb9b49 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_11_1.yaml @@ -0,0 +1,126 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: + 3.13.1. [TC-MC-11.1] Casting Video Player via User-Directed Commissioning + Verification (DUT as Server) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: + "TH start scanning for available commissioners using Commissioner + Discovery" + verification: | + ./chip-tv-casting-app + + The shell should show a discovered commissioner, similar to the following: + + [1653089767279] [88361:1149415] CHIP: [SVR] Discovered Commissioner #0 + [1653089767279] [88361:1149415] CHIP: [DIS] Hostname: 147dda9ac00a + [1653089767279] [88361:1149415] CHIP: [DIS] IP Address #1: 169.254.81.148 + [1653089767279] [88361:1149415] CHIP: [DIS] Port: 5650 + [1653089767279] [88361:1149415] CHIP: [DIS] Mrp Interval idle: 5000 ms + [1653089767279] [88361:1149415] CHIP: [DIS] Mrp Interval active: 2000 ms + [1653089767279] [88361:1149415] CHIP: [DIS] Device Name: Test TV + [1653089767279] [88361:1149415] CHIP: [DIS] Vendor ID: 65521 + [1653089767279] [88361:1149415] CHIP: [DIS] Product ID: 32769 + [1653089767279] [88361:1149415] CHIP: [DIS] Device Type: 35 + [1653089767279] [88361:1149415] CHIP: [DIS] Instance Name: 3DC86F5236D636CB + [1653089767279] [88361:1149415] CHIP: [DIS] Commissioning Mode: 0 + [1653089767279] [88361:1149415] CHIP: [SVR] 1 commissioner(s) discovered. Select one (by number# above) to request commissioning from: + [1653089767279] [88361:1149415] CHIP: [SVR] Example: cast request 0 + disabled: true + + - label: "TH is instructed to select the commissioner found in step 1" + verification: | + Into the shell, enter "cast request 0" to send a user-directed-commissioning request to the DUT + + > cast request 0 + [1653179218011] [47890:1899175] CHIP: [DL] request + [1653179218011] [47890:1899175] CHIP: [SVR] ------- PrepareForCommissioning + [1653179218011] [47890:1899175] CHIP: [SVR] Server initializing... + disabled: true + + - label: + "DUT prompt user for onboarding by giving an option to accept or + reject the commissioning of TH" + verification: | + UX will vary by product maker. The following is the tv-app shell output: + + [1653179219087] [89108:1898759] CHIP: [CTL] ------PROMPT USER: Test TV casting app is requesting permission to cast to this TV, approve? [0x0000_FFF1,0x0000_8001,E0707BB1AFFA6F23,020096D16895275F1B49A07221F0E588E06B] + + [1653179219087] [89108:1898759] CHIP: [CTL] ------Via Shell Enter: controller ux ok|cancel + disabled: true + + - label: + "DUT start the commissioning procedure with TH, when user accepts the + commissioning" + verification: | + Into the DUT UX, accept request for commissioning. Manufacturer may utilize a custom method for obtaining user consent other than an on-screen prompt. + + The following is the tv-app shell command to accept the request + + > controller ux ok + + The commissioning success completion is indicated in the TH with the following shell output: + + [1653088463910] [86837:1122544] CHIP: [SVR] Commissioning completed successfully + disabled: true + + - label: "TH reads the endpoints from the DUT" + verification: | + Into the shell, enter "cast cluster descriptor read device-list 0 1" to read the device list of the descriptor cluster on endpoint 1 + + > cast cluster descriptor read device-list 0 1 + .... + [1653180010083] [48426:1914389] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 2009082322 + [1653180010083] [48426:1914389] CHIP: [TOO] device list: 1 entries + [1653180010083] [48426:1914389] CHIP: [TOO] [1]: { + [1653180010083] [48426:1914389] CHIP: [TOO] Type: 35 + [1653180010083] [48426:1914389] CHIP: [TOO] Revision: 1 + [1653180010083] [48426:1914389] CHIP: [TOO] } + disabled: true + + - label: "TH reads the endpoints from the DUT" + verification: | + Into the shell, enter "cast cluster descriptor read device-list 0 2" to read the device list of the descriptor cluster on endpoint 2 + + > cast cluster descriptor read device-list 0 2 + .... + [1653180162379] [48426:1917385] CHIP: [TOO] Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 631462374 + [1653180162379] [48426:1917385] CHIP: [TOO] device list: 1 entries + [1653180162379] [48426:1917385] CHIP: [TOO] [1]: { + [1653180162379] [48426:1917385] CHIP: [TOO] Type: 34 + [1653180162379] [48426:1917385] CHIP: [TOO] Revision: 1 + [1653180162379] [48426:1917385] CHIP: [TOO] } + disabled: true + + - label: "TH reads the endpoints from the DUT" + verification: | + Into the shell, enter "cast cluster descriptor read device-list 0 6" to read the device list of the descriptor cluster on endpoint 6 + + > cast cluster descriptor read device-list 0 6 + .... + [1653180214397] [48426:1919098] CHIP: [TOO] Endpoint: 6 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 4094146641 + [1653180214397] [48426:1919098] CHIP: [TOO] device list: 1 entries + [1653180214397] [48426:1919098] CHIP: [TOO] [1]: { + [1653180214397] [48426:1919098] CHIP: [TOO] Type: 36 + [1653180214397] [48426:1919098] CHIP: [TOO] Revision: 1 + [1653180214397] [48426:1919098] CHIP: [TOO] } + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_11_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_11_2.yaml new file mode 100644 index 00000000000000..ba22ac66d96fc9 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_11_2.yaml @@ -0,0 +1,131 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: + 3.13.2. [TC-MC-11.2] Casting Video Player via UX Screen with PIN + Verification (DUT as Server) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: + "TH start scanning for available commissioners using Commissioner + Discovery" + verification: | + ./chip-tv-casting-app + + The shell should show a discovered commissioner, similar to the following: + + [1653089767279] [88361:1149415] CHIP: [SVR] Discovered Commissioner #0 + [1653089767279] [88361:1149415] CHIP: [DIS] Hostname: 147dda9ac00a + [1653089767279] [88361:1149415] CHIP: [DIS] IP Address #1: 169.254.81.148 + [1653089767279] [88361:1149415] CHIP: [DIS] Port: 5650 + [1653089767279] [88361:1149415] CHIP: [DIS] Mrp Interval idle: 5000 ms + [1653089767279] [88361:1149415] CHIP: [DIS] Mrp Interval active: 2000 ms + [1653089767279] [88361:1149415] CHIP: [DIS] Device Name: Test TV + [1653089767279] [88361:1149415] CHIP: [DIS] Vendor ID: 65521 + [1653089767279] [88361:1149415] CHIP: [DIS] Product ID: 32769 + [1653089767279] [88361:1149415] CHIP: [DIS] Device Type: 35 + [1653089767279] [88361:1149415] CHIP: [DIS] Instance Name: 3DC86F5236D636CB + [1653089767279] [88361:1149415] CHIP: [DIS] Commissioning Mode: 0 + [1653089767279] [88361:1149415] CHIP: [SVR] 1 commissioner(s) discovered. Select one (by number# above) to request commissioning from: + [1653089767279] [88361:1149415] CHIP: [SVR] Example: cast request 0 + disabled: true + + - label: "TH is instructed to select the commissioner found in step 1" + verification: | + Into the shell, enter "cast request 0" to send a user-directed-commissioning request to the DUT + + > cast request 0 + [1653179218011] [47890:1899175] CHIP: [DL] request + [1653179218011] [47890:1899175] CHIP: [SVR] ------- PrepareForCommissioning + [1653179218011] [47890:1899175] CHIP: [SVR] Server initializing... + disabled: true + + - label: "TH provides 11/21 digit manual pairing code or setup passcode." + verification: | + The TH should display the setup passcode in the shell output (20202021 is the passcode below): + + [1653179750840] [48426:1909867] CHIP: [DL] Device Configuration: + [1653179750840] [48426:1909867] CHIP: [DL] Serial Number: TEST_SN + [1653179750840] [48426:1909867] CHIP: [DL] Vendor Id: 65521 (0xFFF1) + [1653179750841] [48426:1909867] CHIP: [DL] Product Id: 32769 (0x8001) + [1653179750841] [48426:1909867] CHIP: [DL] Hardware Version: 0 + [1653179750841] [48426:1909867] CHIP: [DL] Setup Pin Code (0 for UNKNOWN/ERROR): 20202021 + [1653179750841] [48426:1909867] CHIP: [DL] Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 0 (0x0) + [1653179750841] [48426:1909867] CHIP: [DL] Manufacturing Date: (not set) + [1653179750841] [48426:1909867] CHIP: [DL] Device Type: 35 (0x23) + Done + disabled: true + + - label: + "DUT Prompts user to enter the pairing code (provided by TH in + previous step)." + verification: | + Into the DUT UX, accept request for commissioning. Manufacturer may utilize a custom method for obtaining user consent other than an on-screen prompt. + + The following is the tv-app shell command to accept the request + + > controller ux ok 20202021 + + The commissioning success completion is indicated in the TH with the following shell output: + + [1653088463910] [86837:1122544] CHIP: [SVR] Commissioning completed successfully + disabled: true + + - label: "TH reads the endpoints from the DUT" + verification: | + Into the shell, enter "cast cluster descriptor read device-list 0 1" to read the device list of the descriptor cluster on endpoint 1 + + > cast cluster descriptor read device-list 0 1 + .... + [1653180010083] [48426:1914389] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 2009082322 + [1653180010083] [48426:1914389] CHIP: [TOO] device list: 1 entries + [1653180010083] [48426:1914389] CHIP: [TOO] [1]: { + [1653180010083] [48426:1914389] CHIP: [TOO] Type: 35 + [1653180010083] [48426:1914389] CHIP: [TOO] Revision: 1 + [1653180010083] [48426:1914389] CHIP: [TOO] } + disabled: true + + - label: "TH reads the endpoints from the DUT" + verification: | + Into the shell, enter "cast cluster descriptor read device-list 0 2" to read the device list of the descriptor cluster on endpoint 2 + + > cast cluster descriptor read device-list 0 2 + .... + [1653180162379] [48426:1917385] CHIP: [TOO] Endpoint: 2 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 631462374 + [1653180162379] [48426:1917385] CHIP: [TOO] device list: 1 entries + [1653180162379] [48426:1917385] CHIP: [TOO] [1]: { + [1653180162379] [48426:1917385] CHIP: [TOO] Type: 34 + [1653180162379] [48426:1917385] CHIP: [TOO] Revision: 1 + [1653180162379] [48426:1917385] CHIP: [TOO] } + disabled: true + + - label: "TH reads the endpoints from the DUT" + verification: | + Into the shell, enter "cast cluster descriptor read device-list 0 6" to read the device list of the descriptor cluster on endpoint 6 + + > cast cluster descriptor read device-list 0 6 + .... + [1653180214397] [48426:1919098] CHIP: [TOO] Endpoint: 6 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 4094146641 + [1653180214397] [48426:1919098] CHIP: [TOO] device list: 1 entries + [1653180214397] [48426:1919098] CHIP: [TOO] [1]: { + [1653180214397] [48426:1919098] CHIP: [TOO] Type: 36 + [1653180214397] [48426:1919098] CHIP: [TOO] Revision: 1 + [1653180214397] [48426:1919098] CHIP: [TOO] } + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_1.yaml deleted file mode 100644 index 10d0cb590c549c..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_MC_3_1.yaml +++ /dev/null @@ -1,152 +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.3.1. [TC-MC-3.1] Navigation Keycode Verification - -config: - nodeId: 0x12344321 - cluster: "Keypad Input" - endpoint: 1 - -tests: - - label: "Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - #Issue 17510 - - label: "Send Select" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x00 - - - label: "Send Up" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x01 - - - label: "Send Down" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x02 - - - label: "Send Left" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x03 - - label: "Send Right" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x04 - - - label: "Send RightUp" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x05 - - - label: "Send RightDown" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x06 - - - label: "Send LeftUp" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x07 - - - label: "Send LeftDown" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x08 - - - label: "Send RootMenu" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x09 - - - label: "Send SetupMenu" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x0A - - - label: "Send ContentsMenu" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x0B - - - label: "Send FavoriteMenu" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x0C - - - label: "Send Exit" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0x0D - - - label: "Send Invalid" - PICS: PICS_SKIP_SAMPLE_APP - command: "SendKey" - arguments: - values: - - name: "keyCode" - value: 0xFF - response: - error: UNSUPPORTED_WRITE - # TODO: Add Step 10 (TH sends Keycode to DUT, when DUT in a processing state) diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_14.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_14.yaml new file mode 100644 index 00000000000000..cfec077f6bc660 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_3_14.yaml @@ -0,0 +1,63 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.5.5. [TC-MC-3.14] Select Input Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends SelectInput command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + If the DUT knows the Index value, then those can be sent as the argument. + Else User needs to execute the following command to know the index InputList + ./chip-tool mediainput read input-list 1 1 + + + ./chip-tool mediainput select-input 0 1 1 + + [1653155506860] [89108:1723790] CHIP: [DMG] InvokeRequestMessage = + [1653155506860] [89108:1723790] CHIP: [DMG] { + [1653155506860] [89108:1723790] CHIP: [DMG] suppressResponse = false, + [1653155506860] [89108:1723790] CHIP: [DMG] timedRequest = false, + [1653155506860] [89108:1723790] CHIP: [DMG] InvokeRequests = + [1653155506860] [89108:1723790] CHIP: [DMG] [ + [1653155506860] [89108:1723790] CHIP: [DMG] CommandDataIB = + [1653155506860] [89108:1723790] CHIP: [DMG] { + [1653155506860] [89108:1723790] CHIP: [DMG] CommandPathIB = + [1653155506860] [89108:1723790] CHIP: [DMG] { + [1653155506860] [89108:1723790] CHIP: [DMG] EndpointId = 0x1, + [1653155506860] [89108:1723790] CHIP: [DMG] ClusterId = 0x507, + [1653155506860] [89108:1723790] CHIP: [DMG] CommandId = 0x0, + [1653155506860] [89108:1723790] CHIP: [DMG] }, + [1653155506860] [89108:1723790] CHIP: [DMG] + [1653155506860] [89108:1723790] CHIP: [DMG] CommandData = + [1653155506860] [89108:1723790] CHIP: [DMG] { + [1653155506860] [89108:1723790] CHIP: [DMG] 0x0 = 1, + [1653155506860] [89108:1723790] CHIP: [DMG] }, + [1653155506860] [89108:1723790] CHIP: [DMG] }, + [1653155506860] [89108:1723790] CHIP: [DMG] + [1653155506860] [89108:1723790] CHIP: [DMG] ], + [1653155506860] [89108:1723790] CHIP: [DMG] + [1653155506860] [89108:1723790] CHIP: [DMG] InteractionModelRevision = 1 + [1653155506860] [89108:1723790] CHIP: [DMG] }, + + + Enter the below command to read the current input. + ./chip-tool mediainput read currentinput 1 1 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_15.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_15.yaml new file mode 100644 index 00000000000000..0938909a234313 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_3_15.yaml @@ -0,0 +1,59 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.5.6. [TC-MC-3.15] Show Input Status Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Show Input Status command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediainput show-input-status 1 1 + + [1653155393583] [37369:1721684] CHIP: [DMG] InvokeResponseMessage = + [1653155393583] [37369:1721684] CHIP: [DMG] { + [1653155393583] [37369:1721684] CHIP: [DMG] suppressResponse = false, + [1653155393583] [37369:1721684] CHIP: [DMG] InvokeResponseIBs = + [1653155393583] [37369:1721684] CHIP: [DMG] [ + [1653155393583] [37369:1721684] CHIP: [DMG] InvokeResponseIB = + [1653155393583] [37369:1721684] CHIP: [DMG] { + [1653155393583] [37369:1721684] CHIP: [DMG] CommandStatusIB = + [1653155393583] [37369:1721684] CHIP: [DMG] { + [1653155393583] [37369:1721684] CHIP: [DMG] CommandPathIB = + [1653155393583] [37369:1721684] CHIP: [DMG] { + [1653155393583] [37369:1721684] CHIP: [DMG] EndpointId = 0x1, + [1653155393583] [37369:1721684] CHIP: [DMG] ClusterId = 0x507, + [1653155393583] [37369:1721684] CHIP: [DMG] CommandId = 0x1, + [1653155393583] [37369:1721684] CHIP: [DMG] }, + [1653155393583] [37369:1721684] CHIP: [DMG] + [1653155393583] [37369:1721684] CHIP: [DMG] StatusIB = + [1653155393583] [37369:1721684] CHIP: [DMG] { + [1653155393583] [37369:1721684] CHIP: [DMG] status = 0x00 (SUCCESS), + [1653155393583] [37369:1721684] CHIP: [DMG] }, + [1653155393583] [37369:1721684] CHIP: [DMG] + [1653155393583] [37369:1721684] CHIP: [DMG] }, + [1653155393583] [37369:1721684] CHIP: [DMG] + [1653155393583] [37369:1721684] CHIP: [DMG] }, + [1653155393583] [37369:1721684] CHIP: [DMG] + [1653155393583] [37369:1721684] CHIP: [DMG] ], + [1653155393583] [37369:1721684] CHIP: [DMG] + [1653155393583] [37369:1721684] CHIP: [DMG] InteractionModelRevision = 1 + [1653155393583] [37369:1721684] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_16.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_16.yaml new file mode 100644 index 00000000000000..1f6e6fa904cc6a --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_3_16.yaml @@ -0,0 +1,54 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.5.7. [TC-MC-3.16] Hide Input Status Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Hide Input Status command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediainput hide-input-status 1 1 + + [1653155441000] [89108:1722216] CHIP: [DMG] InvokeRequestMessage = + [1653155441000] [89108:1722216] CHIP: [DMG] { + [1653155441000] [89108:1722216] CHIP: [DMG] suppressResponse = false, + [1653155441000] [89108:1722216] CHIP: [DMG] timedRequest = false, + [1653155441000] [89108:1722216] CHIP: [DMG] InvokeRequests = + [1653155441000] [89108:1722216] CHIP: [DMG] [ + [1653155441000] [89108:1722216] CHIP: [DMG] CommandDataIB = + [1653155441000] [89108:1722216] CHIP: [DMG] { + [1653155441000] [89108:1722216] CHIP: [DMG] CommandPathIB = + [1653155441000] [89108:1722216] CHIP: [DMG] { + [1653155441000] [89108:1722216] CHIP: [DMG] EndpointId = 0x1, + [1653155441000] [89108:1722216] CHIP: [DMG] ClusterId = 0x507, + [1653155441000] [89108:1722216] CHIP: [DMG] CommandId = 0x2, + [1653155441000] [89108:1722216] CHIP: [DMG] }, + [1653155441000] [89108:1722216] CHIP: [DMG] + [1653155441000] [89108:1722216] CHIP: [DMG] CommandData = + [1653155441000] [89108:1722216] CHIP: [DMG] { + [1653155441000] [89108:1722216] CHIP: [DMG] }, + [1653155441000] [89108:1722216] CHIP: [DMG] }, + [1653155441000] [89108:1722216] CHIP: [DMG] + [1653155441000] [89108:1722216] CHIP: [DMG] ], + [1653155441000] [89108:1722216] CHIP: [DMG] + [1653155441000] [89108:1722216] CHIP: [DMG] InteractionModelRevision = 1 + [1653155441000] [89108:1722216] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_17.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_17.yaml new file mode 100644 index 00000000000000..36665300b8bf79 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_3_17.yaml @@ -0,0 +1,56 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.5.8. [TC-MC-3.17] Rename Input Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Rename Input command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediainput rename-input 1 'DVD' 1 1 + + [1653155471413] [89108:1722216] CHIP: [DMG] InvokeRequestMessage = + [1653155471413] [89108:1722216] CHIP: [DMG] { + [1653155471413] [89108:1722216] CHIP: [DMG] suppressResponse = false, + [1653155471413] [89108:1722216] CHIP: [DMG] timedRequest = false, + [1653155471413] [89108:1722216] CHIP: [DMG] InvokeRequests = + [1653155471413] [89108:1722216] CHIP: [DMG] [ + [1653155471413] [89108:1722216] CHIP: [DMG] CommandDataIB = + [1653155471413] [89108:1722216] CHIP: [DMG] { + [1653155471413] [89108:1722216] CHIP: [DMG] CommandPathIB = + [1653155471413] [89108:1722216] CHIP: [DMG] { + [1653155471413] [89108:1722216] CHIP: [DMG] EndpointId = 0x1, + [1653155471413] [89108:1722216] CHIP: [DMG] ClusterId = 0x507, + [1653155471413] [89108:1722216] CHIP: [DMG] CommandId = 0x3, + [1653155471413] [89108:1722216] CHIP: [DMG] }, + [1653155471413] [89108:1722216] CHIP: [DMG] + [1653155471413] [89108:1722216] CHIP: [DMG] CommandData = + [1653155471413] [89108:1722216] CHIP: [DMG] { + [1653155471413] [89108:1722216] CHIP: [DMG] 0x0 = 1, + [1653155471413] [89108:1722216] CHIP: [DMG] 0x1 = "DVD", + [1653155471413] [89108:1722216] CHIP: [DMG] }, + [1653155471413] [89108:1722216] CHIP: [DMG] }, + [1653155471413] [89108:1722216] CHIP: [DMG] + [1653155471413] [89108:1722216] CHIP: [DMG] ], + [1653155471413] [89108:1722216] CHIP: [DMG] + [1653155471413] [89108:1722216] CHIP: [DMG] InteractionModelRevision = 1 + [1653155471413] [89108:1722216] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_7_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_7_1.yaml new file mode 100644 index 00000000000000..2d00e930a15d8e --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_3_7_1.yaml @@ -0,0 +1,59 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.4.4. [TC-MC-3.7.1] Launch Application Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends LaunchApp command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool applicationlauncher launch-app '{"catalogVendorId": 123, "applicationId": "exampleid"}' 1 1 + + [1653155295288] [89108:1719688] CHIP: [DMG] InvokeRequestMessage = + [1653155295288] [89108:1719688] CHIP: [DMG] { + [1653155295288] [89108:1719688] CHIP: [DMG] suppressResponse = false, + [1653155295288] [89108:1719688] CHIP: [DMG] timedRequest = false, + [1653155295288] [89108:1719688] CHIP: [DMG] InvokeRequests = + [1653155295289] [89108:1719688] CHIP: [DMG] [ + [1653155295289] [89108:1719688] CHIP: [DMG] CommandDataIB = + [1653155295289] [89108:1719688] CHIP: [DMG] { + [1653155295289] [89108:1719688] CHIP: [DMG] CommandPathIB = + [1653155295289] [89108:1719688] CHIP: [DMG] { + [1653155295289] [89108:1719688] CHIP: [DMG] EndpointId = 0x1, + [1653155295289] [89108:1719688] CHIP: [DMG] ClusterId = 0x50c, + [1653155295289] [89108:1719688] CHIP: [DMG] CommandId = 0x0, + [1653155295289] [89108:1719688] CHIP: [DMG] }, + [1653155295289] [89108:1719688] CHIP: [DMG] + [1653155295289] [89108:1719688] CHIP: [DMG] CommandData = + [1653155295289] [89108:1719688] CHIP: [DMG] { + [1653155295289] [89108:1719688] CHIP: [DMG] 0x0 = + [1653155295289] [89108:1719688] CHIP: [DMG] { + [1653155295289] [89108:1719688] CHIP: [DMG] 0x0 = 123, + [1653155295289] [89108:1719688] CHIP: [DMG] 0x1 = "exampleid", + [1653155295289] [89108:1719688] CHIP: [DMG] }, + [1653155295289] [89108:1719688] CHIP: [DMG] }, + [1653155295289] [89108:1719688] CHIP: [DMG] }, + [1653155295289] [89108:1719688] CHIP: [DMG] + [1653155295289] [89108:1719688] CHIP: [DMG] ], + [1653155295289] [89108:1719688] CHIP: [DMG] + [1653155295289] [89108:1719688] CHIP: [DMG] InteractionModelRevision = 1 + [1653155295289] [89108:1719688] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_8_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_8_1.yaml new file mode 100644 index 00000000000000..62f255462ef530 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_3_8_1.yaml @@ -0,0 +1,59 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.4.6. [TC-MC-3.8.1] Stop Application Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends StopApp command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool applicationlauncher stop-app '{"catalogVendorId": 123, "applicationId": "exampleid"}' 1 1 + + [1653155332047] [89108:1720505] CHIP: [DMG] InvokeRequestMessage = + [1653155332047] [89108:1720505] CHIP: [DMG] { + [1653155332047] [89108:1720505] CHIP: [DMG] suppressResponse = false, + [1653155332047] [89108:1720505] CHIP: [DMG] timedRequest = false, + [1653155332047] [89108:1720505] CHIP: [DMG] InvokeRequests = + [1653155332047] [89108:1720505] CHIP: [DMG] [ + [1653155332047] [89108:1720505] CHIP: [DMG] CommandDataIB = + [1653155332047] [89108:1720505] CHIP: [DMG] { + [1653155332047] [89108:1720505] CHIP: [DMG] CommandPathIB = + [1653155332047] [89108:1720505] CHIP: [DMG] { + [1653155332047] [89108:1720505] CHIP: [DMG] EndpointId = 0x1, + [1653155332047] [89108:1720505] CHIP: [DMG] ClusterId = 0x50c, + [1653155332047] [89108:1720505] CHIP: [DMG] CommandId = 0x1, + [1653155332047] [89108:1720505] CHIP: [DMG] }, + [1653155332047] [89108:1720505] CHIP: [DMG] + [1653155332047] [89108:1720505] CHIP: [DMG] CommandData = + [1653155332047] [89108:1720505] CHIP: [DMG] { + [1653155332047] [89108:1720505] CHIP: [DMG] 0x0 = + [1653155332047] [89108:1720505] CHIP: [DMG] { + [1653155332047] [89108:1720505] CHIP: [DMG] 0x0 = 123, + [1653155332047] [89108:1720505] CHIP: [DMG] 0x1 = "exampleid", + [1653155332047] [89108:1720505] CHIP: [DMG] }, + [1653155332047] [89108:1720505] CHIP: [DMG] }, + [1653155332047] [89108:1720505] CHIP: [DMG] }, + [1653155332047] [89108:1720505] CHIP: [DMG] + [1653155332047] [89108:1720505] CHIP: [DMG] ], + [1653155332047] [89108:1720505] CHIP: [DMG] + [1653155332047] [89108:1720505] CHIP: [DMG] InteractionModelRevision = 1 + [1653155332047] [89108:1720505] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_9_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_9_1.yaml new file mode 100644 index 00000000000000..b5d30a89a54a39 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_3_9_1.yaml @@ -0,0 +1,59 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.4.8. [TC-MC-3.9.1] Hide Application Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends HideApp command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool applicationlauncher hide-app '{"catalogVendorId": 123, "applicationId": "exampleid"}' 1 1 + + [1653155357497] [89108:1720718] CHIP: [DMG] InvokeRequestMessage = + [1653155357497] [89108:1720718] CHIP: [DMG] { + [1653155357497] [89108:1720718] CHIP: [DMG] suppressResponse = false, + [1653155357497] [89108:1720718] CHIP: [DMG] timedRequest = false, + [1653155357497] [89108:1720718] CHIP: [DMG] InvokeRequests = + [1653155357497] [89108:1720718] CHIP: [DMG] [ + [1653155357497] [89108:1720718] CHIP: [DMG] CommandDataIB = + [1653155357497] [89108:1720718] CHIP: [DMG] { + [1653155357497] [89108:1720718] CHIP: [DMG] CommandPathIB = + [1653155357497] [89108:1720718] CHIP: [DMG] { + [1653155357497] [89108:1720718] CHIP: [DMG] EndpointId = 0x1, + [1653155357497] [89108:1720718] CHIP: [DMG] ClusterId = 0x50c, + [1653155357497] [89108:1720718] CHIP: [DMG] CommandId = 0x2, + [1653155357497] [89108:1720718] CHIP: [DMG] }, + [1653155357497] [89108:1720718] CHIP: [DMG] + [1653155357497] [89108:1720718] CHIP: [DMG] CommandData = + [1653155357497] [89108:1720718] CHIP: [DMG] { + [1653155357497] [89108:1720718] CHIP: [DMG] 0x0 = + [1653155357497] [89108:1720718] CHIP: [DMG] { + [1653155357497] [89108:1720718] CHIP: [DMG] 0x0 = 123, + [1653155357497] [89108:1720718] CHIP: [DMG] 0x1 = "exampleid", + [1653155357497] [89108:1720718] CHIP: [DMG] }, + [1653155357497] [89108:1720718] CHIP: [DMG] }, + [1653155357497] [89108:1720718] CHIP: [DMG] }, + [1653155357497] [89108:1720718] CHIP: [DMG] + [1653155357497] [89108:1720718] CHIP: [DMG] ], + [1653155357497] [89108:1720718] CHIP: [DMG] + [1653155357497] [89108:1720718] CHIP: [DMG] InteractionModelRevision = 1 + [1653155357497] [89108:1720718] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_5_4.yaml b/src/app/tests/suites/certification/Test_TC_MC_5_4.yaml new file mode 100644 index 00000000000000..b5157a60f07fbe --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_5_4.yaml @@ -0,0 +1,55 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.7.4. [TC-MC-5.4] Change Channel Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Change Channel command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool channel change-channel 33 1 1 + + [1653155583606] [89108:1725354] CHIP: [DMG] InvokeRequestMessage = + [1653155583606] [89108:1725354] CHIP: [DMG] { + [1653155583606] [89108:1725354] CHIP: [DMG] suppressResponse = false, + [1653155583606] [89108:1725354] CHIP: [DMG] timedRequest = false, + [1653155583606] [89108:1725354] CHIP: [DMG] InvokeRequests = + [1653155583606] [89108:1725354] CHIP: [DMG] [ + [1653155583606] [89108:1725354] CHIP: [DMG] CommandDataIB = + [1653155583606] [89108:1725354] CHIP: [DMG] { + [1653155583606] [89108:1725354] CHIP: [DMG] CommandPathIB = + [1653155583606] [89108:1725354] CHIP: [DMG] { + [1653155583606] [89108:1725354] CHIP: [DMG] EndpointId = 0x1, + [1653155583606] [89108:1725354] CHIP: [DMG] ClusterId = 0x504, + [1653155583606] [89108:1725354] CHIP: [DMG] CommandId = 0x0, + [1653155583606] [89108:1725354] CHIP: [DMG] }, + [1653155583606] [89108:1725354] CHIP: [DMG] + [1653155583606] [89108:1725354] CHIP: [DMG] CommandData = + [1653155583606] [89108:1725354] CHIP: [DMG] { + [1653155583606] [89108:1725354] CHIP: [DMG] 0x0 = "33", + [1653155583606] [89108:1725354] CHIP: [DMG] }, + [1653155583606] [89108:1725354] CHIP: [DMG] }, + [1653155583606] [89108:1725354] CHIP: [DMG] + [1653155583606] [89108:1725354] CHIP: [DMG] ], + [1653155583606] [89108:1725354] CHIP: [DMG] + [1653155583606] [89108:1725354] CHIP: [DMG] InteractionModelRevision = 1 + [1653155583606] [89108:1725354] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_5_5.yaml b/src/app/tests/suites/certification/Test_TC_MC_5_5.yaml new file mode 100644 index 00000000000000..287737dfc0e402 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_5_5.yaml @@ -0,0 +1,56 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.7.5. [TC-MC-5.5] Change Channel By Number Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Change Channel by Number command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool channel change-channel-by-number 33 22 1 1 + + [1653155619571] [89108:1725828] CHIP: [DMG] InvokeRequestMessage = + [1653155619571] [89108:1725828] CHIP: [DMG] { + [1653155619571] [89108:1725828] CHIP: [DMG] suppressResponse = false, + [1653155619571] [89108:1725828] CHIP: [DMG] timedRequest = false, + [1653155619571] [89108:1725828] CHIP: [DMG] InvokeRequests = + [1653155619571] [89108:1725828] CHIP: [DMG] [ + [1653155619571] [89108:1725828] CHIP: [DMG] CommandDataIB = + [1653155619571] [89108:1725828] CHIP: [DMG] { + [1653155619571] [89108:1725828] CHIP: [DMG] CommandPathIB = + [1653155619571] [89108:1725828] CHIP: [DMG] { + [1653155619571] [89108:1725828] CHIP: [DMG] EndpointId = 0x1, + [1653155619571] [89108:1725828] CHIP: [DMG] ClusterId = 0x504, + [1653155619571] [89108:1725828] CHIP: [DMG] CommandId = 0x2, + [1653155619571] [89108:1725828] CHIP: [DMG] }, + [1653155619571] [89108:1725828] CHIP: [DMG] + [1653155619571] [89108:1725828] CHIP: [DMG] CommandData = + [1653155619571] [89108:1725828] CHIP: [DMG] { + [1653155619571] [89108:1725828] CHIP: [DMG] 0x0 = 33, + [1653155619571] [89108:1725828] CHIP: [DMG] 0x1 = 22, + [1653155619571] [89108:1725828] CHIP: [DMG] }, + [1653155619571] [89108:1725828] CHIP: [DMG] }, + [1653155619571] [89108:1725828] CHIP: [DMG] + [1653155619571] [89108:1725828] CHIP: [DMG] ], + [1653155619571] [89108:1725828] CHIP: [DMG] + [1653155619571] [89108:1725828] CHIP: [DMG] InteractionModelRevision = 1 + [1653155619571] [89108:1725828] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_5_6.yaml b/src/app/tests/suites/certification/Test_TC_MC_5_6.yaml new file mode 100644 index 00000000000000..22f4bc7b2e4016 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_5_6.yaml @@ -0,0 +1,55 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.7.6. [TC-MC-5.6] Skip Channel Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Skip Channel command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool channel skip-channel 33 1 1 + + [1653155699325] [89108:1726874] CHIP: [DMG] InvokeRequestMessage = + [1653155699325] [89108:1726874] CHIP: [DMG] { + [1653155699325] [89108:1726874] CHIP: [DMG] suppressResponse = false, + [1653155699325] [89108:1726874] CHIP: [DMG] timedRequest = false, + [1653155699325] [89108:1726874] CHIP: [DMG] InvokeRequests = + [1653155699325] [89108:1726874] CHIP: [DMG] [ + [1653155699325] [89108:1726874] CHIP: [DMG] CommandDataIB = + [1653155699325] [89108:1726874] CHIP: [DMG] { + [1653155699325] [89108:1726874] CHIP: [DMG] CommandPathIB = + [1653155699325] [89108:1726874] CHIP: [DMG] { + [1653155699325] [89108:1726874] CHIP: [DMG] EndpointId = 0x1, + [1653155699325] [89108:1726874] CHIP: [DMG] ClusterId = 0x504, + [1653155699325] [89108:1726874] CHIP: [DMG] CommandId = 0x3, + [1653155699325] [89108:1726874] CHIP: [DMG] }, + [1653155699325] [89108:1726874] CHIP: [DMG] + [1653155699325] [89108:1726874] CHIP: [DMG] CommandData = + [1653155699325] [89108:1726874] CHIP: [DMG] { + [1653155699325] [89108:1726874] CHIP: [DMG] 0x0 = 33, + [1653155699325] [89108:1726874] CHIP: [DMG] }, + [1653155699325] [89108:1726874] CHIP: [DMG] }, + [1653155699325] [89108:1726874] CHIP: [DMG] + [1653155699325] [89108:1726874] CHIP: [DMG] ], + [1653155699325] [89108:1726874] CHIP: [DMG] + [1653155699325] [89108:1726874] CHIP: [DMG] InteractionModelRevision = 1 + [1653155699325] [89108:1726874] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_6_5.yaml b/src/app/tests/suites/certification/Test_TC_MC_6_5.yaml new file mode 100644 index 00000000000000..bf6140d09e2abd --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_6_5.yaml @@ -0,0 +1,118 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.8.5. [TC-MC-6.5] Mandatory Media Playback Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Play command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediaplayback play 1 1 + + [1653155763765] [89108:1728729] CHIP: [DMG] InvokeRequestMessage = + [1653155763765] [89108:1728729] CHIP: [DMG] { + [1653155763765] [89108:1728729] CHIP: [DMG] suppressResponse = false, + [1653155763765] [89108:1728729] CHIP: [DMG] timedRequest = false, + [1653155763765] [89108:1728729] CHIP: [DMG] InvokeRequests = + [1653155763765] [89108:1728729] CHIP: [DMG] [ + [1653155763765] [89108:1728729] CHIP: [DMG] CommandDataIB = + [1653155763765] [89108:1728729] CHIP: [DMG] { + [1653155763765] [89108:1728729] CHIP: [DMG] CommandPathIB = + [1653155763765] [89108:1728729] CHIP: [DMG] { + [1653155763765] [89108:1728729] CHIP: [DMG] EndpointId = 0x1, + [1653155763765] [89108:1728729] CHIP: [DMG] ClusterId = 0x506, + [1653155763765] [89108:1728729] CHIP: [DMG] CommandId = 0x0, + [1653155763765] [89108:1728729] CHIP: [DMG] }, + [1653155763765] [89108:1728729] CHIP: [DMG] + [1653155763765] [89108:1728729] CHIP: [DMG] CommandData = + [1653155763765] [89108:1728729] CHIP: [DMG] { + [1653155763765] [89108:1728729] CHIP: [DMG] }, + [1653155763765] [89108:1728729] CHIP: [DMG] }, + [1653155763765] [89108:1728729] CHIP: [DMG] + [1653155763765] [89108:1728729] CHIP: [DMG] ], + [1653155763765] [89108:1728729] CHIP: [DMG] + [1653155763765] [89108:1728729] CHIP: [DMG] InteractionModelRevision = 1 + [1653155763765] [89108:1728729] CHIP: [DMG] }, + disabled: true + + - label: "DUT sends Pause command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediaplayback pause 1 1 + + [1653155793657] [89108:1728972] CHIP: [DMG] InvokeRequestMessage = + [1653155793657] [89108:1728972] CHIP: [DMG] { + [1653155793657] [89108:1728972] CHIP: [DMG] suppressResponse = false, + [1653155793657] [89108:1728972] CHIP: [DMG] timedRequest = false, + [1653155793657] [89108:1728972] CHIP: [DMG] InvokeRequests = + [1653155793657] [89108:1728972] CHIP: [DMG] [ + [1653155793657] [89108:1728972] CHIP: [DMG] CommandDataIB = + [1653155793657] [89108:1728972] CHIP: [DMG] { + [1653155793657] [89108:1728972] CHIP: [DMG] CommandPathIB = + [1653155793657] [89108:1728972] CHIP: [DMG] { + [1653155793657] [89108:1728972] CHIP: [DMG] EndpointId = 0x1, + [1653155793657] [89108:1728972] CHIP: [DMG] ClusterId = 0x506, + [1653155793657] [89108:1728972] CHIP: [DMG] CommandId = 0x1, + [1653155793657] [89108:1728972] CHIP: [DMG] }, + [1653155793657] [89108:1728972] CHIP: [DMG] + [1653155793657] [89108:1728972] CHIP: [DMG] CommandData = + [1653155793657] [89108:1728972] CHIP: [DMG] { + [1653155793657] [89108:1728972] CHIP: [DMG] }, + [1653155793657] [89108:1728972] CHIP: [DMG] }, + [1653155793657] [89108:1728972] CHIP: [DMG] + [1653155793657] [89108:1728972] CHIP: [DMG] ], + [1653155793657] [89108:1728972] CHIP: [DMG] + [1653155793657] [89108:1728972] CHIP: [DMG] InteractionModelRevision = 1 + [1653155793657] [89108:1728972] CHIP: [DMG] }, + disabled: true + + - label: "DUT sends Stop command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediaplayback stop-playback 1 1 + + [1653155821639] [89108:1730227] CHIP: [DMG] InvokeRequestMessage = + [1653155821639] [89108:1730227] CHIP: [DMG] { + [1653155821639] [89108:1730227] CHIP: [DMG] suppressResponse = false, + [1653155821639] [89108:1730227] CHIP: [DMG] timedRequest = false, + [1653155821639] [89108:1730227] CHIP: [DMG] InvokeRequests = + [1653155821639] [89108:1730227] CHIP: [DMG] [ + [1653155821639] [89108:1730227] CHIP: [DMG] CommandDataIB = + [1653155821639] [89108:1730227] CHIP: [DMG] { + [1653155821639] [89108:1730227] CHIP: [DMG] CommandPathIB = + [1653155821639] [89108:1730227] CHIP: [DMG] { + [1653155821639] [89108:1730227] CHIP: [DMG] EndpointId = 0x1, + [1653155821639] [89108:1730227] CHIP: [DMG] ClusterId = 0x506, + [1653155821639] [89108:1730227] CHIP: [DMG] CommandId = 0x2, + [1653155821639] [89108:1730227] CHIP: [DMG] }, + [1653155821639] [89108:1730227] CHIP: [DMG] + [1653155821639] [89108:1730227] CHIP: [DMG] CommandData = + [1653155821639] [89108:1730227] CHIP: [DMG] { + [1653155821639] [89108:1730227] CHIP: [DMG] }, + [1653155821639] [89108:1730227] CHIP: [DMG] }, + [1653155821639] [89108:1730227] CHIP: [DMG] + [1653155821639] [89108:1730227] CHIP: [DMG] ], + [1653155821639] [89108:1730227] CHIP: [DMG] + [1653155821639] [89108:1730227] CHIP: [DMG] InteractionModelRevision = 1 + [1653155821639] [89108:1730227] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_6_7.yaml b/src/app/tests/suites/certification/Test_TC_MC_6_7.yaml new file mode 100644 index 00000000000000..91a2976c11781e --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_6_7.yaml @@ -0,0 +1,216 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.8.6. [TC-MC-6.7] Optional Media Playback Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Play command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediaplayback play 1 1 + + [1653155763765] [89108:1728729] CHIP: [DMG] InvokeRequestMessage = + [1653155763765] [89108:1728729] CHIP: [DMG] { + [1653155763765] [89108:1728729] CHIP: [DMG] suppressResponse = false, + [1653155763765] [89108:1728729] CHIP: [DMG] timedRequest = false, + [1653155763765] [89108:1728729] CHIP: [DMG] InvokeRequests = + [1653155763765] [89108:1728729] CHIP: [DMG] [ + [1653155763765] [89108:1728729] CHIP: [DMG] CommandDataIB = + [1653155763765] [89108:1728729] CHIP: [DMG] { + [1653155763765] [89108:1728729] CHIP: [DMG] CommandPathIB = + [1653155763765] [89108:1728729] CHIP: [DMG] { + [1653155763765] [89108:1728729] CHIP: [DMG] EndpointId = 0x1, + [1653155763765] [89108:1728729] CHIP: [DMG] ClusterId = 0x506, + [1653155763765] [89108:1728729] CHIP: [DMG] CommandId = 0x0, + [1653155763765] [89108:1728729] CHIP: [DMG] }, + [1653155763765] [89108:1728729] CHIP: [DMG] + [1653155763765] [89108:1728729] CHIP: [DMG] CommandData = + [1653155763765] [89108:1728729] CHIP: [DMG] { + [1653155763765] [89108:1728729] CHIP: [DMG] }, + [1653155763765] [89108:1728729] CHIP: [DMG] }, + [1653155763765] [89108:1728729] CHIP: [DMG] + [1653155763765] [89108:1728729] CHIP: [DMG] ], + [1653155763765] [89108:1728729] CHIP: [DMG] + [1653155763765] [89108:1728729] CHIP: [DMG] InteractionModelRevision = 1 + [1653155763765] [89108:1728729] CHIP: [DMG] }, + disabled: true + + - label: "DUT sends Start Over command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediaplayback start-over 1 1 + + [1653155863805] [89108:1730610] CHIP: [DMG] InvokeRequestMessage = + [1653155863805] [89108:1730610] CHIP: [DMG] { + [1653155863805] [89108:1730610] CHIP: [DMG] suppressResponse = false, + [1653155863805] [89108:1730610] CHIP: [DMG] timedRequest = false, + [1653155863805] [89108:1730610] CHIP: [DMG] InvokeRequests = + [1653155863805] [89108:1730610] CHIP: [DMG] [ + [1653155863805] [89108:1730610] CHIP: [DMG] CommandDataIB = + [1653155863805] [89108:1730610] CHIP: [DMG] { + [1653155863805] [89108:1730610] CHIP: [DMG] CommandPathIB = + [1653155863805] [89108:1730610] CHIP: [DMG] { + [1653155863805] [89108:1730610] CHIP: [DMG] EndpointId = 0x1, + [1653155863805] [89108:1730610] CHIP: [DMG] ClusterId = 0x506, + [1653155863805] [89108:1730610] CHIP: [DMG] CommandId = 0x3, + [1653155863805] [89108:1730610] CHIP: [DMG] }, + [1653155863805] [89108:1730610] CHIP: [DMG] + [1653155863805] [89108:1730610] CHIP: [DMG] CommandData = + [1653155863805] [89108:1730610] CHIP: [DMG] { + [1653155863805] [89108:1730610] CHIP: [DMG] }, + [1653155863805] [89108:1730610] CHIP: [DMG] }, + [1653155863805] [89108:1730610] CHIP: [DMG] + [1653155863805] [89108:1730610] CHIP: [DMG] ], + [1653155863805] [89108:1730610] CHIP: [DMG] + [1653155863805] [89108:1730610] CHIP: [DMG] InteractionModelRevision = 1 + [1653155863805] [89108:1730610] CHIP: [DMG] }, + disabled: true + + - label: "DUT sends Next command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediaplayback next 1 1 + + [1653155883955] [89108:1731475] CHIP: [DMG] InvokeRequestMessage = + [1653155883955] [89108:1731475] CHIP: [DMG] { + [1653155883955] [89108:1731475] CHIP: [DMG] suppressResponse = false, + [1653155883955] [89108:1731475] CHIP: [DMG] timedRequest = false, + [1653155883955] [89108:1731475] CHIP: [DMG] InvokeRequests = + [1653155883955] [89108:1731475] CHIP: [DMG] [ + [1653155883955] [89108:1731475] CHIP: [DMG] CommandDataIB = + [1653155883955] [89108:1731475] CHIP: [DMG] { + [1653155883955] [89108:1731475] CHIP: [DMG] CommandPathIB = + [1653155883955] [89108:1731475] CHIP: [DMG] { + [1653155883955] [89108:1731475] CHIP: [DMG] EndpointId = 0x1, + [1653155883956] [89108:1731475] CHIP: [DMG] ClusterId = 0x506, + [1653155883956] [89108:1731475] CHIP: [DMG] CommandId = 0x5, + [1653155883956] [89108:1731475] CHIP: [DMG] }, + [1653155883956] [89108:1731475] CHIP: [DMG] + [1653155883956] [89108:1731475] CHIP: [DMG] CommandData = + [1653155883956] [89108:1731475] CHIP: [DMG] { + [1653155883956] [89108:1731475] CHIP: [DMG] }, + [1653155883956] [89108:1731475] CHIP: [DMG] }, + [1653155883956] [89108:1731475] CHIP: [DMG] + [1653155883956] [89108:1731475] CHIP: [DMG] ], + [1653155883956] [89108:1731475] CHIP: [DMG] + [1653155883956] [89108:1731475] CHIP: [DMG] InteractionModelRevision = 1 + [1653155883956] [89108:1731475] CHIP: [DMG] }, + disabled: true + + - label: "DUT sends Previous command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediaplayback previous 1 1 + + [1653155908464] [89108:1731410] CHIP: [DMG] InvokeRequestMessage = + [1653155908464] [89108:1731410] CHIP: [DMG] { + [1653155908464] [89108:1731410] CHIP: [DMG] suppressResponse = false, + [1653155908464] [89108:1731410] CHIP: [DMG] timedRequest = false, + [1653155908464] [89108:1731410] CHIP: [DMG] InvokeRequests = + [1653155908464] [89108:1731410] CHIP: [DMG] [ + [1653155908464] [89108:1731410] CHIP: [DMG] CommandDataIB = + [1653155908464] [89108:1731410] CHIP: [DMG] { + [1653155908464] [89108:1731410] CHIP: [DMG] CommandPathIB = + [1653155908464] [89108:1731410] CHIP: [DMG] { + [1653155908464] [89108:1731410] CHIP: [DMG] EndpointId = 0x1, + [1653155908464] [89108:1731410] CHIP: [DMG] ClusterId = 0x506, + [1653155908464] [89108:1731410] CHIP: [DMG] CommandId = 0x4, + [1653155908464] [89108:1731410] CHIP: [DMG] }, + [1653155908464] [89108:1731410] CHIP: [DMG] + [1653155908464] [89108:1731410] CHIP: [DMG] CommandData = + [1653155908464] [89108:1731410] CHIP: [DMG] { + [1653155908464] [89108:1731410] CHIP: [DMG] }, + [1653155908464] [89108:1731410] CHIP: [DMG] }, + [1653155908464] [89108:1731410] CHIP: [DMG] + [1653155908464] [89108:1731410] CHIP: [DMG] ], + [1653155908464] [89108:1731410] CHIP: [DMG] + [1653155908464] [89108:1731410] CHIP: [DMG] InteractionModelRevision = 1 + [1653155908464] [89108:1731410] CHIP: [DMG] }, + disabled: true + + - label: "DUT sends Skip Forward command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediaplayback skip-forward 2000 1 1 + + [1653155942341] [89108:1732693] CHIP: [DMG] InvokeRequestMessage = + [1653155942341] [89108:1732693] CHIP: [DMG] { + [1653155942341] [89108:1732693] CHIP: [DMG] suppressResponse = false, + [1653155942341] [89108:1732693] CHIP: [DMG] timedRequest = false, + [1653155942341] [89108:1732693] CHIP: [DMG] InvokeRequests = + [1653155942341] [89108:1732693] CHIP: [DMG] [ + [1653155942341] [89108:1732693] CHIP: [DMG] CommandDataIB = + [1653155942341] [89108:1732693] CHIP: [DMG] { + [1653155942341] [89108:1732693] CHIP: [DMG] CommandPathIB = + [1653155942341] [89108:1732693] CHIP: [DMG] { + [1653155942341] [89108:1732693] CHIP: [DMG] EndpointId = 0x1, + [1653155942341] [89108:1732693] CHIP: [DMG] ClusterId = 0x506, + [1653155942341] [89108:1732693] CHIP: [DMG] CommandId = 0x8, + [1653155942342] [89108:1732693] CHIP: [DMG] }, + [1653155942342] [89108:1732693] CHIP: [DMG] + [1653155942342] [89108:1732693] CHIP: [DMG] CommandData = + [1653155942342] [89108:1732693] CHIP: [DMG] { + [1653155942342] [89108:1732693] CHIP: [DMG] 0x0 = 2000, + [1653155942342] [89108:1732693] CHIP: [DMG] }, + [1653155942342] [89108:1732693] CHIP: [DMG] }, + [1653155942342] [89108:1732693] CHIP: [DMG] + [1653155942342] [89108:1732693] CHIP: [DMG] ], + [1653155942342] [89108:1732693] CHIP: [DMG] + [1653155942342] [89108:1732693] CHIP: [DMG] InteractionModelRevision = 1 + [1653155942342] [89108:1732693] CHIP: [DMG] }, + disabled: true + + - label: "DUT sends Skip Backward command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool mediaplayback skip-backward 2000 1 1 + + [1653155967344] [89108:1733002] CHIP: [DMG] InvokeRequestMessage = + [1653155967344] [89108:1733002] CHIP: [DMG] { + [1653155967344] [89108:1733002] CHIP: [DMG] suppressResponse = false, + [1653155967344] [89108:1733002] CHIP: [DMG] timedRequest = false, + [1653155967344] [89108:1733002] CHIP: [DMG] InvokeRequests = + [1653155967344] [89108:1733002] CHIP: [DMG] [ + [1653155967344] [89108:1733002] CHIP: [DMG] CommandDataIB = + [1653155967344] [89108:1733002] CHIP: [DMG] { + [1653155967344] [89108:1733002] CHIP: [DMG] CommandPathIB = + [1653155967344] [89108:1733002] CHIP: [DMG] { + [1653155967344] [89108:1733002] CHIP: [DMG] EndpointId = 0x1, + [1653155967344] [89108:1733002] CHIP: [DMG] ClusterId = 0x506, + [1653155967344] [89108:1733002] CHIP: [DMG] CommandId = 0x9, + [1653155967344] [89108:1733002] CHIP: [DMG] }, + [1653155967344] [89108:1733002] CHIP: [DMG] + [1653155967344] [89108:1733002] CHIP: [DMG] CommandData = + [1653155967344] [89108:1733002] CHIP: [DMG] { + [1653155967344] [89108:1733002] CHIP: [DMG] 0x0 = 2000, + [1653155967344] [89108:1733002] CHIP: [DMG] }, + [1653155967344] [89108:1733002] CHIP: [DMG] }, + [1653155967344] [89108:1733002] CHIP: [DMG] + [1653155967344] [89108:1733002] CHIP: [DMG] ], + [1653155967344] [89108:1733002] CHIP: [DMG] + [1653155967344] [89108:1733002] CHIP: [DMG] InteractionModelRevision = 1 + [1653155967344] [89108:1733002] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_7_3.yaml b/src/app/tests/suites/certification/Test_TC_MC_7_3.yaml new file mode 100644 index 00000000000000..4f80646d456bdb --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_7_3.yaml @@ -0,0 +1,55 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.9.3. [TC-MC-7.3] Select Output Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Select Output command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool audiooutput select-output 1 1 1 + + [1653156016245] [89108:1733165] CHIP: [DMG] InvokeRequestMessage = + [1653156016245] [89108:1733165] CHIP: [DMG] { + [1653156016245] [89108:1733165] CHIP: [DMG] suppressResponse = false, + [1653156016245] [89108:1733165] CHIP: [DMG] timedRequest = false, + [1653156016245] [89108:1733165] CHIP: [DMG] InvokeRequests = + [1653156016245] [89108:1733165] CHIP: [DMG] [ + [1653156016245] [89108:1733165] CHIP: [DMG] CommandDataIB = + [1653156016245] [89108:1733165] CHIP: [DMG] { + [1653156016245] [89108:1733165] CHIP: [DMG] CommandPathIB = + [1653156016245] [89108:1733165] CHIP: [DMG] { + [1653156016245] [89108:1733165] CHIP: [DMG] EndpointId = 0x1, + [1653156016245] [89108:1733165] CHIP: [DMG] ClusterId = 0x50b, + [1653156016245] [89108:1733165] CHIP: [DMG] CommandId = 0x0, + [1653156016245] [89108:1733165] CHIP: [DMG] }, + [1653156016245] [89108:1733165] CHIP: [DMG] + [1653156016245] [89108:1733165] CHIP: [DMG] CommandData = + [1653156016245] [89108:1733165] CHIP: [DMG] { + [1653156016245] [89108:1733165] CHIP: [DMG] 0x0 = 1, + [1653156016245] [89108:1733165] CHIP: [DMG] }, + [1653156016245] [89108:1733165] CHIP: [DMG] }, + [1653156016245] [89108:1733165] CHIP: [DMG] + [1653156016245] [89108:1733165] CHIP: [DMG] ], + [1653156016245] [89108:1733165] CHIP: [DMG] + [1653156016245] [89108:1733165] CHIP: [DMG] InteractionModelRevision = 1 + [1653156016245] [89108:1733165] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_7_4.yaml b/src/app/tests/suites/certification/Test_TC_MC_7_4.yaml new file mode 100644 index 00000000000000..6197b702151516 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_MC_7_4.yaml @@ -0,0 +1,56 @@ +# 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. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 18.9.4. [TC-MC-7.4] Rename Output Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT sends Rename Output command to TH" + verification: | + The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. + + ./chip-tool audiooutput rename-output 1 'Kitchen Speakers' 1 1 + + [1653156045562] [89108:1734332] CHIP: [DMG] InvokeRequestMessage = + [1653156045562] [89108:1734332] CHIP: [DMG] { + [1653156045562] [89108:1734332] CHIP: [DMG] suppressResponse = false, + [1653156045562] [89108:1734332] CHIP: [DMG] timedRequest = false, + [1653156045562] [89108:1734332] CHIP: [DMG] InvokeRequests = + [1653156045562] [89108:1734332] CHIP: [DMG] [ + [1653156045562] [89108:1734332] CHIP: [DMG] CommandDataIB = + [1653156045562] [89108:1734332] CHIP: [DMG] { + [1653156045562] [89108:1734332] CHIP: [DMG] CommandPathIB = + [1653156045562] [89108:1734332] CHIP: [DMG] { + [1653156045562] [89108:1734332] CHIP: [DMG] EndpointId = 0x1, + [1653156045562] [89108:1734332] CHIP: [DMG] ClusterId = 0x50b, + [1653156045562] [89108:1734332] CHIP: [DMG] CommandId = 0x1, + [1653156045562] [89108:1734332] CHIP: [DMG] }, + [1653156045562] [89108:1734332] CHIP: [DMG] + [1653156045562] [89108:1734332] CHIP: [DMG] CommandData = + [1653156045562] [89108:1734332] CHIP: [DMG] { + [1653156045562] [89108:1734332] CHIP: [DMG] 0x0 = 1, + [1653156045562] [89108:1734332] CHIP: [DMG] 0x1 = "Kitchen Speakers", + [1653156045562] [89108:1734332] CHIP: [DMG] }, + [1653156045562] [89108:1734332] CHIP: [DMG] }, + [1653156045562] [89108:1734332] CHIP: [DMG] + [1653156045562] [89108:1734332] CHIP: [DMG] ], + [1653156045562] [89108:1734332] CHIP: [DMG] + [1653156045562] [89108:1734332] CHIP: [DMG] InteractionModelRevision = 1 + [1653156045562] [89108:1734332] CHIP: [DMG] }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_8_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_8_2.yaml deleted file mode 100644 index e555444b0be7f4..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_MC_8_2.yaml +++ /dev/null @@ -1,272 +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. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 18.10.2. [TC-MC-8.2] Navigate Target Verification (DUT as Client) - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "DUT reads the CurrentTarget attribute from the TH" - verification: | - - disabled: true - - - label: "DUT reads the TargetList attribute from the TH" - verification: | - ./chip-tool targetnavigator read target-navigator-list 1 0 - - CHIP:IN: CASE Session established. Setting up the secure channel. - [1635844031.242605][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired - [1635844031.242643][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! - [1635844031.242715][3216:3216] CHIP:IN: CASE secure channel is available now. - [1635844031.242744][3216:3216] CHIP:IN: CASE Server enabling CASE session setups - [1635844031.243571][3216:3216] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 37125r - [1635844031.243615][3216:3216] CHIP:EM: Handling via exchange: 37125r, Delegate: 0x0xaaaae48831b8 - [1635844031.243660][3216:3216] CHIP:IM: Received Read request - [1635844031.243691][3216:3216] CHIP:DMG: IM RH moving to [Initialized] - [1635844031.243728][3216:3216] CHIP:DMG: ReadRequest = - [1635844031.243758][3216:3216] CHIP:DMG: { - [1635844031.243785][3216:3216] CHIP:DMG: AttributePathList = - [1635844031.243817][3216:3216] CHIP:DMG: [ - [1635844031.243847][3216:3216] CHIP:DMG: AttributePath = - [1635844031.243879][3216:3216] CHIP:DMG: { - [1635844031.243918][3216:3216] CHIP:DMG: NodeId = 0x1, - [1635844031.243957][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844031.244000][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844031.244041][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, - [1635844031.244078][3216:3216] CHIP:DMG: } - [1635844031.244117][3216:3216] CHIP:DMG: - [1635844031.244151][3216:3216] CHIP:DMG: ], - [1635844031.244185][3216:3216] CHIP:DMG: - [1635844031.244214][3216:3216] CHIP:DMG: } - [1635844031.244275][3216:3216] CHIP:DMG: IM RH moving to [GeneratingReports] - [1635844031.244419][3216:3216] CHIP:DMG: Cluster 505, Field 0 is dirty - [1635844031.244452][3216:3216] CHIP:DMG: Reading attribute: Cluster=0x0000_0505 Endpoint=0 AttributeId=0x0000_0000 - [1635844031.244495][3216:3216] CHIP:DMG: Dumping report data... - [1635844031.244526][3216:3216] CHIP:DMG: ReportData = - [1635844031.244555][3216:3216] CHIP:DMG: { - [1635844031.244581][3216:3216] CHIP:DMG: AttributeDataList = - [1635844031.244612][3216:3216] CHIP:DMG: [ - [1635844031.244642][3216:3216] CHIP:DMG: AttributeDataElement = - [1635844031.244678][3216:3216] CHIP:DMG: { - [1635844031.244710][3216:3216] CHIP:DMG: AttributePath = - [1635844031.244746][3216:3216] CHIP:DMG: { - [1635844031.244788][3216:3216] CHIP:DMG: NodeId = 0x1, - [1635844031.244829][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844031.244870][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844031.244913][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, - [1635844031.244951][3216:3216] CHIP:DMG: } - [1635844031.244992][3216:3216] CHIP:DMG: - [1635844031.245030][3216:3216] CHIP:DMG: Status = 0x86, - [1635844031.245069][3216:3216] CHIP:DMG: }, - [1635844031.245106][3216:3216] CHIP:DMG: - [1635844031.245135][3216:3216] CHIP:DMG: ], - [1635844031.245169][3216:3216] CHIP:DMG: - [1635844031.245197][3216:3216] CHIP:DMG: } - [1635844031.245222][3216:3216] CHIP:DMG: Sending report... - [1635844031.245251][3216:3216] CHIP:DMG: IM RH moving to [AwaitingReportResponse] - [1635844031.245284][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 37125r - [1635844031.245349][3216:3216] CHIP:IN: Prepared encrypted message 0xaaaae4887858 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) on exchange 37125r with MessageCounter:1. - [1635844031.245393][3216:3216] CHIP:IN: Sending encrypted msg 0xaaaae4887858 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 3109679 msec - [1635844031.245501][3216:3216] CHIP:DMG: ReportsInFlight = 1 with readHandler 0, RE has no more messages - [1635844031.245594][3216:3216] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:3861075869 on exchange 37124r - [1635844031.245639][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:2841322247 from Retrans Table on exchange 37124r - [1635844031.245670][3216:3216] CHIP:EM: Removed CHIP MessageCounter:2841322247 from RetransTable on exchange 37124r - [1635844031.248229][3216:3216] CHIP:EM: Received message of type 0x1 with protocolId (0, 1) and MessageCounter:1 on exchange 37125r - [1635844031.248279][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:1 from Retrans Table on exchange 37125r - [1635844031.248309][3216:3216] CHIP:EM: Removed CHIP MessageCounter:1 from RetransTable on exchange 37125r - [1635844031.248352][3216:3216] CHIP:DMG: StatusResponse = - [1635844031.248383][3216:3216] CHIP:DMG: { - [1635844031.248411][3216:3216] CHIP:DMG: Status = 0x0, - [1635844031.248440][3216:3216] CHIP:DMG: } - [1635844031.248469][3216:3216] CHIP:DMG: In state AwaitingReportResponse, receive status response, status code is 0 - [1635844031.248497][3216:3216] CHIP:DMG: OnReportConfirm: NumReports = 0 - [1635844031.248523][3216:3216] CHIP:DMG: IM RH moving to [Uninitialized] - [1635844031.248551][3216:3216] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 37125r - disabled: true - - - label: - "DUT sends a NavigateTarget command to the TH with the identifier from - step 1b" - verification: | - ./chip-tool targetnavigator navigate-target 1 nav 1 0 - - - CHIP:IN: CASE Session established. Setting up the secure channel. - [1635844324.044404][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired - [1635844324.044451][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! - [1635844324.044536][3216:3216] CHIP:IN: CASE secure channel is available now. - [1635844324.044571][3216:3216] CHIP:IN: CASE Server enabling CASE session setups - [1635844324.047550][3216:3216] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:0 on exchange 44163r - [1635844324.047601][3216:3216] CHIP:EM: Handling via exchange: 44163r, Delegate: 0x0xaaaae48831b8 - [1635844324.047667][3216:3216] CHIP:DMG: InvokeCommand = - [1635844324.047707][3216:3216] CHIP:DMG: { - [1635844324.047739][3216:3216] CHIP:DMG: CommandList = - [1635844324.047777][3216:3216] CHIP:DMG: [ - [1635844324.047813][3216:3216] CHIP:DMG: CommandDataIB = - [1635844324.047858][3216:3216] CHIP:DMG: { - [1635844324.047896][3216:3216] CHIP:DMG: CommandPathIB = - [1635844324.047936][3216:3216] CHIP:DMG: { - [1635844324.047983][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844324.048033][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844324.048089][3216:3216] CHIP:DMG: CommandId = 0x0, - [1635844324.048136][3216:3216] CHIP:DMG: }, - [1635844324.048187][3216:3216] CHIP:DMG: - [1635844324.048226][3216:3216] CHIP:DMG: CommandData = - [1635844324.048276][3216:3216] CHIP:DMG: { - [1635844324.048325][3216:3216] CHIP:DMG: 0x0 = 1, - [1635844324.048383][3216:3216] CHIP:DMG: 0x1 = "nav", - [1635844324.048433][3216:3216] CHIP:DMG: }, - [1635844324.048472][3216:3216] CHIP:DMG: }, - [1635844324.048518][3216:3216] CHIP:DMG: - [1635844324.048554][3216:3216] CHIP:DMG: ], - [1635844324.048595][3216:3216] CHIP:DMG: - [1635844324.048629][3216:3216] CHIP:DMG: } - [1635844324.048683][3216:3216] CHIP:DMG: No Cluster 0x0000_0505 on Endpoint 0x0 - [1635844324.048737][3216:3216] CHIP:DMG: ICR moving to [AddingComm] - [1635844324.048779][3216:3216] CHIP:DMG: ICR moving to [AddedComma] - [1635844324.048830][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 44163r - disabled: true - - - label: "DUT reads the CurrentTarget attribute from the TH" - verification: | - - disabled: true - - - label: "DUT reads the TargetList attribute from the TH" - verification: | - ./chip-tool targetnavigator read target-navigator-list 1 0 - - - CHIP:IN: CASE Session established. Setting up the secure channel. - [1635844541.724866][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired - [1635844541.724903][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! - [1635844541.724975][3216:3216] CHIP:IN: CASE secure channel is available now. - [1635844541.725004][3216:3216] CHIP:IN: CASE Server enabling CASE session setups - [1635844541.725874][3216:3216] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 49188r - [1635844541.725918][3216:3216] CHIP:EM: Handling via exchange: 49188r, Delegate: 0x0xaaaae48831b8 - [1635844541.725962][3216:3216] CHIP:IM: Received Read request - [1635844541.725993][3216:3216] CHIP:DMG: IM RH moving to [Initialized] - [1635844541.726058][3216:3216] CHIP:DMG: ReadRequest = - [1635844541.726088][3216:3216] CHIP:DMG: { - [1635844541.726115][3216:3216] CHIP:DMG: AttributePathList = - [1635844541.726147][3216:3216] CHIP:DMG: [ - [1635844541.726176][3216:3216] CHIP:DMG: AttributePath = - [1635844541.726209][3216:3216] CHIP:DMG: { - [1635844541.726244][3216:3216] CHIP:DMG: NodeId = 0x1, - [1635844541.726280][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844541.726320][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844541.726358][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, - [1635844541.726391][3216:3216] CHIP:DMG: } - [1635844541.726427][3216:3216] CHIP:DMG: - [1635844541.726461][3216:3216] CHIP:DMG: ], - [1635844541.726495][3216:3216] CHIP:DMG: - [1635844541.726524][3216:3216] CHIP:DMG: } - [1635844541.726585][3216:3216] CHIP:DMG: IM RH moving to [GeneratingReports] - [1635844541.726683][3216:3216] CHIP:DMG: Cluster 505, Field 0 is dirty - [1635844541.726715][3216:3216] CHIP:DMG: Reading attribute: Cluster=0x0000_0505 Endpoint=0 AttributeId=0x0000_0000 - [1635844541.726757][3216:3216] CHIP:DMG: Dumping report data... - [1635844541.726788][3216:3216] CHIP:DMG: ReportData = - [1635844541.726817][3216:3216] CHIP:DMG: { - [1635844541.726843][3216:3216] CHIP:DMG: AttributeDataList = - [1635844541.726874][3216:3216] CHIP:DMG: [ - [1635844541.726904][3216:3216] CHIP:DMG: AttributeDataElement = - [1635844541.726941][3216:3216] CHIP:DMG: { - [1635844541.726972][3216:3216] CHIP:DMG: AttributePath = - [1635844541.727006][3216:3216] CHIP:DMG: { - [1635844541.727043][3216:3216] CHIP:DMG: NodeId = 0x1, - [1635844541.727085][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844541.727129][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844541.727170][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, - [1635844541.727208][3216:3216] CHIP:DMG: } - [1635844541.727248][3216:3216] CHIP:DMG: - [1635844541.727285][3216:3216] CHIP:DMG: Status = 0x86, - [1635844541.727325][3216:3216] CHIP:DMG: }, - [1635844541.727360][3216:3216] CHIP:DMG: - [1635844541.727390][3216:3216] CHIP:DMG: ], - [1635844541.727425][3216:3216] CHIP:DMG: - [1635844541.727452][3216:3216] CHIP:DMG: } - [1635844541.727478][3216:3216] CHIP:DMG: Sending report... - [1635844541.727506][3216:3216] CHIP:DMG: IM RH moving to [AwaitingReportResponse] - [1635844541.727539][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 49188r - [1635844541.727606][3216:3216] CHIP:IN: Prepared encrypted message 0xaaaae4887858 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) on exchange 49188r with MessageCounter:1. - [1635844541.727650][3216:3216] CHIP:IN: Sending encrypted msg 0xaaaae4887858 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 3620161 msec - [1635844541.727756][3216:3216] CHIP:DMG: ReportsInFlight = 1 with readHandler 0, RE has no more messages - [1635844541.727849][3216:3216] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:3414294172 on exchange 49187r - [1635844541.727895][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:2841322251 from Retrans Table on exchange 49187r - [1635844541.727926][3216:3216] CHIP:EM: Removed CHIP MessageCounter:2841322251 from RetransTable on exchange 49187r - [1635844541.729955][3216:3216] CHIP:EM: Received message of type 0x1 with protocolId (0, 1) and MessageCounter:1 on exchange 49188r - [1635844541.730024][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:1 from Retrans Table on exchange 49188r - [1635844541.730056][3216:3216] CHIP:EM: Removed CHIP MessageCounter:1 from RetransTable on exchange 49188r - [1635844541.730099][3216:3216] CHIP:DMG: StatusResponse = - [1635844541.730131][3216:3216] CHIP:DMG: { - [1635844541.730158][3216:3216] CHIP:DMG: Status = 0x0, - [1635844541.730187][3216:3216] CHIP:DMG: } - [1635844541.730217][3216:3216] CHIP:DMG: In state AwaitingReportResponse, receive status response, status code is 0 - [1635844541.730245][3216:3216] CHIP:DMG: OnReportConfirm: NumReports = 0 - [1635844541.730271][3216:3216] CHIP:DMG: IM RH moving to [Uninitialized] - [1635844541.730300][3216:3216] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 49188r - disabled: true - - - label: - "DUT sends a NavigateTarget command to the TH with the identifier from - step 3b and manufacturer provided app-specific data (string format)." - verification: | - ./chip-tool targetnavigator navigate-target 2 another 1 0 - - - CHIP:IN: CASE Session established. Setting up the secure channel. - [1635844631.704944][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired - [1635844631.704984][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! - [1635844631.705059][3216:3216] CHIP:IN: CASE secure channel is available now. - [1635844631.705092][3216:3216] CHIP:IN: CASE Server enabling CASE session setups - [1635844631.706226][3216:3216] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:0 on exchange 26803r - [1635844631.706273][3216:3216] CHIP:EM: Handling via exchange: 26803r, Delegate: 0x0xaaaae48831b8 - [1635844631.706334][3216:3216] CHIP:DMG: InvokeCommand = - [1635844631.706369][3216:3216] CHIP:DMG: { - [1635844631.706399][3216:3216] CHIP:DMG: CommandList = - [1635844631.706434][3216:3216] CHIP:DMG: [ - [1635844631.706466][3216:3216] CHIP:DMG: CommandDataIB = - [1635844631.706508][3216:3216] CHIP:DMG: { - [1635844631.706542][3216:3216] CHIP:DMG: CommandPathIB = - [1635844631.706588][3216:3216] CHIP:DMG: { - [1635844631.706630][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844631.706678][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844631.706718][3216:3216] CHIP:DMG: CommandId = 0x0, - [1635844631.706766][3216:3216] CHIP:DMG: }, - [1635844631.706808][3216:3216] CHIP:DMG: - [1635844631.706844][3216:3216] CHIP:DMG: CommandData = - [1635844631.706882][3216:3216] CHIP:DMG: { - [1635844631.706924][3216:3216] CHIP:DMG: 0x0 = 2, - [1635844631.706971][3216:3216] CHIP:DMG: 0x1 = "another", - [1635844631.707014][3216:3216] CHIP:DMG: }, - [1635844631.707050][3216:3216] CHIP:DMG: }, - [1635844631.707097][3216:3216] CHIP:DMG: - [1635844631.707130][3216:3216] CHIP:DMG: ], - [1635844631.707169][3216:3216] CHIP:DMG: - [1635844631.707200][3216:3216] CHIP:DMG: } - [1635844631.707249][3216:3216] CHIP:DMG: No Cluster 0x0000_0505 on Endpoint 0x0 - [1635844631.707300][3216:3216] CHIP:DMG: ICR moving to [AddingComm] - [1635844631.707337][3216:3216] CHIP:DMG: ICR moving to [AddedComma] - [1635844631.707384][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 26803r - disabled: true - - - label: "DUT reads the CurrentTarget attribute from the TH" - verification: | - - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_9_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_9_2.yaml deleted file mode 100644 index baafb2675698a1..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_MC_9_2.yaml +++ /dev/null @@ -1,310 +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. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: - 18.11.2. [TC-MC-9.2] Application Basic Attribute Verification (DUT as - Client) - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "TH reads the VendorName attribute from the DUT" - verification: | - ./chip-tool applicationbasic read vendor-name 1 1 - - CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 47792r - [1635669394.984912][4641:4641] CHIP:EM: Handling via exchange: 47792r, Delegate: 0x0xaaaada70fd80 - [1635669394.984996][4641:4641] CHIP:IM: Received Read request - [1635669394.985055][4641:4641] CHIP:DMG: IM RH moving to [Initialized] - [1635669394.985120][4641:4641] CHIP:DMG: ReadRequest = - [1635669394.985179][4641:4641] CHIP:DMG: { - [1635669394.985232][4641:4641] CHIP:DMG: AttributePathList = - [1635669394.985295][4641:4641] CHIP:DMG: [ - [1635669394.985355][4641:4641] CHIP:DMG: AttributePath = - [1635669394.985420][4641:4641] CHIP:DMG: { - [1635669394.985490][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669394.985566][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669394.985652][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669394.985730][4641:4641] CHIP:DMG: FieldTag = 0x0000_0000, - [1635669394.985791][4641:4641] CHIP:DMG: } - [1635669394.985825][4641:4641] CHIP:DMG: - [1635669394.985854][4641:4641] CHIP:DMG: ], - [1635669394.985886][4641:4641] CHIP:DMG: - [1635669394.985979][4641:4641] CHIP:DMG: } - [1635669394.986037][4641:4641] CHIP:DMG: IM RH moving to [GeneratingReports] - [1635669394.986134][4641:4641] CHIP:DMG: Cluster 50d, Field 0 is dirty - [1635669394.986164][4641:4641] CHIP:DMG: Reading attribute: Cluster=0x0000_050D Endpoint=1 AttributeId=0x0000_0000 - [1635669394.986208][4641:4641] CHIP:DMG: Dumping report data... - [1635669394.986237][4641:4641] CHIP:DMG: ReportData =./chip-tool applicationbasic read vendor-name 1 1 - [1635669394.986264][4641:4641] CHIP:DMG: { - [1635669394.986289][4641:4641] CHIP:DMG: AttributeDataList = - [1635669394.986319][4641:4641] CHIP:DMG: [ - [1635669394.986347][4641:4641] CHIP:DMG: AttributeDataElement = - [1635669394.986381][4641:4641] CHIP:DMG: { - [1635669394.986411][4641:4641] CHIP:DMG: AttributePath = - [1635669394.986445][4641:4641] CHIP:DMG: { - [1635669394.986481][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669394.986516][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669394.986559][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669394.986595][4641:4641] CHIP:DMG: FieldTag = 0x0000_0000, - [1635669394.986627][4641:4641] CHIP:DMG: } - [1635669394.986667][4641:4641] CHIP:DMG: - [1635669394.986706][4641:4641] CHIP:DMG: Data = "", - [1635669394.986742][4641:4641] CHIP:DMG: DataElementVersion = 0x0, - [1635669394.986776][4641:4641] CHIP:DMG: }, - [1635669394.986810][4641:4641] CHIP:DMG: - [1635669394.986837][4641:4641] CHIP:DMG: ], - [1635669394.986871][4641:4641] CHIP:DMG: - [1635669394.986896][4641:4641] CHIP:DMG: } - [1635669394.986920][4641:4641] CHIP:DMG: Sending report... - [1635669394.986946][4641:4641] CHIP:DMG: IM RH moving to [AwaitingReportResponse] - [1635669394.986973][4641:4641] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 47792r - [1635669394.987032][4641:4641] CHIP:IN: Prepared encrypted message 0xaaaada714448 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) on exchange 47792r with MessageCounter:1. - [1635669394.987074][4641:4641] CHIP:IN: Sending encrypted msg 0xaaaada714448 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 7893783 msec - [1635669394.987195][4641:4641] CHIP:DMG: ReportsInFlight = 1 with readHandler 0, RE has no more messages - [1635669394.987286][4641:4641] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:466709192 on exchange 47791r - [1635669394.987328][4641:4641] CHIP:EM: Rxd Ack; Removing MessageCounter:1572049851 from Retrans Table on exchange 47791r - [1635669394.987357][4641:4641] CHIP:EM: Removed CHIP MessageCounter:1572049851 from RetransTable on exchange 47791r - [1635669394.989332][4641:4641] CHIP:EM: Received message of type 0x1 with protocolId (0, 1) and MessageCounter:1 on exchange 47792r - [1635669394.989373][4641:4641] CHIP:EM: Rxd Ack; Removing MessageCounter:1 from Retrans Table on exchange 47792r - disabled: true - - - label: "TH reads the VendorID attribute from the DUT" - verification: | - ./chip-tool applicationbasic read vendor-id 1 1 - - CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 10649r - [1635669532.932419][4641:4641] CHIP:EM: Handling via exchange: 10649r, Delegate: 0x0xaaaada70fd80 - [1635669532.932476][4641:4641] CHIP:IM: Received Read request - [1635669532.932506][4641:4641] CHIP:DMG: IM RH moving to [Initialized] - [1635669532.932545][4641:4641] CHIP:DMG: ReadRequest = - [1635669532.932575][4641:4641] CHIP:DMG: { - [1635669532.932601][4641:4641] CHIP:DMG: AttributePathList = - [1635669532.932633][4641:4641] CHIP:DMG: [ - [1635669532.932663][4641:4641] CHIP:DMG: AttributePath = - [1635669532.932696][4641:4641] CHIP:DMG: { - [1635669532.932731][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669532.932767][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669532.932810][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669532.932849][4641:4641] CHIP:DMG: FieldTag = 0x0000_0001, - [1635669532.932889][4641:4641] CHIP:DMG: } - [1635669532.932928][4641:4641] CHIP:DMG: - [1635669532.932962][4641:4641] CHIP:DMG: ], - [1635669532.932995][4641:4641] CHIP:DMG: - [1635669532.933025][4641:4641] CHIP:DMG: } - [1635669532.933092][4641:4641] CHIP:DMG: IM RH moving to [GeneratingReports] - [1635669532.933194][4641:4641] CHIP:DMG: Cluster 50d, Field 1 is dirty - [1635669532.933226][4641:4641] CHIP:DMG: Reading attribute: Cluster=0x0000_050D Endpoint=1 AttributeId=0x0000_0001 - [1635669532.933273][4641:4641] CHIP:DMG: Dumping report data... - [1635669532.933305][4641:4641] CHIP:DMG: ReportData = - [1635669532.933334][4641:4641] CHIP:DMG: { - [1635669532.933357][4641:4641] CHIP:DMG: AttributeDataList = - [1635669532.933388][4641:4641] CHIP:DMG: [ - [1635669532.933418][4641:4641] CHIP:DMG: AttributeDataElement = - [1635669532.933448][4641:4641] CHIP:DMG: { - [1635669532.933479][4641:4641] CHIP:DMG: AttributePath = - [1635669532.933520][4641:4641] CHIP:DMG: { - [1635669532.933559][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669532.933600][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669532.933644][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669532.933684][4641:4641] CHIP:DMG: FieldTag = 0x0000_0001, - [1635669532.933726][4641:4641] CHIP:DMG: } - [1635669532.933767][4641:4641] CHIP:DMG: - [1635669532.933809][4641:4641] CHIP:DMG: Data = 0, - [1635669532.933847][4641:4641] CHIP:DMG: DataElementVersion = 0x0, - [1635669532.933882][4641:4641] CHIP:DMG: }, - [1635669532.933915][4641:4641] CHIP:DMG: - [1635669532.933945][4641:4641] CHIP:DMG: ], - [1635669532.933984][4641:4641] CHIP:DMG: - [1635669532.934011][4641:4641] CHIP:DMG: } - [1635669532.934040][4641:4641] CHIP:DMG: Sending report... - [1635669532.934082][4641:4641] CHIP:DMG: IM RH moving to [AwaitingReportResponse] - [1635669532.934129][4641:4641] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 10649r - [1635669532.934194][4641:4641] CHIP:IN: Prepared encrypted message 0xaaaada714448 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) on exchange 10649r with MessageCounter:1. - [1635669532.934243][4641:4641] CHIP:IN: Sending encrypted msg 0xaaaada714448 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 8031730 msec - [1635669532.934363][4641:4641] CHIP:DMG: ReportsInFlight = 1 with readHandler 0, RE has no more messages - [1635669532.934463][4641:4641] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:229251686 on exchange 10648r - [1635669532.934517][4641:4641] CHIP:EM: Rxd Ack; Removing MessageCounter:1572049853 from Retrans Table on exchange 10648r - [1635669532.934550][4641:4641] CHIP:EM: Removed CHIP MessageCounter:1572049853 from RetransTable on exchange 10648r - disabled: true - - - label: "TH reads the ApplicationName attribute from the DUT" - verification: | - ./chip-tool applicationbasic read application-name 1 1 - - CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 3361r - [1635669651.324865][4641:4641] CHIP:EM: Handling via exchange: 3361r, Delegate: 0x0xaaaada70fd80 - [1635669651.324915][4641:4641] CHIP:IM: Received Read request - [1635669651.324948][4641:4641] CHIP:DMG: IM RH moving to [Initialized] - [1635669651.324987][4641:4641] CHIP:DMG: ReadRequest = - [1635669651.325019][4641:4641] CHIP:DMG: { - [1635669651.325049][4641:4641] CHIP:DMG: AttributePathList = - [1635669651.325083][4641:4641] CHIP:DMG: [ - [1635669651.325117][4641:4641] CHIP:DMG: AttributePath = - [1635669651.325153][4641:4641] CHIP:DMG: { - [1635669651.325197][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669651.325242][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669651.325285][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669651.325328][4641:4641] CHIP:DMG: FieldTag = 0x0000_0002, - [1635669651.325369][4641:4641] CHIP:DMG: } - [1635669651.325408][4641:4641] CHIP:DMG: - [1635669651.325442][4641:4641] CHIP:DMG: ], - [1635669651.325480][4641:4641] CHIP:DMG: - [1635669651.325512][4641:4641] CHIP:DMG: } - [1635669651.325578][4641:4641] CHIP:DMG: IM RH moving to [GeneratingReports] - [1635669651.325684][4641:4641] CHIP:DMG: Cluster 50d, Field 2 is dirty - [1635669651.325719][4641:4641] CHIP:DMG: Reading attribute: Cluster=0x0000_050D Endpoint=1 AttributeId=0x0000_0002 - [1635669651.325773][4641:4641] CHIP:DMG: Dumping report data... - [1635669651.325807][4641:4641] CHIP:DMG: ReportData = - [1635669651.325840][4641:4641] CHIP:DMG: { - [1635669651.325869][4641:4641] CHIP:DMG: AttributeDataList = - [1635669651.325903][4641:4641] CHIP:DMG: [ - [1635669651.325936][4641:4641] CHIP:DMG: AttributeDataElement = - [1635669651.325973][4641:4641] CHIP:DMG: { - [1635669651.326008][4641:4641] CHIP:DMG: AttributePath = - [1635669651.326048][4641:4641] CHIP:DMG: { - [1635669651.326090][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669651.326139][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669651.326181][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669651.326230][4641:4641] CHIP:DMG: FieldTag = 0x0000_0002, - [1635669651.326268][4641:4641] CHIP:DMG: } - [1635669651.326311][4641:4641] CHIP:DMG: - [1635669651.326358][4641:4641] CHIP:DMG: Data = "", - [1635669651.326397][4641:4641] CHIP:DMG: DataElementVersion = 0x0, - [1635669651.326439][4641:4641] CHIP:DMG: }, - [1635669651.326480][4641:4641] CHIP:DMG: - [1635669651.326513][4641:4641] CHIP:DMG: ], - [1635669651.326552][4641:4641] CHIP:DMG: - [1635669651.326583][4641:4641] CHIP:DMG: } - [1635669651.326611][4641:4641] CHIP:DMG: Sending report... - [1635669651.326642][4641:4641] CHIP:DMG: IM RH moving to [AwaitingReportResponse] - [1635669651.326677][4641:4641] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 3361r - disabled: true - - - label: "TH reads the ProductID attribute from the DUT" - verification: | - ./chip-tool applicationbasic read product-id 1 1 - - CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 12029r - [1635669782.991396][4641:4641] CHIP:EM: Handling via exchange: 12029r, Delegate: 0x0xaaaada70fd80 - [1635669782.991444][4641:4641] CHIP:IM: Received Read request - [1635669782.991477][4641:4641] CHIP:DMG: IM RH moving to [Initialized] - [1635669782.991517][4641:4641] CHIP:DMG: ReadRequest = - [1635669782.991550][4641:4641] CHIP:DMG: { - [1635669782.991579][4641:4641] CHIP:DMG: AttributePathList = - [1635669782.991614][4641:4641] CHIP:DMG: [ - [1635669782.991646][4641:4641] CHIP:DMG: AttributePath = - [1635669782.991686][4641:4641] CHIP:DMG: { - [1635669782.991724][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669782.991766][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669782.991813][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669782.991857][4641:4641] CHIP:DMG: FieldTag = 0x0000_0003, - [1635669782.991923][4641:4641] CHIP:DMG: } - [1635669782.991969][4641:4641] CHIP:DMG: - [1635669782.992003][4641:4641] CHIP:DMG: ], - [1635669782.992040][4641:4641] CHIP:DMG: - [1635669782.992073][4641:4641] CHIP:DMG: } - [1635669782.992137][4641:4641] CHIP:DMG: IM RH moving to [GeneratingReports] - [1635669782.992249][4641:4641] CHIP:DMG: Cluster 50d, Field 3 is dirty - [1635669782.992284][4641:4641] CHIP:DMG: Reading attribute: Cluster=0x0000_050D Endpoint=1 AttributeId=0x0000_0003 - [1635669782.992335][4641:4641] CHIP:DMG: Dumping report data... - [1635669782.992369][4641:4641] CHIP:DMG: ReportData = - [1635669782.992401][4641:4641] CHIP:DMG: { - [1635669782.992470][4641:4641] CHIP:DMG: AttributeDataList = - [1635669782.992506][4641:4641] CHIP:DMG: [ - [1635669782.992539][4641:4641] CHIP:DMG: AttributeDataElement = - [1635669782.992576][4641:4641] CHIP:DMG: { - [1635669782.992617][4641:4641] CHIP:DMG: AttributePath = - [1635669782.992658][4641:4641] CHIP:DMG: { - [1635669782.992701][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669782.992750][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669782.992800][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669782.992845][4641:4641] CHIP:DMG: FieldTag = 0x0000_0003, - [1635669782.992891][4641:4641] CHIP:DMG: } - [1635669782.992932][4641:4641] CHIP:DMG: - [1635669782.992976][4641:4641] CHIP:DMG: Data = 0, - [1635669782.993022][4641:4641] CHIP:DMG: DataElementVersion = 0x0, - [1635669782.993065][4641:4641] CHIP:DMG: }, - [1635669782.993108][4641:4641] CHIP:DMG: - [1635669782.993140][4641:4641] CHIP:DMG: ], - [1635669782.993179][4641:4641] CHIP:DMG: - [1635669782.993210][4641:4641] CHIP:DMG: } - [1635669782.993238][4641:4641] CHIP:DMG: Sending report... - [1635669782.993269][4641:4641] CHIP:DMG: IM RH moving to [AwaitingReportResponse] - [1635669782.993305][4641:4641] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 12029r - disabled: true - - - label: "TH reads the Status attribute from the DUT" - verification: | - ./chip-tool applicationbasic change-status 2 1 0 - - - CHIP:IN: CASE Session established. Setting up the secure channel. - [1635849338.804317][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired - [1635849338.804591][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! - [1635849338.804767][3216:3216] CHIP:IN: CASE secure channel is available now. - [1635849338.804821][3216:3216] CHIP:IN: CASE Server enabling CASE session setups - [1635849338.805449][3216:3216] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:0 on exchange 15761r - [1635849338.805523][3216:3216] CHIP:EM: Handling via exchange: 15761r, Delegate: 0x0xaaaae48831b8 - [1635849338.805614][3216:3216] CHIP:DMG: InvokeCommand = - [1635849338.805669][3216:3216] CHIP:DMG: { - [1635849338.805715][3216:3216] CHIP:DMG: CommandList = - [1635849338.805769][3216:3216] CHIP:DMG: [ - [1635849338.805819][3216:3216] CHIP:DMG: CommandDataIB = - [1635849338.805881][3216:3216] CHIP:DMG: { - [1635849338.805974][3216:3216] CHIP:DMG: CommandPathIB = - [1635849338.806032][3216:3216] CHIP:DMG: { - [1635849338.806148][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635849338.806213][3216:3216] CHIP:DMG: ClusterId = 0x50d, - [1635849338.806253][3216:3216] CHIP:DMG: CommandId = 0x0, - [1635849338.806290][3216:3216] CHIP:DMG: }, - [1635849338.806356][3216:3216] CHIP:DMG: - [1635849338.806389][3216:3216] CHIP:DMG: CommandData = - [1635849338.806425][3216:3216] CHIP:DMG: { - [1635849338.806458][3216:3216] CHIP:DMG: 0x0 = 2, - [1635849338.806525][3216:3216] CHIP:DMG: }, - [1635849338.806560][3216:3216] CHIP:DMG: }, - [1635849338.806622][3216:3216] CHIP:DMG: - [1635849338.806671][3216:3216] CHIP:DMG: ], - [1635849338.806722][3216:3216] CHIP:DMG: - [1635849338.806775][3216:3216] CHIP:DMG: } - [1635849338.806822][3216:3216] CHIP:DMG: No Cluster 0x0000_050D on Endpoint 0x0 - [1635849338.806867][3216:3216] CHIP:DMG: ICR moving to [AddingComm] - [1635849338.806899][3216:3216] CHIP:DMG: ICR moving to [AddedComma] - [1635849338.806939][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 15761r - [1635849338.807002][3216:3216] CHIP:IN: Prepared encrypted message 0xaaaae4887858 to 0x000000000001B669 of type 0x9 and protocolId (0, 1) on exchange 15761r with MessageCounter:1. - [1635849338.807073][3216:3216] CHIP:IN: Sending encrypted msg 0xaaaae4887858 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 8417241 msec - [1635849338.807226][3216:3216] CHIP:DMG: ICR moving to [CommandSen] - [1635849338.807256][3216:3216] CHIP:DMG: ICR moving to [AwaitingDe] - [1635849338.807452][3216:3216] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1459595048 on exchange 15760r - [1635849338.807521][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:2841322265 from Retrans Table on exchange 15760r - [1635849338.807551][3216:3216] CHIP:EM: Removed CHIP MessageCounter:2841322265 from RetransTable on exchange 15760r - [1635849338.809288][3216:3216] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 15761r - [1635849338.809333][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:1 from Retrans Table on exchange 15761r - [1635849338.809361][3216:3216] CHIP:EM: Removed CHIP MessageCounter:1 from RetransTable on exchange 15761r - disabled: true - - - label: "TH reads the ApplicationVersion attribute from the DUT" - verification: | - - disabled: true - - - label: "TH reads the AllowedVendorList attribute from the DUT" - verification: | - - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_2.yaml b/src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_2.yaml deleted file mode 100644 index 0fa2befbe08b09..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_2.yaml +++ /dev/null @@ -1,577 +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. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 51.2.1. [TC-WIFIDIAG-1.2] Attributes observation at client as DUT - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Commission TH to DUT" - verification: | - - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute value is non-zero and the value data type matches - - ./chip-tool wifinetworkdiagnostics read bssid 1 0 - - [1636556333.275352][2710:2716] CHIP:EM: Flushed pending ack for MessageCounter:1532129240 on exchange 51129i - [1636556333.312883][2710:2716] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 51130i - [1636556333.312930][2710:2716] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 51130i - [1636556333.312955][2710:2716] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 51130i - [1636556333.346401][2710:2716] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 51130i - [1636556333.346467][2710:2716] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 51130i - [1636556333.346553][2710:2716] CHIP:DMG: ReportDataMessage = - [1636556333.346606][2710:2716] CHIP:DMG: { - [1636556333.346652][2710:2716] CHIP:DMG: AttributeDataList = - [1636556333.346706][2710:2716] CHIP:DMG: [ - [1636556333.346756][2710:2716] CHIP:DMG: AttributeDataElement = - [1636556333.346821][2710:2716] CHIP:DMG: { - [1636556333.346880][2710:2716] CHIP:DMG: AttributePathIB = - [1636556333.346953][2710:2716] CHIP:DMG: { - [1636556333.347028][2710:2716] CHIP:DMG: Endpoint = 0x1, - [1636556333.347107][2710:2716] CHIP:DMG: Cluster = 0x36, - [1636556333.347184][2710:2716] CHIP:DMG: Attribute = 0x0000_0000, - [1636556333.347257][2710:2716] CHIP:DMG: } - [1636556333.347337][2710:2716] CHIP:DMG: - [1636556333.347410][2710:2716] CHIP:DMG: Status = 0x86, - [1636556333.347472][2710:2716] CHIP:DMG: }, - [1636556333.347538][2710:2716] CHIP:DMG: - [1636556333.347588][2710:2716] CHIP:DMG: ], - [1636556333.347647][2710:2716] CHIP:DMG: - [1636556333.347693][2710:2716] CHIP:DMG: } - [1636556333.347851][2710:2716] CHIP:ZCL: ReadAttributesResponse: - [1636556333.347897][2710:2716] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556333.347944][2710:2716] CHIP:ZCL: attributeId: 0x0000_0000 - [1636556333.347987][2710:2716] CHIP:ZCL: status: UnsupportedAttribute (0x0086) - [1636556333.348031][2710:2716] CHIP:TOO: Default Failure Response: 0x86 - [1636556333.348146][2710:2716] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 51130i - [1636556333.348247][2710:2716] CHIP:IN: Prepared encrypted message 0xaaaac60edf00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 51130i with MessageC - ounter:1. - [1636556333.348369][2710:2716] CHIP:IN: Sending encrypted msg 0xaaaac60edf00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2038624 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute value is non-zero and the value data type matches - - ./chip-tool wifinetworkdiagnostics read security-type 1 0 - - [1636556458.315715][2739:2744] CHIP:EM: Flushed pending ack for MessageCounter:1532129242 on exchange 43784i - [1636556458.379931][2739:2744] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 43785i - [1636556458.379992][2739:2744] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 43785i - [1636556458.380024][2739:2744] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 43785i - [1636556458.380077][2739:2744] CHIP:DMG: ReportDataMessage = - [1636556458.380111][2739:2744] CHIP:DMG: { - [1636556458.380137][2739:2744] CHIP:DMG: AttributeDataList = - [1636556458.380170][2739:2744] CHIP:DMG: [ - [1636556458.380199][2739:2744] CHIP:DMG: AttributeDataElement = - [1636556458.380238][2739:2744] CHIP:DMG: { - [1636556458.380298][2739:2744] CHIP:DMG: AttributePathIB = - [1636556458.380344][2739:2744] CHIP:DMG: { - [1636556458.380388][2739:2744] CHIP:DMG: Endpoint = 0x1, - [1636556458.380435][2739:2744] CHIP:DMG: Cluster = 0x36, - [1636556458.380484][2739:2744] CHIP:DMG: Attribute = 0x0000_0001, - [1636556458.380527][2739:2744] CHIP:DMG: } - [1636556458.380574][2739:2744] CHIP:DMG: - [1636556458.380620][2739:2744] CHIP:DMG: Data = 0, - [1636556458.380662][2739:2744] CHIP:DMG: DataElementVersion = 0x0, - [1636556458.380702][2739:2744] CHIP:DMG: }, - [1636556458.380742][2739:2744] CHIP:DMG: - [1636556458.380771][2739:2744] CHIP:DMG: ], - [1636556458.380806][2739:2744] CHIP:DMG: - [1636556458.380833][2739:2744] CHIP:DMG: } - [1636556458.380945][2739:2744] CHIP:ZCL: ReadAttributesResponse: - [1636556458.380990][2739:2744] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556458.381035][2739:2744] CHIP:ZCL: attributeId: 0x0000_0001 - [1636556458.381078][2739:2744] CHIP:ZCL: status: Success (0x0000) - [1636556458.381119][2739:2744] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556458.381163][2739:2744] CHIP:TOO: Int8u attribute Response: 0 - [1636556458.381279][2739:2744] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 43785i - [1636556458.381472][2739:2744] CHIP:IN: Prepared encrypted message 0xaaab16775f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 43785i with MessageC - ounter:1. - [1636556458.381548][2739:2744] CHIP:IN: Sending encrypted msg 0xaaab16775f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2163657 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - ./chip-tool wifinetworkdiagnostics read wi-fi-version 1 0 - - [1636556683.277405][2749:2755] CHIP:EM: Flushed pending ack for MessageCounter:1532129244 on exchange 38911i - [1636556683.344547][2749:2755] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 38912i - [1636556683.344652][2749:2755] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 38912i - [1636556683.344702][2749:2755] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 38912i - [1636556683.344784][2749:2755] CHIP:DMG: ReportDataMessage = - [1636556683.344838][2749:2755] CHIP:DMG: { - [1636556683.344881][2749:2755] CHIP:DMG: AttributeDataList = - [1636556683.344933][2749:2755] CHIP:DMG: [ - [1636556683.344982][2749:2755] CHIP:DMG: AttributeDataElement = - [1636556683.345044][2749:2755] CHIP:DMG: { - [1636556683.345102][2749:2755] CHIP:DMG: AttributePathIB = - [1636556683.345174][2749:2755] CHIP:DMG: { - [1636556683.345247][2749:2755] CHIP:DMG: Endpoint = 0x1, - [1636556683.345325][2749:2755] CHIP:DMG: Cluster = 0x36, - [1636556683.345403][2749:2755] CHIP:DMG: Attribute = 0x0000_0002, - [1636556683.345475][2749:2755] CHIP:DMG: } - [1636556683.345552][2749:2755] CHIP:DMG: - [1636556683.345627][2749:2755] CHIP:DMG: Data = 0, - [1636556683.345697][2749:2755] CHIP:DMG: DataElementVersion = 0x0, - [1636556683.345764][2749:2755] CHIP:DMG: }, - [1636556683.345830][2749:2755] CHIP:DMG: - [1636556683.345878][2749:2755] CHIP:DMG: ], - [1636556683.345938][2749:2755] CHIP:DMG: - [1636556683.345982][2749:2755] CHIP:DMG: } - [1636556683.346132][2749:2755] CHIP:ZCL: ReadAttributesResponse: - [1636556683.346176][2749:2755] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556683.346222][2749:2755] CHIP:ZCL: attributeId: 0x0000_0002 - [1636556683.346265][2749:2755] CHIP:ZCL: status: Success (0x0000) - [1636556683.346307][2749:2755] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556683.346351][2749:2755] CHIP:TOO: Int8u attribute Response: 0 - [1636556683.346467][2749:2755] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 38912i - [1636556683.346567][2749:2755] CHIP:IN: Prepared encrypted message 0xaaab0050df00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 38912i with MessageC - ounter:1. - [1636556683.346638][2749:2755] CHIP:IN: Sending encrypted msg 0xaaab0050df00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2388622 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - ./chip-tool wifinetworkdiagnostics read channel-number 1 0 - - [1636556726.175879][2759:2764] CHIP:EM: Flushed pending ack for MessageCounter:1532129246 on exchange 3811i - [1636556726.213528][2759:2764] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 3812i - [1636556726.213572][2759:2764] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 3812i - [1636556726.213594][2759:2764] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 3812i - [1636556726.249929][2759:2764] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 3812i - [1636556726.249996][2759:2764] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 3812i - [1636556726.250083][2759:2764] CHIP:DMG: ReportDataMessage = - [1636556726.250139][2759:2764] CHIP:DMG: { - [1636556726.250183][2759:2764] CHIP:DMG: AttributeDataList = - [1636556726.250236][2759:2764] CHIP:DMG: [ - [1636556726.250285][2759:2764] CHIP:DMG: AttributeDataElement = - [1636556726.250350][2759:2764] CHIP:DMG: { - [1636556726.250408][2759:2764] CHIP:DMG: AttributePathIB = - [1636556726.250481][2759:2764] CHIP:DMG: { - [1636556726.250555][2759:2764] CHIP:DMG: Endpoint = 0x1, - [1636556726.250634][2759:2764] CHIP:DMG: Cluster = 0x36, - [1636556726.250711][2759:2764] CHIP:DMG: Attribute = 0x0000_0003, - [1636556726.250783][2759:2764] CHIP:DMG: } - [1636556726.250860][2759:2764] CHIP:DMG: - [1636556726.250935][2759:2764] CHIP:DMG: Data = 11, - [1636556726.251007][2759:2764] CHIP:DMG: DataElementVersion = 0x0, - [1636556726.251075][2759:2764] CHIP:DMG: }, - [1636556726.251141][2759:2764] CHIP:DMG: - [1636556726.251189][2759:2764] CHIP:DMG: ], - [1636556726.251249][2759:2764] CHIP:DMG: - [1636556726.251294][2759:2764] CHIP:DMG: } - [1636556726.251446][2759:2764] CHIP:ZCL: ReadAttributesResponse: - [1636556726.251490][2759:2764] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556726.251536][2759:2764] CHIP:ZCL: attributeId: 0x0000_0003 - [1636556726.251579][2759:2764] CHIP:ZCL: status: Success (0x0000) - [1636556726.251623][2759:2764] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556726.251665][2759:2764] CHIP:TOO: Int16u attribute Response: 11 - [1636556726.251780][2759:2764] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 3812i - [1636556726.251880][2759:2764] CHIP:IN: Prepared encrypted message 0xaaab0bb74f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 3812i with MessageCo - unter:1. - [1636556726.251951][2759:2764] CHIP:IN: Sending encrypted msg 0xaaab0bb74f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2431527 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. - - ./chip-tool wifinetworkdiagnostics read rssi 1 0 - - [1636556744.306378][2766:2771] CHIP:EM: Flushed pending ack for MessageCounter:1532129248 on exchange 63266i - [1636556744.375649][2766:2771] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 63267i - [1636556744.375739][2766:2771] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 63267i - [1636556744.375789][2766:2771] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 63267i - [1636556744.375868][2766:2771] CHIP:DMG: ReportDataMessage = - [1636556744.375921][2766:2771] CHIP:DMG: { - [1636556744.375963][2766:2771] CHIP:DMG: AttributeDataList = - [1636556744.376015][2766:2771] CHIP:DMG: [ - [1636556744.376064][2766:2771] CHIP:DMG: AttributeDataElement = - [1636556744.376130][2766:2771] CHIP:DMG: { - [1636556744.376188][2766:2771] CHIP:DMG: AttributePathIB = - [1636556744.376262][2766:2771] CHIP:DMG: { - [1636556744.376374][2766:2771] CHIP:DMG: Endpoint = 0x1, - [1636556744.376451][2766:2771] CHIP:DMG: Cluster = 0x36, - [1636556744.376528][2766:2771] CHIP:DMG: Attribute = 0x0000_0004, - [1636556744.376599][2766:2771] CHIP:DMG: } - [1636556744.376676][2766:2771] CHIP:DMG: - [1636556744.376753][2766:2771] CHIP:DMG: Data = -42, - [1636556744.376817][2766:2771] CHIP:DMG: DataElementVersion = 0x0, - [1636556744.376879][2766:2771] CHIP:DMG: }, - [1636556744.376945][2766:2771] CHIP:DMG: - [1636556744.376994][2766:2771] CHIP:DMG: ], - [1636556744.377052][2766:2771] CHIP:DMG: - [1636556744.377096][2766:2771] CHIP:DMG: } - [1636556744.377245][2766:2771] CHIP:ZCL: ReadAttributesResponse: - [1636556744.377289][2766:2771] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556744.377334][2766:2771] CHIP:ZCL: attributeId: 0x0000_0004 - [1636556744.377376][2766:2771] CHIP:ZCL: status: Success (0x0000) - [1636556744.377417][2766:2771] CHIP:ZCL: attribute TLV Type: 0x00 - [1636556744.377460][2766:2771] CHIP:TOO: Int8s attribute Response: -42 - [1636556744.377581][2766:2771] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 63267i - [1636556744.377683][2766:2771] CHIP:IN: Prepared encrypted message 0xaaaaec3cef00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 63267i with MessageC - ounter:1. - [1636556744.377755][2766:2771] CHIP:IN: Sending encrypted msg 0xaaaaec3cef00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2449653 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. - - ./chip-tool wifinetworkdiagnostics read beacon-lost-count 1 0 - - [1636556771.334558][2776:2782] CHIP:EM: Flushed pending ack for MessageCounter:1532129250 on exchange 19931i - [1636556771.404558][2776:2782] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 19932i - [1636556771.404657][2776:2782] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 19932i - [1636556771.404710][2776:2782] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 19932i - [1636556771.404793][2776:2782] CHIP:DMG: ReportDataMessage = - [1636556771.404846][2776:2782] CHIP:DMG: { - [1636556771.404889][2776:2782] CHIP:DMG: AttributeDataList = - [1636556771.404941][2776:2782] CHIP:DMG: [ - [1636556771.404990][2776:2782] CHIP:DMG: AttributeDataElement = - [1636556771.405057][2776:2782] CHIP:DMG: { - [1636556771.405110][2776:2782] CHIP:DMG: AttributePathIB = - [1636556771.405184][2776:2782] CHIP:DMG: { - [1636556771.405258][2776:2782] CHIP:DMG: Endpoint = 0x1, - [1636556771.405335][2776:2782] CHIP:DMG: Cluster = 0x36, - [1636556771.405413][2776:2782] CHIP:DMG: Attribute = 0x0000_0005, - [1636556771.405484][2776:2782] CHIP:DMG: } - [1636556771.405562][2776:2782] CHIP:DMG: - [1636556771.405637][2776:2782] CHIP:DMG: Data = 0, - [1636556771.405707][2776:2782] CHIP:DMG: DataElementVersion = 0x0, - [1636556771.405773][2776:2782] CHIP:DMG: }, - [1636556771.405840][2776:2782] CHIP:DMG: - [1636556771.405887][2776:2782] CHIP:DMG: ], - [1636556771.405947][2776:2782] CHIP:DMG: - [1636556771.405991][2776:2782] CHIP:DMG: } - [1636556771.406141][2776:2782] CHIP:ZCL: ReadAttributesResponse: - [1636556771.406185][2776:2782] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556771.406231][2776:2782] CHIP:ZCL: attributeId: 0x0000_0005 - [1636556771.406274][2776:2782] CHIP:ZCL: status: Success (0x0000) - [1636556771.406315][2776:2782] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556771.406358][2776:2782] CHIP:TOO: Int32u attribute Response: 0 - [1636556771.406478][2776:2782] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 19932i - [1636556771.406577][2776:2782] CHIP:IN: Prepared encrypted message 0xaaaaf69c8f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 19932i with MessageC - ounter:1. - [1636556771.406649][2776:2782] CHIP:IN: Sending encrypted msg 0xaaaaf69c8f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2476682 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. - - ./chip-tool wifinetworkdiagnostics read beacon-rx-count 1 0 - - [1636556782.701773][2784:2789] CHIP:EM: Flushed pending ack for MessageCounter:1532129252 on exchange 18818i - [1636556782.740898][2784:2789] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 18819i - [1636556782.740978][2784:2789] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 18819i - [1636556782.741017][2784:2789] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 18819i - [1636556782.775213][2784:2789] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 18819i - [1636556782.775278][2784:2789] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 18819i - [1636556782.775365][2784:2789] CHIP:DMG: ReportDataMessage = - [1636556782.775420][2784:2789] CHIP:DMG: { - [1636556782.775464][2784:2789] CHIP:DMG: AttributeDataList = - [1636556782.775517][2784:2789] CHIP:DMG: [ - [1636556782.775567][2784:2789] CHIP:DMG: AttributeDataElement = - [1636556782.775630][2784:2789] CHIP:DMG: { - [1636556782.775688][2784:2789] CHIP:DMG: AttributePathIB = - [1636556782.775761][2784:2789] CHIP:DMG: { - [1636556782.775836][2784:2789] CHIP:DMG: Endpoint = 0x1, - [1636556782.775915][2784:2789] CHIP:DMG: Cluster = 0x36, - [1636556782.775992][2784:2789] CHIP:DMG: Attribute = 0x0000_0006, - [1636556782.776062][2784:2789] CHIP:DMG: } - [1636556782.776139][2784:2789] CHIP:DMG: - [1636556782.776214][2784:2789] CHIP:DMG: Data = 0, - [1636556782.776324][2784:2789] CHIP:DMG: DataElementVersion = 0x0, - [1636556782.776395][2784:2789] CHIP:DMG: }, - [1636556782.776462][2784:2789] CHIP:DMG: - [1636556782.776511][2784:2789] CHIP:DMG: ], - [1636556782.776571][2784:2789] CHIP:DMG: - [1636556782.776614][2784:2789] CHIP:DMG: } - [1636556782.776766][2784:2789] CHIP:ZCL: ReadAttributesResponse: - [1636556782.776810][2784:2789] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556782.776856][2784:2789] CHIP:ZCL: attributeId: 0x0000_0006 - [1636556782.776899][2784:2789] CHIP:ZCL: status: Success (0x0000) - [1636556782.776942][2784:2789] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556782.776985][2784:2789] CHIP:TOO: Int32u attribute Response: 0 - [1636556782.777102][2784:2789] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 18819i - [1636556782.777205][2784:2789] CHIP:IN: Prepared encrypted message 0xaaaad609af00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 18819i with MessageC - ounter:1. - [1636556782.777278][2784:2789] CHIP:IN: Sending encrypted msg 0xaaaad609af00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2488053 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. - - ./chip-tool wifinetworkdiagnostics read packet-multicast-rx-count 1 0 - - [1636556817.733490][2792:2798] CHIP:EM: Flushed pending ack for MessageCounter:1532129254 on exchange 51755i - [1636556817.802518][2792:2798] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 51756i - [1636556817.802626][2792:2798] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 51756i - [1636556817.802684][2792:2798] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 51756i - [1636556817.802770][2792:2798] CHIP:DMG: ReportDataMessage = - [1636556817.802824][2792:2798] CHIP:DMG: { - [1636556817.802866][2792:2798] CHIP:DMG: AttributeDataList = - [1636556817.802918][2792:2798] CHIP:DMG: [ - [1636556817.802967][2792:2798] CHIP:DMG: AttributeDataElement = - [1636556817.803030][2792:2798] CHIP:DMG: { - [1636556817.803087][2792:2798] CHIP:DMG: AttributePathIB = - [1636556817.803159][2792:2798] CHIP:DMG: { - [1636556817.803231][2792:2798] CHIP:DMG: Endpoint = 0x1, - [1636556817.803307][2792:2798] CHIP:DMG: Cluster = 0x36, - [1636556817.803384][2792:2798] CHIP:DMG: Attribute = 0x0000_0007, - [1636556817.803455][2792:2798] CHIP:DMG: } - [1636556817.803532][2792:2798] CHIP:DMG: - [1636556817.803606][2792:2798] CHIP:DMG: Data = 77, - [1636556817.803676][2792:2798] CHIP:DMG: DataElementVersion = 0x0, - [1636556817.803742][2792:2798] CHIP:DMG: }, - [1636556817.803808][2792:2798] CHIP:DMG: - [1636556817.803856][2792:2798] CHIP:DMG: ], - [1636556817.803915][2792:2798] CHIP:DMG: - [1636556817.803979][2792:2798] CHIP:DMG: } - [1636556817.804129][2792:2798] CHIP:ZCL: ReadAttributesResponse: - [1636556817.804173][2792:2798] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556817.804220][2792:2798] CHIP:ZCL: attributeId: 0x0000_0007 - [1636556817.804261][2792:2798] CHIP:ZCL: status: Success (0x0000) - [1636556817.804349][2792:2798] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556817.804391][2792:2798] CHIP:TOO: Int32u attribute Response: 77 - [1636556817.804515][2792:2798] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 51756i - [1636556817.804624][2792:2798] CHIP:IN: Prepared encrypted message 0xaaaae917ef00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 51756i with MessageC - ounter:1. - [1636556817.804696][2792:2798] CHIP:IN: Sending encrypted msg 0xaaaae917ef00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2523080 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. - - ./chip-tool wifinetworkdiagnostics read packet-multicast-tx-count 1 0 - - [1636556830.624321][2800:2805] CHIP:EM: Flushed pending ack for MessageCounter:1532129256 on exchange 37953i - [1636556830.662515][2800:2805] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 37954i - [1636556830.662557][2800:2805] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 37954i - [1636556830.662578][2800:2805] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 37954i - [1636556830.706220][2800:2805] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 37954i - [1636556830.706287][2800:2805] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 37954i - [1636556830.706372][2800:2805] CHIP:DMG: ReportDataMessage = - [1636556830.706427][2800:2805] CHIP:DMG: { - [1636556830.706471][2800:2805] CHIP:DMG: AttributeDataList = - [1636556830.706524][2800:2805] CHIP:DMG: [ - [1636556830.706574][2800:2805] CHIP:DMG: AttributeDataElement = - [1636556830.706638][2800:2805] CHIP:DMG: { - [1636556830.706696][2800:2805] CHIP:DMG: AttributePathIB = - [1636556830.706769][2800:2805] CHIP:DMG: { - [1636556830.706842][2800:2805] CHIP:DMG: Endpoint = 0x1, - [1636556830.706919][2800:2805] CHIP:DMG: Cluster = 0x36, - [1636556830.706997][2800:2805] CHIP:DMG: Attribute = 0x0000_0008, - [1636556830.707069][2800:2805] CHIP:DMG: } - [1636556830.707147][2800:2805] CHIP:DMG: - [1636556830.707222][2800:2805] CHIP:DMG: Data = 0, - [1636556830.707294][2800:2805] CHIP:DMG: DataElementVersion = 0x0, - [1636556830.707357][2800:2805] CHIP:DMG: }, - [1636556830.707424][2800:2805] CHIP:DMG: - [1636556830.707474][2800:2805] CHIP:DMG: ], - [1636556830.707535][2800:2805] CHIP:DMG: - [1636556830.707580][2800:2805] CHIP:DMG: } - [1636556830.707730][2800:2805] CHIP:ZCL: ReadAttributesResponse: - [1636556830.707776][2800:2805] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556830.707823][2800:2805] CHIP:ZCL: attributeId: 0x0000_0008 - [1636556830.707866][2800:2805] CHIP:ZCL: status: Success (0x0000) - [1636556830.707908][2800:2805] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556830.707952][2800:2805] CHIP:TOO: Int32u attribute Response: 0 - [1636556830.708069][2800:2805] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 37954i - [1636556830.708170][2800:2805] CHIP:IN: Prepared encrypted message 0xaaaacbbddf00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 37954i with MessageC - ounter:1. - [1636556830.708244][2800:2805] CHIP:IN: Sending encrypted msg 0xaaaacbbddf00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2535983 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. - - ./chip-tool wifinetworkdiagnostics read packet-unicast-rx-count 1 0 - - [1636556853.356740][2807:2812] CHIP:EM: Flushed pending ack for MessageCounter:1532129258 on exchange 32805i - [1636556853.395380][2807:2812] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 32806i - [1636556853.395421][2807:2812] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 32806i - [1636556853.395442][2807:2812] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 32806i - [1636556853.431526][2807:2812] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 32806i - [1636556853.431594][2807:2812] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 32806i - [1636556853.431680][2807:2812] CHIP:DMG: ReportDataMessage = - [1636556853.431735][2807:2812] CHIP:DMG: { - [1636556853.431780][2807:2812] CHIP:DMG: AttributeDataList = - [1636556853.431833][2807:2812] CHIP:DMG: [ - [1636556853.431883][2807:2812] CHIP:DMG: AttributeDataElement = - [1636556853.431948][2807:2812] CHIP:DMG: { - [1636556853.432007][2807:2812] CHIP:DMG: AttributePathIB = - [1636556853.432080][2807:2812] CHIP:DMG: { - [1636556853.432155][2807:2812] CHIP:DMG: Endpoint = 0x1, - [1636556853.432234][2807:2812] CHIP:DMG: Cluster = 0x36, - [1636556853.432344][2807:2812] CHIP:DMG: Attribute = 0x0000_0009, - [1636556853.432418][2807:2812] CHIP:DMG: } - [1636556853.432497][2807:2812] CHIP:DMG: - [1636556853.432574][2807:2812] CHIP:DMG: Data = 180, - [1636556853.432648][2807:2812] CHIP:DMG: DataElementVersion = 0x0, - [1636556853.432711][2807:2812] CHIP:DMG: }, - [1636556853.432780][2807:2812] CHIP:DMG: - [1636556853.432830][2807:2812] CHIP:DMG: ], - [1636556853.432890][2807:2812] CHIP:DMG: - [1636556853.432935][2807:2812] CHIP:DMG: } - [1636556853.433086][2807:2812] CHIP:ZCL: ReadAttributesResponse: - [1636556853.433132][2807:2812] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556853.433179][2807:2812] CHIP:ZCL: attributeId: 0x0000_0009 - [1636556853.433224][2807:2812] CHIP:ZCL: status: Success (0x0000) - [1636556853.433267][2807:2812] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556853.433310][2807:2812] CHIP:TOO: Int32u attribute Response: 180 - [1636556853.433430][2807:2812] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 32806i - [1636556853.433528][2807:2812] CHIP:IN: Prepared encrypted message 0xaaaae5b8af00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 32806i with MessageCounter:1. - [1636556853.433603][2807:2812] CHIP:IN: Sending encrypted msg 0xaaaae5b8af00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2558709 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. - - ./chip-tool wifinetworkdiagnostics read packet-unicast-tx-count 1 0 - - [1636556862.885173][2816:2821] CHIP:EM: Flushed pending ack for MessageCounter:1532129260 on exchange 14944i - [1636556862.925849][2816:2821] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 14945i - [1636556862.925937][2816:2821] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 14945i - [1636556862.925964][2816:2821] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 14945i - [1636556862.960034][2816:2821] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 14945i - [1636556862.960076][2816:2821] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 14945i - [1636556862.960135][2816:2821] CHIP:DMG: ReportDataMessage = - [1636556862.960167][2816:2821] CHIP:DMG: { - [1636556862.960191][2816:2821] CHIP:DMG: AttributeDataList = - [1636556862.960221][2816:2821] CHIP:DMG: [ - [1636556862.960248][2816:2821] CHIP:DMG: AttributeDataElement = - [1636556862.960307][2816:2821] CHIP:DMG: { - [1636556862.960342][2816:2821] CHIP:DMG: AttributePathIB = - [1636556862.960380][2816:2821] CHIP:DMG: { - [1636556862.960422][2816:2821] CHIP:DMG: Endpoint = 0x1, - [1636556862.960465][2816:2821] CHIP:DMG: Cluster = 0x36, - [1636556862.960508][2816:2821] CHIP:DMG: Attribute = 0x0000_000A, - [1636556862.960547][2816:2821] CHIP:DMG: } - [1636556862.960590][2816:2821] CHIP:DMG: - [1636556862.960634][2816:2821] CHIP:DMG: Data = 106, - [1636556862.960673][2816:2821] CHIP:DMG: DataElementVersion = 0x0, - [1636556862.960710][2816:2821] CHIP:DMG: }, - [1636556862.960747][2816:2821] CHIP:DMG: - [1636556862.960773][2816:2821] CHIP:DMG: ], - [1636556862.960806][2816:2821] CHIP:DMG: - [1636556862.960831][2816:2821] CHIP:DMG: } - [1636556862.960922][2816:2821] CHIP:ZCL: ReadAttributesResponse: - [1636556862.960948][2816:2821] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556862.960976][2816:2821] CHIP:ZCL: attributeId: 0x0000_000A - [1636556862.961000][2816:2821] CHIP:ZCL: status: Success (0x0000) - [1636556862.961023][2816:2821] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556862.961048][2816:2821] CHIP:TOO: Int32u attribute Response: 106 - [1636556862.961132][2816:2821] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 14945i - [1636556862.961245][2816:2821] CHIP:IN: Prepared encrypted message 0xaaaaf59b5f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 14945i with MessageCounter:1. - [1636556862.961321][2816:2821] CHIP:IN: Sending encrypted msg 0xaaaaf59b5f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2568237 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. - - ./chip-tool wifinetworkdiagnostics read current-max-rate 1 0 - - [1636556892.070815][2824:2829] CHIP:EM: Flushed pending ack for MessageCounter:1532129262 on exchange 5373i - [1636556892.107682][2824:2829] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 5374i - [1636556892.107723][2824:2829] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 5374i - [1636556892.107744][2824:2829] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 5374i - [1636556892.145391][2824:2829] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 5374i - [1636556892.145456][2824:2829] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 5374i - [1636556892.145543][2824:2829] CHIP:DMG: ReportDataMessage = - [1636556892.145595][2824:2829] CHIP:DMG: { - [1636556892.145638][2824:2829] CHIP:DMG: AttributeDataList = - [1636556892.145698][2824:2829] CHIP:DMG: [ - [1636556892.145746][2824:2829] CHIP:DMG: AttributeDataElement = - [1636556892.145808][2824:2829] CHIP:DMG: { - [1636556892.145863][2824:2829] CHIP:DMG: AttributePathIB = - [1636556892.145935][2824:2829] CHIP:DMG: { - [1636556892.146008][2824:2829] CHIP:DMG: Endpoint = 0x1, - [1636556892.146086][2824:2829] CHIP:DMG: Cluster = 0x36, - [1636556892.146163][2824:2829] CHIP:DMG: Attribute = 0x0000_000B, - [1636556892.146235][2824:2829] CHIP:DMG: } - [1636556892.146312][2824:2829] CHIP:DMG: - [1636556892.146388][2824:2829] CHIP:DMG: Data = 65000000, - [1636556892.146457][2824:2829] CHIP:DMG: DataElementVersion = 0x0, - [1636556892.146524][2824:2829] CHIP:DMG: }, - [1636556892.146595][2824:2829] CHIP:DMG: - [1636556892.146648][2824:2829] CHIP:DMG: ], - [1636556892.146707][2824:2829] CHIP:DMG: - [1636556892.146752][2824:2829] CHIP:DMG: } - [1636556892.146905][2824:2829] CHIP:ZCL: ReadAttributesResponse: - [1636556892.146949][2824:2829] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556892.146995][2824:2829] CHIP:ZCL: attributeId: 0x0000_000B - [1636556892.147037][2824:2829] CHIP:ZCL: status: Success (0x0000) - [1636556892.147079][2824:2829] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556892.147121][2824:2829] CHIP:TOO: Int64u attribute Response: 65000000 - [1636556892.147239][2824:2829] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 5374i - [1636556892.147337][2824:2829] CHIP:IN: Prepared encrypted message 0xaaab1b740f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 5374i with MessageCounter:1. - [1636556892.147409][2824:2829] CHIP:IN: Sending encrypted msg 0xaaab1b740f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2597423 msec - disabled: true - - - label: "DUT reads a attribute value from TH." - verification: | - Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. - - ./chip-tool wifinetworkdiagnostics read overrun-count 1 0 - - [1636556912.342416][2831:2836] CHIP:EM: Flushed pending ack for MessageCounter:1532129264 on exchange 23278i - [1636556912.415911][2831:2836] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 23279i - [1636556912.416004][2831:2836] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 23279i - [1636556912.416055][2831:2836] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 23279i - [1636556912.416136][2831:2836] CHIP:DMG: ReportDataMessage = - [1636556912.416190][2831:2836] CHIP:DMG: { - [1636556912.416235][2831:2836] CHIP:DMG: AttributeDataList = - [1636556912.416336][2831:2836] CHIP:DMG: [ - [1636556912.416389][2831:2836] CHIP:DMG: AttributeDataElement = - [1636556912.416453][2831:2836] CHIP:DMG: { - [1636556912.416511][2831:2836] CHIP:DMG: AttributePathIB = - [1636556912.416583][2831:2836] CHIP:DMG: { - [1636556912.416658][2831:2836] CHIP:DMG: Endpoint = 0x1, - [1636556912.416736][2831:2836] CHIP:DMG: Cluster = 0x36, - [1636556912.416814][2831:2836] CHIP:DMG: Attribute = 0x0000_000C, - [1636556912.416885][2831:2836] CHIP:DMG: } - [1636556912.416962][2831:2836] CHIP:DMG: - [1636556912.417037][2831:2836] CHIP:DMG: Data = 0, - [1636556912.417108][2831:2836] CHIP:DMG: DataElementVersion = 0x0, - [1636556912.417174][2831:2836] CHIP:DMG: }, - [1636556912.417242][2831:2836] CHIP:DMG: - [1636556912.417290][2831:2836] CHIP:DMG: ], - [1636556912.417350][2831:2836] CHIP:DMG: - [1636556912.417395][2831:2836] CHIP:DMG: } - [1636556912.417546][2831:2836] CHIP:ZCL: ReadAttributesResponse: - [1636556912.417590][2831:2836] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556912.417637][2831:2836] CHIP:ZCL: attributeId: 0x0000_000C - [1636556912.417679][2831:2836] CHIP:ZCL: status: Success (0x0000) - [1636556912.417721][2831:2836] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556912.417763][2831:2836] CHIP:TOO: Int64u attribute Response: 0 - [1636556912.417878][2831:2836] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 23279i - [1636556912.417982][2831:2836] CHIP:IN: Prepared encrypted message 0xaaaaece01f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 23279i with MessageCounter:1. - [1636556912.418055][2831:2836] CHIP:IN: Sending encrypted msg 0xaaaaece01f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2617693 msec - disabled: true diff --git a/src/app/tests/suites/tests.js b/src/app/tests/suites/tests.js index 32e2abf332157c..3e1bd48e23f0fd 100644 --- a/src/app/tests/suites/tests.js +++ b/src/app/tests/suites/tests.js @@ -99,12 +99,14 @@ function getManualTests() { ]; const DeviceManagement = [ + 'Test_TC_DM_1_1', 'Test_TC_DM_1_2', - 'Test_TC_DM_1_4', - 'Test_TC_DM_2_1', + 'Test_TC_DM_1_3', 'Test_TC_DM_2_2', 'Test_TC_DM_2_4', + 'Test_TC_DM_3_1', 'Test_TC_DM_3_2', + 'Test_TC_DM_3_3', 'Test_TC_DM_3_4', 'Test_TC_DM_4_1', 'Test_TC_DM_4_2', @@ -143,7 +145,9 @@ function getManualTests() { ]; const EthernetNetworkDiagnostics = [ - 'Test_TC_ETHDIAG_1_2', + 'Test_TC_DGETH_1_1', + 'Test_TC_DGETH_3_1', + 'Test_TC_DGETH_3_2', ]; const GeneralCommissioning = [ @@ -189,19 +193,30 @@ function getManualTests() { const MediaControl = [ 'Test_TC_MC_2_2', + 'Test_TC_MC_3_7_1', + 'Test_TC_MC_3_8_1', + 'Test_TC_MC_3_9_1', + 'Test_TC_MC_3_14', + 'Test_TC_MC_3_15', + 'Test_TC_MC_3_16', + 'Test_TC_MC_3_17', 'Test_TC_MC_4_1', + 'Test_TC_MC_5_4', + 'Test_TC_MC_5_5', + 'Test_TC_MC_5_6', 'Test_TC_MC_6_1', 'Test_TC_MC_6_2', 'Test_TC_MC_6_3', 'Test_TC_MC_6_4', - 'Test_TC_MC_8_2', - 'Test_TC_MC_9_2', - 'Test_TC_MC_10_2', + 'Test_TC_MC_6_5', + 'Test_TC_MC_6_7', + 'Test_TC_MC_7_3', + 'Test_TC_MC_7_4', 'Test_TC_MC_10_3', - 'Test_TC_MC_10_4', 'Test_TC_MC_10_5', - 'Test_TC_MC_10_6', 'Test_TC_MC_10_7', + 'Test_TC_MC_11_1', + 'Test_TC_MC_11_2', ]; const MultipleFabrics = [ @@ -280,8 +295,10 @@ function getManualTests() { ]; const WiFiNetworkDiagnostics = [ - 'Test_TC_WIFIDIAG_1_2', - 'Test_TC_WIFIDIAG_2_1', + 'Test_TC_DGWIFI_1_1', + 'Test_TC_DGWIFI_2_2', + 'Test_TC_DGWIFI_3_1', + 'Test_TC_DGWIFI_3_2', ]; const WindowCovering = [ @@ -513,8 +530,7 @@ function getTests() { ]; const DeviceManagement = [ - 'Test_TC_DM_1_1', - 'Test_TC_DM_3_1', + 'Test_TC_DM_2_1', ]; const ElectricalMeasurement = [ @@ -522,8 +538,8 @@ function getTests() { ]; const EthernetNetworkDiagnostics = [ - 'Test_TC_ETHDIAG_1_1', - 'Test_TC_ETHDIAG_2_1', + 'Test_TC_DGETH_2_1', + 'Test_TC_DGETH_2_2', ]; const FlowMeasurement = [ @@ -581,7 +597,6 @@ function getTests() { 'Test_TC_MC_1_11', 'Test_TC_MC_1_12', 'Test_TC_MC_2_1', - 'Test_TC_MC_3_1', 'Test_TC_MC_3_2', 'Test_TC_MC_3_3', 'Test_TC_MC_3_4', @@ -688,8 +703,8 @@ function getTests() { ]; const WiFiNetworkDiagnostics = [ - 'Test_TC_WIFIDIAG_1_1', - 'Test_TC_WIFIDIAG_3_1', + 'Test_TC_DGWIFI_2_1', + 'Test_TC_DGWIFI_2_3', ]; const WindowCovering = [ diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 711854a0a39fe9..0fe04513f1b7f3 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -64,11 +64,10 @@ class TestList : public Command printf("Test_TC_CC_9_1\n"); printf("Test_TC_CC_9_2\n"); printf("Test_TC_CC_9_3\n"); - printf("Test_TC_DM_1_1\n"); - printf("Test_TC_DM_3_1\n"); + printf("Test_TC_DM_2_1\n"); printf("Test_TC_EMR_1_1\n"); - printf("Test_TC_ETHDIAG_1_1\n"); - printf("Test_TC_ETHDIAG_2_1\n"); + 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_GC_1_1\n"); @@ -98,7 +97,6 @@ class TestList : public Command printf("Test_TC_MC_1_11\n"); printf("Test_TC_MC_1_12\n"); printf("Test_TC_MC_2_1\n"); - printf("Test_TC_MC_3_1\n"); printf("Test_TC_MC_3_2\n"); printf("Test_TC_MC_3_3\n"); printf("Test_TC_MC_3_4\n"); @@ -161,8 +159,8 @@ class TestList : public Command printf("Test_TC_DIAG_TH_NW_2_3\n"); printf("Test_TC_ULABEL_1_1\n"); printf("Test_TC_ULABEL_2_2\n"); - printf("Test_TC_WIFIDIAG_1_1\n"); - printf("Test_TC_WIFIDIAG_3_1\n"); + printf("Test_TC_DGWIFI_2_1\n"); + printf("Test_TC_DGWIFI_2_3\n"); printf("Test_TC_WNCV_1_1\n"); printf("Test_TC_WNCV_2_1\n"); printf("Test_TC_WNCV_2_2\n"); @@ -290,12 +288,14 @@ class ManualTestList : public Command printf("Test_TC_BRAC_2_2\n"); printf("Test_TC_BRAC_3_1\n"); printf("Test_TC_DA_1_3\n"); + printf("Test_TC_DM_1_1\n"); printf("Test_TC_DM_1_2\n"); - printf("Test_TC_DM_1_4\n"); - printf("Test_TC_DM_2_1\n"); + printf("Test_TC_DM_1_3\n"); printf("Test_TC_DM_2_2\n"); printf("Test_TC_DM_2_4\n"); + printf("Test_TC_DM_3_1\n"); printf("Test_TC_DM_3_2\n"); + printf("Test_TC_DM_3_3\n"); printf("Test_TC_DM_3_4\n"); printf("Test_TC_DM_4_1\n"); printf("Test_TC_DM_4_2\n"); @@ -325,7 +325,9 @@ class ManualTestList : public Command printf("Test_TC_DESC_1_1\n"); printf("Test_TC_DESC_2_1\n"); printf("Test_TC_DESC_2_2\n"); - printf("Test_TC_ETHDIAG_1_2\n"); + printf("Test_TC_DGETH_1_1\n"); + printf("Test_TC_DGETH_3_1\n"); + printf("Test_TC_DGETH_3_2\n"); printf("Test_TC_GC_2_2\n"); printf("Test_TC_GC_2_3\n"); printf("Test_TC_GC_2_4\n"); @@ -353,19 +355,30 @@ class ManualTestList : public Command printf("Test_TC_IDM_6_4\n"); printf("Test_TC_IDM_7_1\n"); printf("Test_TC_MC_2_2\n"); + printf("Test_TC_MC_3_7_1\n"); + printf("Test_TC_MC_3_8_1\n"); + printf("Test_TC_MC_3_9_1\n"); + printf("Test_TC_MC_3_14\n"); + printf("Test_TC_MC_3_15\n"); + printf("Test_TC_MC_3_16\n"); + printf("Test_TC_MC_3_17\n"); printf("Test_TC_MC_4_1\n"); + printf("Test_TC_MC_5_4\n"); + printf("Test_TC_MC_5_5\n"); + printf("Test_TC_MC_5_6\n"); printf("Test_TC_MC_6_1\n"); printf("Test_TC_MC_6_2\n"); printf("Test_TC_MC_6_3\n"); printf("Test_TC_MC_6_4\n"); - printf("Test_TC_MC_8_2\n"); - printf("Test_TC_MC_9_2\n"); - printf("Test_TC_MC_10_2\n"); + printf("Test_TC_MC_6_5\n"); + printf("Test_TC_MC_6_7\n"); + printf("Test_TC_MC_7_3\n"); + printf("Test_TC_MC_7_4\n"); printf("Test_TC_MC_10_3\n"); - printf("Test_TC_MC_10_4\n"); printf("Test_TC_MC_10_5\n"); - printf("Test_TC_MC_10_6\n"); printf("Test_TC_MC_10_7\n"); + printf("Test_TC_MC_11_1\n"); + printf("Test_TC_MC_11_2\n"); printf("Test_TC_MF_1_1\n"); printf("Test_TC_MF_1_2\n"); printf("Test_TC_MF_1_7\n"); @@ -423,8 +436,10 @@ class ManualTestList : public Command printf("Test_TC_SC_4_9\n"); printf("Test_TC_SC_4_10\n"); printf("Test_TC_SWDIAG_1_2\n"); - printf("Test_TC_WIFIDIAG_1_2\n"); - printf("Test_TC_WIFIDIAG_2_1\n"); + printf("Test_TC_DGWIFI_1_1\n"); + printf("Test_TC_DGWIFI_2_2\n"); + printf("Test_TC_DGWIFI_3_1\n"); + printf("Test_TC_DGWIFI_3_2\n"); printf("Test_TC_WNCV_6_1\n"); printf("Test_TC_WNCV_7_1\n"); printf("Test_TC_FLW_2_2\n"); @@ -11642,10 +11657,10 @@ class Test_TC_CC_9_3Suite : public TestCommand } }; -class Test_TC_DM_1_1Suite : public TestCommand +class Test_TC_DM_2_1Suite : public TestCommand { public: - Test_TC_DM_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_1", 20, credsIssuerConfig) + Test_TC_DM_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_2_1", 19, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -11653,7 +11668,7 @@ class Test_TC_DM_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_1_1Suite() {} + ~Test_TC_DM_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -11739,8 +11754,7 @@ class Test_TC_DM_1_1Suite : public TestCommand chip::CharSpan value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "string")); - VerifyOrReturn(CheckConstraintFormat("value", "", "ISO 3166-1 alpha-2")); - VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 2)); + VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 16)); } break; case 8: @@ -11763,22 +11777,11 @@ class Test_TC_DM_1_1Suite : public TestCommand break; case 10: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint32_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint32")); - } + shouldContinue = true; break; case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::CharSpan value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "string")); - VerifyOrReturn(CheckConstraintFormat("value", "", "ASCII")); - VerifyOrReturn(CheckConstraintMinLength("value", value.size(), 1)); - VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 64)); - } + shouldContinue = true; break; case 12: if (IsUnsupported(status.mStatus)) @@ -11790,39 +11793,14 @@ class Test_TC_DM_1_1Suite : public TestCommand chip::CharSpan value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "string")); - VerifyOrReturn(CheckConstraintFormat("value", "", "ISO 8601")); - VerifyOrReturn(CheckConstraintMinLength("value", value.size(), 8)); - VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 16)); + VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); } break; case 13: - if (IsUnsupported(status.mStatus)) - { - return; - } VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::CharSpan value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); - } + shouldContinue = true; break; case 14: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::CharSpan value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "string")); - VerifyOrReturn(CheckConstraintFormat("value", "", "RFC3986")); - VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 256)); - } - break; - case 15: if (IsUnsupported(status.mStatus)) { return; @@ -11835,7 +11813,7 @@ class Test_TC_DM_1_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 64)); } break; - case 16: + case 15: if (IsUnsupported(status.mStatus)) { return; @@ -11848,7 +11826,7 @@ class Test_TC_DM_1_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); } break; - case 17: + case 16: if (IsUnsupported(status.mStatus)) { return; @@ -11860,7 +11838,7 @@ class Test_TC_DM_1_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "boolean")); } break; - case 18: + case 17: if (IsUnsupported(status.mStatus)) { return; @@ -11872,7 +11850,7 @@ class Test_TC_DM_1_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "boolean")); } break; - case 19: + case 18: if (IsUnsupported(status.mStatus)) { return; @@ -11953,54 +11931,63 @@ class Test_TC_DM_1_1Suite : public TestCommand chip::NullOptional); } case 10: { - LogStep(10, "Query SoftwareVersion"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::SoftwareVersion::Id, true, - chip::NullOptional); + LogStep(10, "TH reads SoftwareVersionString from the DUT and Verify it is of type string and verify the format"); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); } case 11: { - LogStep(11, "Query SoftwareVersionString"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::SoftwareVersionString::Id, true, - chip::NullOptional); + LogStep(11, "TH reads ManufacturingDate from the DUT and Verify it is of type string and verify the format"); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); } case 12: { - LogStep(12, "Query ManufacturingDate"); - VerifyOrDo(!ShouldSkip("MANF_DATE"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::ManufacturingDate::Id, true, - chip::NullOptional); - } - case 13: { - LogStep(13, "Query PartNumber"); + LogStep(12, "Query PartNumber"); VerifyOrDo(!ShouldSkip("PART_NUM"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::PartNumber::Id, true, chip::NullOptional); } - case 14: { - LogStep(14, "Query ProductURL"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::ProductURL::Id, true, - chip::NullOptional); + case 13: { + LogStep(13, "TH reads ProductURL from the DUT and Verify it is of type string and verify the format"); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); } - case 15: { - LogStep(15, "Query ProductLabel"); + case 14: { + LogStep(14, "Query ProductLabel"); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::ProductLabel::Id, true, chip::NullOptional); } - case 16: { - LogStep(16, "Query SerialNumber"); + case 15: { + LogStep(15, "Query SerialNumber"); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::SerialNumber::Id, true, chip::NullOptional); } - case 17: { - LogStep(17, "Query LocalConfigDisabled"); + case 16: { + LogStep(16, "Query LocalConfigDisabled"); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::LocalConfigDisabled::Id, true, chip::NullOptional); } - case 18: { - LogStep(18, "Query Reachable"); + case 17: { + LogStep(17, "Query Reachable"); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::Reachable::Id, true, chip::NullOptional); } - case 19: { - LogStep(19, "Query UniqueID"); + case 18: { + LogStep(18, "Query UniqueID"); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::UniqueID::Id, true, chip::NullOptional); } @@ -12009,108 +11996,6 @@ class Test_TC_DM_1_1Suite : public TestCommand } }; -class Test_TC_DM_3_1Suite : public TestCommand -{ -public: - Test_TC_DM_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_3_1", 3, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_DM_3_1Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -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 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - } - break; - case 2: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::DataModel::DecodableList - value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "list")); - } - 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, "Wait for the commissioned device to be retrieved"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "Query MaxNetworks"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), NetworkCommissioning::Id, - NetworkCommissioning::Attributes::MaxNetworks::Id, true, chip::NullOptional); - } - case 2: { - LogStep(2, "Query Networks"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), NetworkCommissioning::Id, - NetworkCommissioning::Attributes::Networks::Id, true, chip::NullOptional); - } - } - return CHIP_NO_ERROR; - } -}; - class Test_TC_EMR_1_1Suite : public TestCommand { public: @@ -12242,11 +12127,10 @@ class Test_TC_EMR_1_1Suite : public TestCommand } }; -class Test_TC_ETHDIAG_1_1Suite : public TestCommand +class Test_TC_DGETH_2_1Suite : public TestCommand { public: - Test_TC_ETHDIAG_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_ETHDIAG_1_1", 17, credsIssuerConfig) + Test_TC_DGETH_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGETH_2_1", 17, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -12254,7 +12138,7 @@ class Test_TC_ETHDIAG_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_ETHDIAG_1_1Suite() {} + ~Test_TC_DGETH_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -12535,11 +12419,10 @@ class Test_TC_ETHDIAG_1_1Suite : public TestCommand } }; -class Test_TC_ETHDIAG_2_1Suite : public TestCommand +class Test_TC_DGETH_2_2Suite : public TestCommand { public: - Test_TC_ETHDIAG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_ETHDIAG_2_1", 7, credsIssuerConfig) + Test_TC_DGETH_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGETH_2_2", 7, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -12547,7 +12430,7 @@ class Test_TC_ETHDIAG_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_ETHDIAG_2_1Suite() {} + ~Test_TC_DGETH_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -18588,10 +18471,10 @@ class Test_TC_MC_2_1Suite : public TestCommand } }; -class Test_TC_MC_3_1Suite : public TestCommand +class Test_TC_MC_3_2Suite : public TestCommand { public: - Test_TC_MC_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_1", 16, credsIssuerConfig) + Test_TC_MC_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_2", 3, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -18599,340 +18482,7 @@ class Test_TC_MC_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_3_1Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -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 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 7: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 9: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 10: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 11: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 12: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 13: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 14: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - case 15: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - 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, "Wait for the commissioned device to be retrieved"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "Send Select"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(0); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 2: { - LogStep(2, "Send Up"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(1); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 3: { - LogStep(3, "Send Down"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(2); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 4: { - LogStep(4, "Send Left"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(3); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 5: { - LogStep(5, "Send Right"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(4); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 6: { - LogStep(6, "Send RightUp"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(5); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 7: { - LogStep(7, "Send RightDown"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(6); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 8: { - LogStep(8, "Send LeftUp"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(7); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 9: { - LogStep(9, "Send LeftDown"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(8); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 10: { - LogStep(10, "Send RootMenu"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(9); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 11: { - LogStep(11, "Send SetupMenu"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(10); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 12: { - LogStep(12, "Send ContentsMenu"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(11); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 13: { - LogStep(13, "Send FavoriteMenu"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(12); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 14: { - LogStep(14, "Send Exit"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(13); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - case 15: { - LogStep(15, "Send Invalid"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type value; - value.keyCode = static_cast(255); - return SendCommand(kIdentityAlpha, GetEndpoint(1), KeypadInput::Id, KeypadInput::Commands::SendKey::Id, value, - chip::NullOptional - - ); - } - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_MC_3_2Suite : public TestCommand -{ -public: - Test_TC_MC_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_2", 3, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_MC_3_2Suite() {} + ~Test_TC_MC_3_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -35212,11 +34762,10 @@ class Test_TC_ULABEL_2_2Suite : public TestCommand } }; -class Test_TC_WIFIDIAG_1_1Suite : public TestCommand +class Test_TC_DGWIFI_2_1Suite : public TestCommand { public: - Test_TC_WIFIDIAG_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_WIFIDIAG_1_1", 14, credsIssuerConfig) + Test_TC_DGWIFI_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGWIFI_2_1", 14, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -35224,7 +34773,7 @@ class Test_TC_WIFIDIAG_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_WIFIDIAG_1_1Suite() {} + ~Test_TC_DGWIFI_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -35462,11 +35011,10 @@ class Test_TC_WIFIDIAG_1_1Suite : public TestCommand } }; -class Test_TC_WIFIDIAG_3_1Suite : public TestCommand +class Test_TC_DGWIFI_2_3Suite : public TestCommand { public: - Test_TC_WIFIDIAG_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_WIFIDIAG_3_1", 8, credsIssuerConfig) + Test_TC_DGWIFI_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGWIFI_2_3", 8, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -35474,7 +35022,7 @@ class Test_TC_WIFIDIAG_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_WIFIDIAG_3_1Suite() {} + ~Test_TC_DGWIFI_2_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68866,10 +68414,10 @@ class Test_TC_DA_1_3Suite : public TestCommand } }; -class Test_TC_DM_1_2Suite : public TestCommand +class Test_TC_DM_1_1Suite : public TestCommand { public: - Test_TC_DM_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_2", 0, credsIssuerConfig) + Test_TC_DM_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68877,7 +68425,7 @@ class Test_TC_DM_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_1_2Suite() {} + ~Test_TC_DM_1_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68922,10 +68470,10 @@ class Test_TC_DM_1_2Suite : public TestCommand } }; -class Test_TC_DM_1_4Suite : public TestCommand +class Test_TC_DM_1_2Suite : public TestCommand { public: - Test_TC_DM_1_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_4", 0, credsIssuerConfig) + Test_TC_DM_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68933,7 +68481,7 @@ class Test_TC_DM_1_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_1_4Suite() {} + ~Test_TC_DM_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68978,10 +68526,10 @@ class Test_TC_DM_1_4Suite : public TestCommand } }; -class Test_TC_DM_2_1Suite : public TestCommand +class Test_TC_DM_1_3Suite : public TestCommand { public: - Test_TC_DM_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_2_1", 0, credsIssuerConfig) + Test_TC_DM_1_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68989,7 +68537,7 @@ class Test_TC_DM_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_2_1Suite() {} + ~Test_TC_DM_1_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -69296,10 +68844,10 @@ class Test_TC_DM_2_4Suite : public TestCommand } }; -class Test_TC_DM_3_2Suite : public TestCommand +class Test_TC_DM_3_1Suite : public TestCommand { public: - Test_TC_DM_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_3_2", 0, credsIssuerConfig) + Test_TC_DM_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -69307,7 +68855,7 @@ class Test_TC_DM_3_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_3_2Suite() {} + ~Test_TC_DM_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -69352,10 +68900,10 @@ class Test_TC_DM_3_2Suite : public TestCommand } }; -class Test_TC_DM_3_4Suite : public TestCommand +class Test_TC_DM_3_2Suite : public TestCommand { public: - Test_TC_DM_3_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_3_4", 0, credsIssuerConfig) + Test_TC_DM_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_3_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -69363,7 +68911,7 @@ class Test_TC_DM_3_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_3_4Suite() {} + ~Test_TC_DM_3_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -69408,10 +68956,10 @@ class Test_TC_DM_3_4Suite : public TestCommand } }; -class Test_TC_DM_4_1Suite : public TestCommand +class Test_TC_DM_3_3Suite : public TestCommand { public: - Test_TC_DM_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_1", 0, credsIssuerConfig) + Test_TC_DM_3_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_3_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -69419,7 +68967,7 @@ class Test_TC_DM_4_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_4_1Suite() {} + ~Test_TC_DM_3_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -69464,10 +69012,10 @@ class Test_TC_DM_4_1Suite : public TestCommand } }; -class Test_TC_DM_4_2Suite : public TestCommand +class Test_TC_DM_3_4Suite : public TestCommand { public: - Test_TC_DM_4_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_2", 0, credsIssuerConfig) + Test_TC_DM_3_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_3_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -69475,7 +69023,7 @@ class Test_TC_DM_4_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_4_2Suite() {} + ~Test_TC_DM_3_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -69520,10 +69068,10 @@ class Test_TC_DM_4_2Suite : public TestCommand } }; -class Test_TC_DM_4_3Suite : public TestCommand +class Test_TC_DM_4_1Suite : public TestCommand { public: - Test_TC_DM_4_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_3", 0, credsIssuerConfig) + Test_TC_DM_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -69531,7 +69079,7 @@ class Test_TC_DM_4_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_4_3Suite() {} + ~Test_TC_DM_4_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -69576,10 +69124,10 @@ class Test_TC_DM_4_3Suite : public TestCommand } }; -class Test_TC_DM_4_4Suite : public TestCommand +class Test_TC_DM_4_2Suite : public TestCommand { public: - Test_TC_DM_4_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_4", 0, credsIssuerConfig) + Test_TC_DM_4_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -69587,7 +69135,119 @@ class Test_TC_DM_4_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_4_4Suite() {} + ~Test_TC_DM_4_2Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DM_4_3Suite : public TestCommand +{ +public: + Test_TC_DM_4_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_3", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DM_4_3Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DM_4_4Suite : public TestCommand +{ +public: + Test_TC_DM_4_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_4", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DM_4_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -70584,182 +70244,857 @@ class Test_TC_DM_4_21Suite : public TestCommand } }; -class Test_TC_DIAGLOG_1_1Suite : public TestCommand -{ -public: - Test_TC_DIAGLOG_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_DIAGLOG_1_1", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_DIAGLOG_1_1Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -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) - { - 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) - { - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_DIAGLOG_2_1Suite : public TestCommand -{ -public: - Test_TC_DIAGLOG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_DIAGLOG_2_1", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_DIAGLOG_2_1Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -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) - { - 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) - { - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_DIAGLOG_2_2Suite : public TestCommand -{ -public: - Test_TC_DIAGLOG_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_DIAGLOG_2_2", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_DIAGLOG_2_2Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -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) - { - 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) - { - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_DIAGLOG_3_1Suite : public TestCommand +class Test_TC_DIAGLOG_1_1Suite : public TestCommand +{ +public: + Test_TC_DIAGLOG_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_DIAGLOG_1_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DIAGLOG_1_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DIAGLOG_2_1Suite : public TestCommand +{ +public: + Test_TC_DIAGLOG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_DIAGLOG_2_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DIAGLOG_2_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DIAGLOG_2_2Suite : public TestCommand +{ +public: + Test_TC_DIAGLOG_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_DIAGLOG_2_2", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DIAGLOG_2_2Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DIAGLOG_3_1Suite : public TestCommand +{ +public: + Test_TC_DIAGLOG_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_DIAGLOG_3_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DIAGLOG_3_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DESC_1_1Suite : public TestCommand +{ +public: + Test_TC_DESC_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_1_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DESC_1_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DESC_2_1Suite : public TestCommand +{ +public: + Test_TC_DESC_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_2_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DESC_2_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DESC_2_2Suite : public TestCommand +{ +public: + Test_TC_DESC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_2_2", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DESC_2_2Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DGETH_1_1Suite : public TestCommand +{ +public: + Test_TC_DGETH_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGETH_1_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DGETH_1_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DGETH_3_1Suite : public TestCommand +{ +public: + Test_TC_DGETH_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGETH_3_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DGETH_3_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DGETH_3_2Suite : public TestCommand +{ +public: + Test_TC_DGETH_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGETH_3_2", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DGETH_3_2Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_GC_2_2Suite : public TestCommand +{ +public: + Test_TC_GC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_2", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_GC_2_2Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_GC_2_3Suite : public TestCommand +{ +public: + Test_TC_GC_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_3", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_GC_2_3Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_GC_2_4Suite : public TestCommand +{ +public: + Test_TC_GC_2_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_4", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_GC_2_4Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_GENDIAG_1_1Suite : public TestCommand +{ +public: + Test_TC_GENDIAG_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_GENDIAG_1_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_GENDIAG_1_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_GENDIAG_1_2Suite : public TestCommand +{ +public: + Test_TC_GENDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_GENDIAG_1_2", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_GENDIAG_1_2Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_GENDIAG_2_1Suite : public TestCommand { public: - Test_TC_DIAGLOG_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_DIAGLOG_3_1", 0, credsIssuerConfig) + Test_TC_GENDIAG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_GENDIAG_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -70767,7 +71102,7 @@ class Test_TC_DIAGLOG_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DIAGLOG_3_1Suite() {} + ~Test_TC_GENDIAG_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -70812,10 +71147,10 @@ class Test_TC_DIAGLOG_3_1Suite : public TestCommand } }; -class Test_TC_DESC_1_1Suite : public TestCommand +class Test_TC_I_2_2Suite : public TestCommand { public: - Test_TC_DESC_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_1_1", 0, credsIssuerConfig) + Test_TC_I_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -70823,7 +71158,7 @@ class Test_TC_DESC_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DESC_1_1Suite() {} + ~Test_TC_I_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -70868,10 +71203,10 @@ class Test_TC_DESC_1_1Suite : public TestCommand } }; -class Test_TC_DESC_2_1Suite : public TestCommand +class Test_TC_I_3_1Suite : public TestCommand { public: - Test_TC_DESC_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_2_1", 0, credsIssuerConfig) + Test_TC_I_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -70879,7 +71214,7 @@ class Test_TC_DESC_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DESC_2_1Suite() {} + ~Test_TC_I_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -70924,10 +71259,10 @@ class Test_TC_DESC_2_1Suite : public TestCommand } }; -class Test_TC_DESC_2_2Suite : public TestCommand +class Test_TC_I_3_2Suite : public TestCommand { public: - Test_TC_DESC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_2_2", 0, credsIssuerConfig) + Test_TC_I_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_3_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -70935,7 +71270,7 @@ class Test_TC_DESC_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DESC_2_2Suite() {} + ~Test_TC_I_3_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -70980,11 +71315,10 @@ class Test_TC_DESC_2_2Suite : public TestCommand } }; -class Test_TC_ETHDIAG_1_2Suite : public TestCommand +class Test_TC_ILL_2_2Suite : public TestCommand { public: - Test_TC_ETHDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_ETHDIAG_1_2", 0, credsIssuerConfig) + Test_TC_ILL_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_ILL_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -70992,7 +71326,7 @@ class Test_TC_ETHDIAG_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_ETHDIAG_1_2Suite() {} + ~Test_TC_ILL_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71037,10 +71371,10 @@ class Test_TC_ETHDIAG_1_2Suite : public TestCommand } }; -class Test_TC_GC_2_2Suite : public TestCommand +class Test_TC_ILL_3_1Suite : public TestCommand { public: - Test_TC_GC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_2", 0, credsIssuerConfig) + Test_TC_ILL_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_ILL_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71048,7 +71382,7 @@ class Test_TC_GC_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GC_2_2Suite() {} + ~Test_TC_ILL_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71093,10 +71427,10 @@ class Test_TC_GC_2_2Suite : public TestCommand } }; -class Test_TC_GC_2_3Suite : public TestCommand +class Test_TC_IDM_1_1Suite : public TestCommand { public: - Test_TC_GC_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_3", 0, credsIssuerConfig) + Test_TC_IDM_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_1_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71104,7 +71438,7 @@ class Test_TC_GC_2_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GC_2_3Suite() {} + ~Test_TC_IDM_1_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71149,10 +71483,10 @@ class Test_TC_GC_2_3Suite : public TestCommand } }; -class Test_TC_GC_2_4Suite : public TestCommand +class Test_TC_IDM_1_2Suite : public TestCommand { public: - Test_TC_GC_2_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_4", 0, credsIssuerConfig) + Test_TC_IDM_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71160,7 +71494,7 @@ class Test_TC_GC_2_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GC_2_4Suite() {} + ~Test_TC_IDM_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71205,11 +71539,10 @@ class Test_TC_GC_2_4Suite : public TestCommand } }; -class Test_TC_GENDIAG_1_1Suite : public TestCommand +class Test_TC_IDM_2_1Suite : public TestCommand { public: - Test_TC_GENDIAG_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_GENDIAG_1_1", 0, credsIssuerConfig) + Test_TC_IDM_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71217,7 +71550,7 @@ class Test_TC_GENDIAG_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GENDIAG_1_1Suite() {} + ~Test_TC_IDM_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71262,11 +71595,10 @@ class Test_TC_GENDIAG_1_1Suite : public TestCommand } }; -class Test_TC_GENDIAG_1_2Suite : public TestCommand +class Test_TC_IDM_2_2Suite : public TestCommand { public: - Test_TC_GENDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_GENDIAG_1_2", 0, credsIssuerConfig) + Test_TC_IDM_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71274,7 +71606,7 @@ class Test_TC_GENDIAG_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GENDIAG_1_2Suite() {} + ~Test_TC_IDM_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71319,11 +71651,10 @@ class Test_TC_GENDIAG_1_2Suite : public TestCommand } }; -class Test_TC_GENDIAG_2_1Suite : public TestCommand +class Test_TC_IDM_3_1Suite : public TestCommand { public: - Test_TC_GENDIAG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_GENDIAG_2_1", 0, credsIssuerConfig) + Test_TC_IDM_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71331,7 +71662,7 @@ class Test_TC_GENDIAG_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GENDIAG_2_1Suite() {} + ~Test_TC_IDM_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71376,10 +71707,10 @@ class Test_TC_GENDIAG_2_1Suite : public TestCommand } }; -class Test_TC_I_2_2Suite : public TestCommand +class Test_TC_IDM_3_2Suite : public TestCommand { public: - Test_TC_I_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_2_2", 0, credsIssuerConfig) + Test_TC_IDM_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_3_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71387,7 +71718,7 @@ class Test_TC_I_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_I_2_2Suite() {} + ~Test_TC_IDM_3_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71432,10 +71763,10 @@ class Test_TC_I_2_2Suite : public TestCommand } }; -class Test_TC_I_3_1Suite : public TestCommand +class Test_TC_IDM_4_1Suite : public TestCommand { public: - Test_TC_I_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_3_1", 0, credsIssuerConfig) + Test_TC_IDM_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_4_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71443,7 +71774,7 @@ class Test_TC_I_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_I_3_1Suite() {} + ~Test_TC_IDM_4_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71488,10 +71819,10 @@ class Test_TC_I_3_1Suite : public TestCommand } }; -class Test_TC_I_3_2Suite : public TestCommand +class Test_TC_IDM_4_2Suite : public TestCommand { public: - Test_TC_I_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_3_2", 0, credsIssuerConfig) + Test_TC_IDM_4_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_4_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71499,7 +71830,7 @@ class Test_TC_I_3_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_I_3_2Suite() {} + ~Test_TC_IDM_4_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71544,10 +71875,10 @@ class Test_TC_I_3_2Suite : public TestCommand } }; -class Test_TC_ILL_2_2Suite : public TestCommand +class Test_TC_IDM_5_1Suite : public TestCommand { public: - Test_TC_ILL_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_ILL_2_2", 0, credsIssuerConfig) + Test_TC_IDM_5_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_5_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71555,7 +71886,7 @@ class Test_TC_ILL_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_ILL_2_2Suite() {} + ~Test_TC_IDM_5_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71600,10 +71931,10 @@ class Test_TC_ILL_2_2Suite : public TestCommand } }; -class Test_TC_ILL_3_1Suite : public TestCommand +class Test_TC_IDM_5_2Suite : public TestCommand { public: - Test_TC_ILL_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_ILL_3_1", 0, credsIssuerConfig) + Test_TC_IDM_5_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_5_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71611,7 +71942,7 @@ class Test_TC_ILL_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_ILL_3_1Suite() {} + ~Test_TC_IDM_5_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71656,10 +71987,10 @@ class Test_TC_ILL_3_1Suite : public TestCommand } }; -class Test_TC_IDM_1_1Suite : public TestCommand +class Test_TC_IDM_6_1Suite : public TestCommand { public: - Test_TC_IDM_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_1_1", 0, credsIssuerConfig) + Test_TC_IDM_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71667,7 +71998,7 @@ class Test_TC_IDM_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_1_1Suite() {} + ~Test_TC_IDM_6_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71712,10 +72043,10 @@ class Test_TC_IDM_1_1Suite : public TestCommand } }; -class Test_TC_IDM_1_2Suite : public TestCommand +class Test_TC_IDM_6_2Suite : public TestCommand { public: - Test_TC_IDM_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_1_2", 0, credsIssuerConfig) + Test_TC_IDM_6_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71723,7 +72054,7 @@ class Test_TC_IDM_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_1_2Suite() {} + ~Test_TC_IDM_6_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71768,10 +72099,10 @@ class Test_TC_IDM_1_2Suite : public TestCommand } }; -class Test_TC_IDM_2_1Suite : public TestCommand +class Test_TC_IDM_6_3Suite : public TestCommand { public: - Test_TC_IDM_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_2_1", 0, credsIssuerConfig) + Test_TC_IDM_6_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71779,7 +72110,7 @@ class Test_TC_IDM_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_2_1Suite() {} + ~Test_TC_IDM_6_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71824,10 +72155,10 @@ class Test_TC_IDM_2_1Suite : public TestCommand } }; -class Test_TC_IDM_2_2Suite : public TestCommand +class Test_TC_IDM_6_4Suite : public TestCommand { public: - Test_TC_IDM_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_2_2", 0, credsIssuerConfig) + Test_TC_IDM_6_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71835,7 +72166,7 @@ class Test_TC_IDM_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_2_2Suite() {} + ~Test_TC_IDM_6_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71880,10 +72211,10 @@ class Test_TC_IDM_2_2Suite : public TestCommand } }; -class Test_TC_IDM_3_1Suite : public TestCommand +class Test_TC_IDM_7_1Suite : public TestCommand { public: - Test_TC_IDM_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_3_1", 0, credsIssuerConfig) + Test_TC_IDM_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_7_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71891,7 +72222,7 @@ class Test_TC_IDM_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_3_1Suite() {} + ~Test_TC_IDM_7_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71936,10 +72267,10 @@ class Test_TC_IDM_3_1Suite : public TestCommand } }; -class Test_TC_IDM_3_2Suite : public TestCommand +class Test_TC_MC_2_2Suite : public TestCommand { public: - Test_TC_IDM_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_3_2", 0, credsIssuerConfig) + Test_TC_MC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -71947,7 +72278,7 @@ class Test_TC_IDM_3_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_3_2Suite() {} + ~Test_TC_MC_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -71992,10 +72323,10 @@ class Test_TC_IDM_3_2Suite : public TestCommand } }; -class Test_TC_IDM_4_1Suite : public TestCommand +class Test_TC_MC_3_7_1Suite : public TestCommand { public: - Test_TC_IDM_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_4_1", 0, credsIssuerConfig) + Test_TC_MC_3_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_7_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72003,7 +72334,7 @@ class Test_TC_IDM_4_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_4_1Suite() {} + ~Test_TC_MC_3_7_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72048,10 +72379,10 @@ class Test_TC_IDM_4_1Suite : public TestCommand } }; -class Test_TC_IDM_4_2Suite : public TestCommand +class Test_TC_MC_3_8_1Suite : public TestCommand { public: - Test_TC_IDM_4_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_4_2", 0, credsIssuerConfig) + Test_TC_MC_3_8_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_8_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72059,7 +72390,7 @@ class Test_TC_IDM_4_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_4_2Suite() {} + ~Test_TC_MC_3_8_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72104,10 +72435,10 @@ class Test_TC_IDM_4_2Suite : public TestCommand } }; -class Test_TC_IDM_5_1Suite : public TestCommand +class Test_TC_MC_3_9_1Suite : public TestCommand { public: - Test_TC_IDM_5_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_5_1", 0, credsIssuerConfig) + Test_TC_MC_3_9_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_9_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72115,7 +72446,7 @@ class Test_TC_IDM_5_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_5_1Suite() {} + ~Test_TC_MC_3_9_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72160,10 +72491,10 @@ class Test_TC_IDM_5_1Suite : public TestCommand } }; -class Test_TC_IDM_5_2Suite : public TestCommand +class Test_TC_MC_3_14Suite : public TestCommand { public: - Test_TC_IDM_5_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_5_2", 0, credsIssuerConfig) + Test_TC_MC_3_14Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_14", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72171,7 +72502,7 @@ class Test_TC_IDM_5_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_5_2Suite() {} + ~Test_TC_MC_3_14Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72216,10 +72547,10 @@ class Test_TC_IDM_5_2Suite : public TestCommand } }; -class Test_TC_IDM_6_1Suite : public TestCommand +class Test_TC_MC_3_15Suite : public TestCommand { public: - Test_TC_IDM_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_1", 0, credsIssuerConfig) + Test_TC_MC_3_15Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_15", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72227,7 +72558,7 @@ class Test_TC_IDM_6_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_6_1Suite() {} + ~Test_TC_MC_3_15Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72272,10 +72603,10 @@ class Test_TC_IDM_6_1Suite : public TestCommand } }; -class Test_TC_IDM_6_2Suite : public TestCommand +class Test_TC_MC_3_16Suite : public TestCommand { public: - Test_TC_IDM_6_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_2", 0, credsIssuerConfig) + Test_TC_MC_3_16Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_16", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72283,7 +72614,7 @@ class Test_TC_IDM_6_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_6_2Suite() {} + ~Test_TC_MC_3_16Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72328,10 +72659,10 @@ class Test_TC_IDM_6_2Suite : public TestCommand } }; -class Test_TC_IDM_6_3Suite : public TestCommand +class Test_TC_MC_3_17Suite : public TestCommand { public: - Test_TC_IDM_6_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_3", 0, credsIssuerConfig) + Test_TC_MC_3_17Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_17", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72339,7 +72670,7 @@ class Test_TC_IDM_6_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_6_3Suite() {} + ~Test_TC_MC_3_17Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72384,10 +72715,10 @@ class Test_TC_IDM_6_3Suite : public TestCommand } }; -class Test_TC_IDM_6_4Suite : public TestCommand +class Test_TC_MC_4_1Suite : public TestCommand { public: - Test_TC_IDM_6_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_4", 0, credsIssuerConfig) + Test_TC_MC_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_4_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72395,7 +72726,7 @@ class Test_TC_IDM_6_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_6_4Suite() {} + ~Test_TC_MC_4_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72440,10 +72771,10 @@ class Test_TC_IDM_6_4Suite : public TestCommand } }; -class Test_TC_IDM_7_1Suite : public TestCommand +class Test_TC_MC_5_4Suite : public TestCommand { public: - Test_TC_IDM_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_7_1", 0, credsIssuerConfig) + Test_TC_MC_5_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72451,7 +72782,7 @@ class Test_TC_IDM_7_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_7_1Suite() {} + ~Test_TC_MC_5_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72496,10 +72827,10 @@ class Test_TC_IDM_7_1Suite : public TestCommand } }; -class Test_TC_MC_2_2Suite : public TestCommand +class Test_TC_MC_5_5Suite : public TestCommand { public: - Test_TC_MC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_2_2", 0, credsIssuerConfig) + Test_TC_MC_5_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_5", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72507,7 +72838,7 @@ class Test_TC_MC_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_2_2Suite() {} + ~Test_TC_MC_5_5Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -72552,10 +72883,10 @@ class Test_TC_MC_2_2Suite : public TestCommand } }; -class Test_TC_MC_4_1Suite : public TestCommand +class Test_TC_MC_5_6Suite : public TestCommand { public: - Test_TC_MC_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_4_1", 0, credsIssuerConfig) + Test_TC_MC_5_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_6", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -72563,7 +72894,7 @@ class Test_TC_MC_4_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_4_1Suite() {} + ~Test_TC_MC_5_6Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -73708,10 +74039,10 @@ class Test_TC_MC_6_4Suite : public TestCommand } }; -class Test_TC_MC_8_2Suite : public TestCommand +class Test_TC_MC_6_5Suite : public TestCommand { public: - Test_TC_MC_8_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_8_2", 0, credsIssuerConfig) + Test_TC_MC_6_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_5", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -73719,7 +74050,7 @@ class Test_TC_MC_8_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_8_2Suite() {} + ~Test_TC_MC_6_5Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -73764,10 +74095,10 @@ class Test_TC_MC_8_2Suite : public TestCommand } }; -class Test_TC_MC_9_2Suite : public TestCommand +class Test_TC_MC_6_7Suite : public TestCommand { public: - Test_TC_MC_9_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_9_2", 0, credsIssuerConfig) + Test_TC_MC_6_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_7", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -73775,7 +74106,7 @@ class Test_TC_MC_9_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_9_2Suite() {} + ~Test_TC_MC_6_7Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -73820,10 +74151,10 @@ class Test_TC_MC_9_2Suite : public TestCommand } }; -class Test_TC_MC_10_2Suite : public TestCommand +class Test_TC_MC_7_3Suite : public TestCommand { public: - Test_TC_MC_10_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_2", 0, credsIssuerConfig) + Test_TC_MC_7_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_7_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -73831,7 +74162,7 @@ class Test_TC_MC_10_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_2Suite() {} + ~Test_TC_MC_7_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -73876,10 +74207,10 @@ class Test_TC_MC_10_2Suite : public TestCommand } }; -class Test_TC_MC_10_3Suite : public TestCommand +class Test_TC_MC_7_4Suite : public TestCommand { public: - Test_TC_MC_10_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_3", 0, credsIssuerConfig) + Test_TC_MC_7_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_7_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -73887,7 +74218,7 @@ class Test_TC_MC_10_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_3Suite() {} + ~Test_TC_MC_7_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -73932,10 +74263,10 @@ class Test_TC_MC_10_3Suite : public TestCommand } }; -class Test_TC_MC_10_4Suite : public TestCommand +class Test_TC_MC_10_3Suite : public TestCommand { public: - Test_TC_MC_10_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_4", 0, credsIssuerConfig) + Test_TC_MC_10_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -73943,7 +74274,7 @@ class Test_TC_MC_10_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_4Suite() {} + ~Test_TC_MC_10_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -74044,10 +74375,10 @@ class Test_TC_MC_10_5Suite : public TestCommand } }; -class Test_TC_MC_10_6Suite : public TestCommand +class Test_TC_MC_10_7Suite : public TestCommand { public: - Test_TC_MC_10_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_6", 0, credsIssuerConfig) + Test_TC_MC_10_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_7", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -74055,7 +74386,7 @@ class Test_TC_MC_10_6Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_6Suite() {} + ~Test_TC_MC_10_7Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -74100,10 +74431,10 @@ class Test_TC_MC_10_6Suite : public TestCommand } }; -class Test_TC_MC_10_7Suite : public TestCommand +class Test_TC_MC_11_1Suite : public TestCommand { public: - Test_TC_MC_10_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_7", 0, credsIssuerConfig) + Test_TC_MC_11_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_11_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -74111,7 +74442,63 @@ class Test_TC_MC_10_7Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_7Suite() {} + ~Test_TC_MC_11_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_MC_11_2Suite : public TestCommand +{ +public: + Test_TC_MC_11_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_11_2", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_MC_11_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -77528,11 +77915,66 @@ class Test_TC_SWDIAG_1_2Suite : public TestCommand } }; -class Test_TC_WIFIDIAG_1_2Suite : public TestCommand +class Test_TC_DGWIFI_1_1Suite : public TestCommand +{ +public: + Test_TC_DGWIFI_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGWIFI_1_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DGWIFI_1_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DGWIFI_2_2Suite : public TestCommand { public: - Test_TC_WIFIDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_WIFIDIAG_1_2", 0, credsIssuerConfig) + Test_TC_DGWIFI_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGWIFI_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -77540,7 +77982,7 @@ class Test_TC_WIFIDIAG_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_WIFIDIAG_1_2Suite() {} + ~Test_TC_DGWIFI_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -77585,11 +78027,10 @@ class Test_TC_WIFIDIAG_1_2Suite : public TestCommand } }; -class Test_TC_WIFIDIAG_2_1Suite : public TestCommand +class Test_TC_DGWIFI_3_1Suite : public TestCommand { public: - Test_TC_WIFIDIAG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_WIFIDIAG_2_1", 0, credsIssuerConfig) + Test_TC_DGWIFI_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGWIFI_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -77597,7 +78038,63 @@ class Test_TC_WIFIDIAG_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_WIFIDIAG_2_1Suite() {} + ~Test_TC_DGWIFI_3_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +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) + { + 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) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DGWIFI_3_2Suite : public TestCommand +{ +public: + Test_TC_DGWIFI_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGWIFI_3_2", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DGWIFI_3_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -81778,11 +82275,10 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -81812,7 +82308,6 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -81875,8 +82370,8 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -81993,12 +82488,14 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -82028,7 +82525,9 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -82056,19 +82555,30 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -82126,8 +82636,10 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), 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 5d82ddb6c46e18..cb365729dc77c8 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -63,11 +63,10 @@ class TestList : public Command { printf("Test_TC_CC_9_1\n"); printf("Test_TC_CC_9_2\n"); printf("Test_TC_CC_9_3\n"); - printf("Test_TC_DM_1_1\n"); - printf("Test_TC_DM_3_1\n"); + printf("Test_TC_DM_2_1\n"); printf("Test_TC_EMR_1_1\n"); - printf("Test_TC_ETHDIAG_1_1\n"); - printf("Test_TC_ETHDIAG_2_1\n"); + 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_GC_1_1\n"); @@ -97,7 +96,6 @@ class TestList : public Command { printf("Test_TC_MC_1_11\n"); printf("Test_TC_MC_1_12\n"); printf("Test_TC_MC_2_1\n"); - printf("Test_TC_MC_3_1\n"); printf("Test_TC_MC_3_2\n"); printf("Test_TC_MC_3_3\n"); printf("Test_TC_MC_3_4\n"); @@ -155,8 +153,8 @@ class TestList : public Command { printf("Test_TC_TSUIC_2_2\n"); printf("Test_TC_ULABEL_1_1\n"); printf("Test_TC_ULABEL_2_2\n"); - printf("Test_TC_WIFIDIAG_1_1\n"); - printf("Test_TC_WIFIDIAG_3_1\n"); + printf("Test_TC_DGWIFI_2_1\n"); + printf("Test_TC_DGWIFI_2_3\n"); printf("Test_TC_WNCV_1_1\n"); printf("Test_TC_WNCV_2_1\n"); printf("Test_TC_WNCV_2_2\n"); @@ -20257,11 +20255,11 @@ class Test_TC_CC_9_3 : public TestCommandBridge { } }; -class Test_TC_DM_1_1 : public TestCommandBridge { +class Test_TC_DM_2_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_DM_1_1() - : TestCommandBridge("Test_TC_DM_1_1") + Test_TC_DM_2_1() + : TestCommandBridge("Test_TC_DM_2_1") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); @@ -20271,7 +20269,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_DM_1_1() {} + ~Test_TC_DM_2_1() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -20279,11 +20277,11 @@ class Test_TC_DM_1_1 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_DM_1_1\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_DM_2_1\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_DM_1_1\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_DM_2_1\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -20336,52 +20334,61 @@ class Test_TC_DM_1_1 : public TestCommandBridge { err = TestQueryHardwareVersionString_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Query SoftwareVersion\n"); - err = TestQuerySoftwareVersion_10(); + ChipLogProgress(chipTool, + " ***** Test Step 10 : TH reads SoftwareVersionString from the DUT and Verify it is of type string and verify the " + "format\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestThReadsSoftwareVersionStringFromTheDutAndVerifyItIsOfTypeStringAndVerifyTheFormat_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Query SoftwareVersionString\n"); - err = TestQuerySoftwareVersionString_11(); + ChipLogProgress(chipTool, + " ***** Test Step 11 : TH reads ManufacturingDate from the DUT and Verify it is of type string and verify the " + "format\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestThReadsManufacturingDateFromTheDutAndVerifyItIsOfTypeStringAndVerifyTheFormat_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Query ManufacturingDate\n"); - if (ShouldSkip("MANF_DATE")) { + ChipLogProgress(chipTool, " ***** Test Step 12 : Query PartNumber\n"); + if (ShouldSkip("PART_NUM")) { NextTest(); return; } - err = TestQueryManufacturingDate_12(); + err = TestQueryPartNumber_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Query PartNumber\n"); - if (ShouldSkip("PART_NUM")) { + ChipLogProgress(chipTool, + " ***** Test Step 13 : TH reads ProductURL from the DUT and Verify it is of type string and verify the format\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { NextTest(); return; } - err = TestQueryPartNumber_13(); + err = TestThReadsProductURLFromTheDutAndVerifyItIsOfTypeStringAndVerifyTheFormat_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Query ProductURL\n"); - err = TestQueryProductURL_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Query ProductLabel\n"); + err = TestQueryProductLabel_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Query ProductLabel\n"); - err = TestQueryProductLabel_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Query SerialNumber\n"); + err = TestQuerySerialNumber_15(); break; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Query SerialNumber\n"); - err = TestQuerySerialNumber_16(); + ChipLogProgress(chipTool, " ***** Test Step 16 : Query LocalConfigDisabled\n"); + err = TestQueryLocalConfigDisabled_16(); break; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Query LocalConfigDisabled\n"); - err = TestQueryLocalConfigDisabled_17(); + ChipLogProgress(chipTool, " ***** Test Step 17 : Query Reachable\n"); + err = TestQueryReachable_17(); break; case 18: - ChipLogProgress(chipTool, " ***** Test Step 18 : Query Reachable\n"); - err = TestQueryReachable_18(); - break; - case 19: - ChipLogProgress(chipTool, " ***** Test Step 19 : Query UniqueID\n"); - err = TestQueryUniqueID_19(); + ChipLogProgress(chipTool, " ***** Test Step 18 : Query UniqueID\n"); + err = TestQueryUniqueID_18(); break; } @@ -20451,9 +20458,6 @@ class Test_TC_DM_1_1 : public TestCommandBridge { case 18: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 19: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; } // Go on to the next test. @@ -20467,7 +20471,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 20; + const uint16_t mTestCount = 19; chip::Optional mNodeId; chip::Optional mCluster; @@ -20604,8 +20608,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("location", "", "string")); - VerifyOrReturn(CheckConstraintFormat("location", "", "ISO 3166-1 alpha-2")); - VerifyOrReturn(CheckConstraintMaxLength("location", [value length], 2)); + VerifyOrReturn(CheckConstraintMaxLength("location", [value length], 16)); NextTest(); }]; @@ -20650,72 +20653,25 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestQuerySoftwareVersion_10() + CHIP_ERROR TestThReadsSoftwareVersionStringFromTheDutAndVerifyItIsOfTypeStringAndVerifyTheFormat_10() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeSoftwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Query SoftwareVersion Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("softwareVersion", "", "uint32")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestQuerySoftwareVersionString_11() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeSoftwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { - NSLog(@"Query SoftwareVersionString Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("softwareVersionString", "", "string")); - VerifyOrReturn(CheckConstraintFormat("softwareVersionString", "", "ASCII")); - VerifyOrReturn(CheckConstraintMinLength("softwareVersionString", [value length], 1)); - VerifyOrReturn(CheckConstraintMaxLength("softwareVersionString", [value length], 64)); - NextTest(); - }]; - - return CHIP_NO_ERROR; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt("alpha", value); } - CHIP_ERROR TestQueryManufacturingDate_12() + CHIP_ERROR TestThReadsManufacturingDateFromTheDutAndVerifyItIsOfTypeStringAndVerifyTheFormat_11() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeManufacturingDateWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { - NSLog(@"Query ManufacturingDate Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("manufacturingDate", "", "string")); - VerifyOrReturn(CheckConstraintFormat("manufacturingDate", "", "ISO 8601")); - VerifyOrReturn(CheckConstraintMinLength("manufacturingDate", [value length], 8)); - VerifyOrReturn(CheckConstraintMaxLength("manufacturingDate", [value length], 16)); - NextTest(); - }]; - - return CHIP_NO_ERROR; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt("alpha", value); } - CHIP_ERROR TestQueryPartNumber_13() + CHIP_ERROR TestQueryPartNumber_12() { CHIPDevice * device = GetDevice("alpha"); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; @@ -20739,32 +20695,16 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestQueryProductURL_14() + CHIP_ERROR TestThReadsProductURLFromTheDutAndVerifyItIsOfTypeStringAndVerifyTheFormat_13() { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeProductURLWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { - NSLog(@"Query ProductURL Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("productURL", "", "string")); - VerifyOrReturn(CheckConstraintFormat("productURL", "", "RFC3986")); - VerifyOrReturn(CheckConstraintMaxLength("productURL", [value length], 256)); - NextTest(); - }]; - - return CHIP_NO_ERROR; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt("alpha", value); } - CHIP_ERROR TestQueryProductLabel_15() + CHIP_ERROR TestQueryProductLabel_14() { CHIPDevice * device = GetDevice("alpha"); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; @@ -20788,7 +20728,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestQuerySerialNumber_16() + CHIP_ERROR TestQuerySerialNumber_15() { CHIPDevice * device = GetDevice("alpha"); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; @@ -20812,7 +20752,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestQueryLocalConfigDisabled_17() + CHIP_ERROR TestQueryLocalConfigDisabled_16() { CHIPDevice * device = GetDevice("alpha"); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; @@ -20835,7 +20775,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestQueryReachable_18() + CHIP_ERROR TestQueryReachable_17() { CHIPDevice * device = GetDevice("alpha"); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; @@ -20858,7 +20798,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestQueryUniqueID_19() + CHIP_ERROR TestQueryUniqueID_18() { CHIPDevice * device = GetDevice("alpha"); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; @@ -20883,11 +20823,11 @@ class Test_TC_DM_1_1 : public TestCommandBridge { } }; -class Test_TC_DM_3_1 : public TestCommandBridge { +class Test_TC_EMR_1_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_DM_3_1() - : TestCommandBridge("Test_TC_DM_3_1") + Test_TC_EMR_1_1() + : TestCommandBridge("Test_TC_EMR_1_1") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); @@ -20897,7 +20837,7 @@ class Test_TC_DM_3_1 : public TestCommandBridge { } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_DM_3_1() {} + ~Test_TC_EMR_1_1() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -20905,11 +20845,11 @@ class Test_TC_DM_3_1 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_DM_3_1\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_EMR_1_1\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_DM_3_1\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_EMR_1_1\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -20926,12 +20866,25 @@ class Test_TC_DM_3_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Query MaxNetworks\n"); - err = TestQueryMaxNetworks_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Query Networks\n"); - err = TestQueryNetworks_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read the global attribute constraints: ClusterRevision\n"); + err = TestReadTheGlobalAttributeConstraintsClusterRevision_2(); + break; + case 3: + ChipLogProgress( + chipTool, " ***** Test Step 3 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : reads back global attribute: ClusterRevision\n"); + err = TestReadsBackGlobalAttributeClusterRevision_4(); + break; + case 5: + ChipLogProgress(chipTool, " ***** Test Step 5 : Read the global attribute: AttributeList\n"); + err = TestReadTheGlobalAttributeAttributeList_5(); break; } @@ -20953,6 +20906,15 @@ class Test_TC_DM_3_1 : public TestCommandBridge { case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 5: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -20966,7 +20928,7 @@ class Test_TC_DM_3_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 6; chip::Optional mNodeId; chip::Optional mCluster; @@ -20980,50 +20942,111 @@ class Test_TC_DM_3_1 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestQueryMaxNetworks_1() + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { CHIPDevice * device = GetDevice("alpha"); - CHIPTestNetworkCommissioning * cluster = [[CHIPTestNetworkCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeMaxNetworksWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Query MaxNetworks Error: %@", err); + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 3U)); } + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("maxNetworks", "", "uint8")); + VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestQueryNetworks_2() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { CHIPDevice * device = GetDevice("alpha"); - CHIPTestNetworkCommissioning * cluster = [[CHIPTestNetworkCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeNetworksWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Query Networks Error: %@", err); + id clusterRevisionArgument; + clusterRevisionArgument = [NSNumber numberWithUnsignedShort:1U]; + [cluster + writeAttributeClusterRevisionWithValue:clusterRevisionArgument + completionHandler:^(NSError * _Nullable err) { + NSLog( + @"write the default values to mandatory global attribute: ClusterRevision Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"reads back global attribute: ClusterRevision Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 3U)); } + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadTheGlobalAttributeAttributeList_5() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the global attribute: AttributeList Error: %@", err); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("networks", "", "list")); + VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); }]; @@ -21031,11 +21054,11 @@ class Test_TC_DM_3_1 : public TestCommandBridge { } }; -class Test_TC_EMR_1_1 : public TestCommandBridge { +class Test_TC_DGETH_2_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_EMR_1_1() - : TestCommandBridge("Test_TC_EMR_1_1") + Test_TC_DGETH_2_1() + : TestCommandBridge("Test_TC_DGETH_2_1") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); @@ -21045,7 +21068,7 @@ class Test_TC_EMR_1_1 : public TestCommandBridge { } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_EMR_1_1() {} + ~Test_TC_DGETH_2_1() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -21053,11 +21076,11 @@ class Test_TC_EMR_1_1 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_EMR_1_1\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_DGETH_2_1\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_EMR_1_1\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_DGETH_2_1\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -21074,341 +21097,110 @@ class Test_TC_EMR_1_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read PHYRate attribute constraints\n"); + err = TestReadPHYRateAttributeConstraints_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read the global attribute constraints: ClusterRevision\n"); - err = TestReadTheGlobalAttributeConstraintsClusterRevision_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read FullDuplex attribute constraints\n"); + err = TestReadFullDuplexAttributeConstraints_2(); break; case 3: - ChipLogProgress( - chipTool, " ***** Test Step 3 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Read PacketRxCount attribute constraints\n"); + err = TestReadPacketRxCountAttributeConstraints_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : reads back global attribute: ClusterRevision\n"); - err = TestReadsBackGlobalAttributeClusterRevision_4(); + ChipLogProgress(chipTool, + " ***** Test Step 4 : Read PacketRxCount value from DUT and verify the number of packets received on ethernet " + "network interface\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestReadPacketRxCountValueFromDutAndVerifyTheNumberOfPacketsReceivedOnEthernetNetworkInterface_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Read the global attribute: AttributeList\n"); - err = TestReadTheGlobalAttributeAttributeList_5(); - 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), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 5: - 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 = 6; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() - { - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee("alpha", value); - } - - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 3U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id clusterRevisionArgument; - clusterRevisionArgument = [NSNumber numberWithUnsignedShort:1U]; - [cluster - writeAttributeClusterRevisionWithValue:clusterRevisionArgument - completionHandler:^(NSError * _Nullable err) { - NSLog( - @"write the default values to mandatory global attribute: ClusterRevision Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"reads back global attribute: ClusterRevision Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 3U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheGlobalAttributeAttributeList_5() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestElectricalMeasurement * cluster = [[CHIPTestElectricalMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the global attribute: AttributeList Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } -}; - -class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_ETHDIAG_1_1() - : TestCommandBridge("Test_TC_ETHDIAG_1_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_ETHDIAG_1_1() {} - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_ETHDIAG_1_1\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_ETHDIAG_1_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 : Wait for the commissioned device to be retrieved\n"); - err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); - break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Read PHYRate attribute constraints\n"); - err = TestReadPHYRateAttributeConstraints_1(); - break; - case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read FullDuplex attribute constraints\n"); - err = TestReadFullDuplexAttributeConstraints_2(); - break; - case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read PacketRxCount attribute constraints\n"); - err = TestReadPacketRxCountAttributeConstraints_3(); - break; - case 4: - ChipLogProgress(chipTool, - " ***** Test Step 4 : Read PacketRxCount value from DUT and verify the number of packets received on ethernet " - "network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { - NextTest(); - return; - } - err = TestReadPacketRxCountValueFromDutAndVerifyTheNumberOfPacketsReceivedOnEthernetNetworkInterface_4(); - break; - case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Read PacketTxCount attribute constraints\n"); - err = TestReadPacketTxCountAttributeConstraints_5(); - break; - case 6: - ChipLogProgress(chipTool, - " ***** Test Step 6 : Read PacketTxCount value from DUT and verify the number of packets received on ethernet " - "network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { - NextTest(); - return; - } - err = TestReadPacketTxCountValueFromDutAndVerifyTheNumberOfPacketsReceivedOnEthernetNetworkInterface_6(); - break; - case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Read TxErrCount attribute constraints\n"); - err = TestReadTxErrCountAttributeConstraints_7(); - break; - case 8: - ChipLogProgress(chipTool, - " ***** Test Step 8 : Read TxErrCount value from DUT and verify value indicates the number of failed packet " - "transmission on ethernet network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { - NextTest(); - return; - } - err = TestReadTxErrCountValueFromDutAndVerifyValueIndicatesTheNumberOfFailedPacketTransmissionOnEthernetNetworkInterface_8(); - break; - case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Read CollisionCount attribute constraints\n"); - err = TestReadCollisionCountAttributeConstraints_9(); - break; - case 10: - ChipLogProgress(chipTool, - " ***** Test Step 10 : Read CollisionCount value from DUT and verify value indicates the number of collision " - "occurred while transmitting packets on ethernet network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { - NextTest(); - return; - } - err = TestReadCollisionCountValueFromDutAndVerifyValueIndicatesTheNumberOfCollisionOccurredWhileTransmittingPacketsOnEthernetNetworkInterface_10(); - break; - case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Read OverrunCount attribute constraints\n"); - err = TestReadOverrunCountAttributeConstraints_11(); - break; - case 12: - ChipLogProgress(chipTool, - " ***** Test Step 12 : Read OverrunCount value from DUT and verify value indicates the number of packets dropped " - "due to lack of buffer memory on ethernet network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { - NextTest(); - return; - } - err = TestReadOverrunCountValueFromDutAndVerifyValueIndicatesTheNumberOfPacketsDroppedDueToLackOfBufferMemoryOnEthernetNetworkInterface_12(); - break; - case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Read CarrierDetect attribute constraints\n"); - err = TestReadCarrierDetectAttributeConstraints_13(); - break; - case 14: - ChipLogProgress(chipTool, - " ***** Test Step 14 : Read CarrierDetect value from DUT and verify value indicates the presence of carrier detect " - "control signal on ethernet network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { - NextTest(); - return; - } - err = TestReadCarrierDetectValueFromDutAndVerifyValueIndicatesThePresenceOfCarrierDetectControlSignalOnEthernetNetworkInterface_14(); - break; - case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Read TimeSinceReset attribute constraints\n"); - err = TestReadTimeSinceResetAttributeConstraints_15(); - break; - case 16: - ChipLogProgress(chipTool, - " ***** Test Step 16 : Read TimeSinceReset value from DUT and verify the value indicates the duration of time, in " - "minutes\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { - NextTest(); - return; - } - err = TestReadTimeSinceResetValueFromDutAndVerifyTheValueIndicatesTheDurationOfTimeInMinutes_16(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Read PacketTxCount attribute constraints\n"); + err = TestReadPacketTxCountAttributeConstraints_5(); + break; + case 6: + ChipLogProgress(chipTool, + " ***** Test Step 6 : Read PacketTxCount value from DUT and verify the number of packets received on ethernet " + "network interface\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestReadPacketTxCountValueFromDutAndVerifyTheNumberOfPacketsReceivedOnEthernetNetworkInterface_6(); + break; + case 7: + ChipLogProgress(chipTool, " ***** Test Step 7 : Read TxErrCount attribute constraints\n"); + err = TestReadTxErrCountAttributeConstraints_7(); + break; + case 8: + ChipLogProgress(chipTool, + " ***** Test Step 8 : Read TxErrCount value from DUT and verify value indicates the number of failed packet " + "transmission on ethernet network interface\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestReadTxErrCountValueFromDutAndVerifyValueIndicatesTheNumberOfFailedPacketTransmissionOnEthernetNetworkInterface_8(); + break; + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Read CollisionCount attribute constraints\n"); + err = TestReadCollisionCountAttributeConstraints_9(); + break; + case 10: + ChipLogProgress(chipTool, + " ***** Test Step 10 : Read CollisionCount value from DUT and verify value indicates the number of collision " + "occurred while transmitting packets on ethernet network interface\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestReadCollisionCountValueFromDutAndVerifyValueIndicatesTheNumberOfCollisionOccurredWhileTransmittingPacketsOnEthernetNetworkInterface_10(); + break; + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : Read OverrunCount attribute constraints\n"); + err = TestReadOverrunCountAttributeConstraints_11(); + break; + case 12: + ChipLogProgress(chipTool, + " ***** Test Step 12 : Read OverrunCount value from DUT and verify value indicates the number of packets dropped " + "due to lack of buffer memory on ethernet network interface\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestReadOverrunCountValueFromDutAndVerifyValueIndicatesTheNumberOfPacketsDroppedDueToLackOfBufferMemoryOnEthernetNetworkInterface_12(); + break; + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : Read CarrierDetect attribute constraints\n"); + err = TestReadCarrierDetectAttributeConstraints_13(); + break; + case 14: + ChipLogProgress(chipTool, + " ***** Test Step 14 : Read CarrierDetect value from DUT and verify value indicates the presence of carrier detect " + "control signal on ethernet network interface\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestReadCarrierDetectValueFromDutAndVerifyValueIndicatesThePresenceOfCarrierDetectControlSignalOnEthernetNetworkInterface_14(); + break; + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : Read TimeSinceReset attribute constraints\n"); + err = TestReadTimeSinceResetAttributeConstraints_15(); + break; + case 16: + ChipLogProgress(chipTool, + " ***** Test Step 16 : Read TimeSinceReset value from DUT and verify the value indicates the duration of time, in " + "minutes\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestReadTimeSinceResetValueFromDutAndVerifyTheValueIndicatesTheDurationOfTimeInMinutes_16(); break; } @@ -21754,11 +21546,11 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { } }; -class Test_TC_ETHDIAG_2_1 : public TestCommandBridge { +class Test_TC_DGETH_2_2 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_ETHDIAG_2_1() - : TestCommandBridge("Test_TC_ETHDIAG_2_1") + Test_TC_DGETH_2_2() + : TestCommandBridge("Test_TC_DGETH_2_2") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); @@ -21768,7 +21560,7 @@ class Test_TC_ETHDIAG_2_1 : public TestCommandBridge { } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_ETHDIAG_2_1() {} + ~Test_TC_DGETH_2_2() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -21776,11 +21568,11 @@ class Test_TC_ETHDIAG_2_1 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_ETHDIAG_2_1\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_DGETH_2_2\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_ETHDIAG_2_1\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_DGETH_2_2\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -31389,554 +31181,6 @@ class Test_TC_MC_2_1 : public TestCommandBridge { } }; -class Test_TC_MC_3_1 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_MC_3_1() - : TestCommandBridge("Test_TC_MC_3_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_MC_3_1() {} - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_3_1\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_3_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 : Wait for the commissioned device to be retrieved\n"); - err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); - break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Send Select\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendSelect_1(); - break; - case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Send Up\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendUp_2(); - break; - case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Send Down\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendDown_3(); - break; - case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Send Left\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendLeft_4(); - break; - case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Send Right\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendRight_5(); - break; - case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Send RightUp\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendRightUp_6(); - break; - case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Send RightDown\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendRightDown_7(); - break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Send LeftUp\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendLeftUp_8(); - break; - case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Send LeftDown\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendLeftDown_9(); - break; - case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Send RootMenu\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendRootMenu_10(); - break; - case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Send SetupMenu\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendSetupMenu_11(); - break; - case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Send ContentsMenu\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendContentsMenu_12(); - break; - case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Send FavoriteMenu\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendFavoriteMenu_13(); - break; - case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Send Exit\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendExit_14(); - break; - case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Send Invalid\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } - err = TestSendInvalid_15(); - 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; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 7: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 9: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 10: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 11: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 12: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 13: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 14: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 15: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - 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 = 16; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() - { - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee("alpha", value); - } - - CHIP_ERROR TestSendSelect_1() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:0]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send Select Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendUp_2() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:1]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send Up Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendDown_3() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:2]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send Down Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendLeft_4() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:3]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send Left Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendRight_5() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:4]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send Right Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendRightUp_6() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:5]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send RightUp Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendRightDown_7() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:6]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send RightDown Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendLeftUp_8() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:7]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send LeftUp Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendLeftDown_9() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:8]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send LeftDown Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendRootMenu_10() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:9]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send RootMenu Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendSetupMenu_11() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:10]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send SetupMenu Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendContentsMenu_12() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:11]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send ContentsMenu Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendFavoriteMenu_13() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:12]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send FavoriteMenu Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendExit_14() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:13]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send Exit Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestSendInvalid_15() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestKeypadInput * cluster = [[CHIPTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[CHIPKeypadInputClusterSendKeyParams alloc] init]; - params.keyCode = [NSNumber numberWithUnsignedChar:255]; - [cluster sendKeyWithParams:params - completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { - NSLog(@"Send Invalid Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } -}; - class Test_TC_MC_3_2 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced @@ -56530,11 +55774,11 @@ class Test_TC_ULABEL_2_2 : public TestCommandBridge { } }; -class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { +class Test_TC_DGWIFI_2_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_WIFIDIAG_1_1() - : TestCommandBridge("Test_TC_WIFIDIAG_1_1") + Test_TC_DGWIFI_2_1() + : TestCommandBridge("Test_TC_DGWIFI_2_1") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); @@ -56544,7 +55788,7 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_WIFIDIAG_1_1() {} + ~Test_TC_DGWIFI_2_1() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -56552,11 +55796,11 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_WIFIDIAG_1_1\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_DGWIFI_2_1\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_WIFIDIAG_1_1\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_DGWIFI_2_1\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -57007,11 +56251,11 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { } }; -class Test_TC_WIFIDIAG_3_1 : public TestCommandBridge { +class Test_TC_DGWIFI_2_3 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_WIFIDIAG_3_1() - : TestCommandBridge("Test_TC_WIFIDIAG_3_1") + Test_TC_DGWIFI_2_3() + : TestCommandBridge("Test_TC_DGWIFI_2_3") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); @@ -57021,7 +56265,7 @@ class Test_TC_WIFIDIAG_3_1 : public TestCommandBridge { } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_WIFIDIAG_3_1() {} + ~Test_TC_DGWIFI_2_3() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -57029,11 +56273,11 @@ class Test_TC_WIFIDIAG_3_1 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_WIFIDIAG_3_1\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_DGWIFI_2_3\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_WIFIDIAG_3_1\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_DGWIFI_2_3\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -109615,11 +108859,10 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), - make_unique(), - make_unique(), + make_unique(), make_unique(), - make_unique(), - make_unique(), + make_unique(), + make_unique(), make_unique(), make_unique(), make_unique(), @@ -109649,7 +108892,6 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), - make_unique(), make_unique(), make_unique(), make_unique(), @@ -109707,8 +108949,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(), diff --git a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h index d727a39bbf9e7e..ac30cebcbe163f 100644 --- a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h @@ -260,7 +260,7 @@ class Test_TC_DM_3_3_SimulatedSuite : public TestCommand class Test_TC_DM_2_3_SimulatedSuite : public TestCommand { public: - Test_TC_DM_2_3_SimulatedSuite() : TestCommand("Test_TC_DM_2_3_Simulated", 10) + Test_TC_DM_2_3_SimulatedSuite() : TestCommand("Test_TC_DM_2_3_Simulated", 21) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -288,7 +288,11 @@ class Test_TC_DM_2_3_SimulatedSuite : public TestCommand switch (mTestIndex - 1) { - case 9: + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; @@ -308,51 +312,93 @@ class Test_TC_DM_2_3_SimulatedSuite : public TestCommand switch (testIndex) { case 0: { - LogStep(0, "Wait for Arm Fail Safe"); - return WaitCommand(GetEndpoint(0), GeneralCommissioning::Id, GeneralCommissioning::Commands::ArmFailSafe::Id); + LogStep(0, "Wait for the device to be commissioned"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForCommissioning::Type value; + return WaitForCommissioning(kIdentityAlpha, value); } case 1: { - LogStep(1, "Wait for Set Regulatory Config"); - return WaitCommand(GetEndpoint(0), GeneralCommissioning::Id, GeneralCommissioning::Commands::SetRegulatoryConfig::Id); + LogStep(1, "Log OnOff Test Startup"); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::Log::Type value; + value.message = chip::Span("*** Basic Cluster Tests Readygarbage: not in length on purpose", 29); + return Log(kIdentityAlpha, value); } case 2: { - LogStep(2, "Wait for Attestation Certificate Chain Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Commands::CertificateChainRequest::Id); + LogStep(2, "Query Data Model Revision"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::DataModelRevision::Id); } case 3: { - LogStep(3, "Wait for Attestation Certificate Chain Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Commands::CertificateChainRequest::Id); + LogStep(3, "Query Vendor Name"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::VendorName::Id); } case 4: { - LogStep(4, "Wait for Attestation Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Commands::AttestationRequest::Id); + LogStep(4, "Query VendorID"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::VendorID::Id); } case 5: { - LogStep(5, "Wait for CSR Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, OperationalCredentials::Commands::CSRRequest::Id); + LogStep(5, "Query Product Name"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ProductName::Id); } case 6: { - LogStep(6, "Wait for Add Trusted Root Certificate Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Commands::AddTrustedRootCertificate::Id); + LogStep(6, "Query ProductID"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ProductID::Id); } case 7: { - LogStep(7, "Wait for Add Op NOC"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, OperationalCredentials::Commands::AddNOC::Id); + LogStep(7, "Query Node Label"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id); } case 8: { - LogStep(8, "Wait for Commissioning Complete"); - return WaitCommand(GetEndpoint(0), GeneralCommissioning::Id, GeneralCommissioning::Commands::CommissioningComplete::Id); + LogStep(8, "Query User Location"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::Location::Id); } case 9: { - LogStep(9, "Wait 3000ms"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = 3000UL; - return WaitForMs(kIdentityAlpha, value); + LogStep(9, "Query HardwareVersion"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::HardwareVersion::Id); + } + case 10: { + LogStep(10, "Query HardwareVersionString"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::HardwareVersionString::Id); + } + case 11: { + LogStep(11, "Query SoftwareVersion"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::SoftwareVersion::Id); + } + case 12: { + LogStep(12, "Query SoftwareVersionString"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::SoftwareVersionString::Id); + } + case 13: { + LogStep(13, "Query ManufacturingDate"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ManufacturingDate::Id); + } + case 14: { + LogStep(14, "Query PartNumber"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::PartNumber::Id); + } + case 15: { + LogStep(15, "Query ProductURL"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ProductURL::Id); + } + case 16: { + LogStep(16, "Query ProductLabel"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ProductLabel::Id); + } + case 17: { + LogStep(17, "Query SerialNumber"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::SerialNumber::Id); + } + case 18: { + LogStep(18, "Query LocalConfigDisabled"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::LocalConfigDisabled::Id); + } + case 19: { + LogStep(19, "Query Reachable"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::Reachable::Id); + } + case 20: { + LogStep(20, "Query UniqueID"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::UniqueID::Id); } } return CHIP_NO_ERROR; diff --git a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h index d727a39bbf9e7e..ac30cebcbe163f 100644 --- a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h @@ -260,7 +260,7 @@ class Test_TC_DM_3_3_SimulatedSuite : public TestCommand class Test_TC_DM_2_3_SimulatedSuite : public TestCommand { public: - Test_TC_DM_2_3_SimulatedSuite() : TestCommand("Test_TC_DM_2_3_Simulated", 10) + Test_TC_DM_2_3_SimulatedSuite() : TestCommand("Test_TC_DM_2_3_Simulated", 21) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -288,7 +288,11 @@ class Test_TC_DM_2_3_SimulatedSuite : public TestCommand switch (mTestIndex - 1) { - case 9: + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; @@ -308,51 +312,93 @@ class Test_TC_DM_2_3_SimulatedSuite : public TestCommand switch (testIndex) { case 0: { - LogStep(0, "Wait for Arm Fail Safe"); - return WaitCommand(GetEndpoint(0), GeneralCommissioning::Id, GeneralCommissioning::Commands::ArmFailSafe::Id); + LogStep(0, "Wait for the device to be commissioned"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForCommissioning::Type value; + return WaitForCommissioning(kIdentityAlpha, value); } case 1: { - LogStep(1, "Wait for Set Regulatory Config"); - return WaitCommand(GetEndpoint(0), GeneralCommissioning::Id, GeneralCommissioning::Commands::SetRegulatoryConfig::Id); + LogStep(1, "Log OnOff Test Startup"); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::Log::Type value; + value.message = chip::Span("*** Basic Cluster Tests Readygarbage: not in length on purpose", 29); + return Log(kIdentityAlpha, value); } case 2: { - LogStep(2, "Wait for Attestation Certificate Chain Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Commands::CertificateChainRequest::Id); + LogStep(2, "Query Data Model Revision"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::DataModelRevision::Id); } case 3: { - LogStep(3, "Wait for Attestation Certificate Chain Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Commands::CertificateChainRequest::Id); + LogStep(3, "Query Vendor Name"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::VendorName::Id); } case 4: { - LogStep(4, "Wait for Attestation Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Commands::AttestationRequest::Id); + LogStep(4, "Query VendorID"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::VendorID::Id); } case 5: { - LogStep(5, "Wait for CSR Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, OperationalCredentials::Commands::CSRRequest::Id); + LogStep(5, "Query Product Name"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ProductName::Id); } case 6: { - LogStep(6, "Wait for Add Trusted Root Certificate Request"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Commands::AddTrustedRootCertificate::Id); + LogStep(6, "Query ProductID"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ProductID::Id); } case 7: { - LogStep(7, "Wait for Add Op NOC"); - return WaitCommand(GetEndpoint(0), OperationalCredentials::Id, OperationalCredentials::Commands::AddNOC::Id); + LogStep(7, "Query Node Label"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id); } case 8: { - LogStep(8, "Wait for Commissioning Complete"); - return WaitCommand(GetEndpoint(0), GeneralCommissioning::Id, GeneralCommissioning::Commands::CommissioningComplete::Id); + LogStep(8, "Query User Location"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::Location::Id); } case 9: { - LogStep(9, "Wait 3000ms"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = 3000UL; - return WaitForMs(kIdentityAlpha, value); + LogStep(9, "Query HardwareVersion"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::HardwareVersion::Id); + } + case 10: { + LogStep(10, "Query HardwareVersionString"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::HardwareVersionString::Id); + } + case 11: { + LogStep(11, "Query SoftwareVersion"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::SoftwareVersion::Id); + } + case 12: { + LogStep(12, "Query SoftwareVersionString"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::SoftwareVersionString::Id); + } + case 13: { + LogStep(13, "Query ManufacturingDate"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ManufacturingDate::Id); + } + case 14: { + LogStep(14, "Query PartNumber"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::PartNumber::Id); + } + case 15: { + LogStep(15, "Query ProductURL"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ProductURL::Id); + } + case 16: { + LogStep(16, "Query ProductLabel"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::ProductLabel::Id); + } + case 17: { + LogStep(17, "Query SerialNumber"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::SerialNumber::Id); + } + case 18: { + LogStep(18, "Query LocalConfigDisabled"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::LocalConfigDisabled::Id); + } + case 19: { + LogStep(19, "Query Reachable"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::Reachable::Id); + } + case 20: { + LogStep(20, "Query UniqueID"); + return WaitAttribute(GetEndpoint(0), Basic::Id, Basic::Attributes::UniqueID::Id); } } return CHIP_NO_ERROR;