Skip to content

Commit

Permalink
Add new Door Lock Multi credential management test to CI. (#24671)
Browse files Browse the repository at this point in the history
* Add new Door Lock Multi credential management test to CI.

* Update to reflect test plan PR changes.
  • Loading branch information
krypton36 authored and pull[bot] committed Dec 15, 2023
1 parent c31ca81 commit 1221596
Show file tree
Hide file tree
Showing 4 changed files with 2,027 additions and 1 deletion.
387 changes: 387 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_11.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,387 @@
# Copyright (c) 2023 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.

name:
111.2.11. [TC-DRLK-2.11] Verification for multiple credential types
[DUT-Server]

PICS:
- DRLK.S
- DRLK.S.F00
- DRLK.S.F02
- DRLK.S.F03

config:
nodeId: 0x12344321
cluster: "Door Lock"
endpoint: 1

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "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: "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: null
- name: "CreatorFabricIndex"
value: 1
- name: "LastModifiedFabricIndex"
value: 1
- name: "NextUserIndex"
value: null

- label: "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
arguments:
values:
- name: "OperationType"
value: 0
- name: "Credential"
value: { CredentialType: 1, CredentialIndex: 1 }
- name: "CredentialData"
value: "123456"
- name: "UserIndex"
value: 1
- name: "UserStatus"
value: null
- name: "UserType"
value: null
response:
values:
- name: "Status"
value: 0
- name: "UserIndex"
value: null
- name: "NextCredentialIndex"
value: 2

- label: "TH sends Set Credential Command to DUT with type RFID"
PICS: DRLK.S.F01 && DRLK.S.F08 && DRLK.S.C22.Rsp && DRLK.S.C23.Tx
command: "SetCredential"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "OperationType"
value: 0
- name: "Credential"
value: { CredentialType: 2, CredentialIndex: 1 }
- name: "CredentialData"
value: "RFIDTESTDATA"
- name: "UserIndex"
value: 1
- name: "UserStatus"
value: null
- name: "UserType"
value: null
response:
values:
- name: "Status"
value: 0
- name: "UserIndex"
value: null
- name: "NextCredentialIndex"
value: 2

- label: "TH sends Set Credential Command to DUT with type FingerVein"
PICS: DRLK.S.F02 && DRLK.S.F08 && DRLK.S.C22.Rsp && DRLK.S.C23.Tx
command: "SetCredential"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "OperationType"
value: 0
- name: "Credential"
value: { CredentialType: 4, CredentialIndex: 1 }
- name: "CredentialData"
value: "123456"
- name: "UserIndex"
value: 1
- name: "UserStatus"
value: null
- name: "UserType"
value: null
response:
values:
- name: "Status"
value: 0
- name: "UserIndex"
value: null
- name: "NextCredentialIndex"
value: 2

- label: "TH sends Get Credential Status Command with type PIN"
PICS: DRLK.S.F00 && DRLK.S.F08 && DRLK.S.C24.Rsp && DRLK.S.C25.Tx
command: "GetCredentialStatus"
arguments:
values:
- name: "Credential"
value: { CredentialType: 1, CredentialIndex: 1 }
response:
values:
- name: "CredentialExists"
value: true
constraints:
type: boolean
- name: "UserIndex"
value: 1
- name: "CreatorFabricIndex"
value: 1
- name: "LastModifiedFabricIndex"
value: 1
- name: "NextCredentialIndex"
value: null

- label: "TH sends Get Credential Status Command with type RFID"
PICS: DRLK.S.F01 && DRLK.S.C24.Rsp && DRLK.S.C25.Tx
command: "GetCredentialStatus"
arguments:
values:
- name: "Credential"
value: { CredentialType: 2, CredentialIndex: 1 }
response:
values:
- name: "CredentialExists"
value: true
constraints:
type: boolean
- name: "UserIndex"
value: 1
- name: "CreatorFabricIndex"
value: 1
- name: "LastModifiedFabricIndex"
value: 1
- name: "NextCredentialIndex"
value: null

- label: "TH sends Get Credential Status Command with type FingerVein"
PICS: DRLK.S.F02 && DRLK.S.C24.Rsp && DRLK.S.C25.Tx
command: "GetCredentialStatus"
arguments:
values:
- name: "Credential"
value: { CredentialType: 4, CredentialIndex: 1 }
response:
values:
- name: "CredentialExists"
value: true
constraints:
type: boolean
- name: "UserIndex"
value: 1
- name: "CreatorFabricIndex"
value: 1
- name: "LastModifiedFabricIndex"
value: 1
- name: "NextCredentialIndex"
value: null

- label: "TH sends Clear Credential Command to DUT with type PIN"
PICS: DRLK.S.F00 && DRLK.S.F08 && DRLK.S.C26.Rsp
command: "ClearCredential"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "Credential"
value: { CredentialType: 1, CredentialIndex: 1 }

- label: "TH sends Get Credential Status Command with type RFID"
PICS: DRLK.S.F01 && DRLK.S.C24.Rsp && DRLK.S.C25.Tx
command: "GetCredentialStatus"
arguments:
values:
- name: "Credential"
value: { CredentialType: 2, CredentialIndex: 1 }
response:
values:
- name: "CredentialExists"
value: true
constraints:
type: boolean
- name: "UserIndex"
value: 1
- name: "CreatorFabricIndex"
value: 1
- name: "LastModifiedFabricIndex"
value: 1
- name: "NextCredentialIndex"
value: null

- label: "TH sends Get Credential Status Command with type FingerVein"
PICS: DRLK.S.F02 && DRLK.S.C24.Rsp && DRLK.S.C25.Tx
command: "GetCredentialStatus"
arguments:
values:
- name: "Credential"
value: { CredentialType: 4, CredentialIndex: 1 }
response:
values:
- name: "CredentialExists"
value: true
constraints:
type: boolean
- name: "UserIndex"
value: 1
- name: "CreatorFabricIndex"
value: 1
- name: "LastModifiedFabricIndex"
value: 1
- name: "NextCredentialIndex"
value: null

- label: "TH sends Clear Credential Command to DUT with type RFID"
PICS: DRLK.S.F01 && DRLK.S.F08 && DRLK.S.C26.Rsp
command: "ClearCredential"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "Credential"
value: { CredentialType: 2, CredentialIndex: 1 }

- label: "TH sends Get Credential Status Command with type FingerVein"
PICS: DRLK.S.F02 && DRLK.S.C24.Rsp && DRLK.S.C25.Tx
command: "GetCredentialStatus"
arguments:
values:
- name: "Credential"
value: { CredentialType: 4, CredentialIndex: 1 }
response:
values:
- name: "CredentialExists"
value: true
constraints:
type: boolean
- name: "UserIndex"
value: 1
- name: "CreatorFabricIndex"
value: 1
- name: "LastModifiedFabricIndex"
value: 1
- name: "NextCredentialIndex"
value: null

- label: "TH sends Clear Credential Command to DUT with type FingerVein"
PICS: DRLK.S.F02 && DRLK.S.F08 && DRLK.S.C26.Rsp
command: "ClearCredential"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "Credential"
value: { CredentialType: 4, CredentialIndex: 1 }

- label: "TH sends Get Credential Status Command to DUT with type PIN"
PICS: DRLK.S.F00 && DRLK.S.F08 && DRLK.S.C24.Rsp && DRLK.S.C25.Tx
command: "GetCredentialStatus"
arguments:
values:
- name: "Credential"
value: { CredentialType: 1, CredentialIndex: 1 }
response:
values:
- name: "CredentialExists"
value: false
- name: "UserIndex"
value: null
- name: "CreatorFabricIndex"
value: null
- name: "LastModifiedFabricIndex"
value: null
- name: "NextCredentialIndex"
value: null

- label: "TH sends Get Credential Status Command to DUT with type RFID"
PICS: DRLK.S.F01 && DRLK.S.F08 && DRLK.S.C24.Rsp && DRLK.S.C25.Tx
command: "GetCredentialStatus"
arguments:
values:
- name: "Credential"
value: { CredentialType: 2, CredentialIndex: 1 }
response:
values:
- name: "CredentialExists"
value: false
- name: "UserIndex"
value: null
- name: "CreatorFabricIndex"
value: null
- name: "LastModifiedFabricIndex"
value: null
- name: "NextCredentialIndex"
value: null

- label:
"TH sends Get Credential Status Command to DUT with type FingerVein"
PICS: DRLK.S.F02 && DRLK.S.F08 && DRLK.S.C24.Rsp && DRLK.S.C25.Tx
command: "GetCredentialStatus"
arguments:
values:
- name: "Credential"
value: { CredentialType: 4, CredentialIndex: 1 }
response:
values:
- name: "CredentialExists"
value: false
- name: "UserIndex"
value: null
- name: "CreatorFabricIndex"
value: null
- name: "LastModifiedFabricIndex"
value: null
- name: "NextCredentialIndex"
value: null
3 changes: 2 additions & 1 deletion src/app/tests/suites/ciTests.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@
"Test_TC_DRLK_2_5",
"Test_TC_DRLK_2_6",
"Test_TC_DRLK_2_7",
"Test_TC_DRLK_2_9"
"Test_TC_DRLK_2_9",
"Test_TC_DRLK_2_11"
],
"Groups": [
"TestGroupMessaging",
Expand Down
Loading

0 comments on commit 1221596

Please sign in to comment.