-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new Door Lock Multi credential management test to CI. (#24671)
* Add new Door Lock Multi credential management test to CI. * Update to reflect test plan PR changes.
- Loading branch information
Showing
4 changed files
with
2,027 additions
and
1 deletion.
There are no files selected for viewing
387 changes: 387 additions & 0 deletions
387
src/app/tests/suites/certification/Test_TC_DRLK_2_11.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.