Skip to content

Commit

Permalink
Test added Apr 28 (#17837)
Browse files Browse the repository at this point in the history
* Added MF and LC tests
TC-MF-1.29
TC-MF-30
Modified scripts
TC-LC-2.2

* Added auto generated files

* Modified tests

* Auto generated files

* Modified MF and LC tests

* Auto generated files
  • Loading branch information
manjunath-grl authored and pull[bot] committed Jul 5, 2022
1 parent 845a750 commit 1294928
Show file tree
Hide file tree
Showing 8 changed files with 977 additions and 235 deletions.
57 changes: 0 additions & 57 deletions src/app/tests/suites/certification/Test_TC_LC_1_1.yaml

This file was deleted.

89 changes: 51 additions & 38 deletions src/app/tests/suites/certification/Test_TC_MF_1_27.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,56 +11,69 @@
# 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.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name:
22.1.27. [TC-MF-1.27] Open commissioning window - durations max and max+1
[BCM] [DUT - Commissioner]
22.1.27. [TC-MF-1.27] Open commissioning window - durations min and min-1
[BCM] [DUT - Commissionee]

config:
nodeId: 0x12344321
cluster: "Basic"
timeout: 330
endpoint: 0

tests:
- label: "Reset DUT_CR to factory defaults"
verification: |
- label: "Factory Reset the DUT_CE"
cluster: "SystemCommands"
command: "FactoryReset"

disabled: true
- label: "TH_CR1 starts a commissioning process with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "DUT_CR starts a commissioning process with TH_CE using BCM"
verification: |
1. Provision the device using your DUT controller(use above instructions) ,
disabled: true
- label: "TH_CR1 opens a commissioning window on DUT_CE"
cluster: "AdministratorCommissioning"
command: "OpenBasicCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 180

- label:
"DUT_CR opens a commissioning window on TH_CE with a value of 15
minutes"
verification: |
On your DUT controller, open commissioning window using BCM,
Below is an example when using chip tool as controller
./chip-tool administratorcommissioning open-basic-commissioning-window 900 1 0
disabled: true

- label: "Wait for commissioning Window to Timeout"
verification: |
Wait for commissioning Window to Timeout
disabled: true
- label: "Wait for commissioning Window to 301 seconds"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 181000

- label:
"DUT_CR opens a commissioning window on TH_CE with a value of 901
seconds"
verification: |
On your DUT controller, open commissioning window using BCM,
Below is an example when using chip tool as controller
"TH_CR1 reads the window status to verify the DUT_CE window is closed"
cluster: "AdministratorCommissioning"
command: "readAttribute"
attribute: "WindowStatus"
response:
value: 0

./chip-tool administratorcommissioning open-basic-commissioning-window 901 1 0
disabled: true
- label: "TH_CR1 opens a commissioning window on DUT_CE"
cluster: "AdministratorCommissioning"
command: "OpenBasicCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 179
response:
error: INVALID_COMMAND

- label: "Wait for commissioning Window to Timeout"
verification: |
Wait for commissioning Window to Timeout
disabled: true
- label:
"TH_CR1 reads the window status to verify the DUT_CE window is closed"
cluster: "AdministratorCommissioning"
command: "readAttribute"
attribute: "WindowStatus"
response:
value: 0
105 changes: 67 additions & 38 deletions src/app/tests/suites/certification/Test_TC_MF_1_28.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,56 +11,85 @@
# 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.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name:
22.1.28. [TC-MF-1.28] Open commissioning window - durations max and max+1
[ECM] [DUT - Commissioner]
22.1.30. [TC-MF-1.30] Open commissioning window - normal operation and
closing [ECM] [DUT - Commissionee]

config:
nodeId: 0x12344321
cluster: "Basic"
timeout: 330
endpoint: 0

tests:
- label: "Reset DUT_CR to factory defaults"
verification: |
- label: "Factory Reset the DUT_CE"
cluster: "SystemCommands"
command: "FactoryReset"

disabled: true
- label: "TH_CR1 starts a commissioning process with DUT_CE"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "DUT_CR starts a commissioning process with TH_CE using ECM"
verification: |
1. Provision the device using your DUT controller(use above instructions) ,
disabled: true
- label: "TH_CR1 opens a commissioning window on DUT_CE"
cluster: "AdministratorCommissioning"
command: "OpenCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 180
- name: "PAKEVerifier"
value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a\xa4\xf9\xce\xa7\x0d\x73\x8e\x4c"
- name: "discriminator"
value: 3840
- name: "iterations"
value: 1000
- name: "salt"
value: "SPAKE2P Key Salt"

- label:
"DUT_CR opens a commissioning window on TH_CE with a value of 15
minutes"
verification: |
On your DUT controller, open commissioning window using ECM
Below is the example when using chip tool as controller
./chip-tool pairing open-commissioning-window 1 1 900 1000 3840
disabled: true

- label: "Wait for commissioning Window to Timeout"
verification: |
Wait for commissioning Window to Timeout
disabled: true
- label: "Wait for commissioning Window to 301 seconds"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 181000

- label:
"DUT_CR opens a commissioning window on TH_CE with a value of 901
seconds"
verification: |
On your DUT controller, open commissioning window using ECM
Below is the example when using chip tool as controller
"TH_CR1 reads the window status to verify the DUT_CE window is closed"
cluster: "AdministratorCommissioning"
command: "readAttribute"
attribute: "WindowStatus"
response:
value: 0

./chip-tool pairing open-commissioning-window 1 1 901 1000 3840
disabled: true
- label: "TH_CR1 opens a commissioning window on DUT_CE"
cluster: "AdministratorCommissioning"
command: "OpenCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 179
- name: "PAKEVerifier"
value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a\xa4\xf9\xce\xa7\x0d\x73\x8e\x4c"
- name: "discriminator"
value: 3840
- name: "iterations"
value: 1000
- name: "salt"
value: "SPAKE2P Key Salt"
response:
error: INVALID_COMMAND

- label: "Wait for commissioning Window to Timeout"
verification: |
Wait for commissioning Window to Timeout
disabled: true
- label:
"TH_CR1 reads the window status to verify the DUT_CE window is closed"
cluster: "AdministratorCommissioning"
command: "readAttribute"
attribute: "WindowStatus"
response:
value: 0
107 changes: 107 additions & 0 deletions src/app/tests/suites/certification/Test_TC_ULABEL_1_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# 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: 92.1. [TC-ULABEL-1.1] Global Attributes [DUT-server]

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: "Read the global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1
constraints:
type: uint16

#Issue 17807
- label: "Read the optional global attribute: FeatureMap"
verification: |
./chip-tool fixedlabel read feature-map 1 0
[1651124089.644987][2374:2379] CHIP:TOO: Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
[1651124089.645078][2374:2379] CHIP:EM: Sending Standalone Ack for MessageCounter:4887314 on exchange 28800i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

#Issue 17807
- label: "Read the global attribute: AttributeList"
verification: |
./chip-tool fixedlabel read attribute-list 1 0
[1651124128.610488][2381:2386] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0040 Attribute 0x0000_FFFB DataVersion: 3688229931
[1651124128.610670][2381:2386] CHIP:TOO: AttributeList: 5 entries
[1651124128.610719][2381:2386] CHIP:TOO: [1]: 0
[1651124128.610758][2381:2386] CHIP:TOO: [2]: 65528
[1651124128.610794][2381:2386] CHIP:TOO: [3]: 65529
[1651124128.610831][2381:2386] CHIP:TOO: [4]: 65531
[1651124128.610867][2381:2386] CHIP:TOO: [5]: 65533
[1651124128.611068][2381:2386] CHIP:EM: Sending Standalone Ack for MessageCounter:12258956 on exchange 48899i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

#issue #15011 disabled steps below Global attributes missing from YAML framework
- label:
"Read EventList attribute from the DUT and Verify that the DUT
response provides a list of supported events."
verification: |
Not implemented in chip-tool
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

- label: "Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list
Loading

0 comments on commit 1294928

Please sign in to comment.