|
| 1 | +# Copyright (c) 2024 Project CHIP Authors |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: "[TC-WIFINM-2.1] Attributes and commands with DUT as Server" |
| 16 | + |
| 17 | +PICS: |
| 18 | + - WIFINM.S |
| 19 | + |
| 20 | +config: |
| 21 | + nodeId: 0x12344321 |
| 22 | + cluster: WiFi Network Management |
| 23 | + endpoint: 1 |
| 24 | + |
| 25 | +# Note: This test assumes the DUT has an active Wi-Fi network, i.e. |
| 26 | +# SSID is not null and NetworkPassphraseRequest returns a passphrase. |
| 27 | +tests: |
| 28 | + - label: "Wait for the commissioned device to be retrieved" |
| 29 | + cluster: DelayCommands |
| 30 | + command: WaitForCommissionee |
| 31 | + arguments: |
| 32 | + values: |
| 33 | + - name: nodeId |
| 34 | + value: nodeId |
| 35 | + |
| 36 | + - label: "TH reads ClusterRevision attribute from DUT" |
| 37 | + command: readAttribute |
| 38 | + attribute: ClusterRevision |
| 39 | + response: |
| 40 | + value: 1 |
| 41 | + constraints: |
| 42 | + type: int16u |
| 43 | + |
| 44 | + - label: "TH reads FeatureMap attribute from DUT" |
| 45 | + command: readAttribute |
| 46 | + attribute: FeatureMap |
| 47 | + response: |
| 48 | + value: 0 |
| 49 | + constraints: |
| 50 | + type: bitmap32 |
| 51 | + |
| 52 | + - label: "TH reads AttributeList attribute from DUT" |
| 53 | + command: readAttribute |
| 54 | + attribute: AttributeList |
| 55 | + response: |
| 56 | + constraints: |
| 57 | + contains: [1, 65528, 65529, 65531, 65532, 65533] |
| 58 | + type: list |
| 59 | + |
| 60 | + - label: "TH reads AcceptedCommandList attribute from DUT" |
| 61 | + command: readAttribute |
| 62 | + attribute: AcceptedCommandList |
| 63 | + response: |
| 64 | + constraints: |
| 65 | + contains: [0] |
| 66 | + type: list |
| 67 | + |
| 68 | + - label: "TH reads GeneratedCommandList attribute from DUT" |
| 69 | + command: readAttribute |
| 70 | + attribute: GeneratedCommandList |
| 71 | + response: |
| 72 | + constraints: |
| 73 | + contains: [1] |
| 74 | + type: list |
| 75 | + |
| 76 | + - label: "TH reads the SSID attribute from the DUT" |
| 77 | + command: readAttribute |
| 78 | + attribute: SSID |
| 79 | + response: |
| 80 | + constraints: |
| 81 | + type: octet_string |
| 82 | + hasValue: true |
| 83 | + minLength: 1 |
| 84 | + maxLength: 32 |
| 85 | + |
| 86 | + - label: "TH sends the NetworkPassphraseRequest command to the DUT" |
| 87 | + command: NetworkPassphraseRequest |
| 88 | + response: |
| 89 | + values: |
| 90 | + - name: Passphrase |
| 91 | + constraints: |
| 92 | + type: octet_string |
| 93 | + hasValue: true |
| 94 | + minLength: 8 |
| 95 | + maxLength: 64 |
0 commit comments