forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test added Mar 30 (project-chip#16825)
* New tests added TC-DL-1.3 TC-PSCFG-1.1 * PSCFG-1.1 * Added auto generated files * Added LC-1.2 * Auto generated files after rebase Co-authored-by: manjunath-grl <[email protected]>
- Loading branch information
1 parent
fb89b1b
commit a155e8f
Showing
9 changed files
with
1,828 additions
and
145 deletions.
There are no files selected for viewing
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
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
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,105 @@ | ||
# 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: 106.3. [TC-DL-1.3] Verification for Unlock Door command [DUT-Server] | ||
|
||
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 PIN credential and lock/unlock user" | ||
command: "SetCredential" | ||
timedInteractionTimeoutMs: 10000 | ||
arguments: | ||
values: | ||
- name: "operationType" | ||
value: 0 | ||
- name: "credential" | ||
value: { CredentialType: 1, CredentialIndex: 1 } | ||
- name: "credentialData" | ||
value: "123456" | ||
- name: "userIndex" | ||
value: null | ||
- name: "userStatus" | ||
value: null | ||
- name: "userType" | ||
value: null | ||
response: | ||
values: | ||
- name: "status" | ||
value: 0 | ||
- name: "userIndex" | ||
value: 1 | ||
- name: "nextCredentialIndex" | ||
value: 2 | ||
|
||
- label: "Precondition: Door is in locked state" | ||
command: "LockDoor" | ||
timedInteractionTimeoutMs: 10000 | ||
arguments: | ||
values: | ||
- name: "PINCode" | ||
value: "123456" | ||
|
||
- label: "TH writes AutoRelockTime attribute value as 10 seconds on the DUT" | ||
command: "writeAttribute" | ||
attribute: "AutoRelockTime" | ||
arguments: | ||
value: 10 | ||
|
||
- label: "TH sends the unlock Door command to the DUT with valid PINCode" | ||
command: "UnlockDoor" | ||
timedInteractionTimeoutMs: 10000 | ||
arguments: | ||
values: | ||
- name: "PINCode" | ||
value: "123456" | ||
|
||
- label: "TH reads AutoRelockTime attribute from DUT" | ||
command: "readAttribute" | ||
attribute: "AutoRelockTime" | ||
response: | ||
value: 10 | ||
|
||
- label: "Wait 10000ms" | ||
cluster: "DelayCommands" | ||
command: "WaitForMs" | ||
arguments: | ||
values: | ||
- name: "ms" | ||
value: 10000 | ||
|
||
- label: "TH reads LockState attriute" | ||
command: "readAttribute" | ||
attribute: "LockState" | ||
response: | ||
value: 1 | ||
|
||
- label: "Clean the created credential" | ||
command: "ClearCredential" | ||
timedInteractionTimeoutMs: 10000 | ||
arguments: | ||
values: | ||
- name: "credential" | ||
value: { CredentialType: 1, CredentialIndex: 1 } |
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,39 @@ | ||
# 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: | ||
94.4. [TC-LC-1.4]User Label cluster constraint_error verification [DUT - | ||
Commissionee] | ||
|
||
config: | ||
nodeId: 0x12344321 | ||
cluster: "User Label" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: "Wait for the commissioned device to be retrieved" | ||
cluster: "DelayCommands" | ||
command: "WaitForCommissionee" | ||
arguments: | ||
values: | ||
- name: "nodeId" | ||
value: nodeId | ||
|
||
- label: "TH1 reads LabelList attribute from the DUT" | ||
command: "readAttribute" | ||
attribute: "label list" | ||
response: | ||
constraints: | ||
- type: list | ||
- minLength: 3 |
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.