Skip to content

Commit 94c3882

Browse files
Fix various issues in TC-DRLK-2.1 (#28509)
* Fix various issues in TC-DRLK-2.1: - Perform Lock/Unlock operations with User/PIN is F.PIN and F.COTA are supported - Allow RequirePINforRemoteOperation attribute to be TRUE or FALSE - Allow EnablePrivacyModeButton attribute to be either TRUE or FALSE - Allow EnableInsideStatusLED attribute to be either TRUE or FALSE - Allow EnableOneTouchLocking attribute to be either TRUE or FALSE - Allow EnableLocalProgramming attribute to be either TRUE or FALSE - Allow SupportedOperatingModes attribute to be any of the valid combinations Fixes #598 * Restyled by whitespace * Restyled by prettier-yaml --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 2a7ffdc commit 94c3882

File tree

1 file changed

+85
-8
lines changed

1 file changed

+85
-8
lines changed

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

+85-8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,31 @@ tests:
3131
- name: "nodeId"
3232
value: nodeId
3333

34+
- label: "Precondition: Create new PIN credential and lock/unlock user"
35+
PICS: DRLK.S.F00 && DRLK.S.F07
36+
command: "SetCredential"
37+
timedInteractionTimeoutMs: 1000
38+
arguments:
39+
values:
40+
- name: "OperationType"
41+
value: 0
42+
- name: "Credential"
43+
value: { CredentialType: 1, CredentialIndex: 1 }
44+
- name: "CredentialData"
45+
value: "123456"
46+
- name: "UserIndex"
47+
value: null
48+
- name: "UserStatus"
49+
value: 1
50+
- name: "UserType"
51+
value: 0
52+
response:
53+
values:
54+
- name: "Status"
55+
value: 0
56+
- name: "NextCredentialIndex"
57+
value: 2
58+
3459
- label: "Step 1a: TH reads LockState attribute from DUT"
3560
PICS: DRLK.S.A0000
3661
command: "readAttribute"
@@ -59,10 +84,19 @@ tests:
5984
value: LockStateValue
6085

6186
- label: "Step 1d: TH sends a Lock Door command to the DUT."
62-
PICS: DRLK.S.C00.Rsp
87+
PICS: DRLK.S.C00.Rsp && !(DRLK.S.F00 && DRLK.S.F07)
6388
command: "LockDoor"
6489
timedInteractionTimeoutMs: 1000
6590

91+
- label: "Step 1d: TH sends a Lock Door command to the DUT."
92+
PICS: DRLK.S.C00.Rsp && DRLK.S.F00 && DRLK.S.F07
93+
command: "LockDoor"
94+
timedInteractionTimeoutMs: 1000
95+
arguments:
96+
values:
97+
- name: "PINCode"
98+
value: "123456"
99+
66100
- label: "Step 1d: TH reads LockState attribute from DUT"
67101
PICS: DRLK.S.A0000
68102
command: "readAttribute"
@@ -71,10 +105,19 @@ tests:
71105
value: 1
72106

73107
- label: "Step 1e: TH sends a Unlock Door command to the DUT."
74-
PICS: DRLK.S.C01.Rsp
108+
PICS: DRLK.S.C01.Rsp && !(DRLK.S.F00 && DRLK.S.F07)
75109
command: "UnlockDoor"
76110
timedInteractionTimeoutMs: 1000
77111

112+
- label: "Step 1e: TH sends a Unlock Door command to the DUT."
113+
PICS: DRLK.S.C01.Rsp && DRLK.S.F00 && DRLK.S.F07
114+
command: "UnlockDoor"
115+
timedInteractionTimeoutMs: 1000
116+
arguments:
117+
values:
118+
- name: "PINCode"
119+
value: "123456"
120+
78121
- label: "Step 1e: TH reads LockState attribute from DUT"
79122
PICS: DRLK.S.A0000
80123
command: "readAttribute"
@@ -822,10 +865,20 @@ tests:
822865
command: "readAttribute"
823866
attribute: "SupportedOperatingModes"
824867
response:
825-
value: 0xFFF6
826868
saveAs: Current_Supported
827869
constraints:
828870
type: enum16
871+
anyOf:
872+
[
873+
0xFFF6,
874+
0xFFF4,
875+
0xFFF2,
876+
0xFFF0,
877+
0xFFE6,
878+
0xFFE4,
879+
0xFFE2,
880+
0xFFE0,
881+
]
829882

830883
- label:
831884
"Step 23b: TH writes Supported OperatingModes attribute as bit 0 is
@@ -985,8 +1038,11 @@ tests:
9851038
command: "readAttribute"
9861039
attribute: "EnableLocalProgramming"
9871040
response:
988-
value: 1
9891041
saveAs: Current_EnableLocal_Programming
1042+
constraints:
1043+
type: boolean
1044+
minValue: 0
1045+
maxValue: 1
9901046

9911047
- label: "Step 26b: TH writes EnableLocalProgramming attribute as false"
9921048
PICS: DRLK.S.A0028.Write
@@ -1023,7 +1079,10 @@ tests:
10231079
command: "readAttribute"
10241080
attribute: "EnableOneTouchLocking"
10251081
response:
1026-
value: 0
1082+
constraints:
1083+
type: boolean
1084+
minValue: 0
1085+
maxValue: 1
10271086

10281087
- label: "Step 27b: TH writes EnableOneTouchLocking attribute as true"
10291088
PICS: DRLK.S.A0029
@@ -1044,7 +1103,10 @@ tests:
10441103
command: "readAttribute"
10451104
attribute: "EnableInsideStatusLED"
10461105
response:
1047-
value: 0
1106+
constraints:
1107+
type: boolean
1108+
minValue: 0
1109+
maxValue: 1
10481110

10491111
- label: "Step 28b: TH writes EnableInsideStatusLED attribute as true"
10501112
PICS: DRLK.S.A002a
@@ -1065,7 +1127,10 @@ tests:
10651127
command: "readAttribute"
10661128
attribute: "EnablePrivacyModeButton"
10671129
response:
1068-
value: 0
1130+
constraints:
1131+
type: boolean
1132+
minValue: 0
1133+
maxValue: 1
10691134

10701135
- label: "Step 29b: TH writes EnablePrivacy ModeButton attribute as true"
10711136
PICS: DRLK.S.A002b
@@ -1420,7 +1485,10 @@ tests:
14201485
command: "readAttribute"
14211486
attribute: "RequirePINforRemoteOperation"
14221487
response:
1423-
value: 0
1488+
constraints:
1489+
type: boolean
1490+
minValue: 0
1491+
maxValue: 1
14241492
saveAs: Current_RequirePINFor_RemoteOperation
14251493

14261494
- label:
@@ -1530,3 +1598,12 @@ tests:
15301598
attribute: "NumberOfCredentialsSupportedPerUser"
15311599
response:
15321600
value: NumberOfCredentialsSupportedPerUserValue
1601+
1602+
- label: "Clean the created credential/user"
1603+
PICS: DRLK.S.F00 && DRLK.S.F07
1604+
command: "ClearCredential"
1605+
timedInteractionTimeoutMs: 1000
1606+
arguments:
1607+
values:
1608+
- name: "Credential"
1609+
value: { CredentialType: 1, CredentialIndex: 1 }

0 commit comments

Comments
 (0)