From a9a839f4f440a1dd5c0cfeac4400ca3dc510172b Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Tue, 11 Jan 2022 20:56:38 +0530 Subject: [PATCH] Remove OTA Provider server test cases --- .../tests/suites/TestDescriptorCluster.yaml | 1 - .../Framework/CHIPTests/CHIPClustersTests.m | 37 +++++++++--------- .../chip-tool/zap-generated/test/Commands.h | 38 +++++++++---------- 3 files changed, 36 insertions(+), 40 deletions(-) diff --git a/src/app/tests/suites/TestDescriptorCluster.yaml b/src/app/tests/suites/TestDescriptorCluster.yaml index 81831fe0ed18d7..9ab91edab81ff2 100644 --- a/src/app/tests/suites/TestDescriptorCluster.yaml +++ b/src/app/tests/suites/TestDescriptorCluster.yaml @@ -40,7 +40,6 @@ tests: 0x001E, # Binding 0x001F, # Access Control 0x0028, # Basic Information - 0x0029, # OTA Software Update Provider 0x002A, # OTA Software Update Requestor 0x002B, # Localization Configuration 0x002E, # Power Source Configuration diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m index 8c186da3dbb116..fc792ec4c556bc 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m @@ -36725,31 +36725,30 @@ - (void)testSendClusterTestDescriptorCluster_000002_ReadAttribute { id actualValue = value; - XCTAssertEqual([actualValue count], 24); + XCTAssertEqual([actualValue count], 23); XCTAssertEqual([actualValue[0] unsignedIntValue], 3UL); XCTAssertEqual([actualValue[1] unsignedIntValue], 4UL); XCTAssertEqual([actualValue[2] unsignedIntValue], 29UL); XCTAssertEqual([actualValue[3] unsignedIntValue], 30UL); XCTAssertEqual([actualValue[4] unsignedIntValue], 31UL); XCTAssertEqual([actualValue[5] unsignedIntValue], 40UL); - XCTAssertEqual([actualValue[6] unsignedIntValue], 41UL); - XCTAssertEqual([actualValue[7] unsignedIntValue], 42UL); - XCTAssertEqual([actualValue[8] unsignedIntValue], 43UL); - XCTAssertEqual([actualValue[9] unsignedIntValue], 46UL); - XCTAssertEqual([actualValue[10] unsignedIntValue], 48UL); - XCTAssertEqual([actualValue[11] unsignedIntValue], 49UL); - XCTAssertEqual([actualValue[12] unsignedIntValue], 50UL); - XCTAssertEqual([actualValue[13] unsignedIntValue], 51UL); - XCTAssertEqual([actualValue[14] unsignedIntValue], 52UL); - XCTAssertEqual([actualValue[15] unsignedIntValue], 53UL); - XCTAssertEqual([actualValue[16] unsignedIntValue], 54UL); - XCTAssertEqual([actualValue[17] unsignedIntValue], 55UL); - XCTAssertEqual([actualValue[18] unsignedIntValue], 60UL); - XCTAssertEqual([actualValue[19] unsignedIntValue], 62UL); - XCTAssertEqual([actualValue[20] unsignedIntValue], 63UL); - XCTAssertEqual([actualValue[21] unsignedIntValue], 64UL); - XCTAssertEqual([actualValue[22] unsignedIntValue], 65UL); - XCTAssertEqual([actualValue[23] unsignedIntValue], 1029UL); + XCTAssertEqual([actualValue[6] unsignedIntValue], 42UL); + XCTAssertEqual([actualValue[7] unsignedIntValue], 43UL); + XCTAssertEqual([actualValue[8] unsignedIntValue], 46UL); + XCTAssertEqual([actualValue[9] unsignedIntValue], 48UL); + XCTAssertEqual([actualValue[10] unsignedIntValue], 49UL); + XCTAssertEqual([actualValue[11] unsignedIntValue], 50UL); + XCTAssertEqual([actualValue[12] unsignedIntValue], 51UL); + XCTAssertEqual([actualValue[13] unsignedIntValue], 52UL); + XCTAssertEqual([actualValue[14] unsignedIntValue], 53UL); + XCTAssertEqual([actualValue[15] unsignedIntValue], 54UL); + XCTAssertEqual([actualValue[16] unsignedIntValue], 55UL); + XCTAssertEqual([actualValue[17] unsignedIntValue], 60UL); + XCTAssertEqual([actualValue[18] unsignedIntValue], 62UL); + XCTAssertEqual([actualValue[19] unsignedIntValue], 63UL); + XCTAssertEqual([actualValue[20] unsignedIntValue], 64UL); + XCTAssertEqual([actualValue[21] unsignedIntValue], 65UL); + XCTAssertEqual([actualValue[22] unsignedIntValue], 1029UL); } [expectation fulfill]; diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 11bde29340c432..7362f3e9206198 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -58917,42 +58917,40 @@ class TestDescriptorCluster : public TestCommand VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 5)); VerifyOrReturn(CheckValue("serverList[5]", iter_0.GetValue(), 40UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 6)); - VerifyOrReturn(CheckValue("serverList[6]", iter_0.GetValue(), 41UL)); + VerifyOrReturn(CheckValue("serverList[6]", iter_0.GetValue(), 42UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 7)); - VerifyOrReturn(CheckValue("serverList[7]", iter_0.GetValue(), 42UL)); + VerifyOrReturn(CheckValue("serverList[7]", iter_0.GetValue(), 43UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 8)); - VerifyOrReturn(CheckValue("serverList[8]", iter_0.GetValue(), 43UL)); + VerifyOrReturn(CheckValue("serverList[8]", iter_0.GetValue(), 46UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 9)); - VerifyOrReturn(CheckValue("serverList[9]", iter_0.GetValue(), 46UL)); + VerifyOrReturn(CheckValue("serverList[9]", iter_0.GetValue(), 48UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 10)); - VerifyOrReturn(CheckValue("serverList[10]", iter_0.GetValue(), 48UL)); + VerifyOrReturn(CheckValue("serverList[10]", iter_0.GetValue(), 49UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 11)); - VerifyOrReturn(CheckValue("serverList[11]", iter_0.GetValue(), 49UL)); + VerifyOrReturn(CheckValue("serverList[11]", iter_0.GetValue(), 50UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 12)); - VerifyOrReturn(CheckValue("serverList[12]", iter_0.GetValue(), 50UL)); + VerifyOrReturn(CheckValue("serverList[12]", iter_0.GetValue(), 51UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 13)); - VerifyOrReturn(CheckValue("serverList[13]", iter_0.GetValue(), 51UL)); + VerifyOrReturn(CheckValue("serverList[13]", iter_0.GetValue(), 52UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 14)); - VerifyOrReturn(CheckValue("serverList[14]", iter_0.GetValue(), 52UL)); + VerifyOrReturn(CheckValue("serverList[14]", iter_0.GetValue(), 53UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 15)); - VerifyOrReturn(CheckValue("serverList[15]", iter_0.GetValue(), 53UL)); + VerifyOrReturn(CheckValue("serverList[15]", iter_0.GetValue(), 54UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 16)); - VerifyOrReturn(CheckValue("serverList[16]", iter_0.GetValue(), 54UL)); + VerifyOrReturn(CheckValue("serverList[16]", iter_0.GetValue(), 55UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 17)); - VerifyOrReturn(CheckValue("serverList[17]", iter_0.GetValue(), 55UL)); + VerifyOrReturn(CheckValue("serverList[17]", iter_0.GetValue(), 60UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 18)); - VerifyOrReturn(CheckValue("serverList[18]", iter_0.GetValue(), 60UL)); + VerifyOrReturn(CheckValue("serverList[18]", iter_0.GetValue(), 62UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 19)); - VerifyOrReturn(CheckValue("serverList[19]", iter_0.GetValue(), 62UL)); + VerifyOrReturn(CheckValue("serverList[19]", iter_0.GetValue(), 63UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 20)); - VerifyOrReturn(CheckValue("serverList[20]", iter_0.GetValue(), 63UL)); + VerifyOrReturn(CheckValue("serverList[20]", iter_0.GetValue(), 64UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 21)); - VerifyOrReturn(CheckValue("serverList[21]", iter_0.GetValue(), 64UL)); + VerifyOrReturn(CheckValue("serverList[21]", iter_0.GetValue(), 65UL)); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 22)); - VerifyOrReturn(CheckValue("serverList[22]", iter_0.GetValue(), 65UL)); - VerifyOrReturn(CheckNextListItemDecodes("serverList", iter_0, 23)); - VerifyOrReturn(CheckValue("serverList[23]", iter_0.GetValue(), 1029UL)); - VerifyOrReturn(CheckNoMoreListItems("serverList", iter_0, 24)); + VerifyOrReturn(CheckValue("serverList[22]", iter_0.GetValue(), 1029UL)); + VerifyOrReturn(CheckNoMoreListItems("serverList", iter_0, 23)); } NextTest();