Skip to content

Commit

Permalink
Added PICS condition (#20320)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowsisoundhar12 authored Jul 7, 2022
1 parent 782cc93 commit 4f595e4
Show file tree
Hide file tree
Showing 69 changed files with 6,424 additions and 5,192 deletions.
416 changes: 400 additions & 16 deletions src/app/tests/suites/certification/PICS.yaml

Large diffs are not rendered by default.

101 changes: 26 additions & 75 deletions src/app/tests/suites/certification/Test_TC_BIND_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 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.1. [TC-BIND-2.1] Binding Cluster Attributes [DUT-Controller]
name: 117.2.1. [TC-BIND-2.1] Binding Cluster Attributes-Node [DUT-Controller]

config:
nodeId: 0x12344321
Expand All @@ -26,115 +26,66 @@ tests:
disabled: true

- label:
"TH1 writes Binding cluster entries into DUT as per precondition TH1
enables DUT as Controller"
- label: "Commission DUT to TH1s fabric"
verification: |
./chip-tool binding write binding '[{"node" : 1 , "cluster" : "0x0006" , "endpoint" : 1 }, { "group" : "0x0001" }]' 1 0
[1652941260.571580][5157:5162] CHIP:DMG: StatusIB =
[1652941260.571625][5157:5162] CHIP:DMG: {
[1652941260.571670][5157:5162] CHIP:DMG: status = 0x00 (SUCCESS),
[1652941260.571720][5157:5162] CHIP:DMG: },
disabled: true

- label: "DUT and TH2 are commissioned"
- label: "Commission TH2 to TH1s fabric (Node ID = 2)"
verification: |
disabled: true

- label: "TH1 reads the Binding entries from DUT"
- label: "Commission TH3 to TH1s fabric (Node ID = 3)"
verification: |
./chip-tool binding read binding 1 0
[1653895089.593475][5416:5421] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001E Attribute 0x0000_0000 DataVersion: 3570434286
[1653895089.593580][5416:5421] CHIP:TOO: Binding: 2 entries
[1653895089.593781][5416:5421] CHIP:TOO: [1]: {
[1653895089.593839][5416:5421] CHIP:TOO: Node: 1
[1653895089.593908][5416:5421] CHIP:TOO: Endpoint: 1
[1653895089.593954][5416:5421] CHIP:TOO: Cluster: 6
[1653895089.593987][5416:5421] CHIP:TOO: FabricIndex: 1
[1653895089.594019][5416:5421] CHIP:TOO: }
[1653895089.594073][5416:5421] CHIP:TOO: [2]: {
[1653895089.594108][5416:5421] CHIP:TOO: Group: 1
[1653895089.594152][5416:5421] CHIP:TOO: FabricIndex: 1
[1653895089.594183][5416:5421] CHIP:TOO: }
disabled: true

- label:
"If Node Field is readable, DUT sends On command for the Node and
Endpoint1"
"TH1 writes Binding entries into DUT on the endpoint with the On/Off
client with Entry 1: Node = 2 Cluster = 0x0006(onoff) Endpoint = 1
Entry 2: Node = 3 Cluster = 0x0006(onoff) Endpoint = 2 Note: Node 2
corresponds to TH2s Node ID Node 3 corresponds to TH3s Node ID"
verification: |
./chip-tool onoff on 1 1
[1653045100.385974][2688:2693] CHIP:DMG: StatusIB =
[1653045100.386048][2688:2693] CHIP:DMG: {
[1653045100.386125][2688:2693] CHIP:DMG: status = 0x00 (SUCCESS),
[1653045100.386200][2688:2693] CHIP:DMG: },
disabled: true

- label: "DUT reads OnOff attribute on the respective Endpoint1"
- label: "TH1 enables DUT as Controller"
verification: |
./chip-tool onoff read on-off 1 1
[1653045143.391779][2698:2703] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 4174089266
[1653045143.393401][2698:2703] CHIP:TOO: OnOff: TRUE
disabled: true

- label:
"If Group field is readable,DUT sends a multicast On command to Node
and Endpoint1"
- label: "DUT is triggered to send On command to its binding node entries"
PICS: OO.C.C01.Tx
verification: |
./chip-tool onoff on 0x0001 1
[1653045301.383221][2725:2730] CHIP:DMG: StatusIB =
[1653045301.383280][2725:2730] CHIP:DMG: {
[1653045301.383335][2725:2730] CHIP:DMG: status = 0x00 (SUCCESS),
[1653045301.383393][2725:2730] CHIP:DMG: },
TH2 receives On command(Endpoint 1) TH3 receives On command(Endpoint 2)
disabled: true

- label: "DUT reads OnOff attribute on the above Endpoint1"
- label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)"
PICS: OO.C.C01.Tx
verification: |
./chip-tool onoff read on-off 1 1
[1653045340.155414][2734:2739] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 4174089266
[1653045340.155481][2734:2739] CHIP:TOO: OnOff: TRUE
Verify that the value is set to On
disabled: true

- label: "DUT removes entry from the Binding for the Node and EndPoint1"
- label: "TH1 removes second binding entry corresponding to TH3 from DUT"
verification: |
./chip-tool binding write binding [] 1 0
[1653567762.886755][4839:4844] CHIP:DMG: StatusIB =
[1653567762.886829][4839:4844] CHIP:DMG: {
[1653567762.886888][4839:4844] CHIP:DMG: status = 0x00 (SUCCESS),
[1653567762.886966][4839:4844] CHIP:DMG: },
disabled: true

- label:
"If Node Field is readable, DUT sends On command for the above Node
and Endpoint 1"
- label: "DUT is triggered to send off command to its binding entries"
PICS: OO.C.C00.Tx
verification: |
./chip-tool onoff on 1 1
[1653567890.077539][4867:4872] CHIP:DMG: StatusIB =
[1653567890.077584][4867:4872] CHIP:DMG: {
[1653567890.077626][4867:4872] CHIP:DMG: status = 0x00 (SUCCESS),
[1653567890.077670][4867:4872] CHIP:DMG: },
TH2 receives off command (Endpoint 1) TH3 does not receive off command (Endpoint 2)
disabled: true

- label: "Read SupportedFabrics from the DUT."
- label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)"
PICS: OO.C.C00.Tx
verification: |
./chip-tool operationalcredentials read supported-fabrics 1 0
[1653045735.101037][2767:2772] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0002 DataVersion: 38458521
[1653045735.101214][2767:2772] CHIP:TOO: SupportedFabrics: 16
Verify that the value is set to Off
disabled: true

- label:
"TH1 writes Binding entries into DUT for all the clusters that support
Binding Run TC-BC-1.1 to make sure all mandatory attributes/commands
are implemented for all the binding clusters"
- label: "TH1 reads OnOff attribute from TH3 (Endpoint 2)"
PICS: OO.C.C01.Tx
verification: |
Verify that the value is set to On
disabled: true
119 changes: 119 additions & 0 deletions src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml
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 src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml
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
Loading

0 comments on commit 4f595e4

Please sign in to comment.