forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_TC_THNETDIR_2_3.yaml
91 lines (81 loc) · 2.8 KB
/
Test_TC_THNETDIR_2_3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Copyright (c) 2024 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.
name:
"[TC-THNETDIR-2.3] Verify CASE session requirement for GetOperationalDataset"
PICS:
- THNETDIR.S
config:
nodeId: 0x12344321
cluster: Thread Network Directory
endpoint: 1
TestNetworkExtendedPanId:
type: octet_string
defaultValue: "hex:39758ec8144b07fb"
payload: "MT:-24J0AFN00KA0648G00"
discriminator: 3840
PakeVerifier:
type: octet_string
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"
tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: DelayCommands
command: WaitForCommissionee
arguments:
values:
- name: nodeId
value: nodeId
- label: "Open Commissioning Window"
endpoint: 0
cluster: Administrator Commissioning
command: OpenCommissioningWindow
timedInteractionTimeoutMs: 2000
arguments:
values:
- name: CommissioningTimeout
value: 180
- name: PAKEPasscodeVerifier
value: PakeVerifier
- name: Discriminator
value: discriminator
- name: Iterations
value: 1000
- name: Salt
value: "SPAKE2P Key Salt"
- label: "TH2 establishes a PASE session with the DUT"
identity: beta
endpoint: 0
cluster: CommissionerCommands
command: EstablishPASESession
arguments:
values:
- name: nodeId
value: nodeId
- name: payload
value: payload
- label:
"TH2 sends GetOperationalDataset command to the DUT over the PASE
session"
identity: beta
command: GetOperationalDataset
arguments:
values:
- name: ExtendedPanID
value: TestNetworkExtendedPanId
response:
error: UNSUPPORTED_ACCESS
- label: "Cleanup: Close the commissioning window"
endpoint: 0
cluster: Administrator Commissioning
command: RevokeCommissioning
timedInteractionTimeoutMs: 2000