forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_TC_CADMIN_1_24.yaml
179 lines (160 loc) · 6.92 KB
/
Test_TC_CADMIN_1_24.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# 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:
24.1.24. [TC-CADMIN-1.24] Open commissioning window - durations max and
max+1 [ECM] [DUT - Commissionee]
PICS:
- CADMIN.S
config:
nodeId: 0x12344321
timeout: 200
endpoint: 0
discriminator:
type: int16u
defaultValue: 3840
PakeVerifier:
type: octet_string
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"
tests:
- label: "Precondition: Reset Devices to factory defaults"
cluster: "SystemCommands"
PICS: PICS_SDK_CI_ONLY
command: "FactoryReset"
- label: "Precondition: Reset Devices to factory defaults"
verification: |
Reset Devices to factory defaults
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Factory Reset the DUT and enter 'y' after success"
- name: "expectedValue"
value: "y"
- label: "TH_CR1 starts a commissioning process with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
PICS: CADMIN.S.C00.Rsp
arguments:
values:
- name: "nodeId"
value: nodeId
- label:
"TH_CR1 opens a commissioning window on DUT_CE using ECM with a value
of 180 seconds"
verification: |
On TH_CR1 ( chip tool), open commissioning window
./chip-tool pairing open-commissioning-window 1 1 180 1000 3840
Verify Manual pairing code on TH_CR1(chip-tool) Log
[1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established
[1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!!
[1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1
[1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm]
[1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma]
[1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0.
[1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec
[1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen]
[1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [35484132896]
[1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10]
[1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && CADMIN.S.C00.Rsp
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label: "TH_CR1 opens a commissioning window on DUT_CE"
cluster: "Administrator Commissioning"
command: "OpenCommissioningWindow"
PICS: CADMIN.S.C00.Rsp && PICS_SDK_CI_ONLY
timedInteractionTimeoutMs: 10000
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: "Wait for commissioning Window to 181 seconds"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 181000
- label:
"TH_CR1 reads the window status to verify the DUT_CE window is closed"
cluster: "Administrator Commissioning"
command: "readAttribute"
attribute: "WindowStatus"
PICS: CADMIN.S.A0000
response:
value: 0
- label:
"TH_CR1 opens a commissioning window on DUT_CE using ECM with a value
of 179 seconds"
verification: |
On TH_CR1 ( chip tool), open commissioning window
./chip-tool pairing open-commissioning-window 1 1 179 2000 3841
Verify DUT_CE responds General error 0x85 on TH_CR1 (chip-tool) log
CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x85
[1652860801.225084][9512:9517] CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND)
[1652860801.225173][9512:9517] CHIP:DMG: ICR moving to [AwaitingDe]
[1652860801.225294][9512:9517] CHIP:EM: Sending Standalone Ack for MessageCounter:4191961 on exchange 37827i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && CADMIN.S.C00.Rsp
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label: "TH_CR1 opens a commissioning window on DUT_CE"
cluster: "Administrator Commissioning"
command: "OpenCommissioningWindow"
PICS: CADMIN.S.C00.Rsp && PICS_SDK_CI_ONLY
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 179
- name: "PAKEPasscodeVerifier"
value: PakeVerifier
- name: "Discriminator"
value: discriminator
- name: "Iterations"
value: 1000
- name: "Salt"
value: "SPAKE2P Key Salt"
response:
error: INVALID_COMMAND
- label:
"TH_CR1 reads the window status to verify the DUT_CE window is closed"
cluster: "Administrator Commissioning"
command: "readAttribute"
attribute: "WindowStatus"
PICS: CADMIN.S.A0000
response:
value: 0