From be1e2c03a057d6ad3fa7e90ab2308c7fbaeeec34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Szablowski?= Date: Wed, 17 Aug 2022 10:10:24 +0200 Subject: [PATCH] Zap Regen --- .../chip-tool/zap-generated/test/Commands.h | 57 ++++++++----------- 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index bdd9b181fe77c9..f74018458c5ac5 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -75899,18 +75899,18 @@ class TestGroupDemoConfigSuite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::Groups::Commands::AddGroupResponse::DecodableType value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("status", value.status, 0U)); - VerifyOrReturn(CheckValue("groupId", value.groupId, 257U)); - } break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::Groups::Commands::AddGroupResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); + VerifyOrReturn(CheckValue("groupId", value.groupId, 257U)); + } break; case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -75938,17 +75938,7 @@ class TestGroupDemoConfigSuite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Add Group 1 - endpoint 1"); - ListFreer listFreer; - chip::app::Clusters::Groups::Commands::AddGroup::Type value; - value.groupId = 257U; - value.groupName = chip::Span("Group #1garbage: not in length on purpose", 8); - return SendCommand(kIdentityAlpha, GetEndpoint(1), Groups::Id, Groups::Commands::AddGroup::Id, value, chip::NullOptional - - ); - } - case 2: { - LogStep(2, "KeySet Write 1"); + LogStep(1, "KeySet Write 1 (endpoint 0)"); ListFreer listFreer; chip::app::Clusters::GroupKeyManagement::Commands::KeySetWrite::Type value; @@ -75982,8 +75972,8 @@ class TestGroupDemoConfigSuite : public TestCommand ); } - case 3: { - LogStep(3, "Map Group Key Set to group ID on a given fabric"); + case 2: { + LogStep(2, "Write Group Keys (endpoint 0)"); ListFreer listFreer; chip::app::DataModel::List value; @@ -75993,7 +75983,7 @@ class TestGroupDemoConfigSuite : public TestCommand listHolder_0->mList[0].groupId = 257U; listHolder_0->mList[0].groupKeySetID = 417U; - listHolder_0->mList[0].fabricIndex = 1U; + listHolder_0->mList[0].fabricIndex = 0U; value = chip::app::DataModel::List( listHolder_0->mList, 1); @@ -76001,8 +75991,18 @@ class TestGroupDemoConfigSuite : public TestCommand return WriteAttribute(kIdentityAlpha, GetEndpoint(0), GroupKeyManagement::Id, GroupKeyManagement::Attributes::GroupKeyMap::Id, value, chip::NullOptional, chip::NullOptional); } + case 3: { + LogStep(3, "Add Group 1 (endpoint 1)"); + ListFreer listFreer; + chip::app::Clusters::Groups::Commands::AddGroup::Type value; + value.groupId = 257U; + value.groupName = chip::Span("Group #1garbage: not in length on purpose", 8); + return SendCommand(kIdentityAlpha, GetEndpoint(1), Groups::Id, Groups::Commands::AddGroup::Id, value, chip::NullOptional + + ); + } case 4: { - LogStep(4, "Install ACLs for test"); + LogStep(4, "Install ACLs"); ListFreer listFreer; chip::app::DataModel::List value; @@ -76014,20 +76014,13 @@ class TestGroupDemoConfigSuite : public TestCommand listHolder_0->mList[0].authMode = static_cast(2); listHolder_0->mList[0].subjects.SetNull(); listHolder_0->mList[0].targets.SetNull(); - listHolder_0->mList[0].fabricIndex = 1U; + listHolder_0->mList[0].fabricIndex = 0U; - listHolder_0->mList[1].privilege = static_cast(3); + listHolder_0->mList[1].privilege = static_cast(4); listHolder_0->mList[1].authMode = static_cast(3); - listHolder_0->mList[1].subjects.SetNonNull(); - - { - auto * listHolder_3 = new ListHolder(1); - listFreer.add(listHolder_3); - listHolder_3->mList[0] = 257ULL; - listHolder_0->mList[1].subjects.Value() = chip::app::DataModel::List(listHolder_3->mList, 1); - } + listHolder_0->mList[1].subjects.SetNull(); listHolder_0->mList[1].targets.SetNull(); - listHolder_0->mList[1].fabricIndex = 1U; + listHolder_0->mList[1].fabricIndex = 0U; value = chip::app::DataModel::List( listHolder_0->mList, 2);