blob: 0f38ac33930338aa64a1cc0d2d0ca9b85ebf5382 [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:
12.4.6. [TC-CNET-4.6] [Thread] FAILSAFE_REQUIRED message Validation
[DUT-Server]
PICS:
- CNET.S.F01
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label:
"TH sends the AddOrUpdateThreadNetwork command to the DUT with the
following argument: OperationalDataset argument value as Userth_op
Breadcrumb argument value as 1"
PICS: CNET.S.C03.Rsp
verification: |
./chip-tool networkcommissioning add-or-update-thread-network-network hex:<your network id in hex> 1 0
Below is an example:
./chip-tool networkcommissioning add-or-update-thread-network hex:1232034768527434274 51 0
Verify "FAILSAFE_REQUIRED status code" on the TH(Chip-tool) Log:
[1657619600.364023][2056:2061] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0003 Status=0xca
[1657619600.364102][2056:2061] CHIP:TOO: Error: IM Error 0x000005CA: General error: 0xca (FAILSAFE_REQUIRED)
[1657619600.364186][2056:2061] CHIP:DMG: ICR moving to [AwaitingDe]
disabled: true
- label:
"TH sends RemoveNetwork command to the DUT with NetworkID argument
value as Userth_op and Breadcrumb argument value as 1"
PICS: CNET.S.C04.Rsp
verification: |
./chip-tool networkcommissioning remove-network hex:<your network id in hex> 1 0
Below is an example:
/chip-tool networkcommissioning remove-network hex:1232034768527434274 51 0
Verify "FAILSAFE_REQUIRED status code" on the TH(Chip-tool) Log:
[1657619600.364023][2056:2061] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0003 Status=0xca
[1657619600.364102][2056:2061] CHIP:TOO: Error: IM Error 0x000005CA: General error: 0xca (FAILSAFE_REQUIRED)
[1657619600.364186][2056:2061] CHIP:DMG: ICR moving to [AwaitingDe]
disabled: true
- label:
"TH sends ConnectNetwork command to the DUT with NetworkID argument
value as Userth_op and Breadcrumb argument value as 1"
PICS: CNET.S.C06.Rsp
verification: |
./chip-tool networkcommissioning connect-network hex:<your network id in hex> 1 0
Below is an example:
./chip-tool networkcommissioning connect-network hex:1232034768527434274 51 0
Verify "FAILSAFE_REQUIRED status code" on the TH(chip-tool) Log:
[1657619600.364023][2056:2061] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0003 Status=0xca
[1657619600.364102][2056:2061] CHIP:TOO: Error: IM Error 0x000005CA: General error: 0xca (FAILSAFE_REQUIRED)
[1657619600.364186][2056:2061] CHIP:DMG: ICR moving to [AwaitingDe]
disabled: true