blob: 8225c69c9bbd1ad81c5143296935e02a06d441fd [file] [log] [blame]
# 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:
125.2.2. [TC-G-2.2] Commands - AddGroup, ViewGroup, RemoveGroup,
RemoveAllGroups [DUT-Server]
PICS:
- G.S
config:
nodeId: 0x12344321
cluster: "Basic Information"
endpoint: 0
tests:
- label: "Precondition"
verification: |
TH is commissioned with DUT
disabled: true
- label:
"Precondition: TH reads the MaxGroupsPerFabric from Group key
Management Cluster and saves it as maxgroups"
verification: |
./chip-tool groupkeymanagement read max-groups-per-fabric 1 0
Verify the "MaxGroupsPerFabric value" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1683797307.084182][38841:38843] CHIP:DMG: }
[1683797307.084220][38841:38843] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_0002 DataVersion: 366443848
[1683797307.084237][38841:38843] CHIP:TOO: MaxGroupsPerFabric: 12
disabled: true
- label: |
Precondition: If maxgroups>1, proceed with the following steps,
TH generates fabric-unique GroupID, GroupName, random key, EpochKey0
and GroupKeySetID.
TH generates an EpochKey and saves as epoch_key_set1_epoch0
TH sends a KeySetWriteCommand to the Group Key Management cluster with
the following fields set in the GroupKeySet struct:
GroupKeySetId is 1
EpochKey0 is epoch_key_set0_epoch0
GroupKeySecurityPolicy = TrustFirst (1)
GroupKeyMulticastPolicy = PerGroupID (0)
EpochStartTime0 = 0
TH binds GroupId(0x0001 to (maxgroups+1)) with GroupKeySetID in the
GroupKeyMap attribute list on GroupKeyManagement cluster with the
values provided in the above steps
verification: |
Execute the following command in TH to generate the pre-condition to execute this test case:
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 1,
"groupKeySecurityPolicy": 1, "epochKey0":
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1":
"d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2":
"d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002 }' 1 0
Verify the "status is success" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1658316948.574526][4039:4044] CHIP:DMG: StatusIB =
[1658316948.574561][4039:4044] CHIP:DMG: {
[1658316948.574597][4039:4044] CHIP:DMG: status = 0x00 (SUCCESS),
[1658316948.574632][4039:4044] CHIP:DMG: },
Before adding the Groups(0x0001 to Maxgroup) execute below command to bind the GroupId with GroupKeySetId .
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 1, "fabricIndex": 1},{"groupId":2, "groupKeySetID": 1, "fabricIndex": 1},{"groupId": 3, "groupKeySetID": 1, "fabricIndex": 1},{"groupId":4, "groupKeySetID": 1, "fabricIndex": 1},{"groupId": 5, "groupKeySetID": 1, "fabricIndex": 1},{"groupId":6, "groupKeySetID": 1, "fabricIndex": 1},{"groupId": 7, "groupKeySetID": 1, "fabricIndex": 1},{"groupId":8, "groupKeySetID": 1, "fabricIndex": 1},{"groupId": 9, "groupKeySetID": 1, "fabricIndex": 1},{"groupId":10, "groupKeySetID": 1, "fabricIndex": 1},{"groupId": 11, "groupKeySetID": 1, "fabricIndex": 1},{"groupId":12, "groupKeySetID": 1, "fabricIndex": 1} ]' 1 0
Verify the "status is success" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1683797474.814392][38909:38911] CHIP:DMG: WriteResponseMessage =
[1683797474.814395][38909:38911] CHIP:DMG: {
[1683797474.814398][38909:38911] CHIP:DMG: AttributeStatusIBs =
[1683797474.814403][38909:38911] CHIP:DMG: [
[1683797474.814405][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.814410][38909:38911] CHIP:DMG: {
[1683797474.814414][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.814419][38909:38911] CHIP:DMG: {
[1683797474.814424][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.814429][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.814435][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.814441][38909:38911] CHIP:DMG: }
[1683797474.814447][38909:38911] CHIP:DMG:
[1683797474.814451][38909:38911] CHIP:DMG: StatusIB =
[1683797474.814456][38909:38911] CHIP:DMG: {
[1683797474.814466][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.814471][38909:38911] CHIP:DMG: },
[1683797474.814476][38909:38911] CHIP:DMG:
[1683797474.814480][38909:38911] CHIP:DMG: },
[1683797474.814489][38909:38911] CHIP:DMG:
[1683797474.814493][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.814498][38909:38911] CHIP:DMG: {
[1683797474.814501][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.814506][38909:38911] CHIP:DMG: {
[1683797474.814510][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.814515][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.814520][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.814527][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.814530][38909:38911] CHIP:DMG: }
[1683797474.814541][38909:38911] CHIP:DMG:
[1683797474.814546][38909:38911] CHIP:DMG: StatusIB =
[1683797474.814551][38909:38911] CHIP:DMG: {
[1683797474.814555][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.814560][38909:38911] CHIP:DMG: },
[1683797474.814564][38909:38911] CHIP:DMG:
[1683797474.814567][38909:38911] CHIP:DMG: },
[1683797474.814576][38909:38911] CHIP:DMG:
[1683797474.814579][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.814583][38909:38911] CHIP:DMG: {
[1683797474.814586][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.814591][38909:38911] CHIP:DMG: {
[1683797474.814595][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.814599][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.814604][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.814609][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.814615][38909:38911] CHIP:DMG: }
[1683797474.814622][38909:38911] CHIP:DMG:
[1683797474.814626][38909:38911] CHIP:DMG: StatusIB =
[1683797474.814630][38909:38911] CHIP:DMG: {
[1683797474.814634][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.814639][38909:38911] CHIP:DMG: },
[1683797474.814644][38909:38911] CHIP:DMG:
[1683797474.814647][38909:38911] CHIP:DMG: },
[1683797474.814657][38909:38911] CHIP:DMG:
[1683797474.814660][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.814665][38909:38911] CHIP:DMG: {
[1683797474.814668][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.814675][38909:38911] CHIP:DMG: {
[1683797474.814680][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.814683][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.814688][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.814692][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.814696][38909:38911] CHIP:DMG: }
[1683797474.814702][38909:38911] CHIP:DMG:
[1683797474.814706][38909:38911] CHIP:DMG: StatusIB =
[1683797474.814710][38909:38911] CHIP:DMG: {
[1683797474.814715][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.814720][38909:38911] CHIP:DMG: },
[1683797474.814724][38909:38911] CHIP:DMG:
[1683797474.814728][38909:38911] CHIP:DMG: },
[1683797474.814737][38909:38911] CHIP:DMG:
[1683797474.814741][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.814745][38909:38911] CHIP:DMG: {
[1683797474.814748][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.814752][38909:38911] CHIP:DMG: {
[1683797474.814757][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.814761][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.814767][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.814771][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.814776][38909:38911] CHIP:DMG: }
[1683797474.814782][38909:38911] CHIP:DMG:
[1683797474.814786][38909:38911] CHIP:DMG: StatusIB =
[1683797474.814791][38909:38911] CHIP:DMG: {
[1683797474.814795][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.814799][38909:38911] CHIP:DMG: },
[1683797474.814803][38909:38911] CHIP:DMG:
[1683797474.814808][38909:38911] CHIP:DMG: },
[1683797474.814817][38909:38911] CHIP:DMG:
[1683797474.814821][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.814825][38909:38911] CHIP:DMG: {
[1683797474.814828][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.814835][38909:38911] CHIP:DMG: {
[1683797474.814839][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.814844][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.814868][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.814872][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.814876][38909:38911] CHIP:DMG: }
[1683797474.814882][38909:38911] CHIP:DMG:
[1683797474.814886][38909:38911] CHIP:DMG: StatusIB =
[1683797474.814892][38909:38911] CHIP:DMG: {
[1683797474.814896][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.814901][38909:38911] CHIP:DMG: },
[1683797474.814906][38909:38911] CHIP:DMG:
[1683797474.814910][38909:38911] CHIP:DMG: },
[1683797474.814919][38909:38911] CHIP:DMG:
[1683797474.814922][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.814927][38909:38911] CHIP:DMG: {
[1683797474.814931][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.814935][38909:38911] CHIP:DMG: {
[1683797474.814939][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.814944][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.814950][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.814954][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.814958][38909:38911] CHIP:DMG: }
[1683797474.814965][38909:38911] CHIP:DMG:
[1683797474.814969][38909:38911] CHIP:DMG: StatusIB =
[1683797474.814973][38909:38911] CHIP:DMG: {
[1683797474.814978][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.814982][38909:38911] CHIP:DMG: },
[1683797474.814987][38909:38911] CHIP:DMG:
[1683797474.814991][38909:38911] CHIP:DMG: },
[1683797474.815000][38909:38911] CHIP:DMG:
[1683797474.815003][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.815007][38909:38911] CHIP:DMG: {
[1683797474.815011][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.815015][38909:38911] CHIP:DMG: {
[1683797474.815019][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.815024][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.815029][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.815033][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.815038][38909:38911] CHIP:DMG: }
[1683797474.815045][38909:38911] CHIP:DMG:
[1683797474.815048][38909:38911] CHIP:DMG: StatusIB =
[1683797474.815054][38909:38911] CHIP:DMG: {
[1683797474.815058][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.815062][38909:38911] CHIP:DMG: },
[1683797474.815067][38909:38911] CHIP:DMG:
[1683797474.815071][38909:38911] CHIP:DMG: },
[1683797474.815080][38909:38911] CHIP:DMG:
[1683797474.815084][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.815088][38909:38911] CHIP:DMG: {
[1683797474.815091][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.815096][38909:38911] CHIP:DMG: {
[1683797474.815100][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.815107][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.815112][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.815117][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.815121][38909:38911] CHIP:DMG: }
[1683797474.815127][38909:38911] CHIP:DMG:
[1683797474.815131][38909:38911] CHIP:DMG: StatusIB =
[1683797474.815135][38909:38911] CHIP:DMG: {
[1683797474.815139][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.815143][38909:38911] CHIP:DMG: },
[1683797474.815148][38909:38911] CHIP:DMG:
[1683797474.815151][38909:38911] CHIP:DMG: },
[1683797474.815160][38909:38911] CHIP:DMG:
[1683797474.815164][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.815168][38909:38911] CHIP:DMG: {
[1683797474.815171][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.815177][38909:38911] CHIP:DMG: {
[1683797474.815181][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.815186][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.815190][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.815198][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.815202][38909:38911] CHIP:DMG: }
[1683797474.815207][38909:38911] CHIP:DMG:
[1683797474.815211][38909:38911] CHIP:DMG: StatusIB =
[1683797474.815216][38909:38911] CHIP:DMG: {
[1683797474.815220][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.815224][38909:38911] CHIP:DMG: },
[1683797474.815230][38909:38911] CHIP:DMG:
[1683797474.815233][38909:38911] CHIP:DMG: },
[1683797474.815242][38909:38911] CHIP:DMG:
[1683797474.815245][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.815249][38909:38911] CHIP:DMG: {
[1683797474.815252][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.815257][38909:38911] CHIP:DMG: {
[1683797474.815262][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.815266][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.815271][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.815275][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.815278][38909:38911] CHIP:DMG: }
[1683797474.815285][38909:38911] CHIP:DMG:
[1683797474.815289][38909:38911] CHIP:DMG: StatusIB =
[1683797474.815293][38909:38911] CHIP:DMG: {
[1683797474.815297][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.815300][38909:38911] CHIP:DMG: },
[1683797474.815305][38909:38911] CHIP:DMG:
[1683797474.815308][38909:38911] CHIP:DMG: },
[1683797474.815317][38909:38911] CHIP:DMG:
[1683797474.815321][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.815325][38909:38911] CHIP:DMG: {
[1683797474.815329][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.815333][38909:38911] CHIP:DMG: {
[1683797474.815337][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.815342][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.815346][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.815352][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.815356][38909:38911] CHIP:DMG: }
[1683797474.815363][38909:38911] CHIP:DMG:
[1683797474.815366][38909:38911] CHIP:DMG: StatusIB =
[1683797474.815370][38909:38911] CHIP:DMG: {
[1683797474.815375][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.815379][38909:38911] CHIP:DMG: },
[1683797474.815383][38909:38911] CHIP:DMG:
[1683797474.815387][38909:38911] CHIP:DMG: },
[1683797474.815396][38909:38911] CHIP:DMG:
[1683797474.815400][38909:38911] CHIP:DMG: AttributeStatusIB =
[1683797474.815404][38909:38911] CHIP:DMG: {
[1683797474.815407][38909:38911] CHIP:DMG: AttributePathIB =
[1683797474.815411][38909:38911] CHIP:DMG: {
[1683797474.815415][38909:38911] CHIP:DMG: Endpoint = 0x0,
[1683797474.815419][38909:38911] CHIP:DMG: Cluster = 0x3f,
[1683797474.815424][38909:38911] CHIP:DMG: Attribute = 0x0000_0000,
[1683797474.815428][38909:38911] CHIP:DMG: ListIndex = Null,
[1683797474.815432][38909:38911] CHIP:DMG: }
[1683797474.815439][38909:38911] CHIP:DMG:
[1683797474.815443][38909:38911] CHIP:DMG: StatusIB =
[1683797474.815448][38909:38911] CHIP:DMG: {
[1683797474.815452][38909:38911] CHIP:DMG: status = 0x00 (SUCCESS),
[1683797474.815455][38909:38911] CHIP:DMG: },
[1683797474.815460][38909:38911] CHIP:DMG:
[1683797474.815463][38909:38911] CHIP:DMG: },
[1683797474.815469][38909:38911] CHIP:DMG:
[1683797474.815473][38909:38911] CHIP:DMG: ],
[1683797474.815508][38909:38911] CHIP:DMG:
[1683797474.815512][38909:38911] CHIP:DMG: InteractionModelRevision = 1
[1683797474.815515][38909:38911] CHIP:DMG: }
Before adding the Groups(MaxGroup+1) execute below command which is used to check the Resource_Exhausted Condition
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 13, "groupKeySetID": 1, "fabricIndex": 1} ]' 1 0
Verify the "status is success" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1683799348.785746][39651:39653] CHIP:DMG: WriteResponseMessage =
[1683799348.785751][39651:39653] CHIP:DMG: {
[1683799348.785755][39651:39653] CHIP:DMG: AttributeStatusIBs =
[1683799348.785763][39651:39653] CHIP:DMG: [
[1683799348.785767][39651:39653] CHIP:DMG: AttributeStatusIB =
[1683799348.785771][39651:39653] CHIP:DMG: {
[1683799348.785775][39651:39653] CHIP:DMG: AttributePathIB =
[1683799348.785780][39651:39653] CHIP:DMG: {
[1683799348.785785][39651:39653] CHIP:DMG: Endpoint = 0x0,
[1683799348.785789][39651:39653] CHIP:DMG: Cluster = 0x3f,
[1683799348.785794][39651:39653] CHIP:DMG: Attribute = 0x0000_0000,
[1683799348.785798][39651:39653] CHIP:DMG: }
[1683799348.785804][39651:39653] CHIP:DMG:
[1683799348.785811][39651:39653] CHIP:DMG: StatusIB =
[1683799348.785816][39651:39653] CHIP:DMG: {
[1683799348.785821][39651:39653] CHIP:DMG: status = 0x00 (SUCCESS),
[1683799348.785825][39651:39653] CHIP:DMG: },
[1683799348.785831][39651:39653] CHIP:DMG:
[1683799348.785835][39651:39653] CHIP:DMG: },
[1683799348.785844][39651:39653] CHIP:DMG:
[1683799348.785848][39651:39653] CHIP:DMG: AttributeStatusIB =
[1683799348.785852][39651:39653] CHIP:DMG: {
[1683799348.785856][39651:39653] CHIP:DMG: AttributePathIB =
[1683799348.785860][39651:39653] CHIP:DMG: {
[1683799348.785865][39651:39653] CHIP:DMG: Endpoint = 0x0,
[1683799348.785869][39651:39653] CHIP:DMG: Cluster = 0x3f,
[1683799348.785874][39651:39653] CHIP:DMG: Attribute = 0x0000_0000,
[1683799348.785878][39651:39653] CHIP:DMG: ListIndex = Null,
[1683799348.785882][39651:39653] CHIP:DMG: }
[1683799348.785889][39651:39653] CHIP:DMG:
[1683799348.785894][39651:39653] CHIP:DMG: StatusIB =
[1683799348.785898][39651:39653] CHIP:DMG: {
[1683799348.785904][39651:39653] CHIP:DMG: status = 0x00 (SUCCESS),
[1683799348.785909][39651:39653] CHIP:DMG: },
[1683799348.785914][39651:39653] CHIP:DMG:
[1683799348.785918][39651:39653] CHIP:DMG: },
[1683799348.785924][39651:39653] CHIP:DMG:
[1683799348.785927][39651:39653] CHIP:DMG: ],
[1683799348.785936][39651:39653] CHIP:DMG:
[1683799348.785940][39651:39653] CHIP:DMG: InteractionModelRevision = 1
[1683799348.785943][39651:39653] CHIP:DMG: }
disabled: true
- label:
"If maxgroups>0, TH sends AddGroup command to DUT as unicast with the
following fields : GroupID as 0x0001 GroupName as Gp1"
PICS: G.S.C00.Rsp && G.S.C00.Tx
verification: |
./chip-tool groups add-group 0x0001 grp1 1 0
Verify the "status is success" on the TH(Chip-tool) Log and Group ID is in the inclusive range of 0x0001 to 0xffff ,below is the sample log provided for the raspi platform:
[1651218084.427102][2526:2531] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1651218084.427203][2526:2531] CHIP:TOO: AddGroupResponse: {
[1651218084.427241][2526:2531] CHIP:TOO: status: 0
[1651218084.427264][2526:2531] CHIP:TOO: groupId: 1
[1651218084.427314][2526:2531] CHIP:TOO: }
disabled: true
- label:
"If maxgroups > 0, TH reads GroupTable attribute from the
GroupKeyManagement cluster from DUT on PIXIT.G.ENDPOINT"
PICS: GRPKEY.S.A0001
verification: |
./chip-tool groupkeymanagement read group-table 1 0
Verify the "grouptable entries" on the TH(Chip-tool) Log ,GroupId as 0x0001 and below is the sample log provided for the raspi platform:
1674543470.475997][19273:19275] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_0001 DataVersion: 3217277217
[1674543470.476009][19273:19275] CHIP:TOO: GroupTable: 1 entries
[1674543470.476023][19273:19275] CHIP:TOO: [1]: {
[1674543470.476026][19273:19275] CHIP:TOO: GroupId: 1
[1674543470.476029][19273:19275] CHIP:TOO: Endpoints: 1 entries
[1674543470.476033][19273:19275] CHIP:TOO: [1]: 0
[1674543470.476037][19273:19275] CHIP:TOO: GroupName: grp1
[1674543470.476039][19273:19275] CHIP:TOO: FabricIndex: 1
[1674543470.476042][19273:19275] CHIP:TOO: }
disabled: true
- label:
"If maxgroups>1, TH sends AddGroup command to DUT as unicast with the
following fields : GroupID as 0x0002 GroupName as Gp2"
PICS: G.S.C00.Rsp && G.S.C00.Tx
verification: |
./chip-tool groups add-group 0x0002 grp2 1 0
Verify the "status is success" on the TH(Chip-tool) Log and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1653484028.897698][11275:11280] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1653484028.897804][11275:11280] CHIP:TOO: AddGroupResponse: {
[1653484028.897851][11275:11280] CHIP:TOO: status: 0
[1653484028.897884][11275:11280] CHIP:TOO: groupId: 2
[1653484028.897917][11275:11280] CHIP:TOO: }
disabled: true
- label:
"If maxgroups > 1 TH reads GroupTable attribute from the
GroupKeyManagement cluster from DUT on PIXIT.G.ENDPOINT"
PICS: GRPKEY.S.A0001
verification: |
./chip-tool groupkeymanagement read group-table 1 0
Verify the "grouptable entries" on the TH(Chip-tool) Log and GroupId as 0x0002, below is the sample log provided for the raspi platform:
1674543470.993207][19279:19281] CHIP:DMG: }
[1674543470.993358][19279:19281] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_0001 DataVersion: 3217277217
[1674543470.993380][19279:19281] CHIP:TOO: GroupTable: 2 entries
[1674543470.993397][19279:19281] CHIP:TOO: [1]: {
[1674543470.993400][19279:19281] CHIP:TOO: GroupId: 1
[1674543470.993404][19279:19281] CHIP:TOO: Endpoints: 1 entries
[1674543470.993408][19279:19281] CHIP:TOO: [1]: 0
[1674543470.993411][19279:19281] CHIP:TOO: GroupName: grp1
[1674543470.993414][19279:19281] CHIP:TOO: FabricIndex: 1
[1674543470.993417][19279:19281] CHIP:TOO: }
[1674543470.993423][19279:19281] CHIP:TOO: [2]: {
[1674543470.993426][19279:19281] CHIP:TOO: GroupId: 2
[1674543470.993429][19279:19281] CHIP:TOO: Endpoints: 1 entries
[1674543470.993432][19279:19281] CHIP:TOO: [1]: 0
[1674543470.993435][19279:19281] CHIP:TOO: GroupName: grp2
[1674543470.993437][19279:19281] CHIP:TOO: FabricIndex: 1
[1674543470.993439][19279:19281] CHIP:TOO: }
disabled: true
- label:
"If maxgroups>2, TH sends AddGroup command to DUT (n-2) more times,
starting with GroupID 0x0003 and incrementing by 1 each time."
PICS: G.S.C00.Rsp && G.S.C00.Tx
verification: |
./chip-tool groups add-group 0x0003 grp3 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1653484116.857523][11289:11294] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1653484116.857675][11289:11294] CHIP:TOO: AddGroupResponse: {
[1653484116.857739][11289:11294] CHIP:TOO: status: 0
[1653484116.857787][11289:11294] CHIP:TOO: groupId: 3
[1653484116.857834][11289:11294] CHIP:TOO: }
./chip-tool groups add-group 0x0004 grp4 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1674546345.099915][19986:19988] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0004 Command 0x0000_0000
[1674546345.099956][19986:19988] CHIP:TOO: AddGroupResponse: {
[1674546345.099972][19986:19988] CHIP:TOO: status: 0
[1674546345.099983][19986:19988] CHIP:TOO: groupID: 4
[1674546345.099991][19986:19988] CHIP:TOO: }
./chip-tool groups add-group 0x0005 grp5 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1683797532.820818][38963:38965] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1683797532.820829][38963:38965] CHIP:TOO: AddGroupResponse: {
[1683797532.820834][38963:38965] CHIP:TOO: status: 0
[1683797532.820836][38963:38965] CHIP:TOO: groupID: 5
[1683797532.820839][38963:38965] CHIP:TOO: }
./chip-tool groups add-group 0x0006 grp6 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1683798249.880860][39235:39237] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1683798249.880880][39235:39237] CHIP:TOO: AddGroupResponse: {
[1683798249.880886][39235:39237] CHIP:TOO: status: 0
[1683798249.880889][39235:39237] CHIP:TOO: groupID: 6
[1683798249.880894][39235:39237] CHIP:TOO: }
./chip-tool groups add-group 0x0007 grp7 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1683798272.917114][39258:39260] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1683798272.917127][39258:39260] CHIP:TOO: AddGroupResponse: {
[1683798272.917132][39258:39260] CHIP:TOO: status: 0
[1683798272.917134][39258:39260] CHIP:TOO: groupID: 7
[1683798272.917137][39258:39260] CHIP:TOO: }
./chip-tool groups add-group 0x0008 grp8 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1683798280.635111][39261:39263] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1683798280.635124][39261:39263] CHIP:TOO: AddGroupResponse: {
[1683798280.635129][39261:39263] CHIP:TOO: status: 0
[1683798280.635132][39261:39263] CHIP:TOO: groupID: 8
[1683798280.635134][39261:39263] CHIP:TOO: }
./chip-tool groups add-group 0x0009 grp9 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1683798286.442492][39265:39267] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1683798286.442506][39265:39267] CHIP:TOO: AddGroupResponse: {
[1683798286.442511][39265:39267] CHIP:TOO: status: 0
[1683798286.442515][39265:39267] CHIP:TOO: groupID: 9
[1683798286.442519][39265:39267] CHIP:TOO: }
./chip-tool groups add-group 0x000a grp10 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1683798294.910019][39276:39278] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1683798294.910031][39276:39278] CHIP:TOO: AddGroupResponse: {
[1683798294.910038][39276:39278] CHIP:TOO: status: 0
[1683798294.910041][39276:39278] CHIP:TOO: groupID: 10
[1683798294.910044][39276:39278] CHIP:TOO: }
./chip-tool groups add-group 0x000b grp11 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1683798300.856661][39279:39281] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1683798300.856672][39279:39281] CHIP:TOO: AddGroupResponse: {
[1683798300.856676][39279:39281] CHIP:TOO: status: 0
[1683798300.856679][39279:39281] CHIP:TOO: groupID: 11
[1683798300.856681][39279:39281] CHIP:TOO: }
./chip-tool groups add-group 0x000c grp12 1 0
Verify the "status is success" on the TH(Chip-tool) and Group ID is in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1683798309.207611][39284:39286] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1683798309.207625][39284:39286] CHIP:TOO: AddGroupResponse: {
[1683798309.207631][39284:39286] CHIP:TOO: status: 0
[1683798309.207635][39284:39286] CHIP:TOO: groupID: 12
[1683798309.207639][39284:39286] CHIP:TOO: }
disabled: true
- label:
"If maxgroups>2, TH reads GroupTable attribute from the
GroupKeyManagement cluster from DUT on PIXIT.G.ENDPOINT"
PICS: GRPKEY.S.A0001
verification: |
./chip-tool groupkeymanagement read group-table 1 0
Verify the "grouptable entries" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1683799060.033379][39543:39545] CHIP:DMG: }
[1683799060.033604][39543:39545] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_0001 DataVersion: 366443861
[1683799060.033654][39543:39545] CHIP:TOO: GroupTable: 12 entries
[1683799060.033666][39543:39545] CHIP:TOO: [1]: {
[1683799060.033670][39543:39545] CHIP:TOO: GroupId: 1
[1683799060.033674][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033678][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033682][39543:39545] CHIP:TOO: GroupName: grp1
[1683799060.033685][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033688][39543:39545] CHIP:TOO: }
[1683799060.033693][39543:39545] CHIP:TOO: [2]: {
[1683799060.033696][39543:39545] CHIP:TOO: GroupId: 2
[1683799060.033700][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033704][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033707][39543:39545] CHIP:TOO: GroupName: grp2
[1683799060.033710][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033711][39543:39545] CHIP:TOO: }
[1683799060.033717][39543:39545] CHIP:TOO: [3]: {
[1683799060.033719][39543:39545] CHIP:TOO: GroupId: 3
[1683799060.033722][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033726][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033728][39543:39545] CHIP:TOO: GroupName: grp3
[1683799060.033730][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033733][39543:39545] CHIP:TOO: }
[1683799060.033737][39543:39545] CHIP:TOO: [4]: {
[1683799060.033740][39543:39545] CHIP:TOO: GroupId: 4
[1683799060.033743][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033746][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033749][39543:39545] CHIP:TOO: GroupName: grp4
[1683799060.033752][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033754][39543:39545] CHIP:TOO: }
[1683799060.033759][39543:39545] CHIP:TOO: [5]: {
[1683799060.033762][39543:39545] CHIP:TOO: GroupId: 5
[1683799060.033765][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033769][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033771][39543:39545] CHIP:TOO: GroupName: grp5
[1683799060.033774][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033777][39543:39545] CHIP:TOO: }
[1683799060.033783][39543:39545] CHIP:TOO: [6]: {
[1683799060.033785][39543:39545] CHIP:TOO: GroupId: 6
[1683799060.033788][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033792][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033795][39543:39545] CHIP:TOO: GroupName: grp6
[1683799060.033798][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033801][39543:39545] CHIP:TOO: }
[1683799060.033806][39543:39545] CHIP:TOO: [7]: {
[1683799060.033809][39543:39545] CHIP:TOO: GroupId: 7
[1683799060.033813][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033816][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033819][39543:39545] CHIP:TOO: GroupName: grp7
[1683799060.033822][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033824][39543:39545] CHIP:TOO: }
[1683799060.033830][39543:39545] CHIP:TOO: [8]: {
[1683799060.033832][39543:39545] CHIP:TOO: GroupId: 8
[1683799060.033835][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033839][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033841][39543:39545] CHIP:TOO: GroupName: grp8
[1683799060.033843][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033845][39543:39545] CHIP:TOO: }
[1683799060.033850][39543:39545] CHIP:TOO: [9]: {
[1683799060.033853][39543:39545] CHIP:TOO: GroupId: 9
[1683799060.033855][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033858][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033861][39543:39545] CHIP:TOO: GroupName: grp9
[1683799060.033863][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033866][39543:39545] CHIP:TOO: }
[1683799060.033871][39543:39545] CHIP:TOO: [10]: {
[1683799060.033874][39543:39545] CHIP:TOO: GroupId: 10
[1683799060.033877][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033881][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033884][39543:39545] CHIP:TOO: GroupName: grp10
[1683799060.033886][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033889][39543:39545] CHIP:TOO: }
[1683799060.033894][39543:39545] CHIP:TOO: [11]: {
[1683799060.033897][39543:39545] CHIP:TOO: GroupId: 11
[1683799060.033900][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033903][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033905][39543:39545] CHIP:TOO: GroupName: grp11
[1683799060.033907][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033910][39543:39545] CHIP:TOO: }
[1683799060.033915][39543:39545] CHIP:TOO: [12]: {
[1683799060.033918][39543:39545] CHIP:TOO: GroupId: 12
[1683799060.033922][39543:39545] CHIP:TOO: Endpoints: 1 entries
[1683799060.033925][39543:39545] CHIP:TOO: [1]: 0
[1683799060.033928][39543:39545] CHIP:TOO: GroupName: grp12
[1683799060.033930][39543:39545] CHIP:TOO: FabricIndex: 1
[1683799060.033932][39543:39545] CHIP:TOO: }
disabled: true
- label:
"TH sends AddGroup command to DUT as unicast with the GroupID set to
(maxgroups+1)"
PICS: G.S.C00.Rsp
verification: |
./chip-tool groups add-group 0x000d grp13 1 0
Verify the "status is RESOURCE_EXHAUSTED" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1683799371.472148][39657:39659] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1683799371.472159][39657:39659] CHIP:TOO: AddGroupResponse: {
[1683799371.472163][39657:39659] CHIP:TOO: status: 137
[1683799371.472166][39657:39659] CHIP:TOO: groupID: 13
[1683799371.472170][39657:39659] CHIP:TOO: }
disabled: true
- label:
"TH reads GroupTable attribute from the GroupKeyManagement cluster
from DUT on PIXIT.G.ENDPOINT"
PICS: GRPKEY.S.A0001
verification: |
./chip-tool groupkeymanagement read group-table 1 0
Verify the GroupTable does not include an entry for GroupId (maxgroups+1) on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1683799439.271618][39702:39704] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_0001 DataVersion: 366443863
[1683799439.271671][39702:39704] CHIP:TOO: GroupTable: 12 entries
[1683799439.271688][39702:39704] CHIP:TOO: [1]: {
[1683799439.271692][39702:39704] CHIP:TOO: GroupId: 1
[1683799439.271698][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.271704][39702:39704] CHIP:TOO: [1]: 0
[1683799439.271709][39702:39704] CHIP:TOO: GroupName: grp1
[1683799439.271714][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.271718][39702:39704] CHIP:TOO: }
[1683799439.271727][39702:39704] CHIP:TOO: [2]: {
[1683799439.271732][39702:39704] CHIP:TOO: GroupId: 2
[1683799439.271737][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.271742][39702:39704] CHIP:TOO: [1]: 0
[1683799439.271746][39702:39704] CHIP:TOO: GroupName: grp2
[1683799439.271750][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.271754][39702:39704] CHIP:TOO: }
[1683799439.271762][39702:39704] CHIP:TOO: [3]: {
[1683799439.271765][39702:39704] CHIP:TOO: GroupId: 3
[1683799439.271770][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.271775][39702:39704] CHIP:TOO: [1]: 0
[1683799439.271779][39702:39704] CHIP:TOO: GroupName: grp3
[1683799439.271782][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.271786][39702:39704] CHIP:TOO: }
[1683799439.271794][39702:39704] CHIP:TOO: [4]: {
[1683799439.271798][39702:39704] CHIP:TOO: GroupId: 4
[1683799439.271803][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.271808][39702:39704] CHIP:TOO: [1]: 0
[1683799439.271812][39702:39704] CHIP:TOO: GroupName: grp4
[1683799439.271816][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.271820][39702:39704] CHIP:TOO: }
[1683799439.271827][39702:39704] CHIP:TOO: [5]: {
[1683799439.271831][39702:39704] CHIP:TOO: GroupId: 5
[1683799439.271836][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.271841][39702:39704] CHIP:TOO: [1]: 0
[1683799439.271845][39702:39704] CHIP:TOO: GroupName: grp5
[1683799439.271849][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.271853][39702:39704] CHIP:TOO: }
[1683799439.271861][39702:39704] CHIP:TOO: [6]: {
[1683799439.271865][39702:39704] CHIP:TOO: GroupId: 6
[1683799439.271870][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.271874][39702:39704] CHIP:TOO: [1]: 0
[1683799439.271878][39702:39704] CHIP:TOO: GroupName: grp6
[1683799439.271882][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.271886][39702:39704] CHIP:TOO: }
[1683799439.271893][39702:39704] CHIP:TOO: [7]: {
[1683799439.271897][39702:39704] CHIP:TOO: GroupId: 7
[1683799439.271902][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.271907][39702:39704] CHIP:TOO: [1]: 0
[1683799439.271911][39702:39704] CHIP:TOO: GroupName: grp7
[1683799439.271915][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.271919][39702:39704] CHIP:TOO: }
[1683799439.271927][39702:39704] CHIP:TOO: [8]: {
[1683799439.271930][39702:39704] CHIP:TOO: GroupId: 8
[1683799439.271935][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.271940][39702:39704] CHIP:TOO: [1]: 0
[1683799439.271945][39702:39704] CHIP:TOO: GroupName: grp8
[1683799439.271949][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.271952][39702:39704] CHIP:TOO: }
[1683799439.271960][39702:39704] CHIP:TOO: [9]: {
[1683799439.271964][39702:39704] CHIP:TOO: GroupId: 9
[1683799439.271969][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.271974][39702:39704] CHIP:TOO: [1]: 0
[1683799439.271978][39702:39704] CHIP:TOO: GroupName: grp9
[1683799439.271982][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.271985][39702:39704] CHIP:TOO: }
[1683799439.271993][39702:39704] CHIP:TOO: [10]: {
[1683799439.271997][39702:39704] CHIP:TOO: GroupId: 10
[1683799439.272002][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.272007][39702:39704] CHIP:TOO: [1]: 0
[1683799439.272011][39702:39704] CHIP:TOO: GroupName: grp10
[1683799439.272016][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.272019][39702:39704] CHIP:TOO: }
[1683799439.272026][39702:39704] CHIP:TOO: [11]: {
[1683799439.272030][39702:39704] CHIP:TOO: GroupId: 11
[1683799439.272035][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.272040][39702:39704] CHIP:TOO: [1]: 0
[1683799439.272044][39702:39704] CHIP:TOO: GroupName: grp11
[1683799439.272048][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.272051][39702:39704] CHIP:TOO: }
[1683799439.272059][39702:39704] CHIP:TOO: [12]: {
[1683799439.272063][39702:39704] CHIP:TOO: GroupId: 12
[1683799439.272067][39702:39704] CHIP:TOO: Endpoints: 1 entries
[1683799439.272072][39702:39704] CHIP:TOO: [1]: 0
[1683799439.272076][39702:39704] CHIP:TOO: GroupName: grp12
[1683799439.272080][39702:39704] CHIP:TOO: FabricIndex: 1
[1683799439.272083][39702:39704] CHIP:TOO: }
disabled: true
- label:
"TH sends AddGroup command to DUT as unicast with the following fields
: GroupID as 0x0000 GroupName as Gp6"
PICS: G.S.C00.Rsp && G.S.C00.Tx
verification: |
./chip-tool groups add-group 0x0000 grp6 1 0
Verify the "status is CONSTRAINT_ERROR" on the TH(Chip-tool) Log and GroupID is not in the inclusive range of 0x0001 to 0xffff,below is the sample log provided for the raspi platform:
[1653484439.884144][11341:11346] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0000
[1653484439.884258][11341:11346] CHIP:TOO: AddGroupResponse: {
[1653484439.884310][11341:11346] CHIP:TOO: status: 135
[1653484439.884346][11341:11346] CHIP:TOO: groupId: 0
[1653484439.884383][11341:11346] CHIP:TOO: }
disabled: true
- label:
"TH sends AddGroup command to DUT as unicast with the following fields
: GroupID as 0x0005 GroupName as Gp5"
PICS: G.S.C00.Rsp && G.S.C00.Tx
verification: |
./chip-tool groups add-group 0x0005 grp5 1 0
Verify the "status is UNSUPPORTED_ACCESS" on the TH(Chip-tool) Log and ,below is the sample log provided for the raspi platform:
[1658302176.951047][2747:2752] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0004 Command 0x0000_0000
[1658302176.951103][2747:2752] CHIP:TOO: AddGroupResponse: {
[1658302176.951140][2747:2752] CHIP:TOO: status: 126
[1658302176.951166][2747:2752] CHIP:TOO: groupId: 5
[1658302176.951189][2747:2752] CHIP:TOO: }
disabled: true
- label:
"If maxgroups > 0, TH sends ViewGroup command to DUT as unicast with
the following fields: GroupID as 0x0001"
PICS: G.S.C01.Rsp && G.S.C01.Tx
verification: |
./chip-tool groups view-group 0x0001 1 0
Verify the "status is success" on the TH(Chip-tool) Log and GroupID is in the inclusive range of 0x0001 to 0xffff,below is the sample log provided for the raspi platform:
1653484504.667714][11349:11354] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1653484504.667841][11349:11354] CHIP:TOO: ViewGroupResponse: {
[1653484504.667927][11349:11354] CHIP:TOO: status: 0
[1653484504.667974][11349:11354] CHIP:TOO: groupId: 1
[1653484504.668018][11349:11354] CHIP:TOO: groupName: grp1
[1653484504.668064][11349:11354] CHIP:TOO: }
disabled: true
- label:
"TH sends ViewGroup command to DUT as unicast with the following
fields: GroupID as 0x0000"
PICS: G.S.C01.Rsp && G.S.C01.Tx
verification: |
./chip-tool groups view-group 0x0000 1 0
Verify the "status is CONSTRAINT_ERROR" on the TH(Chip-tool) Log and GroupID is not in the inclusive range of 0x0001 to 0xffff, below is the sample log provided for the raspi platform:
[1653484611.595344][11412:11417] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1653484611.595454][11412:11417] CHIP:TOO: ViewGroupResponse: {
[1653484611.595501][11412:11417] CHIP:TOO: status: 135
[1653484611.595534][11412:11417] CHIP:TOO: groupId: 0
[1653484611.595565][11412:11417] CHIP:TOO: groupName:
[1653484611.595599][11412:11417] CHIP:TOO: }
disabled: true
- label:
"If maxgroups > 0, TH sends RemoveGroup command to DUT as unicast with
the following field : GroupID as 0x0001"
PICS: G.S.C03.Rsp && G.S.C03.Tx
verification: |
./chip-tool groups remove-group 0x0001 1 0
Verify the "status is success" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1653484876.432744][11451:11456] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0003
[1653484876.432915][11451:11456] CHIP:TOO: RemoveGroupResponse: {
[1653484876.432989][11451:11456] CHIP:TOO: status: 0
[1653484876.433044][11451:11456] CHIP:TOO: groupId: 1
[1653484876.433098][11451:11456] CHIP:TOO: }
disabled: true
- label:
"If maxgroups > 0, TH sends ViewGroup command to DUT as unicast with
the following field : GroupID as 0x0001"
PICS: G.S.C01.Rsp && G.S.C01.Tx
verification: |
./chip-tool groups view-group 0x0001 1 0
Verify the "status is NOT_FOUND" on the TH(Chip-tool) Log below is the sample log provided for the raspi platform:
[1653484952.142387][11458:11463] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1653484952.142476][11458:11463] CHIP:TOO: ViewGroupResponse: {
[1653484952.142516][11458:11463] CHIP:TOO: status: 139
[1653484952.142541][11458:11463] CHIP:TOO: groupId: 1
[1653484952.142566][11458:11463] CHIP:TOO: groupName:
[1653484952.142592][11458:11463] CHIP:TOO: }
disabled: true
- label: "TH reads GroupTable attribute from the GroupKeyManagement cluster"
PICS: GRPKEY.S.A0001
verification: |
./chip-tool groupkeymanagement read group-table 1 0
Verify that Grouptable not contains GroupId 0X0001 entry on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1683800704.469297][40300:40302] CHIP:DMG: }
[1683800704.469495][40300:40302] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_0001 DataVersion: 366443863
[1683800704.469940][40300:40302] CHIP:TOO: GroupTable: 11 entries
[1683800704.469966][40300:40302] CHIP:TOO: [1]: {
[1683800704.469973][40300:40302] CHIP:TOO: GroupId: 2
[1683800704.469977][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.469986][40300:40302] CHIP:TOO: [1]: 0
[1683800704.469993][40300:40302] CHIP:TOO: GroupName: grp2
[1683800704.469996][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.469998][40300:40302] CHIP:TOO: }
[1683800704.470004][40300:40302] CHIP:TOO: [2]: {
[1683800704.470007][40300:40302] CHIP:TOO: GroupId: 3
[1683800704.470010][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470013][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470016][40300:40302] CHIP:TOO: GroupName: grp3
[1683800704.470018][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470021][40300:40302] CHIP:TOO: }
[1683800704.470026][40300:40302] CHIP:TOO: [3]: {
[1683800704.470028][40300:40302] CHIP:TOO: GroupId: 4
[1683800704.470031][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470035][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470038][40300:40302] CHIP:TOO: GroupName: grp4
[1683800704.470040][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470042][40300:40302] CHIP:TOO: }
[1683800704.470047][40300:40302] CHIP:TOO: [4]: {
[1683800704.470050][40300:40302] CHIP:TOO: GroupId: 5
[1683800704.470052][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470056][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470058][40300:40302] CHIP:TOO: GroupName: grp5
[1683800704.470061][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470064][40300:40302] CHIP:TOO: }
[1683800704.470069][40300:40302] CHIP:TOO: [5]: {
[1683800704.470071][40300:40302] CHIP:TOO: GroupId: 6
[1683800704.470075][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470078][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470081][40300:40302] CHIP:TOO: GroupName: grp6
[1683800704.470083][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470085][40300:40302] CHIP:TOO: }
[1683800704.470091][40300:40302] CHIP:TOO: [6]: {
[1683800704.470094][40300:40302] CHIP:TOO: GroupId: 7
[1683800704.470097][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470100][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470103][40300:40302] CHIP:TOO: GroupName: grp7
[1683800704.470106][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470108][40300:40302] CHIP:TOO: }
[1683800704.470112][40300:40302] CHIP:TOO: [7]: {
[1683800704.470115][40300:40302] CHIP:TOO: GroupId: 8
[1683800704.470117][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470121][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470123][40300:40302] CHIP:TOO: GroupName: grp8
[1683800704.470126][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470128][40300:40302] CHIP:TOO: }
[1683800704.470134][40300:40302] CHIP:TOO: [8]: {
[1683800704.470136][40300:40302] CHIP:TOO: GroupId: 9
[1683800704.470139][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470142][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470145][40300:40302] CHIP:TOO: GroupName: grp9
[1683800704.470148][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470150][40300:40302] CHIP:TOO: }
[1683800704.470155][40300:40302] CHIP:TOO: [9]: {
[1683800704.470157][40300:40302] CHIP:TOO: GroupId: 10
[1683800704.470161][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470164][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470168][40300:40302] CHIP:TOO: GroupName: grp10
[1683800704.470170][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470172][40300:40302] CHIP:TOO: }
[1683800704.470177][40300:40302] CHIP:TOO: [10]: {
[1683800704.470180][40300:40302] CHIP:TOO: GroupId: 11
[1683800704.470183][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470187][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470189][40300:40302] CHIP:TOO: GroupName: grp11
[1683800704.470192][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470195][40300:40302] CHIP:TOO: }
[1683800704.470200][40300:40302] CHIP:TOO: [11]: {
[1683800704.470203][40300:40302] CHIP:TOO: GroupId: 12
[1683800704.470206][40300:40302] CHIP:TOO: Endpoints: 1 entries
[1683800704.470210][40300:40302] CHIP:TOO: [1]: 0
[1683800704.470212][40300:40302] CHIP:TOO: GroupName: grp12
[1683800704.470214][40300:40302] CHIP:TOO: FabricIndex: 1
[1683800704.470217][40300:40302] CHIP:TOO: }
disabled: true
- label:
"TH sends RemoveGroup command to DUT as unicast with the following
field : GroupID as 0x0000"
PICS: G.S.C03.Rsp && G.S.C03.Tx
verification: |
./chip-tool groups remove-group 0x0000 1 0
Verify the "status as CONSTRAINT_ERROR" on the TH(Chip-tool) Log and GroupID is not in the inclusive range of 0x0001 to 0xffff , below is the sample log provided for the raspi platform:
[1653485045.328766][11473:11478] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0003
[1653485045.328896][11473:11478] CHIP:TOO: RemoveGroupResponse: {
[1653485045.328954][11473:11478] CHIP:TOO: status: 135
[1653485045.328994][11473:11478] CHIP:TOO: groupId: 0
[1653485045.329036][11473:11478] CHIP:TOO: }
disabled: true
- label:
"TH sends RemoveGroup command to DUT as unicast with the following
field : GroupID as 0x0001"
PICS: G.S.C03.Rsp && G.S.C03.Tx
verification: |
./chip-tool groups remove-group 0x0001 1 0
Verify the "status is NOT_FOUND" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
:
[1653485126.672869][11483:11488] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0003
[1653485126.672969][11483:11488] CHIP:TOO: RemoveGroupResponse: {
[1653485126.673015][11483:11488] CHIP:TOO: status: 139
[1653485126.673045][11483:11488] CHIP:TOO: groupId: 1
[1653485126.673075][11483:11488] CHIP:TOO: }
disabled: true
- label: "TH reads GroupTable attribute from the GroupKeyManagement cluster"
PICS: GRPKEY.S.A0001
verification: |
./chip-tool groupkeymanagement read group-table 1 0
Verify that Grouptable not contains GroupId 0X0001 entry on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1683800854.535383][40352:40354] CHIP:DMG: }
[1683800854.535580][40352:40354] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_0001 DataVersion: 366443863
[1683800854.535627][40352:40354] CHIP:TOO: GroupTable: 11 entries
[1683800854.535654][40352:40354] CHIP:TOO: [1]: {
[1683800854.535662][40352:40354] CHIP:TOO: GroupId: 2
[1683800854.535667][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535671][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535676][40352:40354] CHIP:TOO: GroupName: grp2
[1683800854.535679][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535682][40352:40354] CHIP:TOO: }
[1683800854.535688][40352:40354] CHIP:TOO: [2]: {
[1683800854.535693][40352:40354] CHIP:TOO: GroupId: 3
[1683800854.535695][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535698][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535701][40352:40354] CHIP:TOO: GroupName: grp3
[1683800854.535704][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535706][40352:40354] CHIP:TOO: }
[1683800854.535711][40352:40354] CHIP:TOO: [3]: {
[1683800854.535714][40352:40354] CHIP:TOO: GroupId: 4
[1683800854.535717][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535720][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535723][40352:40354] CHIP:TOO: GroupName: grp4
[1683800854.535727][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535728][40352:40354] CHIP:TOO: }
[1683800854.535733][40352:40354] CHIP:TOO: [4]: {
[1683800854.535735][40352:40354] CHIP:TOO: GroupId: 5
[1683800854.535738][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535741][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535744][40352:40354] CHIP:TOO: GroupName: grp5
[1683800854.535747][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535750][40352:40354] CHIP:TOO: }
[1683800854.535755][40352:40354] CHIP:TOO: [5]: {
[1683800854.535757][40352:40354] CHIP:TOO: GroupId: 6
[1683800854.535760][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535763][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535765][40352:40354] CHIP:TOO: GroupName: grp6
[1683800854.535768][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535770][40352:40354] CHIP:TOO: }
[1683800854.535775][40352:40354] CHIP:TOO: [6]: {
[1683800854.535778][40352:40354] CHIP:TOO: GroupId: 7
[1683800854.535781][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535785][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535788][40352:40354] CHIP:TOO: GroupName: grp7
[1683800854.535790][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535793][40352:40354] CHIP:TOO: }
[1683800854.535798][40352:40354] CHIP:TOO: [7]: {
[1683800854.535801][40352:40354] CHIP:TOO: GroupId: 8
[1683800854.535804][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535807][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535809][40352:40354] CHIP:TOO: GroupName: grp8
[1683800854.535812][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535814][40352:40354] CHIP:TOO: }
[1683800854.535819][40352:40354] CHIP:TOO: [8]: {
[1683800854.535822][40352:40354] CHIP:TOO: GroupId: 9
[1683800854.535825][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535828][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535831][40352:40354] CHIP:TOO: GroupName: grp9
[1683800854.535834][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535835][40352:40354] CHIP:TOO: }
[1683800854.535841][40352:40354] CHIP:TOO: [9]: {
[1683800854.535843][40352:40354] CHIP:TOO: GroupId: 10
[1683800854.535847][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535850][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535854][40352:40354] CHIP:TOO: GroupName: grp10
[1683800854.535857][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535859][40352:40354] CHIP:TOO: }
[1683800854.535864][40352:40354] CHIP:TOO: [10]: {
[1683800854.535866][40352:40354] CHIP:TOO: GroupId: 11
[1683800854.535870][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535873][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535876][40352:40354] CHIP:TOO: GroupName: grp11
[1683800854.535879][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535881][40352:40354] CHIP:TOO: }
[1683800854.535886][40352:40354] CHIP:TOO: [11]: {
[1683800854.535889][40352:40354] CHIP:TOO: GroupId: 12
[1683800854.535893][40352:40354] CHIP:TOO: Endpoints: 1 entries
[1683800854.535896][40352:40354] CHIP:TOO: [1]: 0
[1683800854.535899][40352:40354] CHIP:TOO: GroupName: grp12
[1683800854.535901][40352:40354] CHIP:TOO: FabricIndex: 1
[1683800854.535903][40352:40354] CHIP:TOO: }
disabled: true
- label: "TH sends RemoveAllGroups command to DUT as unicast method"
PICS: G.S.C04.Rsp
verification: |
./chip-tool groups remove-all-groups 1 0
Verify the "status is success" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1653485455.344097][11508:11513] CHIP:DMG: StatusIB =
[1653485455.344141][11508:11513] CHIP:DMG: {
[1653485455.344190][11508:11513] CHIP:DMG: status = 0x00 (SUCCESS),
[1653485455.344236][11508:11513] CHIP:DMG: },
disabled: true
- label:
"TH sends ViewGroup command to DUT as unicast with the following
fields: GroupID as 0x0001"
PICS: G.S.C01.Rsp && G.S.C01.Tx
verification: |
./chip-tool groups view-group 0x0001 1 0
Verify the "status is NOT_FOUND" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1653559917.259920][3227:3232] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Command 0x0000_0001
[1653559917.259993][3227:3232] CHIP:TOO: ViewGroupResponse: {
[1653559917.260040][3227:3232] CHIP:TOO: status: 139
[1653559917.260075][3227:3232] CHIP:TOO: groupId: 1
[1653559917.260107][3227:3232] CHIP:TOO: groupName:
[1653559917.260138][3227:3232] CHIP:TOO: }
disabled: true
- label: "TH reads GroupTable attribute from the GroupKeyManagement cluster"
PICS: GRPKEY.S.A0001
verification: |
./chip-tool groupkeymanagement read group-table 1 0
Verify the "grouptable entries" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1656332191.739327][27032:27037] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_0001 DataVersion: 3761602970
[1656332191.739391][27032:27037] CHIP:TOO: GroupTable: 0 entries
disabled: true