blob: 17004ee5e477120d8bb0e1c911cdff0eb951fd8a [file] [log] [blame]
# 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:
4.1.1. [TC-DA-1.1] The NOC SHALL be wiped on Factory Reset [DUT -
Commissionee]
PICS:
- MCORE.ROLE.COMMISSIONEE
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label: "Commission DUT to TH1s Fabric"
verification: |
sudo ./chip-all-clusters-app --wifi
./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1
Verify in TH log:
[1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success
disabled: true
- label:
"TH1 does a non-fabric filtered read of the NOCs attribute from the
Node Operational Credentials cluster and saves the returned list as
noc_th1"
verification: |
./chip-tool operationalcredentials read fabrics 1 0
Verify that there is a single entry in the list TH (chip-tool) Log
[1655471672.386120][13377:13382] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 2667297992
[1655471672.386213][13377:13382] CHIP:TOO: Fabrics: 1 entries
[1655471672.386291][13377:13382] CHIP:TOO: [1]: {
[1655471672.386339][13377:13382] CHIP:TOO: RootPublicKey: 04FB421853FB8AE6AEA281845DE7C8689E7C24AD3283A3536E09BA2FAAE88F6EA4C08DC055A965D8FE0A8060A7F9F45E509B7A4C9092FB3D8D2E253B057899F5AB
[1655471672.386378][13377:13382] CHIP:TOO: VendorId: 65521
[1655471672.386412][13377:13382] CHIP:TOO: FabricId: 1
[1655471672.386445][13377:13382] CHIP:TOO: NodeId: 1
[1655471672.386675][13377:13382] CHIP:TOO: Label:
[1655471672.386716][13377:13382] CHIP:TOO: FabricIndex: 1
[1655471672.386750][13377:13382] CHIP:TOO: }
disabled: true
- label:
"TH1 does a non-fabric-filtered read of the Fabrics attribute from the
Node Operational Credentials cluster"
verification: |
./chip-tool operationalcredentials read nocs 1 0
Verify there is single entry and Fabric ID matches FabricID of TH1 on TH(chip-tool) log:
[1658392350.745452][3254:3259] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 1660110003
[1658392350.748972][3254:3259] CHIP:TOO: NOCs: 1 entries
[1658392350.749041][3254:3259] CHIP:TOO: [1]: {
[1658392350.749086][3254:3259] CHIP:TOO: Noc: 1530010101240201370324130118260480228127260580254D3A37062415012411011824070124080130094104C983D16057AA6B80F551CE7686F96EA2D2C0787A2C22B1D746B13A85C67A2BEAAF9485C72F12F770D59FC0E1FF59D21EF988209249C07B229F84CFD4F51E9611370A3501280118240201360304020401183004142BC90AF48A63F83F7E8F2BAFB6703795028429BB3005149B9F5879F33019C19B6796BD02FD13D044E2AA2818300B4061D02714DC750BE3524C8DE04AFC971CC1B25AE98C366809D1257052B91DA6B252A3CF035DD55980B4E3C865FD933B2F19151379122A50599E8A869A0EC29AD318
[1658392350.749133][3254:3259] CHIP:TOO: Icac: 1530010100240201370324140018260480228127260580254D3A37062413011824070124080130094104AD24B19A35BD1B1808EFF5F46C6D3AC98B57FF0F55BC5AF7BB6B09905A1B66AD1DFBC2511EBF4DC40033A4676EF056A498F599DA98507A14F82490D6EE0B22C5370A35012901182402603004149B9F5879F33019C19B6796BD02FD13D044E2AA283005141590E75A2828F170F5670E51629ACFF8E4D37B9218300B40FACB9C9CD92EB1C595C21C17371E15D1E2F7F58CF3E9A17636CDEDAF1EF18D6F88CB0C3D45682FDEBEA58F5926DCC72872DB545B77F4961292B849D05AA659AF18
[1658392350.749168][3254:3259] CHIP:TOO: FabricIndex: 1
[1658392350.749194][3254:3259] CHIP:TOO: }
disabled: true
- label:
"Factory reset DUT Perform the device discovery flow checks as covered
in TC-DD-2.2"
verification: |
1. TH starts matter announcement procedure using BLE transport : verify this by sending
"./chip-tool discover commissionables" after launching all-clusters-app on DUT
2. DUT must find TH and provide onboarding data to for validation.
Pass Criteria: DUT is able to report the Onboarding payload as set on TH : Verify this by commissioning DUT with TH
1. TH starts matter announcement procedure using BLE transport : verify this by sending "./chip-tool discover commissionables" after launching all-clusters-app on DUT
2. DUT must find TH and provide onboarding data to for validation. Pass Criteria: DUT is able to report the Onboarding payload as set on TH : Verify this by commissioning DUT with TH by passing "./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1"
disabled: true
- label: "Commission DUT to TH2s Fabric"
verification: |
To commission DUT to TH2 follow below procedure
1../chip-tool pairing open-commissioning-window 1 1 400 2000 3840 on TH
Verify manual parin code on TH1 (chip-tool) Log:
CHIP:IN: Sending encrypted msg 0xaaaad3464d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 5805157 msec
[1635691999.946536][3822:3827] CHIP:DMG: ICR moving to [CommandSen]
[1635691999.946586][3822:3827] CHIP:CTL: Manual pairing code: [35407541839]
[1635691999.946650][3822:3827] CHIP:CTL: SetupQRCode: [MT:00000CQM00G6V851H10]
[1635691999.946802][3822:3827] CHIP:EM: Sending Standalone Ack for MessageCounter:3234931243 on exchange 35324i
[1635691999.946850][3822:3827] CHIP:IN: Prepared plaintext message 0xffffaa58a960 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 35324i with MessageCounter:1726016118.
[1635691999.946895][3822:3827] CHIP:IN: Sending plaintext msg 0xffffaa58a960 with MessageCounter:1726016118 to 0x0000000000000000 at monotonic time: 5805158 msec
[1635691999.946983][3822:3827] CHIP:EM: Flushed pending ack for MessageCounter:3234931243 on exchange 35324i
2. Verify TH2 is commissioned by using "./chip-tool pairing code 2 36199720672" considering 36199720672 as manualcode generated in TH1
Verify whether you got below message on TH2 (chip-tool) log
Device commissioning completed with success
disabled: true
- label:
"TH2 does a non-fabric-filtered read of Fabrics attribute list from
DUT"
verification: |
./chip-tool operationalcredentials read fabrics 2 0
Verify there is single entry and FabricID matches the FabricID of TH2 on TH2 (chip-tool) log
[1655471672.386120][13377:13382] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 2667297992
[1655471672.386213][13377:13382] CHIP:TOO: Fabrics: 1 entries
[1655471672.386291][13377:13382] CHIP:TOO: [1]: {
[1655471672.386339][13377:13382] CHIP:TOO: RootPublicKey: 04FB421853FB8AE6AEA281845DE7C8689E7C24AD3283A3536E09BA2FAAE88F6EA4C08DC055A965D8FE0A8060A7F9F45E509B7A4C9092FB3D8D2E253B057899F5AB
[1655471672.386378][13377:13382] CHIP:TOO: VendorId: 65521
[1655471672.386412][13377:13382] CHIP:TOO: FabricId: 1
[1655471672.386445][13377:13382] CHIP:TOO: NodeId: 2
[1655471672.386675][13377:13382] CHIP:TOO: Label:
[1655471672.386716][13377:13382] CHIP:TOO: FabricIndex: 2
[1655471672.386750][13377:13382] CHIP:TOO: }
disabled: true
- label:
"TH2 does a non-fabric-filtered read of NOCs attribute list from DUT"
verification: |
./chip-tool operationalcredentials read nocs 2 0
Verify there is single entry on TH2 (chip-tool) log
[1655471146.098327][13302:13307] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 2667297991
[1655471146.098416][13302:13307] CHIP:TOO: NOCs: 1 entries
[1655471146.098486][13302:13307] CHIP:TOO: [1]: {
[1655471146.098537][13302:13307] CHIP:TOO: Noc: 1530010101240201370324130118260480228127260580254D3A37062415012411011824070124080130094104D5FA104FF03F9118BDC2A072D50DB3BED32C47F138439FBF05753D02D01AEC10F350CB77EA22844A83FF0FEF6CFA764F5B1FD48E487F3EC82A201D376F56DCC8370A350128011824020136030402040118300414BD61F9405A7A15EFA38F8B6833AB9027876482E1300514B5AED0B2C2CDBB9D4D0124755B56278B081FD4AD18300B40441AA0EE6ACE43EEA2A52321821D8B260AAFFEBD394C2FD11E83008C5AD2DF5EA58FAFA14A3EF7BAFDE190591298311D7DE6A257819D98D0E9FE239A635684B418
[1655471146.098591][13302:13307] CHIP:TOO: Icac: 1530010100240201370324140018260480228127260580254D3A37062413011824070124080130094104B267483D9981A2C15E7DE8C63298FEB6DC19EAA9AEA41D9D659CD3BBBD25B943B3186716C82B297091D64B1620E8FB2C6FD095F509684E074C5B479E583CE295370A3501290118240260300414B5AED0B2C2CDBB9D4D0124755B56278B081FD4AD3005146EDE812590A5E6E4463798EB06AC3BD5284DFAAE18300B404A48E0B45704A98739C0C656B0F1A4252AEED8E1EBA5FD1032C79A4B26BF8A314EFDD7C835947DEB4B3E9F6D0BF2A561CEE54B45F311773301D4B5CFFF2F76D918
[1655471146.098630][13302:13307] CHIP:TOO: FabricIndex: 2
[1655471146.098660][13302:13307] CHIP:TOO: }
"
Verify the NOC entry of TH1 and NOC entry of TH2 are different in TH
disabled: true