blob: 8de8180dd2332c69dad2f62e3b4167e98b506f41 [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.5. [TC-CNET-4.5] [Wi-Fi] FAILSAFE_REQUIRED message Validation
[DUT-Server]
PICS:
- CNET.S.F00
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label:
"TH sends the AddOrUpdateWiFiNetwork command to the DUT with the
following argument: SSID argument value as Userwifi_ssid Credentials
argument value as Userwifi_Credentials Breadcrumb argument value as 1"
PICS: CNET.S.C02.Rsp
verification: |
./chip-tool networkcommissioning add-or-update-wi-fi-network hex:<your network id in hex> 1 0
Below is an example:
./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivatewifi092010 1 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 Userwifi_ssid and Breadcrumb argument value as 1"
PICS: CNET.S.C02.Rsp
verification: |
./chip-tool networkcommissioning remove hex:<your network id in hex> 1 0
Below is an example:
./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 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 Userwifi_ssid and Breadcrumb argument value as 1"
PICS: CNET.S.C06.Rsp
verification: |
./chip-tool networkcommissioning connect hex:<your network id in hex> 1 0
Below is an example:
./chip-tool networkcommissioning connect-network hex:47524C50726976617465 1 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