forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_TC_ACL_2_3.yaml
269 lines (246 loc) · 11.3 KB
/
Test_TC_ACL_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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# 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: 133.2.3. [TC-ACL-2.3] Extension attribute
PICS:
- ACL.S
config:
nodeId: 0x12344321
cluster: "Access Control"
endpoint: 0
D_OK_EMPTY:
type: octet_string
defaultValue: "hex:1718"
D_OK_SINGLE:
type: octet_string
defaultValue: "hex:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
D_OK_FULL:
type: octet_string
defaultValue: "hex:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700D00000F1FF02003148656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E7420616761696E2E2E2E2E2E0018"
D_BAD_LENGTH:
type: octet_string
defaultValue: "hex:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700D00000F1FF02003248656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E7420616761696E2E2E2E2E2E2E0018"
D_BAD_STRUCT:
type: octet_string
defaultValue: "hex:1518"
D_BAD_LIST:
type: octet_string
defaultValue: "hex:3701D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
D_BAD_ELEM:
type: octet_string
defaultValue: "hex:17103D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
D_BAD_OVERFLOW:
type: octet_string
defaultValue: "hex:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018FF"
D_BAD_UNDERFLOW:
type: octet_string
defaultValue: "hex:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700"
D_BAD_NONE:
type: octet_string
defaultValue: ""
tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label:
"TH1 reads DUT Endpoint 0 OperationalCredentials cluster
CurrentFabricIndex attribute"
cluster: "Operational Credentials"
command: "readAttribute"
attribute: "CurrentFabricIndex"
response:
saveAs: CurrentFabricIndex
- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster Extension attribute"
PICS: ACL.S.A0001
command: "readAttribute"
attribute: "Extension"
response:
value: []
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element 1.
struct: Data field: D_OK_EMPTY : 1718"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_OK_EMPTY, FabricIndex: CurrentFabricIndex }]
- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster Extension attribute"
PICS: ACL.S.A0001
command: "readAttribute"
attribute: "Extension"
response:
value: [{ Data: D_OK_EMPTY, FabricIndex: CurrentFabricIndex }]
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element
1.struct Data field: D_OK_SINGLE
:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_OK_SINGLE, FabricIndex: CurrentFabricIndex }]
- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster Extension attribute"
PICS: ACL.S.A0001
command: "readAttribute"
attribute: "Extension"
response:
value: [{ Data: D_OK_SINGLE, FabricIndex: CurrentFabricIndex }]
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element
1.struct Data field: D_OK_FULL
:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700D00000F1FF02003148656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E7420616761696E2E2E2E2E2E0018"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_OK_FULL, FabricIndex: CurrentFabricIndex }]
- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster Extension attribute"
PICS: ACL.S.A0001
command: "readAttribute"
attribute: "Extension"
response:
value: [{ Data: D_OK_FULL, FabricIndex: CurrentFabricIndex }]
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element 1
.struct Data field: D_BAD_LENGTH
:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700D00000F1FF02003248656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E7420616761696E2E2E2E2E2E2E0018"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_BAD_LENGTH, FabricIndex: CurrentFabricIndex }]
response:
error: CONSTRAINT_ERROR
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element 1.
struct Data field: D_BAD_STRUCT : 1518"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_BAD_STRUCT, FabricIndex: CurrentFabricIndex }]
response:
error: CONSTRAINT_ERROR
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element 1.
struct Data field: D_BAD_LIST
:3701D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_BAD_LIST, FabricIndex: CurrentFabricIndex }]
response:
error: CONSTRAINT_ERROR
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element 1.
struct Data field: D_BAD_ELEM
:17103D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_BAD_ELEM, FabricIndex: CurrentFabricIndex }]
response:
error: CONSTRAINT_ERROR
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element 1
.struct Data field: D_BAD_OVERFLOW :
17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018FF"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_BAD_OVERFLOW, FabricIndex: CurrentFabricIndex }]
response:
error: CONSTRAINT_ERROR
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element 1.
struct Data field: D_BAD_UNDERFLOW
:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_BAD_UNDERFLOW, FabricIndex: CurrentFabricIndex }]
response:
error: CONSTRAINT_ERROR
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 1 element
1.struct Data field: D_BAD_NONE"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_BAD_NONE, FabricIndex: CurrentFabricIndex }]
response:
error: CONSTRAINT_ERROR
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is list of AccessControlExtensionStruct containing 2 elements .
value is list of AccessControlExtensionStruct containing 2 elements .
first element contains Data field: D_OK_EMPTY 1718 . second element
contains Data field: D_OK_SINGLE
17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value:
[
{ Data: D_OK_EMPTY, FabricIndex: CurrentFabricIndex },
{ Data: D_OK_SINGLE, FabricIndex: CurrentFabricIndex },
]
response:
error: CONSTRAINT_ERROR
- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster Extension attribute"
PICS: ACL.S.A0001
command: "readAttribute"
attribute: "Extension"
response:
value: [{ Data: D_OK_EMPTY, FabricIndex: CurrentFabricIndex }]
- label:
"TH1 writes DUT Endpoint 0 AccessControl cluster Extension attribute,
value is an empty list"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: []
- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster Extension attribute"
PICS: ACL.S.A0001
command: "readAttribute"
attribute: "Extension"
response:
value: []