forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_TC_BIND_2_2.yaml
119 lines (99 loc) · 3.78 KB
/
Test_TC_BIND_2_2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
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