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

Add new Door Lock Multi credential management test to CI. #24671

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
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
krypton36 marked this conversation as resolved.
Show resolved Hide resolved
- 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
krypton36 marked this conversation as resolved.
Show resolved Hide resolved
- 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
krypton36 marked this conversation as resolved.
Show resolved Hide resolved
- 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
krypton36 marked this conversation as resolved.
Show resolved Hide resolved
- 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