| # Copyright (c) 2021 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.3. [TC-DRLK-2.3] Verification for Unlock Door command [DUT-Server] |
| |
| PICS: |
| - DRLK.S |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Door Lock" |
| endpoint: 1 |
| timeout: 200 |
| |
| tests: |
| - label: "Wait for the commissioned device to be retrieved" |
| cluster: "DelayCommands" |
| command: "WaitForCommissionee" |
| arguments: |
| values: |
| - name: "nodeId" |
| value: nodeId |
| |
| - label: "Create new user" |
| command: "SetUser" |
| timedInteractionTimeoutMs: 1000 |
| 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: [] |
| - name: "CreatorFabricIndex" |
| value: 1 |
| - name: "LastModifiedFabricIndex" |
| value: 1 |
| - name: "NextUserIndex" |
| value: null |
| |
| - label: "Create new PIN credential and lock/unlock user" |
| command: "SetCredential" |
| timedInteractionTimeoutMs: 1000 |
| 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: "Verify created PIN credential" |
| command: "GetCredentialStatus" |
| arguments: |
| values: |
| - name: "Credential" |
| value: { CredentialType: 1, CredentialIndex: 1 } |
| response: |
| values: |
| - name: "CredentialExists" |
| value: true |
| - name: "UserIndex" |
| value: 1 |
| - name: "CreatorFabricIndex" |
| value: 1 |
| - name: "LastModifiedFabricIndex" |
| value: 1 |
| - name: "NextCredentialIndex" |
| value: null |
| |
| - label: |
| "TH writes the RequirePINforRemoteOperation attribute value as False |
| on the DUT" |
| PICS: DRLK.S.F07 && DRLK.S.F00 && DRLK.S.A0033 |
| command: "writeAttribute" |
| attribute: "RequirePINforRemoteOperation" |
| arguments: |
| value: false |
| |
| - label: |
| "TH writes the RequirePINforRemoteOperation attribute value as False |
| on the DUT and Verify DUT responds with UNSUPPORTED_WRITE" |
| PICS: DRLK.S.F07 && DRLK.S.F00 && !DRLK.S.A0033 |
| command: "writeAttribute" |
| attribute: "RequirePINforRemoteOperation" |
| arguments: |
| value: false |
| response: |
| error: UNSUPPORTED_WRITE |
| |
| - label: "TH reads the RequirePINforRemoteOperation attribute from the DUT" |
| PICS: DRLK.S.F07 && DRLK.S.F00 && DRLK.S.A0033 |
| command: "readAttribute" |
| attribute: "RequirePINforRemoteOperation" |
| response: |
| value: false |
| |
| - label: "TH sends the unlock Door command to the DUT without PINCode" |
| PICS: DRLK.S.C01.Rsp |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| |
| - label: "TH sends the unlock Door command to the DUT with valid PINCode" |
| PICS: DRLK.S.C01.Rsp |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "PINCode" |
| value: "123456" |
| |
| - label: |
| "TH writes the RequirePINforRemoteOperation attribute value as False |
| on the DUT" |
| PICS: DRLK.S.F07 && DRLK.S.F00 && DRLK.S.A0033 |
| command: "writeAttribute" |
| attribute: "RequirePINforRemoteOperation" |
| arguments: |
| value: true |
| |
| - label: |
| "TH writes the RequirePINforRemoteOperation attribute value as False |
| on the DUT and Verify DUT responds with UNSUPPORTED_WRITE" |
| PICS: DRLK.S.F07 && DRLK.S.F00 && !DRLK.S.A0033 |
| command: "writeAttribute" |
| attribute: "RequirePINforRemoteOperation" |
| arguments: |
| value: true |
| response: |
| error: UNSUPPORTED_WRITE |
| |
| - label: "TH reads the RequirePINforRemoteOperation attribute from the DUT" |
| PICS: DRLK.S.F07 && DRLK.S.F00 && DRLK.S.A0033 |
| command: "readAttribute" |
| attribute: "RequirePINforRemoteOperation" |
| response: |
| value: true |
| |
| - label: "TH sends the unlock Door command to the DUT with valid PINCode" |
| PICS: DRLK.S.C01.Rsp && DRLK.S.A0033 |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "PINCode" |
| value: "123456" |
| |
| - label: "TH sends the unlock Door command to the DUT with invalid PINCode" |
| PICS: DRLK.S.C01.Rsp && DRLK.S.A0033 |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "PINCode" |
| value: "1234568" |
| response: |
| error: FAILURE |
| |
| - label: "TH sends the unlock Door command to the DUT without PINCode" |
| PICS: DRLK.S.C01.Rsp && DRLK.S.A0033 |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| response: |
| error: FAILURE |
| |
| - label: |
| "TH writes WrongCodeEntryLimit attribute value as 3 on the DUT and |
| Verify that the DUT sends Success response" |
| PICS: DRLK.S.F00 && DRLK.S.F01 && DRLK.S.A0030 |
| command: "writeAttribute" |
| attribute: "WrongCodeEntryLimit" |
| arguments: |
| value: 3 |
| |
| - label: |
| "TH writes WrongCodeEntryLimit attribute value as 3 on the DUT and |
| verify DUT responds with UNSUPPORTED_WRITE" |
| PICS: DRLK.S.F00 && DRLK.S.F01 && ! DRLK.S.A0030 |
| command: "writeAttribute" |
| attribute: "WrongCodeEntryLimit" |
| arguments: |
| value: 3 |
| response: |
| error: UNSUPPORTED_WRITE |
| |
| - label: |
| "TH writes UserCodeTemporaryDisableTime attribute value as 15 Seconds |
| on the DUT and Verify that the DUT sends Success response" |
| PICS: DRLK.S.F00 && DRLK.S.F01 && DRLK.S.A0031 |
| command: "writeAttribute" |
| attribute: "UserCodeTemporaryDisableTime" |
| arguments: |
| value: 15 |
| |
| - label: |
| "TH writes UserCodeTemporaryDisableTime attribute value as 15 Seconds |
| on the DUT and Verify that the DUT sends Success response" |
| PICS: DRLK.S.F00 && DRLK.S.F01 && ! DRLK.S.A0031 |
| command: "writeAttribute" |
| attribute: "UserCodeTemporaryDisableTime" |
| arguments: |
| value: 15 |
| response: |
| error: UNSUPPORTED_WRITE |
| |
| - label: "TH sends the unlock Door command to the DUT with invalid PINCode" |
| PICS: DRLK.S.C01.Rsp |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "PINCode" |
| value: "1234568" |
| response: |
| error: FAILURE |
| |
| - label: "TH sends the unlock Door command to the DUT with invalid PINCode" |
| PICS: DRLK.S.C01.Rsp |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "PINCode" |
| value: "1234568" |
| response: |
| error: FAILURE |
| |
| - label: "TH sends the unlock Door command to the DUT with invalid PINCode" |
| PICS: DRLK.S.C01.Rsp |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "PINCode" |
| value: "1234568" |
| response: |
| error: FAILURE |
| |
| - label: "TH sends the unlock Door command to the DUT with invalid PINCode" |
| PICS: DRLK.S.C01.Rsp |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "PINCode" |
| value: "1234568" |
| response: |
| error: FAILURE |
| |
| - label: |
| "TH reads the UserCodeTemporaryDisableTime attribute from the DUT and |
| check attribute is triggered" |
| PICS: DRLK.S.F00 && DRLK.S.F01 && DRLK.S.A0031 |
| command: "readAttribute" |
| attribute: "UserCodeTemporaryDisableTime" |
| response: |
| value: 15 |
| |
| - label: "TH sends the unlock Door command to the DUT with valid PINCode" |
| PICS: DRLK.S.C01.Rsp |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "PINCode" |
| value: "123456" |
| response: |
| error: FAILURE |
| |
| - label: "Wait for UserCodeTemporaryDisableTime expires" |
| cluster: "DelayCommands" |
| command: "WaitForMs" |
| PICS: DRLK.S.F00 && DRLK.S.F01 && DRLK.S.A0031 |
| arguments: |
| values: |
| - name: "ms" |
| value: 15000 |
| |
| - label: "TH writes AutoRelockTime attribute value as 10 seconds on the DUT" |
| PICS: DRLK.S.A0023 && PICS_SDK_CI_ONLY |
| command: "writeAttribute" |
| attribute: "AutoRelockTime" |
| arguments: |
| value: 10 |
| |
| - label: "TH writes AutoRelockTime attribute value as 60 seconds on the DUT" |
| PICS: DRLK.S.A0023 && PICS_SKIP_SAMPLE_APP |
| command: "writeAttribute" |
| attribute: "AutoRelockTime" |
| arguments: |
| value: 60 |
| |
| - label: "TH writes AutoRelockTime attribute value as 10 seconds on the DUT" |
| PICS: "!DRLK.S.A0023 && PICS_SDK_CI_ONLY" |
| command: "writeAttribute" |
| attribute: "AutoRelockTime" |
| arguments: |
| value: 10 |
| response: |
| error: UNSUPPORTED_WRITE |
| |
| - label: "TH writes AutoRelockTime attribute value as 60 seconds on the DUT" |
| PICS: "!DRLK.S.A0023 && PICS_SKIP_SAMPLE_APP" |
| command: "writeAttribute" |
| attribute: "AutoRelockTime" |
| arguments: |
| value: 60 |
| response: |
| error: UNSUPPORTED_WRITE |
| |
| - label: "TH reads the AutoRelockTime attribute from the DUT" |
| PICS: DRLK.S.A0023 && PICS_SDK_CI_ONLY |
| command: "readAttribute" |
| attribute: "AutoRelockTime" |
| response: |
| value: 10 |
| |
| - label: "TH reads the AutoRelockTime attribute from the DUT" |
| PICS: DRLK.S.A0023 && PICS_SKIP_SAMPLE_APP |
| command: "readAttribute" |
| attribute: "AutoRelockTime" |
| response: |
| value: 60 |
| |
| - label: |
| "TH sends the unlock Door command to the DUT with valid PINCode and |
| Verify that DUT sends SUCCESS response to the TH" |
| PICS: DRLK.S.C01.Rsp |
| command: "UnlockDoor" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "PINCode" |
| value: "123456" |
| |
| - label: "Wait for AutoRelockTime Expires" |
| cluster: "DelayCommands" |
| command: "WaitForMs" |
| PICS: DRLK.S.A0023 && PICS_SDK_CI_ONLY |
| arguments: |
| values: |
| - name: "ms" |
| value: 10000 |
| |
| - label: "Wait for AutoRelockTime Expires" |
| cluster: "DelayCommands" |
| command: "WaitForMs" |
| PICS: DRLK.S.A0023 && PICS_SKIP_SAMPLE_APP |
| arguments: |
| values: |
| - name: "ms" |
| value: 60000 |
| |
| - label: "TH reads LockState attribute" |
| PICS: DRLK.S.A0000 && DRLK.S.C01.Rsp |
| command: "readAttribute" |
| attribute: "LockState" |
| response: |
| value: 1 |
| |
| - label: "Cleanup the created user" |
| command: "ClearUser" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "UserIndex" |
| value: 1 |
| |
| - label: "Clean the created credential" |
| PICS: DRLK.S.C26.Rsp |
| command: "ClearCredential" |
| timedInteractionTimeoutMs: 1000 |
| arguments: |
| values: |
| - name: "Credential" |
| value: { CredentialType: 1, CredentialIndex: 1 } |