Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated yaml script as per the SQA issues #35253

Merged
merged 7 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
333 changes: 137 additions & 196 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_10.yaml

Large diffs are not rendered by default.

76 changes: 24 additions & 52 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ config:
nodeId: 0x12344321
cluster: "Door Lock"
endpoint: 1
PINCredentialData:
CredentialData:
type: octet_string
defaultValue: "123456"
RFIDCredentialData:
Expand All @@ -45,55 +45,6 @@ tests:
- name: "nodeId"
value: nodeId

- label: "Precondition: Create new user with default parameters"
command: "SetUser"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "OperationType"
value: 0
- name: "UserIndex"
value: 1
- name: "UserName"
value: "xxx"
- name: "UserUniqueID"
value: 6452
- name: "UserStatus"
value: 1
- name: "UserType"
value: 0
- name: "CredentialRule"
value: 0

- label: "Precondition: Read the user back and verify its fields"
command: "GetUser"
arguments:
values:
- name: "UserIndex"
value: 1
response:
values:
- name: "UserIndex"
value: 1
- name: "UserName"
value: "xxx"
- name: "UserUniqueID"
value: 6452
- name: "UserStatus"
value: 1
- name: "UserType"
value: 0
- name: "CredentialRule"
value: 0
- name: "Credentials"
value: []
- name: "CreatorFabricIndex"
value: 1
- name: "LastModifiedFabricIndex"
value: 1
- name: "NextUserIndex"
value: null

- label:
"Step 1a: TH reads NumberOfTotalUsersSupported and saves for future
use."
Expand Down Expand Up @@ -141,7 +92,28 @@ tests:
minValue: 0
maxValue: 255

- label: "Step 2a: TH sends Set Credential Command to DUT with type PIN"
- label: "Step 2a: TH sends SetUser Command to DUT"
PICS: DRLK.S.F08 && DRLK.S.C1a.Rsp
command: "SetUser"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "OperationType"
value: 0
- name: "UserIndex"
value: 1
- name: "UserName"
value: "xxx"
- name: "UserUniqueID"
value: 6452
- name: "UserStatus"
value: 1
- name: "UserType"
value: 0
- name: "CredentialRule"
value: 0

- label: "Step 2b: TH sends Set Credential Command to DUT with type PIN"
PICS: DRLK.S.F00 && DRLK.S.F08 && DRLK.S.C22.Rsp && DRLK.S.C23.Tx
command: "SetCredential"
timedInteractionTimeoutMs: 10000
Expand All @@ -152,7 +124,7 @@ tests:
- name: "Credential"
value: { CredentialType: 1, CredentialIndex: 1 }
- name: "CredentialData"
value: PINCredentialData
value: CredentialData
- name: "UserIndex"
value: 1
- name: "UserStatus"
Expand Down
32 changes: 21 additions & 11 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,40 +107,38 @@ tests:
error: INVALID_COMMAND

- label:
"Step 5: TH sends Get Holiday Schedule Command to DUT with Invalid
HolidayIndex as 15"
"Step 5: TH sends GetHolidaySchedule Command to DUT with Invalid
HolidayIndex > number_holiday_sch_supported ."
PICS: DRLK.S.F0b && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
command: "GetHolidaySchedule"
arguments:
values:
- name: "HolidayIndex"
value: 15
value: NumberOfHolidaySchedulesSupportedValue + 1
response:
values:
- name: "HolidayIndex"
value: 15
cjandhyala marked this conversation as resolved.
Show resolved Hide resolved
- name: "Status"
value: 133
bzbarsky-apple marked this conversation as resolved.
Show resolved Hide resolved

- label:
"Step 6: TH sends Get Holiday Schedule Command to DUT with the
HolidayIndex as 10 (value is in the the range of step 1 but Holiday
Schedule entry not available)"
"Step 6: TH sends GetHolidaySchedule Command to DUT with the
HolidayIndex as any value that is different from 1 and value <=
number_holiday_sch_supported"
PICS: DRLK.S.F0b && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
command: "GetHolidaySchedule"
arguments:
values:
- name: "HolidayIndex"
value: 10
value: NumberOfHolidaySchedulesSupportedValue
response:
values:
- name: "HolidayIndex"
value: 10
value: NumberOfHolidaySchedulesSupportedValue
- name: "Status"
value: 139
bzbarsky-apple marked this conversation as resolved.
Show resolved Hide resolved

- label:
"Step 7: TH send Clear Holiday Schedule Command to DUT with
"Step 7a: TH send Clear Holiday Schedule Command to DUT with
HolidayIndex as 1"
PICS: DRLK.S.F0b && DRLK.S.C13.Rsp
command: "ClearHolidaySchedule"
Expand All @@ -149,6 +147,18 @@ tests:
- name: "HolidayIndex"
value: 1

- label:
"Step 7b: TH send Clear Holiday Schedule Command to DUT with
HolidayIndex as 0"
PICS: DRLK.S.F0b && DRLK.S.C13.Rsp
command: "ClearHolidaySchedule"
arguments:
values:
- name: "HolidayIndex"
value: 0
response:
error: INVALID_COMMAND

- label:
"Step 8: TH sends Get Holiday Schedule Command to DUT with
HolidayIndex as 1"
Expand Down
109 changes: 43 additions & 66 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,55 +35,6 @@ tests:
- name: "nodeId"
value: nodeId

- label: "Precondition: Create new user"
command: "SetUser"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "OperationType"
value: 0
- name: "UserIndex"
value: 1
- name: "UserName"
value: "xxx"
- name: "UserUniqueID"
value: 6452
- name: "UserStatus"
value: 1
- name: "UserType"
value: 0
- name: "CredentialRule"
value: 0

- label: "Precondition: Read the user back and verify its fields"
command: "GetUser"
arguments:
values:
- name: "UserIndex"
value: 1
response:
values:
- name: "UserIndex"
value: 1
- name: "UserName"
value: "xxx"
- name: "UserUniqueID"
value: 6452
- name: "UserStatus"
value: 1
- name: "UserType"
value: 0
- name: "CredentialRule"
value: 0
- name: "Credentials"
value: []
- name: "CreatorFabricIndex"
value: 1
- name: "LastModifiedFabricIndex"
value: 1
- name: "NextUserIndex"
value: null

- label:
"Step 1: TH reads NumberOfYearDay SchedulesSupportedPerUser attribute
and saves for future use"
Expand All @@ -109,9 +60,34 @@ tests:
maxValue: 65534

- label:
"Step 3: TH sends Set Year Day Schedule Command to DUT with the
following values: a)YearDayIndex as 1 b)UserIndex as 1
c)LocalStartTime as 960 Seconds d)LocalEndTime as 1980 Seconds"
"Step 3a: TH sends SetUser Command to DUT with the following values:
a)OperationType as 0, b)UserIndex as 1, c)UserName as xxx,
c)UserUniqueID as 6452, d)UserStatus as 1, e)UserType as 0,
f)CredentialRule as 0"
PICS: DRLK.S.F08 && DRLK.S.C1a.Rsp
command: "SetUser"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "OperationType"
value: 0
- name: "UserIndex"
value: 1
- name: "UserName"
value: "xxx"
- name: "UserUniqueID"
value: 6452
- name: "UserStatus"
value: 1
- name: "UserType"
value: 0
- name: "CredentialRule"
value: 0

- label:
"Step 3b: TH sends SetYearDaySchedule Command to DUT with the
following values: a)YearDayIndex as 1, b)UserIndex as 1,
c)LocalStartTime as 960 Seconds, d)LocalEndTime as 1980 Seconds"
PICS: DRLK.S.F0a && DRLK.S.C0e.Rsp
command: "SetYearDaySchedule"
arguments:
Expand Down Expand Up @@ -196,9 +172,8 @@ tests:
constraints:
hasValue: false

- label:
"Step 7a: Create a new user with UserIndex as 5 then TH sends Get Year
Day Schedule Command to DUT with"
- label: "Step 7a: Create a new user with UserIndex as 5"
PICS: DRLK.S.F08 && DRLK.S.C1a.Rsp
command: "SetUser"
timedInteractionTimeoutMs: 10000
arguments:
Expand All @@ -219,8 +194,9 @@ tests:
value: 0

- label:
"Step 7b: YearDayIndex as 10 (value is in the the range of step 1 but
YearDay Schedule entry not available) : UserIndex as 5"
"Step 7b: TH sends Get Year Day Schedule Command to DUT with
YearDayIndex as 10 (value is in the the range of step 1 but YearDay
Schedule entry not available) : UserIndex as 5"
PICS: DRLK.S.F0a && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
command: "GetYearDaySchedule"
arguments:
Expand Down Expand Up @@ -367,23 +343,24 @@ tests:
response:
error: INVALID_COMMAND

- label: "Clear a year day schedule for the first user"
PICS: DRLK.S.F0a && DRLK.S.C10.Rsp
command: "ClearYearDaySchedule"
- label: "Step 14:TH sends ClearUser Command to DUT with the UserIndex as 1"
PICS: DRLK.S.F08 && DRLK.S.C1d.Rsp
timedInteractionTimeoutMs: 10000
command: "ClearUser"
arguments:
values:
- name: "YearDayIndex"
value: 1
- name: "UserIndex"
value: 1

- label: "Cleanup the created user with UserIndex 1"
command: "ClearUser"
timedInteractionTimeoutMs: 10000
- label: "Clear a year day schedule for the first user"
bzbarsky-apple marked this conversation as resolved.
Show resolved Hide resolved
PICS: DRLK.S.F0a && DRLK.S.C10.Rsp
command: "ClearYearDaySchedule"
arguments:
values:
- name: "UserIndex"
- name: "YearDayIndex"
value: 1
- name: "UserIndex"
value: 5

- label: "Cleanup the created user with UserIndex 5"
bzbarsky-apple marked this conversation as resolved.
Show resolved Hide resolved
command: "ClearUser"
Expand Down
10 changes: 10 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@ tests:
- name: "NextUserIndex"
value: null

- label: "Step 6c: TH sends Get User Command to DUT with UserIndex as 0"
PICS: DRLK.S.C1a.Rsp && DRLK.S.C1b.Rsp && DRLK.S.C1c.Tx
command: "GetUser"
arguments:
values:
- name: "UserIndex"
value: 0
response:
error: INVALID_COMMAND

- label:
"Step 7: TH sends Set User Command to DUT with the following values:
OperationType as 2 UserIndex as 2 UserName as NULL UserUniqueID as
Expand Down
Loading
Loading