blob: f74c55e8283bfaf5152294e8d60d1bfd7fbea537 [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: "Commission TH and DUT over BLE to setup the Wi-Fi"
verification: |
disabled: true
- label:
"The cluster Identifier 49 (0x0031) is present in the ServerList
attribute"
verification: |
disabled: true
- label: "The FeatureMap attribute value is 1"
verification: |
"./chip-tool networkcommissioning read feature-map 1 0
Verify the "feature-map" on the TH(Chip-tool) Log:
[1653474932.055513][29920:29925] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFC DataVersion: 1600858167
[1653474932.055578][29920:29925] CHIP:TOO: FeatureMap: 1
[1653474932.055675][29920:29925] CHIP:EM: Sending Standalone Ack for MessageCounter:1494059 on exchange 5482i"
disabled: true
- 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