Skip to content

Commit 30f1871

Browse files
Add test script for WIFINM cluster and include in CI
1 parent de15f0c commit 30f1871

File tree

4 files changed

+67
-1
lines changed

4 files changed

+67
-1
lines changed

scripts/tests/chiptest/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def target_for_name(name: str):
286286
return TestTarget.MWO
287287
if name.startswith("Test_TC_RVCRUNM_") or name.startswith("Test_TC_RVCCLEANM_") or name.startswith("Test_TC_RVCOPSTATE_"):
288288
return TestTarget.RVC
289-
if name.startswith("Test_TC_THNETDIR_"):
289+
if name.startswith("Test_TC_THNETDIR_") or name.startswith("Test_TC_WIFINM_"):
290290
return TestTarget.NETWORK_MANAGER
291291
return TestTarget.ALL_CLUSTERS
292292

src/app/tests/suites/certification/PICS.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -10207,3 +10207,11 @@ PICS:
1020710207
"Does the device implement the Thread Network Directory cluster as a
1020810208
server"
1020910209
id: THNETDIR.S
10210+
10211+
#
10212+
# Wi-Fi Network Management Cluster
10213+
#
10214+
- label:
10215+
"Does the device implement the Wi-Fi Network Management cluster as a
10216+
server"
10217+
id: WIFINM.S
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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 the SSID attribute from the DUT"
37+
command: readAttribute
38+
attribute: SSID
39+
response:
40+
constraints:
41+
type: octet_string
42+
hasValue: true
43+
minLength: 1
44+
maxLength: 32
45+
46+
- label: "TH sends the NetworkPassphraseRequest command to the DUT"
47+
command: NetworkPassphraseRequest
48+
response:
49+
values:
50+
- name: Passphrase
51+
constraints:
52+
type: octet_string
53+
hasValue: true
54+
minLength: 8
55+
maxLength: 64

src/app/tests/suites/certification/ci-pics-values

+3
Original file line numberDiff line numberDiff line change
@@ -2991,3 +2991,6 @@ PWRTL.S.F03=1
29912991

29922992
# Thread Network Directory Cluster
29932993
THNETDIR.S=1
2994+
2995+
# Wi-Fi Network Management Cluster
2996+
WIFINM.S=1

0 commit comments

Comments
 (0)