Skip to content

Commit 98483e5

Browse files
authored
[v1.4.2-branch] Update to sve tests (#39753)
* Update src/app/tests/suites and src/python_testing to SVE. This pulls the test scripts to match SVE rather than be based on master. * Remove files added since SVE test harness creation * These changes should NOT be pulled * These changes should NOT be pulled * These changes should NOT be pulled * These changes should NOT be pulled * These changes should NOT be pulled * These changes should NOT be pulled * These changes should NOT be pulled * These changes should NOT be pulled * These changes should NOT be pulled
1 parent 06523c2 commit 98483e5

File tree

107 files changed

+1281
-5755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1281
-5755
lines changed

src/app/tests/suites/TestCluster.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3913,7 +3913,6 @@ tests:
39133913
23,
39143914
24,
39153915
25,
3916-
26,
39173916
4294049962,
39183917
]
39193918

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
# Copyright (c) 2021 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:
16+
12.4.1. [TC-CNET-4.1] [WiFi] Verification for attributes check [DUT-Server]
17+
18+
PICS:
19+
- CNET.S.F00
20+
21+
config:
22+
nodeId: 0x12344321
23+
cluster: "Network Commissioning"
24+
endpoint: 0
25+
PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID:
26+
type: octet_string
27+
defaultValue: "hex:47524C50726976617465"
28+
29+
tests:
30+
- label: "Step 1: Factory reset the DUT"
31+
verification: |
32+
Reset Devices to factory defaults
33+
cluster: "LogCommands"
34+
command: "UserPrompt"
35+
PICS: PICS_USER_PROMPT
36+
arguments:
37+
values:
38+
- name: "message"
39+
value: "Factory Reset the DUT and enter 'y' after success"
40+
- name: "expectedValue"
41+
value: "y"
42+
43+
#Issue: https://github.com/project-chip/connectedhomeip/issues/30196
44+
- label: "Step 2: Commission TH and DUT over BLE to setup the Wi-Fi"
45+
verification: |
46+
./chip-tool pairing ble-wifi 0x12344321 <ssid> <password> <setup-pin-code> <discriminator>
47+
48+
[1698912271.738597][32363:32366] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005
49+
[1698912271.738606][32363:32366] CHIP:CTL: Received CommissioningComplete response, errorCode=0
50+
[1698912271.738613][32363:32366] CHIP:CTL: Successfully finished commissioning step 'SendComplete'
51+
[1698912271.738617][32363:32366] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup'
52+
[1698912271.738622][32363:32366] CHIP:CTL: Performing next commissioning step 'Cleanup'
53+
[1698912271.738639][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: MarkForEviction Type:1 LSID:50170
54+
[1698912271.738642][32363:32366] CHIP:SC: SecureSession[0x7fbb04014a50, LSID:50170]: State change 'kActive' --> 'kPendingEviction'
55+
[1698912271.738666][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: Released - Type:1 LSID:50170
56+
[1698912271.738672][32363:32366] CHIP:CTL: Successfully finished commissioning step 'Cleanup'
57+
[1698912271.738677][32363:32366] CHIP:TOO: Device commissioning completed with success
58+
[1698912271.738691][32363:32366] CHIP:DMG: ICR moving to [AwaitingDe]
59+
cluster: "LogCommands"
60+
command: "UserPrompt"
61+
PICS: PICS_USER_PROMPT
62+
arguments:
63+
values:
64+
- name: "message"
65+
value: enter 'y' after successfull Commission"
66+
- name: "expectedValue"
67+
value: "y"
68+
69+
- label:
70+
"Step 3: TH reads Descriptor Cluster from the DUT with EP0 TH reads
71+
ServerList from the DUT"
72+
cluster: "Descriptor"
73+
command: "readAttribute"
74+
attribute: "ServerList"
75+
response:
76+
constraints:
77+
type: list
78+
contains: [49]
79+
80+
- label: "Step 4: TH reads FeatureMap attribute from the DUT"
81+
command: "readAttribute"
82+
attribute: "FeatureMap"
83+
response:
84+
value: 1
85+
constraints:
86+
type: bitmap32
87+
88+
- label:
89+
"Step 5 & 6: TH reads the MaxNetworks attribute from the DUT. TH saves
90+
the MaxNetworks attribute value as 'MaxNetworksValue' for future use"
91+
PICS: CNET.S.A0000
92+
command: "readAttribute"
93+
attribute: "MaxNetworks"
94+
response:
95+
saveAs: MaxNetworksValue
96+
constraints:
97+
type: int8u
98+
minValue: 1
99+
maxValue: 255
100+
101+
- label: "Step 7: TH reads the Networks attribute list from the DUT"
102+
PICS: CNET.S.A0001
103+
command: "readAttribute"
104+
attribute: "Networks"
105+
response:
106+
constraints:
107+
contains:
108+
[
109+
{
110+
NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID,
111+
Connected: true,
112+
},
113+
]
114+
115+
- label: "Step 8: TH reads ScanMaxTimeSeconds attribute from the DUT"
116+
PICS: CNET.S.A0002
117+
command: "readAttribute"
118+
attribute: "ScanMaxTimeSeconds"
119+
response:
120+
constraints:
121+
type: int8u
122+
minValue: 1
123+
maxValue: 255
124+
125+
- label: "Step 9: TH reads ConnectMaxTimeSeconds attribute from the DUT"
126+
PICS: CNET.S.A0003
127+
command: "readAttribute"
128+
attribute: "ConnectMaxTimeSeconds"
129+
response:
130+
constraints:
131+
type: int8u
132+
minValue: 1
133+
maxValue: 255
134+
135+
- label: "Step 10: TH reads InterfaceEnabled attribute from the DUT"
136+
PICS: CNET.S.A0004
137+
command: "readAttribute"
138+
attribute: "InterfaceEnabled"
139+
response:
140+
value: true
141+
constraints:
142+
type: boolean
143+
144+
- label: "Step 11: TH reads LastNetworkingStatus attribute from the DUT"
145+
PICS: CNET.S.A0005
146+
command: "readAttribute"
147+
attribute: "LastNetworkingStatus"
148+
response:
149+
value: 0
150+
constraints:
151+
type: NetworkCommissioningStatusEnum
152+
153+
- label:
154+
"Step 12a: TH reads the LastNetworkID attribute from the DUT. TH reads
155+
the Networks attribute from the DUT"
156+
PICS: CNET.S.A0006
157+
command: "readAttribute"
158+
attribute: "LastNetworkID"
159+
response:
160+
value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID
161+
constraints:
162+
type: octet_string
163+
minLength: 1
164+
maxLength: 32
165+
166+
- label: "Step 12b: TH reads the Networks attribute list from the DUT"
167+
PICS: CNET.S.A0001
168+
command: "readAttribute"
169+
attribute: "Networks"
170+
response:
171+
constraints:
172+
contains:
173+
[
174+
{
175+
NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID,
176+
Connected: true,
177+
},
178+
]
179+
180+
- label:
181+
"Step 13: TH reads the LastConnectErrorValue attribute from the DUT"
182+
PICS: CNET.S.A0007
183+
command: "readAttribute"
184+
attribute: "LastConnectErrorValue"
185+
response:
186+
value: null
187+
constraints:
188+
type: int32s
189+
190+
- label: "Step 14: TH reads the SupportedWiFiBands attribute from the DUT"
191+
PICS: CNET.S.A0008
192+
command: "readAttribute"
193+
attribute: "SupportedWiFiBands"
194+
response:
195+
constraints:
196+
type: list
197+
minLength: 1
198+
maxLength: 6

0 commit comments

Comments
 (0)