-
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.
- Loading branch information
1 parent
782cc93
commit 4f595e4
Showing
69 changed files
with
6,424 additions
and
5,192 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
119 changes: 119 additions & 0 deletions
119
src/app/tests/suites/certification/Test_TC_BIND_2_2.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,119 @@ | ||
# 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. | ||
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default | ||
|
||
name: | ||
117.2.2. [TC-BIND-2.2] Binding Cluster Attributes-DUT handles its Groups | ||
settings [DUT-Controller] | ||
|
||
config: | ||
nodeId: 0x12344321 | ||
cluster: "Basic" | ||
endpoint: 0 | ||
|
||
tests: | ||
- label: "Factory Reset DUT" | ||
verification: | | ||
disabled: true | ||
|
||
- label: "Commission DUT to TH1s fabric" | ||
verification: | | ||
disabled: true | ||
|
||
- label: "TH1 enables DUT as Controller" | ||
verification: | | ||
disabled: true | ||
|
||
- label: "Commission TH2 to TH1s fabric (Node ID = 2)" | ||
verification: | | ||
disabled: true | ||
|
||
- label: | ||
"DUT generates fabric-unique GroupID, GroupName, random key, EpochKey0 | ||
and GroupKeySetID." | ||
verification: | | ||
./chip-tool groupkeymanagement key-set-read 42 1 0 | ||
disabled: true | ||
|
||
- label: | ||
"DUT sends KeySetWrite command to GroupKeyManagement cluster to TH2 on | ||
Endpoint 0." | ||
PICS: GRPKEY.C.C00.Tx | ||
verification: | | ||
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 42, | ||
"groupKeySecurityPolicy": 0, "epochKey0": | ||
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1": | ||
"d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2": | ||
"d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002 }' 1 0 | ||
disabled: true | ||
|
||
- label: | ||
"DUT sends AddGroup( Group Name and Group-ID) Command to TH2 on | ||
Endpoint 1." | ||
PICS: G.C.C00.Tx | ||
verification: | | ||
./chip-tool groups add-group 0x0001 grp1 1 1 | ||
disabled: true | ||
|
||
- label: | ||
"DUT binds GroupId with GroupKeySetID in the GroupKeyMap attribute | ||
list on GroupKeyManagement cluster to TH2 on Endpoint 0" | ||
PICS: GRPKEY.C.A0000 | ||
verification: | | ||
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]' 1 0 | ||
disabled: true | ||
|
||
- label: | ||
"TH1 writes Binding entry into DUT with Entry 1: Group = The Group ID | ||
in the AddGroup command sent from DUT to TH2" | ||
verification: | | ||
./chip-tool binding write binding '[{"Group" : 0x0001 }]' 1 0 | ||
disabled: true | ||
|
||
- label: | ||
"DUT is triggered to send Multicast message On command to its binding | ||
entries" | ||
PICS: OO.C.C01.Tx | ||
verification: | | ||
./chip-tool onoff on 0x0001 1 | ||
disabled: true | ||
|
||
- label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" | ||
PICS: OO.C.C01.Tx | ||
verification: | | ||
./chip-tool onoff read on-off 1 1 | ||
disabled: true | ||
|
||
- label: "TH1 removes all the binding entries from DUT" | ||
verification: | | ||
./chip-tool binding write binding [] 1 0 | ||
disabled: true | ||
|
||
- label: | ||
"DUT is triggered to send Multicast message off command to its binding | ||
entries" | ||
PICS: OO.C.C00.Tx | ||
verification: | | ||
./chip-tool onoff on 0x0001 1 | ||
disabled: true | ||
|
||
- label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" | ||
PICS: OO.C.C01.Tx | ||
verification: | | ||
./chip-tool onoff read on-off 1 1 | ||
disabled: true |
121 changes: 121 additions & 0 deletions
121
src/app/tests/suites/certification/Test_TC_BIND_2_3.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,121 @@ | ||
# 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. | ||
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default | ||
|
||
name: | ||
117.2.3. [TC-BIND-2.3] Binding Cluster Attributes-TH1 enables DUT to handle | ||
its Group settings [DUT-Controller] | ||
|
||
config: | ||
nodeId: 0x12344321 | ||
cluster: "Basic" | ||
endpoint: 0 | ||
|
||
tests: | ||
- label: "Factory Reset DUT" | ||
verification: | | ||
disabled: true | ||
|
||
- label: "Commission DUT to TH1s fabric" | ||
verification: | | ||
disabled: true | ||
|
||
- label: "TH1 enables DUT as Controller" | ||
verification: | | ||
disabled: true | ||
|
||
- label: "Commission TH2 to TH1s fabric (Node ID = 2)" | ||
verification: | | ||
disabled: true | ||
|
||
- label: | ||
"TH1 generates fabric-unique GroupID, GroupName, random key, EpochKey0 | ||
and GroupKeySetID." | ||
verification: | | ||
As TH generates it is not required to verify | ||
disabled: true | ||
|
||
- label: | ||
"TH1 sends KeySetWrite command to GroupKeyManagement cluster to TH2 on | ||
Endpoint 0." | ||
verification: | | ||
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 42, | ||
"groupKeySecurityPolicy": 0, "epochKey0": | ||
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1": | ||
"d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2": | ||
"d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002 }' 1 0 | ||
disabled: true | ||
|
||
- label: | ||
"TH1 sends AddGroup( Group Name and Group-ID) Command to TH2 on | ||
Endpoint 1." | ||
verification: | | ||
./chip-tool groups add-group 0x0001 grp1 1 1 | ||
disabled: true | ||
|
||
- label: | ||
"TH1 binds GroupId with GroupKeySetID in the GroupKeyMap attribute | ||
list on GroupKeyManagement cluster to TH2 on Endpoint 0" | ||
verification: | | ||
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]' 1 0 | ||
disabled: true | ||
|
||
- label: | ||
"TH1 writes Binding entry into DUT with Entry 1: Group = The Group ID | ||
in the AddGroup command sent from TH1 to TH2" | ||
verification: | | ||
./chip-tool binding write binding '[{"Group" : 0x0001 }]' 1 0 | ||
disabled: true | ||
|
||
- label: "TH1 sets up group settings on DUT" | ||
verification: | | ||
disabled: true | ||
|
||
- label: | ||
"DUT is triggered to send Multicast message On command to its binding | ||
entries" | ||
PICS: OO.C.C01.Tx | ||
verification: | | ||
./chip-tool onoff on 0x0001 1 | ||
disabled: true | ||
|
||
- label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" | ||
PICS: OO.C.C01.Tx | ||
verification: | | ||
./chip-tool onoff read on-off 1 1 | ||
disabled: true | ||
|
||
- label: "TH1 removes all the binding entries from DUT" | ||
verification: | | ||
./chip-tool binding write binding [] 1 0 | ||
disabled: true | ||
|
||
- label: | ||
"DUT is triggered to send Multicast message off command to its binding | ||
entries" | ||
PICS: OO.C.C00.Tx | ||
verification: | | ||
./chip-tool onoff on 0x0001 1 | ||
disabled: true | ||
|
||
- label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" | ||
PICS: OO.C.C01.Tx | ||
verification: | | ||
./chip-tool onoff read on-off 1 1 | ||
disabled: true |
Oops, something went wrong.