diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_9.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_9.yaml index 1692301ff764b0..66756672655b2b 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_9.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_9.yaml @@ -137,6 +137,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -153,6 +155,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -169,6 +173,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -185,6 +191,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -201,6 +209,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -217,6 +227,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -233,6 +245,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -249,6 +263,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -265,6 +281,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -281,6 +299,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -297,6 +317,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -313,6 +335,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -329,6 +353,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -345,6 +371,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -361,6 +389,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -377,6 +407,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -393,6 +425,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -409,6 +443,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -425,6 +461,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE @@ -441,6 +479,8 @@ tests: value: nodeId2 - name: "payload" value: incorrectSetupCodePayload + - name: discoverOnce + value: true response: error: FAILURE diff --git a/src/app/tests/suites/certification/Test_TC_IDM_4_4.yaml b/src/app/tests/suites/certification/Test_TC_IDM_4_4.yaml new file mode 100644 index 00000000000000..6815cbe96a56e7 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_IDM_4_4.yaml @@ -0,0 +1,93 @@ +# 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: 3.4.3.[TC-IDM-4.4] Persistent Subscription Test Cases. [DUT as Server] + +PICS: + - MCORE.IDM.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: + "TH sends a subscription request action for an attribute to the DUT. + Activate the subscription between DUT and the TH." + verification: | + The cluster used in the below command is an example, User can use any supported chip cluster/attribute/command. + + Please use Interactive mode to Verify subscription test cases + Here the command to enter interactive mode:-- ./chip-tool interactive start + + + ./chip-tool interactive start + onoff subscribe on-time 10 100 1 1 --auto-resubscribe true + Verify on the TH(chip-tool) that the Report data messages are sent from the DUT(Reference app) for subscription request action to the TH(chip-tool) with the correct attribute values. + + [1675085714.397242][208829:208831] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4001 DataVersion: 4283808198 + [1675085714.397263][208829:208831] CHIP:TOO: OnTime: 0 + [1675085714.397279][208829:208831] CHIP:DMG: MoveToState ReadClient[0x7f474801d330]: Moving to [AwaitingSu] + [1675085714.397311][208829:208831] CHIP:EM: <<< [E:17188i M:22097192 (Ack:128343668)] (S) Msg TX to 1:0000000000000001 [9666] --- Type 0001:01 (IM:StatusResponse) + [1675085714.397323][208829:208831] CHIP:IN: (S) Sending msg 22097192 on secure session with LSID: 50803 + [1675085714.397742][208829:208831] CHIP:EM: >>> [E:17188i M:128343669 (Ack:22097192)] (S) Msg RX from 1:0000000000000001 [9666] --- Type 0001:04 (IM:SubscribeResponse) + [1675085714.397753][208829:208831] CHIP:EM: Found matching exchange: 17188i, Delegate: 0x7f474801d340 + [1675085714.397764][208829:208831] CHIP:EM: Rxd Ack; Removing MessageCounter:22097192 from Retrans Table on exchange 17188i + [1675085714.397774][208829:208831] CHIP:DMG: SubscribeResponse is received + [1675085714.397787][208829:208831] CHIP:DMG: SubscribeResponseMessage = + [1675085714.397794][208829:208831] CHIP:DMG: { + [1675085714.397802][208829:208831] CHIP:DMG: SubscriptionId = 0xa11efe71, + [1675085714.397810][208829:208831] CHIP:DMG: MaxInterval = 0x64, + [1675085714.397819][208829:208831] CHIP:DMG: InteractionModelRevision = 1 + [1675085714.397825][208829:208831] CHIP:DMG: } + [1675085714.397832][208829:208831] CHIP:DMG: Subscription established with SubscriptionID = 0xa11efe71 MinInterval = 10s MaxInterval = 100s Peer = 01:0000000000000001 + disabled: true + + - label: "Power off the DUT. Power on the DUT immediately." + verification: | + Verify on the TH(chip-tool) that the subscription between the DUT(Reference-app) and TH(chip-tool) is restablished and DUT(Reference-app) is able to send report data messages for the attribute which was subscribed to in step 1 within the MaxInterval time. + + + [1675085816.147288][208829:208831] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4001 DataVersion: 1956782965 + [1675085816.147302][208829:208831] CHIP:TOO: OnTime: 0 + [1675085816.147318][208829:208831] CHIP:DMG: MoveToState ReadClient[0x7f474801d330]: Moving to [AwaitingSu] + [1675085816.147360][208829:208831] CHIP:EM: <<< [E:17190i M:24372277 (Ack:66274424)] (S) Msg TX to 1:0000000000000001 [9666] --- Type 0001:01 (IM:StatusResponse) + [1675085816.147373][208829:208831] CHIP:IN: (S) Sending msg 24372277 on secure session with LSID: 50804 + [1675085816.147908][208829:208831] CHIP:EM: >>> [E:17190i M:66274425 (Ack:24372277)] (S) Msg RX from 1:0000000000000001 [9666] --- Type 0001:04 (IM:SubscribeResponse) + [1675085816.147934][208829:208831] CHIP:EM: Found matching exchange: 17190i, Delegate: 0x7f474801d340 + [1675085816.147950][208829:208831] CHIP:EM: Rxd Ack; Removing MessageCounter:24372277 from Retrans Table on exchange 17190i + [1675085816.147964][208829:208831] CHIP:DMG: SubscribeResponse is received + [1675085816.147980][208829:208831] CHIP:DMG: SubscribeResponseMessage = + [1675085816.147989][208829:208831] CHIP:DMG: { + [1675085816.147997][208829:208831] CHIP:DMG: SubscriptionId = 0x2b5276ad, + [1675085816.148006][208829:208831] CHIP:DMG: MaxInterval = 0x64, + [1675085816.148013][208829:208831] CHIP:DMG: InteractionModelRevision = 1 + [1675085816.148019][208829:208831] CHIP:DMG: } + [1675085816.148029][208829:208831] CHIP:DMG: Subscription established with SubscriptionID = 0x2b5276ad MinInterval = 10s MaxInterval = 100s Peer = 01:0000000000000001 + [1675085816.148041][208829:208831] CHIP:DMG: MoveToState ReadClient[0x7f474801d330]: Moving to [Subscripti] + [1675085816.148055][208829:208831] CHIP:DMG: Refresh LivenessCheckTime for 101500 milliseconds with SubscriptionId = 0x2b5276ad Peer = 01:0000000000000001 + [1675085816.148084][208829:208831] CHIP:EM: <<< [E:17190i M:24372278 (Ack:66274425)] (S) Msg TX to 1:0000000000000001 [9666] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1675085816.148097][208829:208831] CHIP:IN: (S) Sending msg 24372278 on secure session with LSID: 50804 + [1675085816.148141][208829:208831] CHIP:EM: Flushed pending ack for MessageCounter:66274425 on exchange 17190i + [1675085916.246163][208829:208831] CHIP:EM: >>> [E:17698r M:66274426] (S) Msg RX from 1:0000000000000001 [9666] --- Type 0001:05 (IM:ReportData) + [1675085916.246182][208829:208831] CHIP:EM: Handling via exchange: 17698r, Delegate: 0x5572dfe7d328 + [1675085916.246207][208829:208831] CHIP:DMG: ReportDataMessage = + [1675085916.246211][208829:208831] CHIP:DMG: { + [1675085916.246216][208829:208831] CHIP:DMG: SubscriptionId = 0x2b5276ad, + [1675085916.246220][208829:208831] CHIP:DMG: InteractionModelRevision = 1 + [1675085916.246223][208829:208831] CHIP:DMG: } + [1675085916.246233][208829:208831] CHIP:DMG: Refresh LivenessCheckTime for 101500 milliseconds with SubscriptionId = 0x2b5276ad Peer = 01:0000000000000001 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_OPCREDS_3_6.yaml b/src/app/tests/suites/certification/Test_TC_OPCREDS_3_6.yaml new file mode 100644 index 00000000000000..adf38bba64d025 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_OPCREDS_3_6.yaml @@ -0,0 +1,99 @@ +# 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: 12.3.6. [TC-OPCREDS-3.6] Last Fabric removal validation [DUT-Server] + +PICS: + - OPCREDS.S + +config: + nodeId: 0x12344321 + cluster: "Basic Information" + endpoint: 0 + +tests: + - label: "TH1 fully commissions the DUT" + verification: | + "DUT side: + sudo ./chip-all-clusters-app --wifi + + TH side: + ./chip-tool pairing code 1 34970112332 --trace_decode 1 + + [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success" + disabled: true + + - label: + "TH1 sends RemoveFabric command with Fabric Index as FabricIndex_TH1 + to DUT" + PICS: OPCREDS.S.C0a.Rsp + verification: | + ./chip-tool operationalcredentials remove-fabric 1 1 0 + + [1674780232627] [8807:372926] CHIP: [DMG] InvokeResponseMessage = + [1674780232627] [8807:372926] CHIP: [DMG] { + [1674780232627] [8807:372926] CHIP: [DMG] suppressResponse = false, + [1674780232627] [8807:372926] CHIP: [DMG] InvokeResponseIBs = + [1674780232627] [8807:372926] CHIP: [DMG] [ + [1674780232627] [8807:372926] CHIP: [DMG] InvokeResponseIB = + [1674780232627] [8807:372926] CHIP: [DMG] { + [1674780232627] [8807:372926] CHIP: [DMG] CommandDataIB = + [1674780232627] [8807:372926] CHIP: [DMG] { + [1674780232627] [8807:372926] CHIP: [DMG] CommandPathIB = + [1674780232627] [8807:372926] CHIP: [DMG] { + [1674780232627] [8807:372926] CHIP: [DMG] EndpointId = 0x0, + [1674780232627] [8807:372926] CHIP: [DMG] ClusterId = 0x3e, + [1674780232627] [8807:372926] CHIP: [DMG] CommandId = 0x8, + [1674780232627] [8807:372926] CHIP: [DMG] }, + [1674780232627] [8807:372926] CHIP: [DMG] + [1674780232627] [8807:372926] CHIP: [DMG] CommandFields = + [1674780232627] [8807:372926] CHIP: [DMG] { + [1674780232627] [8807:372926] CHIP: [DMG] 0x0 = 11, + [1674780232627] [8807:372926] CHIP: [DMG] }, + [1674780232627] [8807:372926] CHIP: [DMG] }, + [1674780232627] [8807:372926] CHIP: [DMG] + [1674780232627] [8807:372926] CHIP: [DMG] }, + [1674780232627] [8807:372926] CHIP: [DMG] + [1674780232627] [8807:372926] CHIP: [DMG] ], + [1674780232627] [8807:372926] CHIP: [DMG] + [1674780232627] [8807:372926] CHIP: [DMG] InteractionModelRevision = 1 + [1674780232627] [8807:372926] CHIP: [DMG] }, + [1674780232627] [8807:372926] CHIP: [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1674780232627] [8807:372926] CHIP: [TOO] Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 + [1674780232627] [8807:372926] CHIP: [TOO] NOCResponse: { + [1674780232627] [8807:372926] CHIP: [TOO] statusCode: 11 + [1674780232627] [8807:372926] CHIP: [TOO] } + [1674780232627] [8807:372926] CHIP: [DMG] ICR moving to [AwaitingDe] + [1674780232627] [8807:372926] CHIP: [EM] <<< [E:31626i M:201286751 (Ack:54014818)] (S) Msg TX to 1:0000000000000001 [1A5D] --- Type 0000:10 (SecureChannel:StandaloneAck) + [1674780232627] [8807:372926] CHIP: [IN] (S) Sending msg 201286751 on secure session with LSID: 14333 + [1674780232627] [8807:372926] CHIP: [EM] Flushed pending ack for MessageCounter:54014818 on exchange 31626i + [1674780232627] [8807:372921] CHIP: [CTL] Shutting down the commissioner + [1674780232627] [8807:372921] CHIP: [CTL] Stopping commissioning discovery over DNS-SD + [1674780232627] [8807:372921] CHIP: [CTL] Shutting down the controller + [1674780232627] [8807:372921] CHIP: [IN] Expiring all sessions for fabric 0x1!! + [1674780232627] [8807:372921] CHIP: [IN] SecureSession[0x600001c041e0]: MarkForEviction Type:2 LSID:14333 + [1674780232627] [8807:372921] CHIP: [SC] SecureSession[0x600001c041e0]: Moving from state "kActive" --> "kPendingEviction" + [1674780232627] [8807:372921] CHIP: [IN] SecureSession[0x600001c041e0]: Released - Type:2 LSID:14333 + disabled: true + + - label: + "DUT shouldnt be discoverable via both commissionable and operational + advertisements" + verification: | + Verify DUT is not discoverable over DNS-SD in both TCP and UDP + + avahi-browse -rt _matter._tcp + avahi-browse -rt _matter._udp + disabled: true diff --git a/src/app/tests/suites/manualTests.json b/src/app/tests/suites/manualTests.json index ad07f2e0cda474..4508ac137c6f99 100644 --- a/src/app/tests/suites/manualTests.json +++ b/src/app/tests/suites/manualTests.json @@ -71,6 +71,8 @@ "Test_TC_OPCREDS_3_2", "Test_TC_OPCREDS_3_3", "Test_TC_OPCREDS_3_4", + "Test_TC_OPCREDS_3_5", + "Test_TC_OPCREDS_3_6", "Test_TC_CNET_4_1", "Test_TC_CNET_4_2", "Test_TC_CNET_4_3", @@ -116,6 +118,7 @@ "Test_TC_IDM_4_1", "Test_TC_IDM_4_2", "Test_TC_IDM_4_3", + "Test_TC_IDM_4_4", "Test_TC_IDM_5_1", "Test_TC_IDM_5_2", "Test_TC_IDM_6_1", diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 284505b8973e85..72cc34b399f0cd 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -348,6 +348,8 @@ class ManualTestList : public Command printf("Test_TC_OPCREDS_3_2\n"); printf("Test_TC_OPCREDS_3_3\n"); printf("Test_TC_OPCREDS_3_4\n"); + printf("Test_TC_OPCREDS_3_5\n"); + printf("Test_TC_OPCREDS_3_6\n"); printf("Test_TC_CNET_4_1\n"); printf("Test_TC_CNET_4_2\n"); printf("Test_TC_CNET_4_3\n"); @@ -388,6 +390,7 @@ class ManualTestList : public Command printf("Test_TC_IDM_4_1\n"); printf("Test_TC_IDM_4_2\n"); printf("Test_TC_IDM_4_3\n"); + printf("Test_TC_IDM_4_4\n"); printf("Test_TC_IDM_5_1\n"); printf("Test_TC_IDM_5_2\n"); printf("Test_TC_IDM_6_1\n"); @@ -92157,6 +92160,118 @@ class Test_TC_OPCREDS_3_4Suite : public TestCommand } }; +class Test_TC_OPCREDS_3_5Suite : public TestCommand +{ +public: + Test_TC_OPCREDS_3_5Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_OPCREDS_3_5", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_OPCREDS_3_5Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + {} + return CHIP_NO_ERROR; + } +}; + +class Test_TC_OPCREDS_3_6Suite : public TestCommand +{ +public: + Test_TC_OPCREDS_3_6Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_OPCREDS_3_6", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_OPCREDS_3_6Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + {} + return CHIP_NO_ERROR; + } +}; + class Test_TC_CNET_4_1Suite : public TestCommand { public: @@ -94357,6 +94472,61 @@ class Test_TC_IDM_4_3Suite : public TestCommand } }; +class Test_TC_IDM_4_4Suite : public TestCommand +{ +public: + Test_TC_IDM_4_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_4_4", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_IDM_4_4Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + {} + return CHIP_NO_ERROR; + } +}; + class Test_TC_IDM_5_1Suite : public TestCommand { public: @@ -100190,6 +100360,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 7: { @@ -100200,6 +100372,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 8: { @@ -100210,6 +100384,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 9: { @@ -100220,6 +100396,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 10: { @@ -100230,6 +100408,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 11: { @@ -100240,6 +100420,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 12: { @@ -100250,6 +100432,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 13: { @@ -100260,6 +100444,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 14: { @@ -100270,6 +100456,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 15: { @@ -100280,6 +100468,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 16: { @@ -100290,6 +100480,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 17: { @@ -100300,6 +100492,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 18: { @@ -100310,6 +100504,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 19: { @@ -100320,6 +100516,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 20: { @@ -100330,6 +100528,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 21: { @@ -100340,6 +100540,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 22: { @@ -100350,6 +100552,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 23: { @@ -100360,6 +100564,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 24: { @@ -100370,6 +100576,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 25: { @@ -100380,6 +100588,8 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mIncorrectSetupCodePayload.HasValue() ? mIncorrectSetupCodePayload.Value() : chip::Span("MT:-24J0AFN00I.0648G00", 22); + value.discoverOnce.Emplace(); + value.discoverOnce.Value() = true; return PairWithCode(kIdentityBeta, value); } case 26: { @@ -114283,6 +114493,8 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -114323,6 +114535,7 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig),