Skip to content

Commit ee40a18

Browse files
Updated yaml script as per the SQA issues (project-chip#35253)
* Updated yaml script as the SQA issues * Restyled by whitespace * Restyled by prettier-yaml * Updated NumberOfHolidaySchedulesSupportedValue as per test plan * Restyled by whitespace * Updated DRLK-2.6 yaml * Updated DRlk Yaml as per the comments --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 91ac7b3 commit ee40a18

10 files changed

+674
-399
lines changed

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

+137-196
Large diffs are not rendered by default.

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

+24-52
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ config:
2626
nodeId: 0x12344321
2727
cluster: "Door Lock"
2828
endpoint: 1
29-
PINCredentialData:
29+
CredentialData:
3030
type: octet_string
3131
defaultValue: "123456"
3232
RFIDCredentialData:
@@ -45,55 +45,6 @@ tests:
4545
- name: "nodeId"
4646
value: nodeId
4747

48-
- label: "Precondition: Create new user with default parameters"
49-
command: "SetUser"
50-
timedInteractionTimeoutMs: 10000
51-
arguments:
52-
values:
53-
- name: "OperationType"
54-
value: 0
55-
- name: "UserIndex"
56-
value: 1
57-
- name: "UserName"
58-
value: "xxx"
59-
- name: "UserUniqueID"
60-
value: 6452
61-
- name: "UserStatus"
62-
value: 1
63-
- name: "UserType"
64-
value: 0
65-
- name: "CredentialRule"
66-
value: 0
67-
68-
- label: "Precondition: Read the user back and verify its fields"
69-
command: "GetUser"
70-
arguments:
71-
values:
72-
- name: "UserIndex"
73-
value: 1
74-
response:
75-
values:
76-
- name: "UserIndex"
77-
value: 1
78-
- name: "UserName"
79-
value: "xxx"
80-
- name: "UserUniqueID"
81-
value: 6452
82-
- name: "UserStatus"
83-
value: 1
84-
- name: "UserType"
85-
value: 0
86-
- name: "CredentialRule"
87-
value: 0
88-
- name: "Credentials"
89-
value: []
90-
- name: "CreatorFabricIndex"
91-
value: 1
92-
- name: "LastModifiedFabricIndex"
93-
value: 1
94-
- name: "NextUserIndex"
95-
value: null
96-
9748
- label:
9849
"Step 1a: TH reads NumberOfTotalUsersSupported and saves for future
9950
use."
@@ -141,7 +92,28 @@ tests:
14192
minValue: 0
14293
maxValue: 255
14394

144-
- label: "Step 2a: TH sends Set Credential Command to DUT with type PIN"
95+
- label: "Step 2a: TH sends SetUser Command to DUT"
96+
PICS: DRLK.S.F08 && DRLK.S.C1a.Rsp
97+
command: "SetUser"
98+
timedInteractionTimeoutMs: 10000
99+
arguments:
100+
values:
101+
- name: "OperationType"
102+
value: 0
103+
- name: "UserIndex"
104+
value: 1
105+
- name: "UserName"
106+
value: "xxx"
107+
- name: "UserUniqueID"
108+
value: 6452
109+
- name: "UserStatus"
110+
value: 1
111+
- name: "UserType"
112+
value: 0
113+
- name: "CredentialRule"
114+
value: 0
115+
116+
- label: "Step 2b: TH sends Set Credential Command to DUT with type PIN"
145117
PICS: DRLK.S.F00 && DRLK.S.F08 && DRLK.S.C22.Rsp && DRLK.S.C23.Tx
146118
command: "SetCredential"
147119
timedInteractionTimeoutMs: 10000
@@ -152,7 +124,7 @@ tests:
152124
- name: "Credential"
153125
value: { CredentialType: 1, CredentialIndex: 1 }
154126
- name: "CredentialData"
155-
value: PINCredentialData
127+
value: CredentialData
156128
- name: "UserIndex"
157129
value: 1
158130
- name: "UserStatus"

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

+23-13
Original file line numberDiff line numberDiff line change
@@ -107,40 +107,38 @@ tests:
107107
error: INVALID_COMMAND
108108

109109
- label:
110-
"Step 5: TH sends Get Holiday Schedule Command to DUT with Invalid
111-
HolidayIndex as 15"
110+
"Step 5: TH sends GetHolidaySchedule Command to DUT with Invalid
111+
HolidayIndex > number_holiday_sch_supported ."
112112
PICS: DRLK.S.F0b && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
113113
command: "GetHolidaySchedule"
114114
arguments:
115115
values:
116116
- name: "HolidayIndex"
117-
value: 15
117+
value: NumberOfHolidaySchedulesSupportedValue + 1
118118
response:
119119
values:
120-
- name: "HolidayIndex"
121-
value: 15
122120
- name: "Status"
123-
value: 133
121+
value: 0x85
124122

125123
- label:
126-
"Step 6: TH sends Get Holiday Schedule Command to DUT with the
127-
HolidayIndex as 10 (value is in the the range of step 1 but Holiday
128-
Schedule entry not available)"
124+
"Step 6: TH sends GetHolidaySchedule Command to DUT with the
125+
HolidayIndex as any value that is different from 1 and value <=
126+
number_holiday_sch_supported"
129127
PICS: DRLK.S.F0b && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
130128
command: "GetHolidaySchedule"
131129
arguments:
132130
values:
133131
- name: "HolidayIndex"
134-
value: 10
132+
value: NumberOfHolidaySchedulesSupportedValue
135133
response:
136134
values:
137135
- name: "HolidayIndex"
138-
value: 10
136+
value: NumberOfHolidaySchedulesSupportedValue
139137
- name: "Status"
140-
value: 139
138+
value: 0x8B
141139

142140
- label:
143-
"Step 7: TH send Clear Holiday Schedule Command to DUT with
141+
"Step 7a: TH send Clear Holiday Schedule Command to DUT with
144142
HolidayIndex as 1"
145143
PICS: DRLK.S.F0b && DRLK.S.C13.Rsp
146144
command: "ClearHolidaySchedule"
@@ -149,6 +147,18 @@ tests:
149147
- name: "HolidayIndex"
150148
value: 1
151149

150+
- label:
151+
"Step 7b: TH send Clear Holiday Schedule Command to DUT with
152+
HolidayIndex as 0"
153+
PICS: DRLK.S.F0b && DRLK.S.C13.Rsp
154+
command: "ClearHolidaySchedule"
155+
arguments:
156+
values:
157+
- name: "HolidayIndex"
158+
value: 0
159+
response:
160+
error: INVALID_COMMAND
161+
152162
- label:
153163
"Step 8: TH sends Get Holiday Schedule Command to DUT with
154164
HolidayIndex as 1"

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

+36-77
Original file line numberDiff line numberDiff line change
@@ -35,55 +35,6 @@ tests:
3535
- name: "nodeId"
3636
value: nodeId
3737

38-
- label: "Precondition: Create new user"
39-
command: "SetUser"
40-
timedInteractionTimeoutMs: 10000
41-
arguments:
42-
values:
43-
- name: "OperationType"
44-
value: 0
45-
- name: "UserIndex"
46-
value: 1
47-
- name: "UserName"
48-
value: "xxx"
49-
- name: "UserUniqueID"
50-
value: 6452
51-
- name: "UserStatus"
52-
value: 1
53-
- name: "UserType"
54-
value: 0
55-
- name: "CredentialRule"
56-
value: 0
57-
58-
- label: "Precondition: Read the user back and verify its fields"
59-
command: "GetUser"
60-
arguments:
61-
values:
62-
- name: "UserIndex"
63-
value: 1
64-
response:
65-
values:
66-
- name: "UserIndex"
67-
value: 1
68-
- name: "UserName"
69-
value: "xxx"
70-
- name: "UserUniqueID"
71-
value: 6452
72-
- name: "UserStatus"
73-
value: 1
74-
- name: "UserType"
75-
value: 0
76-
- name: "CredentialRule"
77-
value: 0
78-
- name: "Credentials"
79-
value: []
80-
- name: "CreatorFabricIndex"
81-
value: 1
82-
- name: "LastModifiedFabricIndex"
83-
value: 1
84-
- name: "NextUserIndex"
85-
value: null
86-
8738
- label:
8839
"Step 1: TH reads NumberOfYearDay SchedulesSupportedPerUser attribute
8940
and saves for future use"
@@ -109,9 +60,34 @@ tests:
10960
maxValue: 65534
11061

11162
- label:
112-
"Step 3: TH sends Set Year Day Schedule Command to DUT with the
113-
following values: a)YearDayIndex as 1 b)UserIndex as 1
114-
c)LocalStartTime as 960 Seconds d)LocalEndTime as 1980 Seconds"
63+
"Step 3a: TH sends SetUser Command to DUT with the following values:
64+
a)OperationType as 0, b)UserIndex as 1, c)UserName as xxx,
65+
c)UserUniqueID as 6452, d)UserStatus as 1, e)UserType as 0,
66+
f)CredentialRule as 0"
67+
PICS: DRLK.S.F08 && DRLK.S.C1a.Rsp
68+
command: "SetUser"
69+
timedInteractionTimeoutMs: 10000
70+
arguments:
71+
values:
72+
- name: "OperationType"
73+
value: 0
74+
- name: "UserIndex"
75+
value: 1
76+
- name: "UserName"
77+
value: "xxx"
78+
- name: "UserUniqueID"
79+
value: 6452
80+
- name: "UserStatus"
81+
value: 1
82+
- name: "UserType"
83+
value: 0
84+
- name: "CredentialRule"
85+
value: 0
86+
87+
- label:
88+
"Step 3b: TH sends SetYearDaySchedule Command to DUT with the
89+
following values: a)YearDayIndex as 1, b)UserIndex as 1,
90+
c)LocalStartTime as 960 Seconds, d)LocalEndTime as 1980 Seconds"
11591
PICS: DRLK.S.F0a && DRLK.S.C0e.Rsp
11692
command: "SetYearDaySchedule"
11793
arguments:
@@ -196,9 +172,8 @@ tests:
196172
constraints:
197173
hasValue: false
198174

199-
- label:
200-
"Step 7a: Create a new user with UserIndex as 5 then TH sends Get Year
201-
Day Schedule Command to DUT with"
175+
- label: "Step 7a: Create a new user with UserIndex as 5"
176+
PICS: DRLK.S.F08 && DRLK.S.C1a.Rsp
202177
command: "SetUser"
203178
timedInteractionTimeoutMs: 10000
204179
arguments:
@@ -219,8 +194,9 @@ tests:
219194
value: 0
220195

221196
- label:
222-
"Step 7b: YearDayIndex as 10 (value is in the the range of step 1 but
223-
YearDay Schedule entry not available) : UserIndex as 5"
197+
"Step 7b: TH sends Get Year Day Schedule Command to DUT with
198+
YearDayIndex as 10 (value is in the the range of step 1 but YearDay
199+
Schedule entry not available) : UserIndex as 5"
224200
PICS: DRLK.S.F0a && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
225201
command: "GetYearDaySchedule"
226202
arguments:
@@ -367,28 +343,11 @@ tests:
367343
response:
368344
error: INVALID_COMMAND
369345

370-
- label: "Clear a year day schedule for the first user"
371-
PICS: DRLK.S.F0a && DRLK.S.C10.Rsp
372-
command: "ClearYearDaySchedule"
373-
arguments:
374-
values:
375-
- name: "YearDayIndex"
376-
value: 1
377-
- name: "UserIndex"
378-
value: 1
379-
380-
- label: "Cleanup the created user with UserIndex 1"
381-
command: "ClearUser"
346+
- label: "Step 14:TH sends ClearUser Command to DUT with the UserIndex as 1"
347+
PICS: DRLK.S.F08 && DRLK.S.C1d.Rsp
382348
timedInteractionTimeoutMs: 10000
383-
arguments:
384-
values:
385-
- name: "UserIndex"
386-
value: 1
387-
388-
- label: "Cleanup the created user with UserIndex 5"
389349
command: "ClearUser"
390-
timedInteractionTimeoutMs: 10000
391350
arguments:
392351
values:
393352
- name: "UserIndex"
394-
value: 5
353+
value: 0xFFFE

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

+10
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,16 @@ tests:
206206
- name: "NextUserIndex"
207207
value: null
208208

209+
- label: "Step 6c: TH sends Get User Command to DUT with UserIndex as 0"
210+
PICS: DRLK.S.C1a.Rsp && DRLK.S.C1b.Rsp && DRLK.S.C1c.Tx
211+
command: "GetUser"
212+
arguments:
213+
values:
214+
- name: "UserIndex"
215+
value: 0
216+
response:
217+
error: INVALID_COMMAND
218+
209219
- label:
210220
"Step 7: TH sends Set User Command to DUT with the following values:
211221
OperationType as 2 UserIndex as 2 UserName as NULL UserUniqueID as

0 commit comments

Comments
 (0)