From 167242084c4aea39112f82d46a944c7a36cd4823 Mon Sep 17 00:00:00 2001 From: manjunath-grl <102359958+manjunath-grl@users.noreply.github.com> Date: Wed, 18 May 2022 18:42:10 +0530 Subject: [PATCH] Test Modified May 5 (#18118) * Modified scripts TC-CC-2.1 TC-LVL-2.1 TC-LVL-2.2 TC-MC-5.1 TC-MC-5.2 TC-MC-5.3 TC-MC-6.1 TC-MC-6.2 TC-MC-6.3 TC-MC-6.4 TC-MC-7.1 TC-MC-7.2 TC-MC-9.1 TC-OCC-2.2 TC-PRS-2.1 TC-TSUIC-1.1 TC-TSUIC-2.2 * Added auto generated files * Modified test TC-PRS-2.1 TC-TSUIC-2.2 * auto generated files * Modified PRS testcase * Auto generated files * Modified tests * Auto generated files --- .../suites/certification/Test_TC_CC_2_1.yaml | 848 +-- .../suites/certification/Test_TC_LVL_2_1.yaml | 33 +- .../suites/certification/Test_TC_LVL_2_2.yaml | 16 +- .../suites/certification/Test_TC_MC_3_12.yaml | 2 + .../suites/certification/Test_TC_MC_3_13.yaml | 5 +- .../suites/certification/Test_TC_MC_5_1.yaml | 24 - .../suites/certification/Test_TC_MC_5_2.yaml | 23 +- .../suites/certification/Test_TC_MC_5_3.yaml | 27 +- .../suites/certification/Test_TC_MC_6_1.yaml | 15 +- .../suites/certification/Test_TC_MC_6_2.yaml | 20 +- .../suites/certification/Test_TC_MC_6_3.yaml | 20 +- .../suites/certification/Test_TC_MC_6_4.yaml | 41 +- .../suites/certification/Test_TC_MC_7_1.yaml | 20 +- .../suites/certification/Test_TC_MC_7_2.yaml | 28 +- .../suites/certification/Test_TC_MC_9_1.yaml | 12 +- .../suites/certification/Test_TC_OCC_2_2.yaml | 8 +- .../suites/certification/Test_TC_PRS_2_1.yaml | 189 +- .../certification/Test_TC_TSUIC_1_1.yaml | 25 +- .../certification/Test_TC_TSUIC_2_2.yaml | 87 +- src/app/tests/suites/tests.js | 14 +- .../zap-generated/test/Commands.h | 5461 +++++------------ .../chip-tool/zap-generated/test/Commands.h | 4579 +++++++------- 22 files changed, 4150 insertions(+), 7347 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml index 8ae7aeb41dac1f..de63eacc5ad535 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml @@ -28,76 +28,29 @@ tests: - name: "nodeId" value: nodeId - - label: "Validate constraints of attribute: current hue" + - label: "Validate constraints of attribute: CurrentHue" command: "readAttribute" attribute: "current hue" response: - constraints: - type: uint8 - minValue: 0 - maxValue: 254 - - - label: "Write the default value to mandatory attribute: CurrentHue" - command: "writeAttribute" - attribute: "current hue" - arguments: value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: CurrentHue" - command: "readAttribute" - attribute: "current hue" - response: constraints: type: uint8 - minValue: 0 - maxValue: 254 - label: "Validate constraints of attribute: CurrentSaturation" command: "readAttribute" attribute: "current saturation" response: - constraints: - type: uint8 - minValue: 0 - maxValue: 254 - - - label: "Write the default value to mandatory attribute: CurrentSaturation" - command: "writeAttribute" - attribute: "current saturation" - arguments: value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: CurrentSaturation" - command: "readAttribute" - attribute: "current saturation" - response: constraints: type: uint8 - minValue: 0 - maxValue: 254 - - label: "Validate constraints of attribute: CurrentX" + - label: "Reads CurrentX attribute from DUT" command: "readAttribute" attribute: "current x" response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - - label: "Write the default value to mandatory attribute: CurrentX" - command: "writeAttribute" - attribute: "current x" - arguments: value: 24939 - response: - error: UNSUPPORTED_WRITE - - label: "Reads back mandatory attribute: CurrentX" + - label: "Validate constraints of attribute: CurrentX" command: "readAttribute" attribute: "current x" response: @@ -106,24 +59,13 @@ tests: minValue: 0 maxValue: 65279 - - label: "Validate constraints of attribute: CurrentY" + - label: "Reads CurrentY attribute from DUT" command: "readAttribute" attribute: "current y" response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - - label: "Write the default values to mandatory attribute: CurrentY" - command: "writeAttribute" - attribute: "current y" - arguments: value: 24701 - response: - error: UNSUPPORTED_WRITE - - label: "Reads back mandatory attribute: CurrentY" + - label: "Validate constraints of attribute: CurrentY" command: "readAttribute" attribute: "current y" response: @@ -132,28 +74,15 @@ tests: minValue: 0 maxValue: 65279 - - label: "Validate constraints of attribute: ColorTemperatureMireds" + #issue #18104 + - label: "Reads ColorTemperatureMireds attribute from DUT" + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "color temperature" response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - - label: - "Write the default values to mandatory attribute: - ColorTemperatureMireds" - disabled: true - command: "writeAttribute" - attribute: "color temperature" - arguments: value: 250 - response: - error: UNSUPPORTED_WRITE - - label: "Reads back mandatory attribute: ColorTemperatureMireds" - disabled: true + - label: "Validate constraints of attribute: ColorTemperatureMireds" command: "readAttribute" attribute: "color temperature" response: @@ -162,26 +91,15 @@ tests: minValue: 0 maxValue: 65279 - - label: "Validate constraints of attribute: ColorMode" + #issue #18104 + - label: "Reads ColorMode attribute from DUT" + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "color mode" response: - constraints: - type: enum8 - minValue: 0 - maxValue: 2 - - - label: "Write the default values to mandatory attribute: ColorMode" - disabled: true - command: "writeAttribute" - attribute: "color mode" - arguments: value: 1 - response: - error: UNSUPPORTED_WRITE - - label: "Reads back mandatory attribute: ColorMode" - disabled: true + - label: "Validate constraints of attribute: ColorMode" command: "readAttribute" attribute: "color mode" response: @@ -194,66 +112,25 @@ tests: command: "readAttribute" attribute: "color control options" response: + value: 0 constraints: type: map8 - - label: "Write the default values to mandatory attribute: Options" - command: "writeAttribute" - attribute: "color control options" - arguments: - value: 0 - - - label: "Reads back mandatory attribute: Options" - command: "readAttribute" - attribute: "color control options" - response: - value: 0 - - label: "Validate constraints of attribute: EnhancedCurrentHue" command: "readAttribute" attribute: "enhanced current hue" response: - constraints: - type: uint16 - - - label: - "Write the default values to mandatory attribute: EnhancedCurrentHue" - command: "writeAttribute" - attribute: "enhanced current hue" - arguments: value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: EnhancedCurrentHue" - command: "readAttribute" - attribute: "enhanced current hue" - response: constraints: type: uint16 + #issue #18104 - label: "Validate constraints of attribute: EnhancedColorMode" + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "enhanced color mode" response: - constraints: - type: enum8 - - - label: - "Write the default values to mandatory attribute: EnhancedColorMode" - disabled: true - command: "writeAttribute" - attribute: "enhanced color mode" - arguments: value: 1 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: EnhancedColorMode" - disabled: true - command: "readAttribute" - attribute: "enhanced color mode" - response: constraints: type: enum8 @@ -261,21 +138,7 @@ tests: command: "readAttribute" attribute: "color loop active" response: - constraints: - type: uint8 - - - label: "Write the default values to mandatory attribute: ColorLoopActive" - command: "writeAttribute" - attribute: "color loop active" - arguments: value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: ColorLoopActive" - command: "readAttribute" - attribute: "color loop active" - response: constraints: type: uint8 @@ -283,22 +146,7 @@ tests: command: "readAttribute" attribute: "color loop direction" response: - constraints: - type: uint8 - - - label: - "Write the default values to mandatory attribute: ColorLoopDirection" - command: "writeAttribute" - attribute: "color loop direction" - arguments: value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: ColorLoopDirection" - command: "readAttribute" - attribute: "color loop direction" - response: constraints: type: uint8 @@ -306,21 +154,7 @@ tests: command: "readAttribute" attribute: "color loop time" response: - constraints: - type: uint16 - - - label: "Write the default values to mandatory attribute: ColorLoopTime" - command: "writeAttribute" - attribute: "color loop time" - arguments: value: 25 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: ColorLoopTime" - command: "readAttribute" - attribute: "color loop time" - response: constraints: type: uint16 @@ -328,23 +162,7 @@ tests: command: "readAttribute" attribute: "color loop start enhanced hue" response: - constraints: - type: uint16 - - - label: - "Write the default values to mandatory attribute: - ColorLoopStartEnhancedHue" - command: "writeAttribute" - attribute: "color loop start enhanced hue" - arguments: value: 8960 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: ColorLoopStartEnhancedHue" - command: "readAttribute" - attribute: "color loop start enhanced hue" - response: constraints: type: uint16 @@ -352,45 +170,17 @@ tests: command: "readAttribute" attribute: "color loop stored enhanced hue" response: - constraints: - type: uint16 - - - label: - "Write the default values to mandatory attribute: - ColorLoopStoredEnhancedHue" - command: "writeAttribute" - attribute: "color loop stored enhanced hue" - arguments: value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: ColorLoopStoredEnhancedHue" - command: "readAttribute" - attribute: "color loop stored enhanced hue" - response: constraints: type: uint16 - - label: "Validate constraints of attribute: ColorCapabilities" + - label: "Reads ColorCapabilities attribute from DUT" command: "readAttribute" attribute: "color capabilities" response: - constraints: - type: map16 - minValue: 0 - maxValue: 31 - - - label: - "Write the default values to mandatory attribute: ColorCapabilities" - command: "writeAttribute" - attribute: "color capabilities" - arguments: value: 0 - response: - error: UNSUPPORTED_WRITE - - label: "Reads back mandatory attribute: ColorCapabilities" + - label: "Validate constraints of attribute: ColorCapabilities" command: "readAttribute" attribute: "color capabilities" response: @@ -399,26 +189,13 @@ tests: minValue: 0 maxValue: 31 - - label: "Validate constraints of attribute: ColorTempPhysicalMinMireds" + - label: "Reads ColorTempPhysicalMinMireds attribute from DUT" command: "readAttribute" attribute: "color temp physical min" response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - - label: - "Write the default values to mandatory attribute: - ColorTempPhysicalMinMireds" - command: "writeAttribute" - attribute: "color temp physical min" - arguments: value: 0 - response: - error: UNSUPPORTED_WRITE - - label: "Reads back mandatory attribute: ColorTempPhysicalMinMireds" + - label: "Validate constraints of attribute: ColorTempPhysicalMinMireds" command: "readAttribute" attribute: "color temp physical min" response: @@ -427,26 +204,13 @@ tests: minValue: 0 maxValue: 65279 - - label: "Validate constraints of attribute: ColorTempPhysicalMaxMireds" + - label: "Read ColorTempPhysicalMaxMireds attribute from DUT" command: "readAttribute" attribute: "color temp physical max" response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - - label: - "Write the default values to mandatory attribute: - ColorTempPhysicalMaxMireds" - command: "writeAttribute" - attribute: "color temp physical max" - arguments: value: 65279 - response: - error: UNSUPPORTED_WRITE - - label: "Reads back mandatory attribute: ColorTempPhysicalMaxMireds" + - label: "Validate constraints of attribute: ColorTempPhysicalMaxMireds" command: "readAttribute" attribute: "color temp physical max" response: @@ -462,25 +226,8 @@ tests: response: constraints: type: uint16 - - - label: - "Write the default values to optional attribute: - CoupleColorTempToLevelMinMireds" - optional: true - command: "writeAttribute" - attribute: "couple color temp to level min-mireds" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: CoupleColorTempToLevelMinMireds" - optional: true - command: "readAttribute" - attribute: "couple color temp to level min-mireds" - response: - constraints: - type: uint16 + minValue: 0 + maxValue: 65279 - label: "Read the optional attribute: StartUpColorTemperatureMireds" optional: true @@ -492,44 +239,12 @@ tests: minValue: 0 maxValue: 65279 - - label: - "Write the default values to optional attribute: - StartUpColorTemperatureMireds" - optional: true - command: "writeAttribute" - attribute: "start up color temperature mireds" - arguments: - value: 0 - - - label: "Reads back optional attribute: StartUpColorTemperatureMireds" - optional: true - command: "readAttribute" - attribute: "start up color temperature mireds" - response: - value: 0 - - label: "Validate constraints of attribute: RemainingTime" optional: true command: "readAttribute" attribute: "remaining time" response: - constraints: - type: uint16 - - - label: "Write the default values to optional attribute: RemainingTime" - optional: true - command: "writeAttribute" - attribute: "remaining time" - arguments: value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: RemainingTime" - optional: true - command: "readAttribute" - attribute: "remaining time" - response: constraints: type: uint16 @@ -543,25 +258,6 @@ tests: minValue: 0 maxValue: 4 - - label: "Write the default values to optional attribute: DriftCompensation" - optional: true - command: "writeAttribute" - attribute: "drift compensation" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: DriftCompensation" - optional: true - command: "readAttribute" - attribute: "drift compensation" - response: - constraints: - type: enum8 - minValue: 0 - maxValue: 4 - - label: "Read the optional attribute: CompensationText" optional: true command: "readAttribute" @@ -571,26 +267,7 @@ tests: type: string maxLength: 254 - - label: "Write the default values to optional attribute: CompensationText" - optional: true - command: "writeAttribute" - attribute: "compensation text" - arguments: - value: "" - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: CompensationText" - optional: true - command: "readAttribute" - attribute: "compensation text" - response: - constraints: - type: string - maxLength: 254 - #Defined Primaries Information Attribute Set - - label: "Read the mandatory attribute: NumberOfPrimaries" command: "readAttribute" attribute: "number of primaries" @@ -600,23 +277,6 @@ tests: minValue: 0 maxValue: 6 - - label: "Write the default mandatory attribute: NumberOfPrimaries" - command: "writeAttribute" - attribute: "number of primaries" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: NumberOfPrimaries" - command: "readAttribute" - attribute: "number of primaries" - response: - constraints: - type: uint8 - minValue: 0 - maxValue: 6 - - label: "Read the mandatory attribute: Primary1X" command: "readAttribute" attribute: "primary 1 x" @@ -626,23 +286,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary1X" - command: "writeAttribute" - attribute: "primary 1 x" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary1X" - command: "readAttribute" - attribute: "primary 1 x" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary1Y" command: "readAttribute" attribute: "primary 1 y" @@ -652,23 +295,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary1Y" - command: "writeAttribute" - attribute: "primary 1 y" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary1Y" - command: "readAttribute" - attribute: "primary 1 y" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary1Intensity" command: "readAttribute" attribute: "primary 1 intensity" @@ -676,23 +302,6 @@ tests: constraints: type: uint8 - - label: "Write the default mandatory attribute: Primary1Intensity" - disabled: true - command: "writeAttribute" - attribute: "primary 1 intensity" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary1Intensity" - disabled: true - command: "readAttribute" - attribute: "primary 1 intensity" - response: - constraints: - type: uint8 - - label: "Read the mandatory attribute: Primary2X" command: "readAttribute" attribute: "primary 2 x" @@ -702,23 +311,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary2X" - command: "writeAttribute" - attribute: "primary 2 x" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary2X" - command: "readAttribute" - attribute: "primary 2 x" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary2Y" command: "readAttribute" attribute: "primary 2 y" @@ -728,23 +320,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary2Y" - command: "writeAttribute" - attribute: "primary 2 y" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary2Y" - command: "readAttribute" - attribute: "primary 2 y" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Validate constraints of attribute: Primary2Intensity" command: "readAttribute" attribute: "primary 2 intensity" @@ -752,23 +327,6 @@ tests: constraints: type: uint8 - - label: "Write the default mandatory attribute: Primary2Intensity" - disabled: true - command: "writeAttribute" - attribute: "primary 2 intensity" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary2Intensity" - disabled: true - command: "readAttribute" - attribute: "primary 2 intensity" - response: - constraints: - type: uint8 - - label: "Read the mandatory attribute: Primary3X" command: "readAttribute" attribute: "primary 3 x" @@ -778,23 +336,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary3X" - command: "writeAttribute" - attribute: "primary 3 x" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary3X" - command: "readAttribute" - attribute: "primary 3 x" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary3Y" command: "readAttribute" attribute: "primary 3 y" @@ -804,23 +345,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary3Y" - command: "writeAttribute" - attribute: "primary 3 y" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary3Y" - command: "readAttribute" - attribute: "primary 3 y" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary3Intensity" command: "readAttribute" attribute: "primary 3 intensity" @@ -828,23 +352,6 @@ tests: constraints: type: uint8 - - label: "Write the default mandatory attribute: Primary3Intensity" - disabled: true - command: "writeAttribute" - attribute: "primary 3 intensity" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary3Intensity" - disabled: true - command: "readAttribute" - attribute: "primary 3 intensity" - response: - constraints: - type: uint8 - #Additional Defined Primaries Information Attribute Set - label: "Read the mandatory attribute: Primary4X" command: "readAttribute" @@ -855,23 +362,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary4X" - command: "writeAttribute" - attribute: "primary 4 x" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary4X" - command: "readAttribute" - attribute: "primary 4 x" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary4Y" command: "readAttribute" attribute: "primary 4 y" @@ -881,23 +371,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary4Y" - command: "writeAttribute" - attribute: "primary 4 y" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary4Y" - command: "readAttribute" - attribute: "primary 4 y" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary4Intensity" command: "readAttribute" attribute: "primary 4 intensity" @@ -905,23 +378,6 @@ tests: constraints: type: uint8 - - label: "Write the default mandatory attribute: Primary4Intensity" - disabled: true - command: "writeAttribute" - attribute: "primary 4 intensity" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary4Intensity" - disabled: true - command: "readAttribute" - attribute: "primary 4 intensity" - response: - constraints: - type: uint8 - - label: "Read the mandatory attribute: Primary5X" command: "readAttribute" attribute: "primary 5 x" @@ -931,23 +387,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary5X" - command: "writeAttribute" - attribute: "primary 5 x" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary5X" - command: "readAttribute" - attribute: "primary 5 x" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary5Y" command: "readAttribute" attribute: "primary 5 y" @@ -957,23 +396,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary5Y" - command: "writeAttribute" - attribute: "primary 5 y" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary5Y" - command: "readAttribute" - attribute: "primary 5 y" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary5Intensity" command: "readAttribute" attribute: "primary 5 intensity" @@ -981,23 +403,6 @@ tests: constraints: type: uint8 - - label: "Write the default mandatory attribute: Primary5Intensity" - disabled: true - command: "writeAttribute" - attribute: "primary 5 intensity" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary5Intensity" - disabled: true - command: "readAttribute" - attribute: "primary 5 intensity" - response: - constraints: - type: uint8 - - label: "Read the mandatory attribute: Primary6X" command: "readAttribute" attribute: "primary 6 x" @@ -1007,23 +412,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary6X" - command: "writeAttribute" - attribute: "primary 6 x" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary6X" - command: "readAttribute" - attribute: "primary 6 x" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary6Y" command: "readAttribute" attribute: "primary 6 y" @@ -1033,23 +421,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default mandatory attribute: Primary6Y" - command: "writeAttribute" - attribute: "primary 6 y" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary6Y" - command: "readAttribute" - attribute: "primary 6 y" - response: - constraints: - type: uint16 - minValue: 0 - maxValue: 65279 - - label: "Read the mandatory attribute: Primary6Intensity" command: "readAttribute" attribute: "primary 6 intensity" @@ -1057,23 +428,6 @@ tests: constraints: type: uint8 - - label: "Write the default mandatory attribute: Primary6Intensity" - disabled: true - command: "writeAttribute" - attribute: "primary 6 intensity" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Read back the mandatory attribute: Primary6Intensity" - disabled: true - command: "readAttribute" - attribute: "primary 6 intensity" - response: - constraints: - type: uint8 - #Defined Color Points Settings Attribute Set - label: "Read the optional attribute: WhitePointX" optional: true @@ -1085,20 +439,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default optional attribute: WhitePointX" - optional: true - command: "writeAttribute" - attribute: "white point x" - arguments: - value: 0 - - - label: "Read back the optional attribute: WhitePointX" - optional: true - command: "readAttribute" - attribute: "white point x" - response: - value: 0 - - label: "Read the optional attribute: WhitePointY" optional: true command: "readAttribute" @@ -1109,20 +449,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default optional attribute: WhitePointY" - optional: true - command: "writeAttribute" - attribute: "white point y" - arguments: - value: 0 - - - label: "Read back the optional attribute: WhitePointY" - optional: true - command: "readAttribute" - attribute: "white point y" - response: - value: 0 - - label: "Read the optional attribute: ColorPointRX" optional: true command: "readAttribute" @@ -1133,20 +459,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default optional attribute: ColorPointRX" - optional: true - command: "writeAttribute" - attribute: "color point r x" - arguments: - value: 0 - - - label: "Read back the optional attribute: ColorPointRX" - optional: true - command: "readAttribute" - attribute: "color point r x" - response: - value: 0 - - label: "Read the optional attribute: ColorPointRY" optional: true command: "readAttribute" @@ -1157,20 +469,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default optional attribute: ColorPointRY" - optional: true - command: "writeAttribute" - attribute: "color point r y" - arguments: - value: 0 - - - label: "Read back the optional attribute: ColorPointRY" - optional: true - command: "readAttribute" - attribute: "color point r y" - response: - value: 0 - - label: "Read the optional attribute: ColorPointRIntensity" optional: true command: "readAttribute" @@ -1179,20 +477,6 @@ tests: constraints: type: uint8 - - label: "Write the default optional attribute: ColorPointRIntensity" - optional: true - command: "writeAttribute" - attribute: "color point r intensity" - arguments: - value: 0 - - - label: "Read back the optional attribute: ColorPointRIntensity" - optional: true - command: "readAttribute" - attribute: "color point r intensity" - response: - value: 0 - - label: "Read the optional attribute: ColorPointGX" optional: true command: "readAttribute" @@ -1203,20 +487,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default optional attribute: ColorPointGX" - optional: true - command: "writeAttribute" - attribute: "color point g x" - arguments: - value: 0 - - - label: "Read back the optional attribute: ColorPointGX" - optional: true - command: "readAttribute" - attribute: "color point g x" - response: - value: 0 - - label: "Read the optional attribute: ColorPointGY" optional: true command: "readAttribute" @@ -1227,20 +497,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default optional attribute: ColorPointGY" - optional: true - command: "writeAttribute" - attribute: "color point g y" - arguments: - value: 0 - - - label: "Read back the optional attribute: ColorPointGY" - optional: true - command: "readAttribute" - attribute: "color point g y" - response: - value: 0 - - label: "Read the optional attribute: ColorPointGIntensity" optional: true command: "readAttribute" @@ -1249,20 +505,6 @@ tests: constraints: type: uint8 - - label: "Write the default optional attribute: ColorPointGIntensity" - optional: true - command: "writeAttribute" - attribute: "color point g intensity" - arguments: - value: 0 - - - label: "Read back the optional attribute: ColorPointGIntensity" - optional: true - command: "readAttribute" - attribute: "color point g intensity" - response: - value: 0 - - label: "Read the optional attribute: ColorPointBX" optional: true command: "readAttribute" @@ -1273,20 +515,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default optional attribute: ColorPointBX" - optional: true - command: "writeAttribute" - attribute: "color point b x" - arguments: - value: 0 - - - label: "Read back the optional attribute: ColorPointBX" - optional: true - command: "readAttribute" - attribute: "color point b x" - response: - value: 0 - - label: "Read the optional attribute: ColorPointBY" optional: true command: "readAttribute" @@ -1297,20 +525,6 @@ tests: minValue: 0 maxValue: 65279 - - label: "Write the default optional attribute: ColorPointBY" - optional: true - command: "writeAttribute" - attribute: "color point b y" - arguments: - value: 0 - - - label: "Read back the optional attribute: ColorPointBY" - optional: true - command: "readAttribute" - attribute: "color point b y" - response: - value: 0 - - label: "Read the optional attribute: ColorPointBIntensity" optional: true command: "readAttribute" @@ -1318,17 +532,3 @@ tests: response: constraints: type: uint8 - - - label: "Write the default optional attribute: ColorPointBIntensity" - optional: true - command: "writeAttribute" - attribute: "color point b intensity" - arguments: - value: 0 - - - label: "Read back the optional attribute: ColorPointBIntensity" - optional: true - command: "readAttribute" - attribute: "color point b intensity" - response: - value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml index 64b060fbdb0d7c..8a3de458560a26 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml @@ -113,14 +113,7 @@ tests: constraints: type: uint16 - #Disabled due to issue - #13414 - - label: "Reads the OnLevel attribute " - disabled: true - command: "readAttribute" - attribute: "on level" - response: - value: null - + #Issue 13414 - label: "Reads the OnLevel attribute " command: "readAttribute" attribute: "on level" @@ -128,14 +121,7 @@ tests: constraints: type: uint8 - #Disabled due to issue - #13414 - - label: "Reads the OnTransitionTime attribute " - disabled: true - command: "readAttribute" - attribute: "on transition time" - response: - value: null - + #Issue 13414 - label: "Reads the OnTransitionTime attribute " command: "readAttribute" attribute: "on transition time" @@ -143,14 +129,7 @@ tests: constraints: type: uint16 - #Disabled due to issue - #13414 - - label: "Reads the OffTransitionTime attribute " - disabled: true - command: "readAttribute" - attribute: "off transition time" - response: - value: null - + #Issue 13414 - label: "Reads the OffTransitionTime attribute " command: "readAttribute" attribute: "off transition time" @@ -173,10 +152,10 @@ tests: constraints: type: map8 - #Disabled due to issue - #13414 + #Issue 13414 - label: "Reads the StartUpCurrentLevel attribute " - disabled: true command: "readAttribute" attribute: "start up current level" response: - value: null + constraints: + type: uint8 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml index 389126fc157b0c..9d1b89da4af964 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml @@ -56,13 +56,11 @@ tests: arguments: value: 0 - #Disabled due to issue - #11670 + #Issue 13414 - label: "Reads the OnLevel attribute from the DUT" - disabled: true command: "readAttribute" attribute: "on level" response: - value: null constraints: type: uint8 @@ -80,13 +78,11 @@ tests: constraints: type: uint8 - #Disabled due to issue - #11670 + #Issue 13414 - label: "Reads the OnTransitionTime attribute from the DUT" - disabled: true command: "readAttribute" attribute: "on transition time" response: - value: null constraints: type: uint16 @@ -104,13 +100,11 @@ tests: constraints: type: uint16 - #Disabled due to issue - #11670 + #Issue -13414 - label: "Reads the OffTransitionTime attribute from the DUT" - disabled: true command: "readAttribute" attribute: "off transition time" response: - value: null constraints: type: uint16 @@ -150,13 +144,11 @@ tests: constraints: type: uint8 - #Disabled due to issue - #11670 + #issue -13414 - label: "Reads the StartUpCurrentLevel attribute from the DUT" - disabled: true command: "readAttribute" attribute: "start up current level" response: - value: null constraints: type: uint8 diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_12.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_12.yaml index ed19d3d3d485c1..c80c24b083151e 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_12.yaml @@ -30,7 +30,9 @@ tests: value: nodeId - label: "Hide Input Status Command" + PICS: PICS_SKIP_SAMPLE_APP command: "HideInputStatus" - label: "Show Input Status Command" + PICS: PICS_SKIP_SAMPLE_APP command: "ShowInputStatus" diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_13.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_13.yaml index 91d0f52e9035b1..ad696fedce8e53 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_13.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_13.yaml @@ -37,6 +37,7 @@ tests: type: list - label: "Rename Input Command" + PICS: PICS_SKIP_SAMPLE_APP command: "RenameInput" arguments: values: @@ -46,6 +47,7 @@ tests: value: "A1" - label: "Rename Input Command" + PICS: PICS_SKIP_SAMPLE_APP command: "RenameInput" arguments: values: @@ -58,4 +60,5 @@ tests: command: "readAttribute" attribute: "InputList" response: - value: [] + constraints: + type: list diff --git a/src/app/tests/suites/certification/Test_TC_MC_5_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_5_1.yaml index 154431ab5e58b4..6e6a3f8e8485e1 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_5_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_5_1.yaml @@ -28,30 +28,6 @@ tests: - name: "nodeId" value: nodeId - #issue 13412 TODO: Enable test and update response value when SDK supports. - - label: "Read attribute Channel list" - disabled: true - command: "readAttribute" - attribute: "ChannelList" - response: - value: - [ - { - majorNumber: 1, - minorNumber: 2, - name: "exampleName", - callSign: "exampleCSign", - affiliateCallSign: "exampleASign", - }, - { - majorNumber: 2, - minorNumber: 3, - name: "exampleName", - callSign: "exampleCSign", - affiliateCallSign: "exampleASign", - }, - ] - - label: "Reads the ChannelList attribute from the DUT" command: "readAttribute" attribute: "ChannelList" diff --git a/src/app/tests/suites/certification/Test_TC_MC_5_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_5_2.yaml index 0ba8265e6b662a..5531f65a516a7d 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_5_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_5_2.yaml @@ -18,6 +18,12 @@ config: nodeId: 0x12344321 cluster: "Channel" endpoint: 1 + majornumber: + type: INT16U + defaultValue: 1 + minornumber: + type: INT16U + defaultValue: 2 tests: - label: "Wait for the commissioned device to be retrieved" @@ -28,26 +34,23 @@ tests: - name: "nodeId" value: nodeId - #Disabled due to issue- #13029 - label: "Reads the ChannelList attribute" - disabled: true command: "readAttribute" attribute: "ChannelList" response: - saveAs: ChanaelListValues constraints: type: list - #Disabled due to issue- #13029 + #Issue 18097 - label: "TH sends a ChangeChannelByNumber command" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "ChangeChannelByNumber" arguments: values: - name: "majorNumber" - value: ChanaelListValues + value: majornumber - name: "minorNumber" - value: ChanaelListValues + value: minornumber - label: "log a command" cluster: "LogCommands" @@ -57,10 +60,10 @@ tests: - name: "message" value: "verify that the channel has changed on the device." - #Disabled due to issue- #13029 + #Issue 18094 - label: "Reads the CurrentChannel attribute" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "CurrentChannel" response: - value: ChanaelListValues + value: [majorNumber: majornumber, minorNumber: minornumber] diff --git a/src/app/tests/suites/certification/Test_TC_MC_5_3.yaml b/src/app/tests/suites/certification/Test_TC_MC_5_3.yaml index b1dba6712e7451..c00ff521972080 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_5_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_5_3.yaml @@ -18,6 +18,12 @@ config: nodeId: 0x12344321 cluster: "Channel" endpoint: 1 + majornumber: + type: INT16U + defaultValue: 1 + minornumber: + type: INT16U + defaultValue: 2 tests: - label: "Wait for the commissioned device to be retrieved" @@ -28,27 +34,25 @@ tests: - name: "nodeId" value: nodeId - #Disabled due to issue- #13029 - label: "Reads the ChannelList attribute from the DUT" - disabled: true command: "readAttribute" attribute: "ChannelList" response: - saveAs: tvchannellistvalues constraints: type: list - #Disabled due to issue- #13029 + #Issue 18094 - label: "Reads the CurrentChannel attribute from the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "CurrentChannel" response: - value: channellistvalues + saveAs: currentChannelvalue + value: [majorNumber: majornumber, minorNumber: minornumber] - #Disabled due to issue - #13084 + #Issue 13084 and 18098 - label: "Sends a SkipChannel command to the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "SkipChannel" arguments: values: @@ -63,10 +67,11 @@ tests: - name: "message" value: "verify that the channel has changed on the device" - #Disabled due to issue- #13029 + #Issue 18094 and 13029 - label: "Reads the CurrentChannel attribute from the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "CurrentChannel" response: - value: channellistvalues + constraints: + type: list diff --git a/src/app/tests/suites/certification/Test_TC_MC_6_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_6_1.yaml index 85194aa8c75f29..c4bdb724327103 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_6_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_6_1.yaml @@ -32,10 +32,11 @@ tests: - label: "Precondition: Connect media content available for playback" disabled: true + #Issue 18109 - label: "Precondition: Media content in a paused state at the beginning of the content" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Pause" - label: "log a command" @@ -47,14 +48,14 @@ tests: value: "Verify that media is paused" - label: "Reads the CurrentState attribute" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "CurrentState" response: value: 1 - label: "sends a Play command" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Play" - label: "log a command" @@ -72,7 +73,7 @@ tests: value: 0 - label: "sends a Pause command" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Pause" - label: "log a command" @@ -84,14 +85,14 @@ tests: value: "Physically verify that the media is paused" - label: "Reads the playback state attribute" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "CurrentState" response: value: 1 - label: "sends a Stop command" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "StopPlayback" - label: "log a command" @@ -103,7 +104,7 @@ tests: value: "Physically verify that the media is stoped" - label: "Reads the playback state attribute" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "CurrentState" response: diff --git a/src/app/tests/suites/certification/Test_TC_MC_6_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_6_2.yaml index 6431ac3084b9e9..093e38abc091cf 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_6_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_6_2.yaml @@ -35,7 +35,7 @@ tests: - label: "Precondition: Media content in a paused state at the beginning of the content" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Pause" - label: "log a command" @@ -49,15 +49,16 @@ tests: - label: "Precondition: At least 2 media items are queued" disabled: true + #Issue 18109 - label: "Reads the CurrentState attribute from the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "CurrentState" response: value: 1 - label: "Sends a Play command to the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Play" - label: "log a command" @@ -75,7 +76,7 @@ tests: value: 0 - label: "Sends a StartOver command to the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "StartOver" - label: "log a command" @@ -87,7 +88,6 @@ tests: value: "Physically verify that the media is started over" - label: "Sends a Next command to the DUT" - disabled: true command: "Next" - label: "log a command" @@ -101,7 +101,7 @@ tests: loaded" - label: "Sends a Previous command to the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Previous" - label: "log a command" @@ -115,7 +115,7 @@ tests: loaded" - label: "Sends a SkipForward command to the DUT " - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "SkipForward" arguments: values: @@ -131,14 +131,14 @@ tests: value: "Verify that the media has skipped forward 10 seconds" - label: "Reads the SampledPosition attribute from the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "SampledPosition" response: value: 10000 - label: "Sends a SkipBackward command to the DUT " - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "SkipBackward" arguments: values: @@ -154,7 +154,7 @@ tests: value: "Verify that the media has skipped backward 10 seconds" - label: "Reads the SampledPosition attribute from the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "SampledPosition" response: diff --git a/src/app/tests/suites/certification/Test_TC_MC_6_3.yaml b/src/app/tests/suites/certification/Test_TC_MC_6_3.yaml index 105dcf3c7de1b7..ef2b62209afe9c 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_6_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_6_3.yaml @@ -32,11 +32,12 @@ tests: - label: "Precondition: Connect media content available for playback" disabled: true + #Issue 18109 - label: "Precondition: Media content in a paused state at the beginning of the content" - disabled: true - command: "MediaPause" + PICS: PICS_SKIP_SAMPLE_APP + command: "Pause" - label: "log a command" cluster: "LogCommands" @@ -47,8 +48,8 @@ tests: value: "Verify that media is paused" - label: "Sends a Seek command" - disabled: true - command: "MediaSeek" + PICS: PICS_SKIP_SAMPLE_APP + command: "Seek" arguments: values: - name: "Position" @@ -65,7 +66,7 @@ tests: starting point." - label: "Reads the SampledPosition attribute" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "SampledPosition" response: @@ -81,22 +82,21 @@ tests: value: "User prompt needed to enter the value beyond the furthest valid position" - saveAs: positionValue # todo : Need a user input - label: "Sends a Seek command Position value beyond the furthest valid position" - disabled: true - command: "MediaSeek" + PICS: PICS_SKIP_SAMPLE_APP + command: "Seek" arguments: values: - name: "position" - value: positionValue + value: 10000 # response: SEEK_OUT_OF_RANGE - label: "Reads the SampledPosition attribute" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "SampledPosition" response: diff --git a/src/app/tests/suites/certification/Test_TC_MC_6_4.yaml b/src/app/tests/suites/certification/Test_TC_MC_6_4.yaml index 488b53d1f6993c..cd752750a08ef3 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_6_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_6_4.yaml @@ -32,10 +32,11 @@ tests: - label: "Precondition: Connect media content available for playback" disabled: true + #Issue 18109 - label: "Precondition: Media content in a paused state at the beginning of the content" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Pause" - label: "log a command" @@ -47,7 +48,7 @@ tests: value: "Verify that media is paused" - label: "Reads the CurrentState attribute from the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "CurrentState" response: @@ -60,12 +61,8 @@ tests: value: 0 - label: "Sends a FastForward command" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "FastForward" - response: - values: - - name: "returnValue" - value: 0 - label: "log a command" cluster: "LogCommands" @@ -82,19 +79,15 @@ tests: value: 0 - label: "Reads the PlaybackSpeed attribute from the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "PlaybackSpeed" response: value: 1 - label: "Sends a FastForward command" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "FastForward" - response: - values: - - name: "returnValue" - value: 0 - label: "log a command" cluster: "LogCommands" @@ -105,14 +98,14 @@ tests: value: "Verify that the media play speed has increased" - label: "Reads the PlaybackSpeed attribute from the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "PlaybackSpeed" response: value: 2 - label: "Sends a Rewind command to the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Rewind" - label: "log a command" @@ -137,12 +130,8 @@ tests: value: -1 - label: "Sends a Rewind command to the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Rewind" - response: - values: - - name: "returnValue" - value: 0 - label: "log a command" cluster: "LogCommands" @@ -160,12 +149,8 @@ tests: value: -2 - label: "Sends a Play command" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Play" - response: - values: - - name: "returnValue" - value: 0 - label: "log a command" cluster: "LogCommands" @@ -178,20 +163,20 @@ tests: default speed" - label: "Reads the PlaybackSpeed attribute from the DUT" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "PlaybackSpeed" response: value: 1 - label: "Sends consecutive FastForward commands" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "FastForward" response: error: 4 - label: "Sends consecutive Rewind commands" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "Rewind" response: error: 4 diff --git a/src/app/tests/suites/certification/Test_TC_MC_7_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_7_1.yaml index e09b1d757422d6..fc1b9210edf0f8 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_7_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_7_1.yaml @@ -28,31 +28,25 @@ tests: - name: "nodeId" value: nodeId - #Disabled due to issue- #13029 - label: "Reads the OutputList attribute" - disabled: true command: "readAttribute" attribute: "OutputList" response: - saveAs: outputListValues constraints: - type: list + type: OutPutInfo - #Disabled due to issue- #13029 + #Issue 18100 - label: "Sends a SelectAudioOutput command" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "SelectOutput" arguments: values: - name: "Index" - value: outputListValues + value: 1 - #Disabled due to issue- #13029 - label: "Reads the CurrentOutput attribute" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" - attribute: "OutputList" + attribute: "CurrentOutput" response: - value: outputListValues - constarints: - type: uint8 + value: 1 diff --git a/src/app/tests/suites/certification/Test_TC_MC_7_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_7_2.yaml index f4d53cce743aa5..3803946f5ce1b7 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_7_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_7_2.yaml @@ -28,31 +28,35 @@ tests: - name: "nodeId" value: nodeId - #Disabled due to issue- #13029 - label: "Reads the OutputList attribute from the DUT" - disabled: true command: "readAttribute" attribute: "OutputList" response: saveAs: audioOutputListValues constraints: - type: list + type: OutPutInfo - #Disabled due to issue- #13029 + #Issue 18102 - label: "Sends a RenameOutput command" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "RenameOutput" arguments: values: - name: "Index" - value: audioOutputListValues + value: 1 - name: "name" value: "CertTest" #Disabled due to issue- #13029 - - label: "Reads the OutputList attribute from the DUT" - disabled: true - command: "readAttribute" - attribute: "OutputList" - response: - value: audioOutputListValues + - label: + "Reads the OutputList attribute from the DUT Verify that the output at + the index provided in step 2 has the name CertTest" + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" diff --git a/src/app/tests/suites/certification/Test_TC_MC_9_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_9_1.yaml index e6cb59e61aada3..f2d5eeca83dfe2 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_9_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_9_1.yaml @@ -69,13 +69,12 @@ tests: constraints: type: uint16 - # TODO: Enable once attribute struct is supported + #Issue 18103 - label: "Reads the Application attribute" - disabled: true + PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "Application" response: - value: { catalogVendorId: 123, applicationId: "applicationId" } constraints: type: struct @@ -83,7 +82,9 @@ tests: command: "readAttribute" attribute: "Status" response: - value: 0 + constraints: + minValue: 0 + maxValue: 3 - label: "Reads the ApplicationVersion attribute" command: "readAttribute" @@ -93,12 +94,9 @@ tests: type: string maxLength: 32 - #Disabled due to issue- #10882 - label: "Reads the AllowedVendorList attribute" - disabled: true command: "readAttribute" attribute: "AllowedVendorList" response: - value: [123, 987] constraints: type: list diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml index eb6e00abccf6a8..6b881ada8976be 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml @@ -36,10 +36,14 @@ tests: value: 0 saveAs: OccupancyValue - #Issue #10815 Disabled as UI prompts required for user action - label: "Operate on DUT to change the occupancy status" - disabled: true PICS: MANUAL_OCCUPANCY_CHANGE + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Operate on DUT to change the occupancy status" - label: "Reads back Occupancy attribute from DUT after few seconds" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_PRS_2_1.yaml b/src/app/tests/suites/certification/Test_TC_PRS_2_1.yaml index 546331e7d361a6..c42097cabe9196 100644 --- a/src/app/tests/suites/certification/Test_TC_PRS_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_PRS_2_1.yaml @@ -34,20 +34,8 @@ tests: response: constraints: type: int16 - - - label: "Write the default values to mandatory attribute: MeasuredValue" - command: "writeAttribute" - attribute: "MeasuredValue" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: MeasuredValue" - command: "readAttribute" - attribute: "MeasuredValue" - response: - value: 0 + minValue: -32768 + maxValue: 32767 - label: "Read the mandatory attribute constraints: MinMeasuredValue" command: "readAttribute" @@ -55,20 +43,8 @@ tests: response: constraints: type: int16 - - - label: "Write the default values to mandatory attribute: MinMeasuredValue" - command: "writeAttribute" - attribute: "MinMeasuredValue" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: MinMeasuredValue" - command: "readAttribute" - attribute: "MinMeasuredValue" - response: - value: 0 + minValue: -32768 + maxValue: 32767 - label: "Read the mandatory attribute constraints: MaxMeasuredValue" command: "readAttribute" @@ -76,157 +52,66 @@ tests: response: constraints: type: int16 + minValue: -32768 + maxValue: 32767 - - label: "Write the default values to mandatory attribute: MaxMeasuredValue" - command: "writeAttribute" - attribute: "MaxMeasuredValue" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back mandatory attribute: MaxMeasuredValue" - command: "readAttribute" - attribute: "MaxMeasuredValue" - response: - value: 0 - - #disabled due to issue #13442 + #Issue 18243 - label: "Read the optional attribute: Tolerance" - disabled: true - command: "readAttribute" - attribute: "Tolerance" - response: - value: 0 - - - label: "Write the default values to optional attribute: Tolerance" - disabled: true - command: "writeAttribute" - attribute: "Tolerance" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: Tolerance" - disabled: true + optional: true command: "readAttribute" attribute: "Tolerance" response: - value: 0 + constraints: + type: int16 + minValue: 0 + maxValue: 2048 - #Following attributes are based on the value of the extended feature in the cluster feature map - label: "Read the optional attribute: ScaledValue" - disabled: true - command: "readAttribute" - attribute: "ScaledValue" - response: - value: 0 - - - label: "Write the default values to optional attribute: ScaledValue" - disabled: true - command: "writeAttribute" - attribute: "ScaledValue" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: ScaledValue" - disabled: true + optional: true command: "readAttribute" attribute: "ScaledValue" response: - value: 0 + constraints: + type: int16 + minValue: -32768 + maxValue: 32767 - label: "Read the optional attribute: MinScaledValue" - disabled: true + optional: true command: "readAttribute" attribute: "MinScaledValue" response: - value: 0 - - - label: "Write the default values to optional attribute: MinScaledValue" - disabled: true - command: "writeAttribute" - attribute: "MinScaledValue" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: MinScaledValue" - disabled: true - command: "readAttribute" - attribute: "MinScaledValue" - response: - value: 0 + constraints: + type: int16 + minValue: -32768 + maxValue: 32767 - label: "Read the optional attribute: MaxScaledValue" - disabled: true - command: "readAttribute" - attribute: "MaxScaledValue" - response: - value: 0 - - - label: "Write the default values to optional attribute: MaxScaledValue" - disabled: true - command: "writeAttribute" - attribute: "MaxScaledValue" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: MaxScaledValue" - disabled: true + optional: true command: "readAttribute" attribute: "MaxScaledValue" response: - value: 0 + constraints: + type: int16 + minValue: -32768 + maxValue: 32767 - label: "Read the optional attribute: ScaledTolerance" - disabled: true - command: "readAttribute" - attribute: "ScaledTolerance" - response: - value: 0 - - - label: "Write the default values to optional attribute: ScaledTolerance" - disabled: true - command: "writeAttribute" - attribute: "ScaledTolerance" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: ScaledTolerance" - disabled: true + optional: true command: "readAttribute" attribute: "ScaledTolerance" response: - value: 0 + constraints: + type: int16 + minValue: 0 + maxValue: 2048 - label: "Read the optional attribute: Scale" - disabled: true - command: "readAttribute" - attribute: "Scale" - response: - value: 0 - - - label: "Write the default values to optional attribute: Scale" - disabled: true - command: "writeAttribute" - attribute: "Scale" - arguments: - value: 0 - response: - error: UNSUPPORTED_WRITE - - - label: "Reads back optional attribute: Scale" - disabled: true + optional: true command: "readAttribute" attribute: "Scale" response: - value: 0 + constraints: + type: int8 + minValue: -127 + maxValue: 127 diff --git a/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml index a94d949a5317f4..35e2aa02aa05b0 100644 --- a/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml @@ -28,23 +28,13 @@ tests: - name: "nodeId" value: nodeId - - label: - "Read ClusterRevision attribute from the DUT and Verify that the DUT - response indicates ClusterRevision attribute has the value 2" - verification: | - ./chip-tool thermostatuserinterfaceconfiguration read cluster-revision 12345 1 - [...] - [1646160162.271548][44516:44521] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0204 Attribute 0x0000_FFFDDataVersion: 3978864668 - [1646160162.271619][44516:44521] CHIP:TOO: ClusterRevision: 1 - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT - arguments: - values: - - name: "message" - value: "Please enter ClusterRevision attribute value" - - name: "expectedValue" - value: 2 + - label: "TH read ClusterRevision attribute from the DUT" + command: "readAttribute" + attribute: "ClusterRevision" + response: + value: 2 + constraints: + type: uint16 # Issue 17464 - label: "Read the global attribute: AttributeList" @@ -56,6 +46,7 @@ tests: constraints: type: list + #Issue 15011 - label: "Read EventList attribute from the DUT and Verify that the DUT response provides a list of supported events." diff --git a/src/app/tests/suites/certification/Test_TC_TSUIC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_TSUIC_2_2.yaml index 9147321abaf224..adfa99e173cb99 100644 --- a/src/app/tests/suites/certification/Test_TC_TSUIC_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSUIC_2_2.yaml @@ -35,9 +35,13 @@ tests: arguments: value: 0 - #Disabled as UI prompts required for user action - label: "Verify device temperature displayed in °C" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Verify device temperature displayed in °C" - label: "Writes a value of 1 to TemperatureDisplayMode attribute of DUT" command: "writeAttribute" @@ -46,11 +50,14 @@ tests: arguments: value: 1 - #Disabled as UI prompts required for user action - label: "Verify device temperature displayed in °F" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Verify device temperature displayed in °F" - #Disabled as write was successful - label: "Writes a value of greater than 1 to TemperatureDisplayMode attribute of DUT" @@ -69,9 +76,13 @@ tests: arguments: value: 0 - #Disabled as UI prompts required for user action - label: "Verify all device functionality available to the user" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Verify all device functionality available to the user" - label: "Writes a value of 1 to KeypadLockout attribute of DUT" command: "writeAttribute" @@ -80,9 +91,13 @@ tests: arguments: value: 1 - #Disabled as UI prompts required for user action - label: "Verify device operates at Level 1 reduced functionality" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Verify device operates at Level 1 reduced functionality" - label: "Writes a value of 2 to KeypadLockout attribute of DUT" command: "writeAttribute" @@ -91,9 +106,13 @@ tests: arguments: value: 2 - #Disabled as UI prompts required for user action - label: "Verify device operates at Level 2 reduced functionality" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Verify device operates at Level 2 reduced functionality" - label: "Writes a value of 3 to KeypadLockout attribute of DUT" command: "writeAttribute" @@ -102,9 +121,13 @@ tests: arguments: value: 3 - #Disabled as UI prompts required for user action - label: "Verify device operates at Level 3 reduced functionality" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Verify device operates at Level 3 reduced functionality" - label: "Writes a value of 4 to KeypadLockout attribute of DUT" command: "writeAttribute" @@ -113,9 +136,13 @@ tests: arguments: value: 4 - #Disabled as UI prompts required for user action - label: "Verify device operates at Level 4 reduced functionality" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Verify device operates at Level 4 reduced functionality" - label: "Writes a value of 5 to KeypadLockout attribute of DUT" command: "writeAttribute" @@ -124,11 +151,14 @@ tests: arguments: value: 5 - #Disabled as UI prompts required for user action - label: "Verify device operates at least functionality level" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Verify device operates at least functionality level" - #Disabled as write was successful - label: "Writes a value of greater than 5 to KeypadLockout attribute of DUT" command: "writeAttribute" @@ -147,11 +177,17 @@ tests: arguments: value: 0 - #Disabled as UI prompts required for user action - label: "Verify local schedule programming functionality is enabled at the thermostat" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: + "Verify local schedule programming functionality is enabled + at the thermostat" - label: "Writes a value of 1 to ScheduleProgrammingVisibility attribute of DUT" @@ -161,13 +197,18 @@ tests: arguments: value: 1 - #Disabled as UI prompts required for user action - label: "Verify local schedule programming functionality is disabled at the thermostat" - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: + "Verify local schedule programming functionality is disabled + at the thermostat" - #Disabled as write was successful - label: "Writes a value of greater than 1 to ScheduleProgrammingVisibility attribute of DUT" diff --git a/src/app/tests/suites/tests.js b/src/app/tests/suites/tests.js index 39e5b889389fac..dfe0f3ed55ba7b 100644 --- a/src/app/tests/suites/tests.js +++ b/src/app/tests/suites/tests.js @@ -179,9 +179,11 @@ function getManualTests() { const MediaControl = [ 'Test_TC_MC_2_2', - 'Test_TC_MC_3_12', - 'Test_TC_MC_3_13', 'Test_TC_MC_4_1', + 'Test_TC_MC_6_1', + 'Test_TC_MC_6_2', + 'Test_TC_MC_6_3', + 'Test_TC_MC_6_4', 'Test_TC_MC_8_2', 'Test_TC_MC_9_2', 'Test_TC_MC_10_2', @@ -282,6 +284,7 @@ function getManualTests() { ]; const OccupancySensing = [ + 'Test_TC_OCC_2_2', 'Test_TC_OCC_2_3', 'Test_TC_OCC_2_4', 'Test_TC_OCC_3_1', @@ -535,7 +538,6 @@ function getTests() { const OccupancySensing = [ 'Test_TC_OCC_1_1', 'Test_TC_OCC_2_1', - 'Test_TC_OCC_2_2', ]; const LevelControl = [ @@ -577,13 +579,11 @@ function getTests() { 'Test_TC_MC_3_9', 'Test_TC_MC_3_10', 'Test_TC_MC_3_11', + 'Test_TC_MC_3_12', + 'Test_TC_MC_3_13', 'Test_TC_MC_5_1', 'Test_TC_MC_5_2', 'Test_TC_MC_5_3', - 'Test_TC_MC_6_1', - 'Test_TC_MC_6_2', - 'Test_TC_MC_6_3', - 'Test_TC_MC_6_4', 'Test_TC_MC_7_1', 'Test_TC_MC_7_2', 'Test_TC_MC_8_1', diff --git a/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h b/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h index 46bea59e919c86..ee95fd088f2bf1 100644 --- a/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h @@ -110,13 +110,11 @@ class TestList : public Command { printf("Test_TC_MC_3_9\n"); printf("Test_TC_MC_3_10\n"); printf("Test_TC_MC_3_11\n"); + printf("Test_TC_MC_3_12\n"); + printf("Test_TC_MC_3_13\n"); printf("Test_TC_MC_5_1\n"); printf("Test_TC_MC_5_2\n"); printf("Test_TC_MC_5_3\n"); - printf("Test_TC_MC_6_1\n"); - printf("Test_TC_MC_6_2\n"); - printf("Test_TC_MC_6_3\n"); - printf("Test_TC_MC_6_4\n"); printf("Test_TC_MC_7_1\n"); printf("Test_TC_MC_7_2\n"); printf("Test_TC_MC_8_1\n"); @@ -131,7 +129,6 @@ class TestList : public Command { printf("OTA_SuccessfulTransfer\n"); printf("Test_TC_OCC_1_1\n"); printf("Test_TC_OCC_2_1\n"); - printf("Test_TC_OCC_2_2\n"); printf("Test_TC_OO_1_1\n"); printf("Test_TC_OO_2_1\n"); printf("Test_TC_OO_2_2\n"); @@ -4056,564 +4053,252 @@ class Test_TC_CC_2_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Validate constraints of attribute: current hue\n"); + ChipLogProgress(chipTool, " ***** Test Step 1 : Validate constraints of attribute: CurrentHue\n"); err = TestValidateConstraintsOfAttributeCurrentHue_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Write the default value to mandatory attribute: CurrentHue\n"); - err = TestWriteTheDefaultValueToMandatoryAttributeCurrentHue_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Validate constraints of attribute: CurrentSaturation\n"); + err = TestValidateConstraintsOfAttributeCurrentSaturation_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads back mandatory attribute: CurrentHue\n"); - err = TestReadsBackMandatoryAttributeCurrentHue_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads CurrentX attribute from DUT\n"); + err = TestReadsCurrentXAttributeFromDut_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Validate constraints of attribute: CurrentSaturation\n"); - err = TestValidateConstraintsOfAttributeCurrentSaturation_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Validate constraints of attribute: CurrentX\n"); + err = TestValidateConstraintsOfAttributeCurrentX_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Write the default value to mandatory attribute: CurrentSaturation\n"); - err = TestWriteTheDefaultValueToMandatoryAttributeCurrentSaturation_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Reads CurrentY attribute from DUT\n"); + err = TestReadsCurrentYAttributeFromDut_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Reads back mandatory attribute: CurrentSaturation\n"); - err = TestReadsBackMandatoryAttributeCurrentSaturation_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Validate constraints of attribute: CurrentY\n"); + err = TestValidateConstraintsOfAttributeCurrentY_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Validate constraints of attribute: CurrentX\n"); - err = TestValidateConstraintsOfAttributeCurrentX_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Reads ColorTemperatureMireds attribute from DUT\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestReadsColorTemperatureMiredsAttributeFromDut_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Write the default value to mandatory attribute: CurrentX\n"); - err = TestWriteTheDefaultValueToMandatoryAttributeCurrentX_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Validate constraints of attribute: ColorTemperatureMireds\n"); + err = TestValidateConstraintsOfAttributeColorTemperatureMireds_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Reads back mandatory attribute: CurrentX\n"); - err = TestReadsBackMandatoryAttributeCurrentX_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Reads ColorMode attribute from DUT\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestReadsColorModeAttributeFromDut_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Validate constraints of attribute: CurrentY\n"); - err = TestValidateConstraintsOfAttributeCurrentY_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Validate constraints of attribute: ColorMode\n"); + err = TestValidateConstraintsOfAttributeColorMode_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Write the default values to mandatory attribute: CurrentY\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeCurrentY_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Validate constraints of attribute: Options\n"); + err = TestValidateConstraintsOfAttributeOptions_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Reads back mandatory attribute: CurrentY\n"); - err = TestReadsBackMandatoryAttributeCurrentY_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Validate constraints of attribute: EnhancedCurrentHue\n"); + err = TestValidateConstraintsOfAttributeEnhancedCurrentHue_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Validate constraints of attribute: ColorTemperatureMireds\n"); - err = TestValidateConstraintsOfAttributeColorTemperatureMireds_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Validate constraints of attribute: EnhancedColorMode\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestValidateConstraintsOfAttributeEnhancedColorMode_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Validate constraints of attribute: ColorMode\n"); - err = TestValidateConstraintsOfAttributeColorMode_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Validate constraints of attribute: ColorLoopActive\n"); + err = TestValidateConstraintsOfAttributeColorLoopActive_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Validate constraints of attribute: Options\n"); - err = TestValidateConstraintsOfAttributeOptions_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Validate constraints of attribute: ColorLoopDirection\n"); + err = TestValidateConstraintsOfAttributeColorLoopDirection_15(); break; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Write the default values to mandatory attribute: Options\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeOptions_16(); + ChipLogProgress(chipTool, " ***** Test Step 16 : Validate constraints of attribute: ColorLoopTime\n"); + err = TestValidateConstraintsOfAttributeColorLoopTime_16(); break; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Reads back mandatory attribute: Options\n"); - err = TestReadsBackMandatoryAttributeOptions_17(); + ChipLogProgress(chipTool, " ***** Test Step 17 : Validate constraints of attribute: ColorLoopStartEnhancedHue\n"); + err = TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_17(); break; case 18: - ChipLogProgress(chipTool, " ***** Test Step 18 : Validate constraints of attribute: EnhancedCurrentHue\n"); - err = TestValidateConstraintsOfAttributeEnhancedCurrentHue_18(); + ChipLogProgress(chipTool, " ***** Test Step 18 : Validate constraints of attribute: ColorLoopStoredEnhancedHue\n"); + err = TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_18(); break; case 19: - ChipLogProgress( - chipTool, " ***** Test Step 19 : Write the default values to mandatory attribute: EnhancedCurrentHue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeEnhancedCurrentHue_19(); + ChipLogProgress(chipTool, " ***** Test Step 19 : Reads ColorCapabilities attribute from DUT\n"); + err = TestReadsColorCapabilitiesAttributeFromDut_19(); break; case 20: - ChipLogProgress(chipTool, " ***** Test Step 20 : Reads back mandatory attribute: EnhancedCurrentHue\n"); - err = TestReadsBackMandatoryAttributeEnhancedCurrentHue_20(); + ChipLogProgress(chipTool, " ***** Test Step 20 : Validate constraints of attribute: ColorCapabilities\n"); + err = TestValidateConstraintsOfAttributeColorCapabilities_20(); break; case 21: - ChipLogProgress(chipTool, " ***** Test Step 21 : Validate constraints of attribute: EnhancedColorMode\n"); - err = TestValidateConstraintsOfAttributeEnhancedColorMode_21(); + ChipLogProgress(chipTool, " ***** Test Step 21 : Reads ColorTempPhysicalMinMireds attribute from DUT\n"); + err = TestReadsColorTempPhysicalMinMiredsAttributeFromDut_21(); break; case 22: - ChipLogProgress(chipTool, " ***** Test Step 22 : Validate constraints of attribute: ColorLoopActive\n"); - err = TestValidateConstraintsOfAttributeColorLoopActive_22(); + ChipLogProgress(chipTool, " ***** Test Step 22 : Validate constraints of attribute: ColorTempPhysicalMinMireds\n"); + err = TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_22(); break; case 23: - ChipLogProgress(chipTool, " ***** Test Step 23 : Write the default values to mandatory attribute: ColorLoopActive\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopActive_23(); + ChipLogProgress(chipTool, " ***** Test Step 23 : Read ColorTempPhysicalMaxMireds attribute from DUT\n"); + err = TestReadColorTempPhysicalMaxMiredsAttributeFromDut_23(); break; case 24: - ChipLogProgress(chipTool, " ***** Test Step 24 : Reads back mandatory attribute: ColorLoopActive\n"); - err = TestReadsBackMandatoryAttributeColorLoopActive_24(); + ChipLogProgress(chipTool, " ***** Test Step 24 : Validate constraints of attribute: ColorTempPhysicalMaxMireds\n"); + err = TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_24(); break; case 25: - ChipLogProgress(chipTool, " ***** Test Step 25 : Validate constraints of attribute: ColorLoopDirection\n"); - err = TestValidateConstraintsOfAttributeColorLoopDirection_25(); + ChipLogProgress(chipTool, " ***** Test Step 25 : Read the optional attribute: CoupleColorTempToLevelMinMireds\n"); + err = TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_25(); break; case 26: - ChipLogProgress( - chipTool, " ***** Test Step 26 : Write the default values to mandatory attribute: ColorLoopDirection\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopDirection_26(); + ChipLogProgress(chipTool, " ***** Test Step 26 : Read the optional attribute: StartUpColorTemperatureMireds\n"); + err = TestReadTheOptionalAttributeStartUpColorTemperatureMireds_26(); break; case 27: - ChipLogProgress(chipTool, " ***** Test Step 27 : Reads back mandatory attribute: ColorLoopDirection\n"); - err = TestReadsBackMandatoryAttributeColorLoopDirection_27(); + ChipLogProgress(chipTool, " ***** Test Step 27 : Validate constraints of attribute: RemainingTime\n"); + err = TestValidateConstraintsOfAttributeRemainingTime_27(); break; case 28: - ChipLogProgress(chipTool, " ***** Test Step 28 : Validate constraints of attribute: ColorLoopTime\n"); - err = TestValidateConstraintsOfAttributeColorLoopTime_28(); + ChipLogProgress(chipTool, " ***** Test Step 28 : Read the optional attribute: DriftCompensation\n"); + err = TestReadTheOptionalAttributeDriftCompensation_28(); break; case 29: - ChipLogProgress(chipTool, " ***** Test Step 29 : Write the default values to mandatory attribute: ColorLoopTime\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopTime_29(); + ChipLogProgress(chipTool, " ***** Test Step 29 : Read the optional attribute: CompensationText\n"); + err = TestReadTheOptionalAttributeCompensationText_29(); break; case 30: - ChipLogProgress(chipTool, " ***** Test Step 30 : Reads back mandatory attribute: ColorLoopTime\n"); - err = TestReadsBackMandatoryAttributeColorLoopTime_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : Read the mandatory attribute: NumberOfPrimaries\n"); + err = TestReadTheMandatoryAttributeNumberOfPrimaries_30(); break; case 31: - ChipLogProgress(chipTool, " ***** Test Step 31 : Validate constraints of attribute: ColorLoopStartEnhancedHue\n"); - err = TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_31(); + ChipLogProgress(chipTool, " ***** Test Step 31 : Read the mandatory attribute: Primary1X\n"); + err = TestReadTheMandatoryAttributePrimary1X_31(); break; case 32: - ChipLogProgress( - chipTool, " ***** Test Step 32 : Write the default values to mandatory attribute: ColorLoopStartEnhancedHue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStartEnhancedHue_32(); + ChipLogProgress(chipTool, " ***** Test Step 32 : Read the mandatory attribute: Primary1Y\n"); + err = TestReadTheMandatoryAttributePrimary1Y_32(); break; case 33: - ChipLogProgress(chipTool, " ***** Test Step 33 : Reads back mandatory attribute: ColorLoopStartEnhancedHue\n"); - err = TestReadsBackMandatoryAttributeColorLoopStartEnhancedHue_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : Read the mandatory attribute: Primary1Intensity\n"); + err = TestReadTheMandatoryAttributePrimary1Intensity_33(); break; case 34: - ChipLogProgress(chipTool, " ***** Test Step 34 : Validate constraints of attribute: ColorLoopStoredEnhancedHue\n"); - err = TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_34(); + ChipLogProgress(chipTool, " ***** Test Step 34 : Read the mandatory attribute: Primary2X\n"); + err = TestReadTheMandatoryAttributePrimary2X_34(); break; case 35: - ChipLogProgress( - chipTool, " ***** Test Step 35 : Write the default values to mandatory attribute: ColorLoopStoredEnhancedHue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStoredEnhancedHue_35(); + ChipLogProgress(chipTool, " ***** Test Step 35 : Read the mandatory attribute: Primary2Y\n"); + err = TestReadTheMandatoryAttributePrimary2Y_35(); break; case 36: - ChipLogProgress(chipTool, " ***** Test Step 36 : Reads back mandatory attribute: ColorLoopStoredEnhancedHue\n"); - err = TestReadsBackMandatoryAttributeColorLoopStoredEnhancedHue_36(); + ChipLogProgress(chipTool, " ***** Test Step 36 : Validate constraints of attribute: Primary2Intensity\n"); + err = TestValidateConstraintsOfAttributePrimary2Intensity_36(); break; case 37: - ChipLogProgress(chipTool, " ***** Test Step 37 : Validate constraints of attribute: ColorCapabilities\n"); - err = TestValidateConstraintsOfAttributeColorCapabilities_37(); + ChipLogProgress(chipTool, " ***** Test Step 37 : Read the mandatory attribute: Primary3X\n"); + err = TestReadTheMandatoryAttributePrimary3X_37(); break; case 38: - ChipLogProgress(chipTool, " ***** Test Step 38 : Write the default values to mandatory attribute: ColorCapabilities\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorCapabilities_38(); + ChipLogProgress(chipTool, " ***** Test Step 38 : Read the mandatory attribute: Primary3Y\n"); + err = TestReadTheMandatoryAttributePrimary3Y_38(); break; case 39: - ChipLogProgress(chipTool, " ***** Test Step 39 : Reads back mandatory attribute: ColorCapabilities\n"); - err = TestReadsBackMandatoryAttributeColorCapabilities_39(); + ChipLogProgress(chipTool, " ***** Test Step 39 : Read the mandatory attribute: Primary3Intensity\n"); + err = TestReadTheMandatoryAttributePrimary3Intensity_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : Validate constraints of attribute: ColorTempPhysicalMinMireds\n"); - err = TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_40(); + ChipLogProgress(chipTool, " ***** Test Step 40 : Read the mandatory attribute: Primary4X\n"); + err = TestReadTheMandatoryAttributePrimary4X_40(); break; case 41: - ChipLogProgress( - chipTool, " ***** Test Step 41 : Write the default values to mandatory attribute: ColorTempPhysicalMinMireds\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMinMireds_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : Read the mandatory attribute: Primary4Y\n"); + err = TestReadTheMandatoryAttributePrimary4Y_41(); break; case 42: - ChipLogProgress(chipTool, " ***** Test Step 42 : Reads back mandatory attribute: ColorTempPhysicalMinMireds\n"); - err = TestReadsBackMandatoryAttributeColorTempPhysicalMinMireds_42(); + ChipLogProgress(chipTool, " ***** Test Step 42 : Read the mandatory attribute: Primary4Intensity\n"); + err = TestReadTheMandatoryAttributePrimary4Intensity_42(); break; case 43: - ChipLogProgress(chipTool, " ***** Test Step 43 : Validate constraints of attribute: ColorTempPhysicalMaxMireds\n"); - err = TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_43(); + ChipLogProgress(chipTool, " ***** Test Step 43 : Read the mandatory attribute: Primary5X\n"); + err = TestReadTheMandatoryAttributePrimary5X_43(); break; case 44: - ChipLogProgress( - chipTool, " ***** Test Step 44 : Write the default values to mandatory attribute: ColorTempPhysicalMaxMireds\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMaxMireds_44(); + ChipLogProgress(chipTool, " ***** Test Step 44 : Read the mandatory attribute: Primary5Y\n"); + err = TestReadTheMandatoryAttributePrimary5Y_44(); break; case 45: - ChipLogProgress(chipTool, " ***** Test Step 45 : Reads back mandatory attribute: ColorTempPhysicalMaxMireds\n"); - err = TestReadsBackMandatoryAttributeColorTempPhysicalMaxMireds_45(); + ChipLogProgress(chipTool, " ***** Test Step 45 : Read the mandatory attribute: Primary5Intensity\n"); + err = TestReadTheMandatoryAttributePrimary5Intensity_45(); break; case 46: - ChipLogProgress(chipTool, " ***** Test Step 46 : Read the optional attribute: CoupleColorTempToLevelMinMireds\n"); - err = TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_46(); + ChipLogProgress(chipTool, " ***** Test Step 46 : Read the mandatory attribute: Primary6X\n"); + err = TestReadTheMandatoryAttributePrimary6X_46(); break; case 47: - ChipLogProgress(chipTool, - " ***** Test Step 47 : Write the default values to optional attribute: CoupleColorTempToLevelMinMireds\n"); - err = TestWriteTheDefaultValuesToOptionalAttributeCoupleColorTempToLevelMinMireds_47(); + ChipLogProgress(chipTool, " ***** Test Step 47 : Read the mandatory attribute: Primary6Y\n"); + err = TestReadTheMandatoryAttributePrimary6Y_47(); break; case 48: - ChipLogProgress(chipTool, " ***** Test Step 48 : Reads back optional attribute: CoupleColorTempToLevelMinMireds\n"); - err = TestReadsBackOptionalAttributeCoupleColorTempToLevelMinMireds_48(); + ChipLogProgress(chipTool, " ***** Test Step 48 : Read the mandatory attribute: Primary6Intensity\n"); + err = TestReadTheMandatoryAttributePrimary6Intensity_48(); break; case 49: - ChipLogProgress(chipTool, " ***** Test Step 49 : Read the optional attribute: StartUpColorTemperatureMireds\n"); - err = TestReadTheOptionalAttributeStartUpColorTemperatureMireds_49(); + ChipLogProgress(chipTool, " ***** Test Step 49 : Read the optional attribute: WhitePointX\n"); + err = TestReadTheOptionalAttributeWhitePointX_49(); break; case 50: - ChipLogProgress( - chipTool, " ***** Test Step 50 : Write the default values to optional attribute: StartUpColorTemperatureMireds\n"); - err = TestWriteTheDefaultValuesToOptionalAttributeStartUpColorTemperatureMireds_50(); + ChipLogProgress(chipTool, " ***** Test Step 50 : Read the optional attribute: WhitePointY\n"); + err = TestReadTheOptionalAttributeWhitePointY_50(); break; case 51: - ChipLogProgress(chipTool, " ***** Test Step 51 : Reads back optional attribute: StartUpColorTemperatureMireds\n"); - err = TestReadsBackOptionalAttributeStartUpColorTemperatureMireds_51(); + ChipLogProgress(chipTool, " ***** Test Step 51 : Read the optional attribute: ColorPointRX\n"); + err = TestReadTheOptionalAttributeColorPointRX_51(); break; case 52: - ChipLogProgress(chipTool, " ***** Test Step 52 : Validate constraints of attribute: RemainingTime\n"); - err = TestValidateConstraintsOfAttributeRemainingTime_52(); + ChipLogProgress(chipTool, " ***** Test Step 52 : Read the optional attribute: ColorPointRY\n"); + err = TestReadTheOptionalAttributeColorPointRY_52(); break; case 53: - ChipLogProgress(chipTool, " ***** Test Step 53 : Write the default values to optional attribute: RemainingTime\n"); - err = TestWriteTheDefaultValuesToOptionalAttributeRemainingTime_53(); + ChipLogProgress(chipTool, " ***** Test Step 53 : Read the optional attribute: ColorPointRIntensity\n"); + err = TestReadTheOptionalAttributeColorPointRIntensity_53(); break; case 54: - ChipLogProgress(chipTool, " ***** Test Step 54 : Reads back optional attribute: RemainingTime\n"); - err = TestReadsBackOptionalAttributeRemainingTime_54(); + ChipLogProgress(chipTool, " ***** Test Step 54 : Read the optional attribute: ColorPointGX\n"); + err = TestReadTheOptionalAttributeColorPointGX_54(); break; case 55: - ChipLogProgress(chipTool, " ***** Test Step 55 : Read the optional attribute: DriftCompensation\n"); - err = TestReadTheOptionalAttributeDriftCompensation_55(); + ChipLogProgress(chipTool, " ***** Test Step 55 : Read the optional attribute: ColorPointGY\n"); + err = TestReadTheOptionalAttributeColorPointGY_55(); break; case 56: - ChipLogProgress(chipTool, " ***** Test Step 56 : Write the default values to optional attribute: DriftCompensation\n"); - err = TestWriteTheDefaultValuesToOptionalAttributeDriftCompensation_56(); + ChipLogProgress(chipTool, " ***** Test Step 56 : Read the optional attribute: ColorPointGIntensity\n"); + err = TestReadTheOptionalAttributeColorPointGIntensity_56(); break; case 57: - ChipLogProgress(chipTool, " ***** Test Step 57 : Reads back optional attribute: DriftCompensation\n"); - err = TestReadsBackOptionalAttributeDriftCompensation_57(); + ChipLogProgress(chipTool, " ***** Test Step 57 : Read the optional attribute: ColorPointBX\n"); + err = TestReadTheOptionalAttributeColorPointBX_57(); break; case 58: - ChipLogProgress(chipTool, " ***** Test Step 58 : Read the optional attribute: CompensationText\n"); - err = TestReadTheOptionalAttributeCompensationText_58(); + ChipLogProgress(chipTool, " ***** Test Step 58 : Read the optional attribute: ColorPointBY\n"); + err = TestReadTheOptionalAttributeColorPointBY_58(); break; case 59: - ChipLogProgress(chipTool, " ***** Test Step 59 : Write the default values to optional attribute: CompensationText\n"); - err = TestWriteTheDefaultValuesToOptionalAttributeCompensationText_59(); - break; - case 60: - ChipLogProgress(chipTool, " ***** Test Step 60 : Reads back optional attribute: CompensationText\n"); - err = TestReadsBackOptionalAttributeCompensationText_60(); - break; - case 61: - ChipLogProgress(chipTool, " ***** Test Step 61 : Read the mandatory attribute: NumberOfPrimaries\n"); - err = TestReadTheMandatoryAttributeNumberOfPrimaries_61(); - break; - case 62: - ChipLogProgress(chipTool, " ***** Test Step 62 : Write the default mandatory attribute: NumberOfPrimaries\n"); - err = TestWriteTheDefaultMandatoryAttributeNumberOfPrimaries_62(); - break; - case 63: - ChipLogProgress(chipTool, " ***** Test Step 63 : Read back the mandatory attribute: NumberOfPrimaries\n"); - err = TestReadBackTheMandatoryAttributeNumberOfPrimaries_63(); - break; - case 64: - ChipLogProgress(chipTool, " ***** Test Step 64 : Read the mandatory attribute: Primary1X\n"); - err = TestReadTheMandatoryAttributePrimary1X_64(); - break; - case 65: - ChipLogProgress(chipTool, " ***** Test Step 65 : Write the default mandatory attribute: Primary1X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary1X_65(); - break; - case 66: - ChipLogProgress(chipTool, " ***** Test Step 66 : Read back the mandatory attribute: Primary1X\n"); - err = TestReadBackTheMandatoryAttributePrimary1X_66(); - break; - case 67: - ChipLogProgress(chipTool, " ***** Test Step 67 : Read the mandatory attribute: Primary1Y\n"); - err = TestReadTheMandatoryAttributePrimary1Y_67(); - break; - case 68: - ChipLogProgress(chipTool, " ***** Test Step 68 : Write the default mandatory attribute: Primary1Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary1Y_68(); - break; - case 69: - ChipLogProgress(chipTool, " ***** Test Step 69 : Read back the mandatory attribute: Primary1Y\n"); - err = TestReadBackTheMandatoryAttributePrimary1Y_69(); - break; - case 70: - ChipLogProgress(chipTool, " ***** Test Step 70 : Read the mandatory attribute: Primary1Intensity\n"); - err = TestReadTheMandatoryAttributePrimary1Intensity_70(); - break; - case 71: - ChipLogProgress(chipTool, " ***** Test Step 71 : Read the mandatory attribute: Primary2X\n"); - err = TestReadTheMandatoryAttributePrimary2X_71(); - break; - case 72: - ChipLogProgress(chipTool, " ***** Test Step 72 : Write the default mandatory attribute: Primary2X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary2X_72(); - break; - case 73: - ChipLogProgress(chipTool, " ***** Test Step 73 : Read back the mandatory attribute: Primary2X\n"); - err = TestReadBackTheMandatoryAttributePrimary2X_73(); - break; - case 74: - ChipLogProgress(chipTool, " ***** Test Step 74 : Read the mandatory attribute: Primary2Y\n"); - err = TestReadTheMandatoryAttributePrimary2Y_74(); - break; - case 75: - ChipLogProgress(chipTool, " ***** Test Step 75 : Write the default mandatory attribute: Primary2Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary2Y_75(); - break; - case 76: - ChipLogProgress(chipTool, " ***** Test Step 76 : Read back the mandatory attribute: Primary2Y\n"); - err = TestReadBackTheMandatoryAttributePrimary2Y_76(); - break; - case 77: - ChipLogProgress(chipTool, " ***** Test Step 77 : Validate constraints of attribute: Primary2Intensity\n"); - err = TestValidateConstraintsOfAttributePrimary2Intensity_77(); - break; - case 78: - ChipLogProgress(chipTool, " ***** Test Step 78 : Read the mandatory attribute: Primary3X\n"); - err = TestReadTheMandatoryAttributePrimary3X_78(); - break; - case 79: - ChipLogProgress(chipTool, " ***** Test Step 79 : Write the default mandatory attribute: Primary3X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary3X_79(); - break; - case 80: - ChipLogProgress(chipTool, " ***** Test Step 80 : Read back the mandatory attribute: Primary3X\n"); - err = TestReadBackTheMandatoryAttributePrimary3X_80(); - break; - case 81: - ChipLogProgress(chipTool, " ***** Test Step 81 : Read the mandatory attribute: Primary3Y\n"); - err = TestReadTheMandatoryAttributePrimary3Y_81(); - break; - case 82: - ChipLogProgress(chipTool, " ***** Test Step 82 : Write the default mandatory attribute: Primary3Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary3Y_82(); - break; - case 83: - ChipLogProgress(chipTool, " ***** Test Step 83 : Read back the mandatory attribute: Primary3Y\n"); - err = TestReadBackTheMandatoryAttributePrimary3Y_83(); - break; - case 84: - ChipLogProgress(chipTool, " ***** Test Step 84 : Read the mandatory attribute: Primary3Intensity\n"); - err = TestReadTheMandatoryAttributePrimary3Intensity_84(); - break; - case 85: - ChipLogProgress(chipTool, " ***** Test Step 85 : Read the mandatory attribute: Primary4X\n"); - err = TestReadTheMandatoryAttributePrimary4X_85(); - break; - case 86: - ChipLogProgress(chipTool, " ***** Test Step 86 : Write the default mandatory attribute: Primary4X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary4X_86(); - break; - case 87: - ChipLogProgress(chipTool, " ***** Test Step 87 : Read back the mandatory attribute: Primary4X\n"); - err = TestReadBackTheMandatoryAttributePrimary4X_87(); - break; - case 88: - ChipLogProgress(chipTool, " ***** Test Step 88 : Read the mandatory attribute: Primary4Y\n"); - err = TestReadTheMandatoryAttributePrimary4Y_88(); - break; - case 89: - ChipLogProgress(chipTool, " ***** Test Step 89 : Write the default mandatory attribute: Primary4Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary4Y_89(); - break; - case 90: - ChipLogProgress(chipTool, " ***** Test Step 90 : Read back the mandatory attribute: Primary4Y\n"); - err = TestReadBackTheMandatoryAttributePrimary4Y_90(); - break; - case 91: - ChipLogProgress(chipTool, " ***** Test Step 91 : Read the mandatory attribute: Primary4Intensity\n"); - err = TestReadTheMandatoryAttributePrimary4Intensity_91(); - break; - case 92: - ChipLogProgress(chipTool, " ***** Test Step 92 : Read the mandatory attribute: Primary5X\n"); - err = TestReadTheMandatoryAttributePrimary5X_92(); - break; - case 93: - ChipLogProgress(chipTool, " ***** Test Step 93 : Write the default mandatory attribute: Primary5X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary5X_93(); - break; - case 94: - ChipLogProgress(chipTool, " ***** Test Step 94 : Read back the mandatory attribute: Primary5X\n"); - err = TestReadBackTheMandatoryAttributePrimary5X_94(); - break; - case 95: - ChipLogProgress(chipTool, " ***** Test Step 95 : Read the mandatory attribute: Primary5Y\n"); - err = TestReadTheMandatoryAttributePrimary5Y_95(); - break; - case 96: - ChipLogProgress(chipTool, " ***** Test Step 96 : Write the default mandatory attribute: Primary5Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary5Y_96(); - break; - case 97: - ChipLogProgress(chipTool, " ***** Test Step 97 : Read back the mandatory attribute: Primary5Y\n"); - err = TestReadBackTheMandatoryAttributePrimary5Y_97(); - break; - case 98: - ChipLogProgress(chipTool, " ***** Test Step 98 : Read the mandatory attribute: Primary5Intensity\n"); - err = TestReadTheMandatoryAttributePrimary5Intensity_98(); - break; - case 99: - ChipLogProgress(chipTool, " ***** Test Step 99 : Read the mandatory attribute: Primary6X\n"); - err = TestReadTheMandatoryAttributePrimary6X_99(); - break; - case 100: - ChipLogProgress(chipTool, " ***** Test Step 100 : Write the default mandatory attribute: Primary6X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary6X_100(); - break; - case 101: - ChipLogProgress(chipTool, " ***** Test Step 101 : Read back the mandatory attribute: Primary6X\n"); - err = TestReadBackTheMandatoryAttributePrimary6X_101(); - break; - case 102: - ChipLogProgress(chipTool, " ***** Test Step 102 : Read the mandatory attribute: Primary6Y\n"); - err = TestReadTheMandatoryAttributePrimary6Y_102(); - break; - case 103: - ChipLogProgress(chipTool, " ***** Test Step 103 : Write the default mandatory attribute: Primary6Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary6Y_103(); - break; - case 104: - ChipLogProgress(chipTool, " ***** Test Step 104 : Read back the mandatory attribute: Primary6Y\n"); - err = TestReadBackTheMandatoryAttributePrimary6Y_104(); - break; - case 105: - ChipLogProgress(chipTool, " ***** Test Step 105 : Read the mandatory attribute: Primary6Intensity\n"); - err = TestReadTheMandatoryAttributePrimary6Intensity_105(); - break; - case 106: - ChipLogProgress(chipTool, " ***** Test Step 106 : Read the optional attribute: WhitePointX\n"); - err = TestReadTheOptionalAttributeWhitePointX_106(); - break; - case 107: - ChipLogProgress(chipTool, " ***** Test Step 107 : Write the default optional attribute: WhitePointX\n"); - err = TestWriteTheDefaultOptionalAttributeWhitePointX_107(); - break; - case 108: - ChipLogProgress(chipTool, " ***** Test Step 108 : Read back the optional attribute: WhitePointX\n"); - err = TestReadBackTheOptionalAttributeWhitePointX_108(); - break; - case 109: - ChipLogProgress(chipTool, " ***** Test Step 109 : Read the optional attribute: WhitePointY\n"); - err = TestReadTheOptionalAttributeWhitePointY_109(); - break; - case 110: - ChipLogProgress(chipTool, " ***** Test Step 110 : Write the default optional attribute: WhitePointY\n"); - err = TestWriteTheDefaultOptionalAttributeWhitePointY_110(); - break; - case 111: - ChipLogProgress(chipTool, " ***** Test Step 111 : Read back the optional attribute: WhitePointY\n"); - err = TestReadBackTheOptionalAttributeWhitePointY_111(); - break; - case 112: - ChipLogProgress(chipTool, " ***** Test Step 112 : Read the optional attribute: ColorPointRX\n"); - err = TestReadTheOptionalAttributeColorPointRX_112(); - break; - case 113: - ChipLogProgress(chipTool, " ***** Test Step 113 : Write the default optional attribute: ColorPointRX\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointRX_113(); - break; - case 114: - ChipLogProgress(chipTool, " ***** Test Step 114 : Read back the optional attribute: ColorPointRX\n"); - err = TestReadBackTheOptionalAttributeColorPointRX_114(); - break; - case 115: - ChipLogProgress(chipTool, " ***** Test Step 115 : Read the optional attribute: ColorPointRY\n"); - err = TestReadTheOptionalAttributeColorPointRY_115(); - break; - case 116: - ChipLogProgress(chipTool, " ***** Test Step 116 : Write the default optional attribute: ColorPointRY\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointRY_116(); - break; - case 117: - ChipLogProgress(chipTool, " ***** Test Step 117 : Read back the optional attribute: ColorPointRY\n"); - err = TestReadBackTheOptionalAttributeColorPointRY_117(); - break; - case 118: - ChipLogProgress(chipTool, " ***** Test Step 118 : Read the optional attribute: ColorPointRIntensity\n"); - err = TestReadTheOptionalAttributeColorPointRIntensity_118(); - break; - case 119: - ChipLogProgress(chipTool, " ***** Test Step 119 : Write the default optional attribute: ColorPointRIntensity\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointRIntensity_119(); - break; - case 120: - ChipLogProgress(chipTool, " ***** Test Step 120 : Read back the optional attribute: ColorPointRIntensity\n"); - err = TestReadBackTheOptionalAttributeColorPointRIntensity_120(); - break; - case 121: - ChipLogProgress(chipTool, " ***** Test Step 121 : Read the optional attribute: ColorPointGX\n"); - err = TestReadTheOptionalAttributeColorPointGX_121(); - break; - case 122: - ChipLogProgress(chipTool, " ***** Test Step 122 : Write the default optional attribute: ColorPointGX\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointGX_122(); - break; - case 123: - ChipLogProgress(chipTool, " ***** Test Step 123 : Read back the optional attribute: ColorPointGX\n"); - err = TestReadBackTheOptionalAttributeColorPointGX_123(); - break; - case 124: - ChipLogProgress(chipTool, " ***** Test Step 124 : Read the optional attribute: ColorPointGY\n"); - err = TestReadTheOptionalAttributeColorPointGY_124(); - break; - case 125: - ChipLogProgress(chipTool, " ***** Test Step 125 : Write the default optional attribute: ColorPointGY\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointGY_125(); - break; - case 126: - ChipLogProgress(chipTool, " ***** Test Step 126 : Read back the optional attribute: ColorPointGY\n"); - err = TestReadBackTheOptionalAttributeColorPointGY_126(); - break; - case 127: - ChipLogProgress(chipTool, " ***** Test Step 127 : Read the optional attribute: ColorPointGIntensity\n"); - err = TestReadTheOptionalAttributeColorPointGIntensity_127(); - break; - case 128: - ChipLogProgress(chipTool, " ***** Test Step 128 : Write the default optional attribute: ColorPointGIntensity\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointGIntensity_128(); - break; - case 129: - ChipLogProgress(chipTool, " ***** Test Step 129 : Read back the optional attribute: ColorPointGIntensity\n"); - err = TestReadBackTheOptionalAttributeColorPointGIntensity_129(); - break; - case 130: - ChipLogProgress(chipTool, " ***** Test Step 130 : Read the optional attribute: ColorPointBX\n"); - err = TestReadTheOptionalAttributeColorPointBX_130(); - break; - case 131: - ChipLogProgress(chipTool, " ***** Test Step 131 : Write the default optional attribute: ColorPointBX\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointBX_131(); - break; - case 132: - ChipLogProgress(chipTool, " ***** Test Step 132 : Read back the optional attribute: ColorPointBX\n"); - err = TestReadBackTheOptionalAttributeColorPointBX_132(); - break; - case 133: - ChipLogProgress(chipTool, " ***** Test Step 133 : Read the optional attribute: ColorPointBY\n"); - err = TestReadTheOptionalAttributeColorPointBY_133(); - break; - case 134: - ChipLogProgress(chipTool, " ***** Test Step 134 : Write the default optional attribute: ColorPointBY\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointBY_134(); - break; - case 135: - ChipLogProgress(chipTool, " ***** Test Step 135 : Read back the optional attribute: ColorPointBY\n"); - err = TestReadBackTheOptionalAttributeColorPointBY_135(); - break; - case 136: - ChipLogProgress(chipTool, " ***** Test Step 136 : Read the optional attribute: ColorPointBIntensity\n"); - err = TestReadTheOptionalAttributeColorPointBIntensity_136(); - break; - case 137: - ChipLogProgress(chipTool, " ***** Test Step 137 : Write the default optional attribute: ColorPointBIntensity\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointBIntensity_137(); - break; - case 138: - ChipLogProgress(chipTool, " ***** Test Step 138 : Read back the optional attribute: ColorPointBIntensity\n"); - err = TestReadBackTheOptionalAttributeColorPointBIntensity_138(); + ChipLogProgress(chipTool, " ***** Test Step 59 : Read the optional attribute: ColorPointBIntensity\n"); + err = TestReadTheOptionalAttributeColorPointBIntensity_59(); break; } @@ -4633,7 +4318,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4642,7 +4327,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4651,7 +4336,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 9: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4660,7 +4345,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 11: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4684,7 +4369,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 19: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 20: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4696,7 +4381,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 23: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 24: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4705,7 +4390,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 26: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 27: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4714,7 +4399,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 29: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 30: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4723,7 +4408,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 32: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 33: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4732,7 +4417,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 35: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 36: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4741,7 +4426,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 38: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 39: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4750,7 +4435,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 41: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 42: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4759,7 +4444,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 44: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 45: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4768,7 +4453,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 47: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 48: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4786,7 +4471,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 53: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 54: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4795,7 +4480,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 56: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 57: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -4804,243 +4489,6 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 59: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 60: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 61: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 62: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 63: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 64: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 65: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 66: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 67: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 68: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 69: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 70: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 71: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 72: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 73: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 74: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 75: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 76: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 77: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 78: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 79: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 80: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 81: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 82: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 83: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 84: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 85: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 86: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 87: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 88: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 89: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 90: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 91: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 92: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 93: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 94: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 95: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 96: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 97: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 98: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 99: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 100: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 101: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 102: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 103: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 104: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 105: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 106: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 107: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 108: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 109: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 110: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 111: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 112: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 113: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 114: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 115: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 116: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 117: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 118: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 119: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 120: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 121: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 122: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 123: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 124: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 125: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 126: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 127: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 128: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 129: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 130: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 131: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 132: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 133: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 134: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 135: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 136: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 137: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 138: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; } @@ -5056,7 +4504,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 139; + const uint16_t mTestCount = 60; chip::Optional mNodeId; chip::Optional mCluster; @@ -5077,60 +4525,59 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: current hue Error: %@", err); + NSLog(@"Validate constraints of attribute: CurrentHue Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("currentHue", [value unsignedCharValue], 0)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("currentHue", [value unsignedCharValue], 254)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("current hue", actualValue, 0)); } + VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentHue_2() + CHIP_ERROR TestValidateConstraintsOfAttributeCurrentSaturation_2() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id currentHueArgument; - currentHueArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster writeAttributeCurrentHueWithValue:currentHueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default value to mandatory attribute: CurrentHue Error: %@", err); + [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Validate constraints of attribute: CurrentSaturation Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("current saturation", actualValue, 0)); + } + + VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsBackMandatoryAttributeCurrentHue_3() + CHIP_ERROR TestReadsCurrentXAttributeFromDut_3() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: CurrentHue Error: %@", err); + [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads CurrentX attribute from DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("currentHue", [value unsignedCharValue], 0)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("currentHue", [value unsignedCharValue], 254)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("current x", actualValue, 24939U)); } NextTest(); @@ -5139,23 +4586,23 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeCurrentSaturation_4() + CHIP_ERROR TestValidateConstraintsOfAttributeCurrentX_4() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: CurrentSaturation Error: %@", err); + [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Validate constraints of attribute: CurrentX Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); + VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("currentSaturation", [value unsignedCharValue], 0)); + VerifyOrReturn(CheckConstraintMinValue("currentX", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("currentSaturation", [value unsignedCharValue], 254)); + VerifyOrReturn(CheckConstraintMaxValue("currentX", [value unsignedShortValue], 65279U)); } NextTest(); @@ -5164,112 +4611,45 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentSaturation_5() + CHIP_ERROR TestReadsCurrentYAttributeFromDut_5() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id currentSaturationArgument; - currentSaturationArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster - writeAttributeCurrentSaturationWithValue:currentSaturationArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default value to mandatory attribute: CurrentSaturation Error: %@", err); + [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads CurrentY attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("current y", actualValue, 24701U)); + } + + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsBackMandatoryAttributeCurrentSaturation_6() + CHIP_ERROR TestValidateConstraintsOfAttributeCurrentY_6() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: CurrentSaturation Error: %@", err); + [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Validate constraints of attribute: CurrentY Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); + VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("currentSaturation", [value unsignedCharValue], 0)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("currentSaturation", [value unsignedCharValue], 254)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestValidateConstraintsOfAttributeCurrentX_7() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: CurrentX Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("currentX", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("currentX", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentX_8() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id currentXArgument; - currentXArgument = [NSNumber numberWithUnsignedShort:24939U]; - [cluster writeAttributeCurrentXWithValue:currentXArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default value to mandatory attribute: CurrentX Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeCurrentX_9() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: CurrentX Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("currentX", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("currentY", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("currentX", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("currentY", [value unsignedShortValue], 65279U)); } NextTest(); @@ -5278,23 +4658,20 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeCurrentY_10() + CHIP_ERROR TestReadsColorTemperatureMiredsAttributeFromDut_7() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: CurrentY Error: %@", err); + [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads ColorTemperatureMireds attribute from DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("currentY", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("currentY", [value unsignedShortValue], 65279U)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("color temperature", actualValue, 250U)); } NextTest(); @@ -5303,42 +4680,23 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeCurrentY_11() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id currentYArgument; - currentYArgument = [NSNumber numberWithUnsignedShort:24701U]; - [cluster writeAttributeCurrentYWithValue:currentYArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: CurrentY Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeCurrentY_12() + CHIP_ERROR TestValidateConstraintsOfAttributeColorTemperatureMireds_8() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: CurrentY Error: %@", err); + [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Validate constraints of attribute: ColorTemperatureMireds Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); + VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("currentY", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("colorTemperature", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("currentY", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("colorTemperature", [value unsignedShortValue], 65279U)); } NextTest(); @@ -5347,23 +4705,20 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeColorTemperatureMireds_13() + CHIP_ERROR TestReadsColorModeAttributeFromDut_9() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: ColorTemperatureMireds Error: %@", err); + [cluster readAttributeColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads ColorMode attribute from DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorTemperature", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorTemperature", [value unsignedShortValue], 65279U)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("color mode", actualValue, 1)); } NextTest(); @@ -5372,7 +4727,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeColorMode_14() + CHIP_ERROR TestValidateConstraintsOfAttributeColorMode_10() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -5397,7 +4752,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeOptions_15() + CHIP_ERROR TestValidateConstraintsOfAttributeOptions_11() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -5408,56 +4763,19 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorControlOptions", "", "map8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeOptions_16() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorControlOptionsArgument; - colorControlOptionsArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster writeAttributeColorControlOptionsWithValue:colorControlOptionsArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: Options Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeOptions_17() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorControlOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: Options Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { id actualValue = value; VerifyOrReturn(CheckValue("color control options", actualValue, 0)); } + VerifyOrReturn(CheckConstraintType("colorControlOptions", "", "map8")); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedCurrentHue_18() + CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedCurrentHue_12() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -5468,44 +4786,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeEnhancedCurrentHue_19() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id enhancedCurrentHueArgument; - enhancedCurrentHueArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeEnhancedCurrentHueWithValue:enhancedCurrentHueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: EnhancedCurrentHue Error: %@", - err); - - VerifyOrReturn( - CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeEnhancedCurrentHue_20() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: EnhancedCurrentHue Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("enhanced current hue", actualValue, 0U)); + } VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); NextTest(); @@ -5514,7 +4798,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedColorMode_21() + CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedColorMode_13() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -5525,6 +4809,11 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("enhanced color mode", actualValue, 1)); + } + VerifyOrReturn(CheckConstraintType("enhancedColorMode", "", "enum8")); NextTest(); }]; @@ -5532,7 +4821,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopActive_22() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopActive_14() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -5543,43 +4832,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorLoopActive", "", "uint8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopActive_23() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorLoopActiveArgument; - colorLoopActiveArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster - writeAttributeColorLoopActiveWithValue:colorLoopActiveArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: ColorLoopActive Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopActive_24() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: ColorLoopActive Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("color loop active", actualValue, 0)); + } VerifyOrReturn(CheckConstraintType("colorLoopActive", "", "uint8")); NextTest(); @@ -5588,7 +4844,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopDirection_25() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopDirection_15() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -5599,44 +4855,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorLoopDirection", "", "uint8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopDirection_26() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorLoopDirectionArgument; - colorLoopDirectionArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster writeAttributeColorLoopDirectionWithValue:colorLoopDirectionArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: ColorLoopDirection Error: %@", - err); - - VerifyOrReturn( - CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopDirection_27() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: ColorLoopDirection Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("color loop direction", actualValue, 0)); + } VerifyOrReturn(CheckConstraintType("colorLoopDirection", "", "uint8")); NextTest(); @@ -5645,7 +4867,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopTime_28() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopTime_16() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -5656,43 +4878,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorLoopTime", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopTime_29() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorLoopTimeArgument; - colorLoopTimeArgument = [NSNumber numberWithUnsignedShort:25U]; - [cluster - writeAttributeColorLoopTimeWithValue:colorLoopTimeArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: ColorLoopTime Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopTime_30() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: ColorLoopTime Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("color loop time", actualValue, 25U)); + } VerifyOrReturn(CheckConstraintType("colorLoopTime", "", "uint16")); NextTest(); @@ -5701,7 +4890,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_31() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_17() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -5713,46 +4902,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorLoopStartEnhancedHue", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStartEnhancedHue_32() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorLoopStartEnhancedHueArgument; - colorLoopStartEnhancedHueArgument = [NSNumber numberWithUnsignedShort:8960U]; - [cluster writeAttributeColorLoopStartEnhancedHueWithValue:colorLoopStartEnhancedHueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: " - @"ColorLoopStartEnhancedHue Error: %@", - err); - - VerifyOrReturn(CheckValue( - "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStartEnhancedHue_33() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster - readAttributeColorLoopStartEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: ColorLoopStartEnhancedHue Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("color loop start enhanced hue", actualValue, 8960U)); + } VerifyOrReturn(CheckConstraintType("colorLoopStartEnhancedHue", "", "uint16")); NextTest(); @@ -5761,7 +4914,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_34() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_18() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -5773,1258 +4926,32 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStoredEnhancedHue_35() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorLoopStoredEnhancedHueArgument; - colorLoopStoredEnhancedHueArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeColorLoopStoredEnhancedHueWithValue:colorLoopStoredEnhancedHueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: " - @"ColorLoopStoredEnhancedHue Error: %@", - err); - - VerifyOrReturn(CheckValue( - "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStoredEnhancedHue_36() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster - readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: ColorLoopStoredEnhancedHue Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestValidateConstraintsOfAttributeColorCapabilities_37() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: ColorCapabilities Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("colorCapabilities", "", "map16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorCapabilities", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorCapabilities", [value unsignedShortValue], 31U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorCapabilities_38() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorCapabilitiesArgument; - colorCapabilitiesArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster - writeAttributeColorCapabilitiesWithValue:colorCapabilitiesArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: ColorCapabilities Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeColorCapabilities_39() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: ColorCapabilities Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("colorCapabilities", "", "map16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorCapabilities", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorCapabilities", [value unsignedShortValue], 31U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_40() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorTempPhysicalMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: ColorTempPhysicalMinMireds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("colorTempPhysicalMin", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorTempPhysicalMin", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorTempPhysicalMin", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMinMireds_41() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorTempPhysicalMinArgument; - colorTempPhysicalMinArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeColorTempPhysicalMinWithValue:colorTempPhysicalMinArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: " - @"ColorTempPhysicalMinMireds Error: %@", - err); - - VerifyOrReturn( - CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMinMireds_42() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorTempPhysicalMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: ColorTempPhysicalMinMireds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("colorTempPhysicalMin", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorTempPhysicalMin", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorTempPhysicalMin", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_43() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorTempPhysicalMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: ColorTempPhysicalMaxMireds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("colorTempPhysicalMax", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorTempPhysicalMax", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorTempPhysicalMax", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMaxMireds_44() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorTempPhysicalMaxArgument; - colorTempPhysicalMaxArgument = [NSNumber numberWithUnsignedShort:65279U]; - [cluster writeAttributeColorTempPhysicalMaxWithValue:colorTempPhysicalMaxArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: ColorTempPhysicalMaxMireds " - @"Error: %@", - err); - - VerifyOrReturn( - CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMaxMireds_45() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorTempPhysicalMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: ColorTempPhysicalMaxMireds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("colorTempPhysicalMax", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorTempPhysicalMax", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorTempPhysicalMax", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_46() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler:^( - NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: CoupleColorTempToLevelMinMireds Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("coupleColorTempToLevelMinMireds", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeCoupleColorTempToLevelMinMireds_47() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id coupleColorTempToLevelMinMiredsArgument; - coupleColorTempToLevelMinMiredsArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeCoupleColorTempToLevelMinMiredsWithValue:coupleColorTempToLevelMinMiredsArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to optional attribute: " - @"CoupleColorTempToLevelMinMireds Error: %@", - err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue( - "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackOptionalAttributeCoupleColorTempToLevelMinMireds_48() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler:^( - NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back optional attribute: CoupleColorTempToLevelMinMireds Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("coupleColorTempToLevelMinMireds", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheOptionalAttributeStartUpColorTemperatureMireds_49() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeStartUpColorTemperatureMiredsWithCompletionHandler:^( - NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: StartUpColorTemperatureMireds Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("startUpColorTemperatureMireds", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("startUpColorTemperatureMireds", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn( - CheckConstraintMaxValue("startUpColorTemperatureMireds", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeStartUpColorTemperatureMireds_50() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id startUpColorTemperatureMiredsArgument; - startUpColorTemperatureMiredsArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeStartUpColorTemperatureMiredsWithValue:startUpColorTemperatureMiredsArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to optional attribute: " - @"StartUpColorTemperatureMireds Error: %@", - err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackOptionalAttributeStartUpColorTemperatureMireds_51() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster - readAttributeStartUpColorTemperatureMiredsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back optional attribute: StartUpColorTemperatureMireds Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { id actualValue = value; - VerifyOrReturn(CheckValue("start up color temperature mireds", actualValue, 0U)); + VerifyOrReturn(CheckValue("color loop stored enhanced hue", actualValue, 0U)); } - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestValidateConstraintsOfAttributeRemainingTime_52() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: RemainingTime Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("remainingTime", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeRemainingTime_53() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id remainingTimeArgument; - remainingTimeArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster - writeAttributeRemainingTimeWithValue:remainingTimeArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to optional attribute: RemainingTime Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackOptionalAttributeRemainingTime_54() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back optional attribute: RemainingTime Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("remainingTime", "", "uint16")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheOptionalAttributeDriftCompensation_55() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeDriftCompensationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: DriftCompensation Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("driftCompensation", "", "enum8")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("driftCompensation", [value unsignedCharValue], 0)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("driftCompensation", [value unsignedCharValue], 4)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeDriftCompensation_56() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id driftCompensationArgument; - driftCompensationArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster - writeAttributeDriftCompensationWithValue:driftCompensationArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to optional attribute: DriftCompensation Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackOptionalAttributeDriftCompensation_57() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeDriftCompensationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back optional attribute: DriftCompensation Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("driftCompensation", "", "enum8")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("driftCompensation", [value unsignedCharValue], 0)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("driftCompensation", [value unsignedCharValue], 4)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheOptionalAttributeCompensationText_58() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeCompensationTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: CompensationText Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("compensationText", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("compensationText", [value length], 254)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeCompensationText_59() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id compensationTextArgument; - compensationTextArgument = @""; - [cluster - writeAttributeCompensationTextWithValue:compensationTextArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to optional attribute: CompensationText Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackOptionalAttributeCompensationText_60() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeCompensationTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back optional attribute: CompensationText Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("compensationText", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("compensationText", [value length], 254)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributeNumberOfPrimaries_61() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: NumberOfPrimaries Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("numberOfPrimaries", "", "uint8")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("numberOfPrimaries", [value unsignedCharValue], 0)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("numberOfPrimaries", [value unsignedCharValue], 6)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultMandatoryAttributeNumberOfPrimaries_62() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id numberOfPrimariesArgument; - numberOfPrimariesArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster - writeAttributeNumberOfPrimariesWithValue:numberOfPrimariesArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: NumberOfPrimaries Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheMandatoryAttributeNumberOfPrimaries_63() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: NumberOfPrimaries Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("numberOfPrimaries", "", "uint8")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("numberOfPrimaries", [value unsignedCharValue], 0)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("numberOfPrimaries", [value unsignedCharValue], 6)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributePrimary1X_64() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary1X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary1X", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary1X", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary1X", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary1X_65() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id primary1XArgument; - primary1XArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary1XWithValue:primary1XArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary1X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1X_66() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary1X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary1X", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary1X", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary1X", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributePrimary1Y_67() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary1Y Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary1Y", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary1Y", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary1Y", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary1Y_68() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id primary1YArgument; - primary1YArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary1YWithValue:primary1YArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary1Y Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1Y_69() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary1Y Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary1Y", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary1Y", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary1Y", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributePrimary1Intensity_70() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary1IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary1Intensity Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary1Intensity", "", "uint8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributePrimary2X_71() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary2X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary2X", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary2X", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary2X", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary2X_72() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id primary2XArgument; - primary2XArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary2XWithValue:primary2XArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary2X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2X_73() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary2X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary2X", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary2X", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary2X", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributePrimary2Y_74() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary2Y Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary2Y", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary2Y", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary2Y", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary2Y_75() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id primary2YArgument; - primary2YArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary2YWithValue:primary2YArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary2Y Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2Y_76() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary2Y Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary2Y", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary2Y", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary2Y", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestValidateConstraintsOfAttributePrimary2Intensity_77() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary2IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Validate constraints of attribute: Primary2Intensity Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary2Intensity", "", "uint8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributePrimary3X_78() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary3X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary3X", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary3X", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary3X", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary3X_79() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id primary3XArgument; - primary3XArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary3XWithValue:primary3XArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary3X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3X_80() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary3X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary3X", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary3X", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary3X", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributePrimary3Y_81() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary3Y Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary3Y", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary3Y", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary3Y", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary3Y_82() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id primary3YArgument; - primary3YArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary3YWithValue:primary3YArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary3Y Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3Y_83() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary3Y Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary3Y", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary3Y", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary3Y", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributePrimary3Intensity_84() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary3IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary3Intensity Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary3Intensity", "", "uint8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheMandatoryAttributePrimary4X_85() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary4X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("primary4X", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary4X", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary4X", [value unsignedShortValue], 65279U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary4X_86() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id primary4XArgument; - primary4XArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary4XWithValue:primary4XArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary4X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4X_87() + CHIP_ERROR TestReadsColorCapabilitiesAttributeFromDut_19() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary4X Error: %@", err); + [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads ColorCapabilities attribute from DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary4X", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary4X", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary4X", [value unsignedShortValue], 65279U)); + { + id actualValue = value; + VerifyOrReturn(CheckValue("color capabilities", actualValue, 0U)); } NextTest(); @@ -7033,23 +4960,23 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributePrimary4Y_88() + CHIP_ERROR TestValidateConstraintsOfAttributeColorCapabilities_20() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary4Y Error: %@", err); + [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Validate constraints of attribute: ColorCapabilities Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary4Y", "", "uint16")); + VerifyOrReturn(CheckConstraintType("colorCapabilities", "", "map16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary4Y", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("colorCapabilities", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary4Y", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("colorCapabilities", [value unsignedShortValue], 31U)); } NextTest(); @@ -7058,42 +4985,45 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary4Y_89() + CHIP_ERROR TestReadsColorTempPhysicalMinMiredsAttributeFromDut_21() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id primary4YArgument; - primary4YArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary4YWithValue:primary4YArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary4Y Error: %@", err); + [cluster readAttributeColorTempPhysicalMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads ColorTempPhysicalMinMireds attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("color temp physical min", actualValue, 0U)); + } + + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4Y_90() + CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_22() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary4Y Error: %@", err); + [cluster readAttributeColorTempPhysicalMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Validate constraints of attribute: ColorTempPhysicalMinMireds Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary4Y", "", "uint16")); + VerifyOrReturn(CheckConstraintType("colorTempPhysicalMin", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary4Y", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("colorTempPhysicalMin", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary4Y", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("colorTempPhysicalMin", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7102,41 +5032,45 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributePrimary4Intensity_91() + CHIP_ERROR TestReadColorTempPhysicalMaxMiredsAttributeFromDut_23() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary4IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary4Intensity Error: %@", err); + [cluster readAttributeColorTempPhysicalMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read ColorTempPhysicalMaxMireds attribute from DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary4Intensity", "", "uint8")); + { + id actualValue = value; + VerifyOrReturn(CheckValue("color temp physical max", actualValue, 65279U)); + } + NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributePrimary5X_92() + CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_24() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary5X Error: %@", err); + [cluster readAttributeColorTempPhysicalMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Validate constraints of attribute: ColorTempPhysicalMaxMireds Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary5X", "", "uint16")); + VerifyOrReturn(CheckConstraintType("colorTempPhysicalMax", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary5X", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("colorTempPhysicalMax", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary5X", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("colorTempPhysicalMax", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7145,42 +5079,31 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary5X_93() + CHIP_ERROR TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_25() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id primary5XArgument; - primary5XArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary5XWithValue:primary5XArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary5X Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5X_94() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + [cluster readAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler:^( + NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: CoupleColorTempToLevelMinMireds Error: %@", err); - [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary5X Error: %@", err); + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary5X", "", "uint16")); + VerifyOrReturn(CheckConstraintType("coupleColorTempToLevelMinMireds", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary5X", [value unsignedShortValue], 0U)); + VerifyOrReturn( + CheckConstraintMinValue("coupleColorTempToLevelMinMireds", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary5X", [value unsignedShortValue], 65279U)); + VerifyOrReturn( + CheckConstraintMaxValue("coupleColorTempToLevelMinMireds", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7189,23 +5112,30 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributePrimary5Y_95() + CHIP_ERROR TestReadTheOptionalAttributeStartUpColorTemperatureMireds_26() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary5Y Error: %@", err); + [cluster readAttributeStartUpColorTemperatureMiredsWithCompletionHandler:^( + NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: StartUpColorTemperatureMireds Error: %@", err); + + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary5Y", "", "uint16")); + VerifyOrReturn(CheckConstraintType("startUpColorTemperatureMireds", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary5Y", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("startUpColorTemperatureMireds", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary5Y", [value unsignedShortValue], 65279U)); + VerifyOrReturn( + CheckConstraintMaxValue("startUpColorTemperatureMireds", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7214,42 +5144,56 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary5Y_96() + CHIP_ERROR TestValidateConstraintsOfAttributeRemainingTime_27() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id primary5YArgument; - primary5YArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary5YWithValue:primary5YArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary5Y Error: %@", err); + [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Validate constraints of attribute: RemainingTime Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("remaining time", actualValue, 0U)); + } + + VerifyOrReturn(CheckConstraintType("remainingTime", "", "uint16")); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5Y_97() + CHIP_ERROR TestReadTheOptionalAttributeDriftCompensation_28() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary5Y Error: %@", err); + [cluster readAttributeDriftCompensationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: DriftCompensation Error: %@", err); + + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary5Y", "", "uint16")); + VerifyOrReturn(CheckConstraintType("driftCompensation", "", "enum8")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary5Y", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("driftCompensation", [value unsignedCharValue], 0)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary5Y", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("driftCompensation", [value unsignedCharValue], 4)); } NextTest(); @@ -7258,41 +5202,47 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributePrimary5Intensity_98() + CHIP_ERROR TestReadTheOptionalAttributeCompensationText_29() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary5IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary5Intensity Error: %@", err); + [cluster readAttributeCompensationTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: CompensationText Error: %@", err); + + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary5Intensity", "", "uint8")); + VerifyOrReturn(CheckConstraintType("compensationText", "", "string")); + VerifyOrReturn(CheckConstraintMaxLength("compensationText", [value length], 254)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributePrimary6X_99() + CHIP_ERROR TestReadTheMandatoryAttributeNumberOfPrimaries_30() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary6X Error: %@", err); + [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: NumberOfPrimaries Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary6X", "", "uint16")); + VerifyOrReturn(CheckConstraintType("numberOfPrimaries", "", "uint8")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary6X", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("numberOfPrimaries", [value unsignedCharValue], 0)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary6X", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("numberOfPrimaries", [value unsignedCharValue], 6)); } NextTest(); @@ -7301,42 +5251,48 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary6X_100() + CHIP_ERROR TestReadTheMandatoryAttributePrimary1X_31() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id primary6XArgument; - primary6XArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary6XWithValue:primary6XArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary6X Error: %@", err); + [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary1X Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("primary1X", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("primary1X", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("primary1X", [value unsignedShortValue], 65279U)); + } + + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6X_101() + CHIP_ERROR TestReadTheMandatoryAttributePrimary1Y_32() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary6X Error: %@", err); + [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary1Y Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary6X", "", "uint16")); + VerifyOrReturn(CheckConstraintType("primary1Y", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary6X", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("primary1Y", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary6X", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("primary1Y", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7345,67 +5301,66 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributePrimary6Y_102() + CHIP_ERROR TestReadTheMandatoryAttributePrimary1Intensity_33() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary6Y Error: %@", err); + [cluster readAttributePrimary1IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary1Intensity Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary6Y", "", "uint16")); - if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary6Y", [value unsignedShortValue], 0U)); - } - if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary6Y", [value unsignedShortValue], 65279U)); - } - + VerifyOrReturn(CheckConstraintType("primary1Intensity", "", "uint8")); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary6Y_103() + CHIP_ERROR TestReadTheMandatoryAttributePrimary2X_34() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id primary6YArgument; - primary6YArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributePrimary6YWithValue:primary6YArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: Primary6Y Error: %@", err); + [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary2X Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("primary2X", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("primary2X", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("primary2X", [value unsignedShortValue], 65279U)); + } + + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6Y_104() + CHIP_ERROR TestReadTheMandatoryAttributePrimary2Y_35() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the mandatory attribute: Primary6Y Error: %@", err); + [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary2Y Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary6Y", "", "uint16")); + VerifyOrReturn(CheckConstraintType("primary2Y", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("primary6Y", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("primary2Y", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("primary6Y", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("primary2Y", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7414,46 +5369,41 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributePrimary6Intensity_105() + CHIP_ERROR TestValidateConstraintsOfAttributePrimary2Intensity_36() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePrimary6IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute: Primary6Intensity Error: %@", err); + [cluster readAttributePrimary2IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Validate constraints of attribute: Primary2Intensity Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("primary6Intensity", "", "uint8")); + VerifyOrReturn(CheckConstraintType("primary2Intensity", "", "uint8")); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheOptionalAttributeWhitePointX_106() + CHIP_ERROR TestReadTheMandatoryAttributePrimary3X_37() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeWhitePointXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: WhitePointX Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary3X Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("whitePointX", "", "uint16")); + VerifyOrReturn(CheckConstraintType("primary3X", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("whitePointX", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("primary3X", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("whitePointX", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("primary3X", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7462,80 +5412,66 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeWhitePointX_107() + CHIP_ERROR TestReadTheMandatoryAttributePrimary3Y_38() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id whitePointXArgument; - whitePointXArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeWhitePointXWithValue:whitePointXArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: WhitePointX Error: %@", err); + [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary3Y Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckConstraintType("primary3Y", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("primary3Y", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("primary3Y", [value unsignedShortValue], 65279U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointX_108() + CHIP_ERROR TestReadTheMandatoryAttributePrimary3Intensity_39() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeWhitePointXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: WhitePointX Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + [cluster readAttributePrimary3IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary3Intensity Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("white point x", actualValue, 0U)); - } - + VerifyOrReturn(CheckConstraintType("primary3Intensity", "", "uint8")); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheOptionalAttributeWhitePointY_109() + CHIP_ERROR TestReadTheMandatoryAttributePrimary4X_40() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeWhitePointYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: WhitePointY Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary4X Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("whitePointY", "", "uint16")); + VerifyOrReturn(CheckConstraintType("primary4X", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("whitePointY", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("primary4X", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("whitePointY", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("primary4X", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7544,80 +5480,66 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeWhitePointY_110() + CHIP_ERROR TestReadTheMandatoryAttributePrimary4Y_41() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id whitePointYArgument; - whitePointYArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeWhitePointYWithValue:whitePointYArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: WhitePointY Error: %@", err); + [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary4Y Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckConstraintType("primary4Y", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("primary4Y", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("primary4Y", [value unsignedShortValue], 65279U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointY_111() + CHIP_ERROR TestReadTheMandatoryAttributePrimary4Intensity_42() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeWhitePointYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: WhitePointY Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + [cluster readAttributePrimary4IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary4Intensity Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("white point y", actualValue, 0U)); - } - + VerifyOrReturn(CheckConstraintType("primary4Intensity", "", "uint8")); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheOptionalAttributeColorPointRX_112() + CHIP_ERROR TestReadTheMandatoryAttributePrimary5X_43() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeColorPointRXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: ColorPointRX Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary5X Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorPointRX", "", "uint16")); + VerifyOrReturn(CheckConstraintType("primary5X", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorPointRX", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("primary5X", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorPointRX", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("primary5X", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7626,80 +5548,66 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointRX_113() + CHIP_ERROR TestReadTheMandatoryAttributePrimary5Y_44() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id colorPointRXArgument; - colorPointRXArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeColorPointRXWithValue:colorPointRXArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: ColorPointRX Error: %@", err); + [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary5Y Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckConstraintType("primary5Y", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("primary5Y", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("primary5Y", [value unsignedShortValue], 65279U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRX_114() + CHIP_ERROR TestReadTheMandatoryAttributePrimary5Intensity_45() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeColorPointRXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: ColorPointRX Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + [cluster readAttributePrimary5IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary5Intensity Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("color point r x", actualValue, 0U)); - } - + VerifyOrReturn(CheckConstraintType("primary5Intensity", "", "uint8")); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheOptionalAttributeColorPointRY_115() + CHIP_ERROR TestReadTheMandatoryAttributePrimary6X_46() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeColorPointRYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: ColorPointRY Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary6X Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorPointRY", "", "uint16")); + VerifyOrReturn(CheckConstraintType("primary6X", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorPointRY", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("primary6X", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorPointRY", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("primary6X", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7708,66 +5616,57 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointRY_116() + CHIP_ERROR TestReadTheMandatoryAttributePrimary6Y_47() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id colorPointRYArgument; - colorPointRYArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeColorPointRYWithValue:colorPointRYArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: ColorPointRY Error: %@", err); + [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary6Y Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckConstraintType("primary6Y", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("primary6Y", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("primary6Y", [value unsignedShortValue], 65279U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRY_117() + CHIP_ERROR TestReadTheMandatoryAttributePrimary6Intensity_48() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeColorPointRYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: ColorPointRY Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + [cluster readAttributePrimary6IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute: Primary6Intensity Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("color point r y", actualValue, 0U)); - } - + VerifyOrReturn(CheckConstraintType("primary6Intensity", "", "uint8")); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheOptionalAttributeColorPointRIntensity_118() + CHIP_ERROR TestReadTheOptionalAttributeWhitePointX_49() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeColorPointRIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: ColorPointRIntensity Error: %@", err); + [cluster readAttributeWhitePointXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: WhitePointX Error: %@", err); if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { NextTest(); @@ -7776,46 +5675,58 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorPointRIntensity", "", "uint8")); + VerifyOrReturn(CheckConstraintType("whitePointX", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("whitePointX", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("whitePointX", [value unsignedShortValue], 65279U)); + } + NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointRIntensity_119() + CHIP_ERROR TestReadTheOptionalAttributeWhitePointY_50() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id colorPointRIntensityArgument; - colorPointRIntensityArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster writeAttributeColorPointRIntensityWithValue:colorPointRIntensityArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: ColorPointRIntensity Error: %@", err); + [cluster readAttributeWhitePointYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: WhitePointY Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - NextTest(); - }]; + VerifyOrReturn(CheckConstraintType("whitePointY", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("whitePointY", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("whitePointY", [value unsignedShortValue], 65279U)); + } + + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRIntensity_120() + CHIP_ERROR TestReadTheOptionalAttributeColorPointRX_51() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeColorPointRIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: ColorPointRIntensity Error: %@", err); + [cluster readAttributeColorPointRXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: ColorPointRX Error: %@", err); if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { NextTest(); @@ -7824,9 +5735,12 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("color point r intensity", actualValue, 0)); + VerifyOrReturn(CheckConstraintType("colorPointRX", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("colorPointRX", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("colorPointRX", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7835,14 +5749,14 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheOptionalAttributeColorPointGX_121() + CHIP_ERROR TestReadTheOptionalAttributeColorPointRY_52() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeColorPointGXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optional attribute: ColorPointGX Error: %@", err); + [cluster readAttributeColorPointRYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: ColorPointRY Error: %@", err); if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { NextTest(); @@ -7851,12 +5765,12 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("colorPointGX", "", "uint16")); + VerifyOrReturn(CheckConstraintType("colorPointRY", "", "uint16")); if (value != nil) { - VerifyOrReturn(CheckConstraintMinValue("colorPointGX", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("colorPointRY", [value unsignedShortValue], 0U)); } if (value != nil) { - VerifyOrReturn(CheckConstraintMaxValue("colorPointGX", [value unsignedShortValue], 65279U)); + VerifyOrReturn(CheckConstraintMaxValue("colorPointRY", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7865,39 +5779,37 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointGX_122() + CHIP_ERROR TestReadTheOptionalAttributeColorPointRIntensity_53() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id colorPointGXArgument; - colorPointGXArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeColorPointGXWithValue:colorPointGXArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: ColorPointGX Error: %@", err); + [cluster readAttributeColorPointRIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: ColorPointRIntensity Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - NextTest(); - }]; + VerifyOrReturn(CheckConstraintType("colorPointRIntensity", "", "uint8")); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGX_123() + CHIP_ERROR TestReadTheOptionalAttributeColorPointGX_54() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointGXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: ColorPointGX Error: %@", err); + NSLog(@"Read the optional attribute: ColorPointGX Error: %@", err); if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { NextTest(); @@ -7906,9 +5818,12 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("color point g x", actualValue, 0U)); + VerifyOrReturn(CheckConstraintType("colorPointGX", "", "uint16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("colorPointGX", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("colorPointGX", [value unsignedShortValue], 65279U)); } NextTest(); @@ -7917,7 +5832,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheOptionalAttributeColorPointGY_124() + CHIP_ERROR TestReadTheOptionalAttributeColorPointGY_55() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -7947,59 +5862,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointGY_125() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorPointGYArgument; - colorPointGYArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeColorPointGYWithValue:colorPointGYArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: ColorPointGY Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGY_126() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorPointGYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: ColorPointGY Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("color point g y", actualValue, 0U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheOptionalAttributeColorPointGIntensity_127() + CHIP_ERROR TestReadTheOptionalAttributeColorPointGIntensity_56() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -8022,59 +5885,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointGIntensity_128() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorPointGIntensityArgument; - colorPointGIntensityArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster writeAttributeColorPointGIntensityWithValue:colorPointGIntensityArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: ColorPointGIntensity Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGIntensity_129() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorPointGIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: ColorPointGIntensity Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("color point g intensity", actualValue, 0)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheOptionalAttributeColorPointBX_130() + CHIP_ERROR TestReadTheOptionalAttributeColorPointBX_57() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -8104,59 +5915,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointBX_131() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorPointBXArgument; - colorPointBXArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeColorPointBXWithValue:colorPointBXArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: ColorPointBX Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBX_132() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorPointBXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: ColorPointBX Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("color point b x", actualValue, 0U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheOptionalAttributeColorPointBY_133() + CHIP_ERROR TestReadTheOptionalAttributeColorPointBY_58() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -8186,59 +5945,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointBY_134() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorPointBYArgument; - colorPointBYArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeColorPointBYWithValue:colorPointBYArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: ColorPointBY Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBY_135() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorPointBYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: ColorPointBY Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("color point b y", actualValue, 0U)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadTheOptionalAttributeColorPointBIntensity_136() + CHIP_ERROR TestReadTheOptionalAttributeColorPointBIntensity_59() { CHIPDevice * device = GetDevice("alpha"); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -8260,58 +5967,6 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointBIntensity_137() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - id colorPointBIntensityArgument; - colorPointBIntensityArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster writeAttributeColorPointBIntensityWithValue:colorPointBIntensityArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default optional attribute: ColorPointBIntensity Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBIntensity_138() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeColorPointBIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read back the optional attribute: ColorPointBIntensity Error: %@", err); - - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("color point b intensity", actualValue, 0)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } }; class Test_TC_CC_3_1 : public TestCommandBridge { @@ -27717,6 +25372,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { ChipLogProgress(chipTool, " ***** Test Step 15 : Reads the Options attribute \n"); err = TestReadsTheOptionsAttribute_15(); break; + case 16: + ChipLogProgress(chipTool, " ***** Test Step 16 : Reads the StartUpCurrentLevel attribute \n"); + err = TestReadsTheStartUpCurrentLevelAttribute_16(); + break; } if (CHIP_NO_ERROR != err) { @@ -27776,6 +25435,9 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -27789,7 +25451,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 16; + const uint16_t mTestCount = 17; chip::Optional mNodeId; chip::Optional mCluster; @@ -28106,6 +25768,24 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } + + CHIP_ERROR TestReadsTheStartUpCurrentLevelAttribute_16() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the StartUpCurrentLevel attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("startUpCurrentLevel", "", "uint8")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } }; class Test_TC_LVL_2_2 : public TestCommandBridge { @@ -28167,48 +25847,64 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { err = TestWritesDefaultValueOfOnOffTransitionTimeAttribute_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : writes the OnLevel attribute on the DUT\n"); - err = TestWritesTheOnLevelAttributeOnTheDut_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Reads the OnLevel attribute from the DUT\n"); + err = TestReadsTheOnLevelAttributeFromTheDut_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Reads the OnLevel attribute from the DUT\n"); - err = TestReadsTheOnLevelAttributeFromTheDut_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : writes the OnLevel attribute on the DUT\n"); + err = TestWritesTheOnLevelAttributeOnTheDut_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Writes the OnTransitionTime attribute on the DUT\n"); - err = TestWritesTheOnTransitionTimeAttributeOnTheDut_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Reads the OnLevel attribute from the DUT\n"); + err = TestReadsTheOnLevelAttributeFromTheDut_7(); break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : Reads the OnTransitionTime attribute from the DUT\n"); err = TestReadsTheOnTransitionTimeAttributeFromTheDut_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Writes the OffTransitionTime attribute on the DUT\n"); - err = TestWritesTheOffTransitionTimeAttributeOnTheDut_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Writes the OnTransitionTime attribute on the DUT\n"); + err = TestWritesTheOnTransitionTimeAttributeOnTheDut_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Reads the OffTransitionTime attribute from the DUT\n"); - err = TestReadsTheOffTransitionTimeAttributeFromTheDut_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Reads the OnTransitionTime attribute from the DUT\n"); + err = TestReadsTheOnTransitionTimeAttributeFromTheDut_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Reads the DefaultMoveRate attribute from the DUT\n"); - err = TestReadsTheDefaultMoveRateAttributeFromTheDut_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Reads the OffTransitionTime attribute from the DUT\n"); + err = TestReadsTheOffTransitionTimeAttributeFromTheDut_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Writes the DefaultMoveRate attribute on the DUT\n"); - err = TestWritesTheDefaultMoveRateAttributeOnTheDut_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Writes the OffTransitionTime attribute on the DUT\n"); + err = TestWritesTheOffTransitionTimeAttributeOnTheDut_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Reads the DefaultMoveRate attribute from the DUT\n"); - err = TestReadsTheDefaultMoveRateAttributeFromTheDut_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Reads the OffTransitionTime attribute from the DUT\n"); + err = TestReadsTheOffTransitionTimeAttributeFromTheDut_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : writes the StartUpCurrentLevel attribute on the DUT\n"); - err = TestWritesTheStartUpCurrentLevelAttributeOnTheDut_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Reads the DefaultMoveRate attribute from the DUT\n"); + err = TestReadsTheDefaultMoveRateAttributeFromTheDut_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : reads the StartUpCurrentLevel attribute from the DUT\n"); - err = TestReadsTheStartUpCurrentLevelAttributeFromTheDut_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Writes the DefaultMoveRate attribute on the DUT\n"); + err = TestWritesTheDefaultMoveRateAttributeOnTheDut_15(); + break; + case 16: + ChipLogProgress(chipTool, " ***** Test Step 16 : Reads the DefaultMoveRate attribute from the DUT\n"); + err = TestReadsTheDefaultMoveRateAttributeFromTheDut_16(); + break; + case 17: + ChipLogProgress(chipTool, " ***** Test Step 17 : Reads the StartUpCurrentLevel attribute from the DUT\n"); + err = TestReadsTheStartUpCurrentLevelAttributeFromTheDut_17(); + break; + case 18: + ChipLogProgress(chipTool, " ***** Test Step 18 : writes the StartUpCurrentLevel attribute on the DUT\n"); + err = TestWritesTheStartUpCurrentLevelAttributeOnTheDut_18(); + break; + case 19: + ChipLogProgress(chipTool, " ***** Test Step 19 : reads the StartUpCurrentLevel attribute from the DUT\n"); + err = TestReadsTheStartUpCurrentLevelAttributeFromTheDut_19(); break; } @@ -28269,6 +25965,18 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 17: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 19: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -28282,7 +25990,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 16; + const uint16_t mTestCount = 20; chip::Optional mNodeId; chip::Optional mCluster; @@ -28382,7 +26090,25 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesTheOnLevelAttributeOnTheDut_5() + CHIP_ERROR TestReadsTheOnLevelAttributeFromTheDut_5() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the OnLevel attribute from the DUT Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("onLevel", "", "uint8")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestWritesTheOnLevelAttributeOnTheDut_6() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28402,7 +26128,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheOnLevelAttributeFromTheDut_6() + CHIP_ERROR TestReadsTheOnLevelAttributeFromTheDut_7() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28426,7 +26152,25 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesTheOnTransitionTimeAttributeOnTheDut_7() + CHIP_ERROR TestReadsTheOnTransitionTimeAttributeFromTheDut_8() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the OnTransitionTime attribute from the DUT Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("onTransitionTime", "", "uint16")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestWritesTheOnTransitionTimeAttributeOnTheDut_9() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28446,7 +26190,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheOnTransitionTimeAttributeFromTheDut_8() + CHIP_ERROR TestReadsTheOnTransitionTimeAttributeFromTheDut_10() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28470,7 +26214,25 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesTheOffTransitionTimeAttributeOnTheDut_9() + CHIP_ERROR TestReadsTheOffTransitionTimeAttributeFromTheDut_11() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the OffTransitionTime attribute from the DUT Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("offTransitionTime", "", "uint16")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestWritesTheOffTransitionTimeAttributeOnTheDut_12() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28490,7 +26252,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheOffTransitionTimeAttributeFromTheDut_10() + CHIP_ERROR TestReadsTheOffTransitionTimeAttributeFromTheDut_13() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28514,7 +26276,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheDefaultMoveRateAttributeFromTheDut_11() + CHIP_ERROR TestReadsTheDefaultMoveRateAttributeFromTheDut_14() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28538,7 +26300,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesTheDefaultMoveRateAttributeOnTheDut_12() + CHIP_ERROR TestWritesTheDefaultMoveRateAttributeOnTheDut_15() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28558,7 +26320,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheDefaultMoveRateAttributeFromTheDut_13() + CHIP_ERROR TestReadsTheDefaultMoveRateAttributeFromTheDut_16() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28582,7 +26344,25 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesTheStartUpCurrentLevelAttributeOnTheDut_14() + CHIP_ERROR TestReadsTheStartUpCurrentLevelAttributeFromTheDut_17() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the StartUpCurrentLevel attribute from the DUT Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("startUpCurrentLevel", "", "uint8")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestWritesTheStartUpCurrentLevelAttributeOnTheDut_18() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -28602,7 +26382,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheStartUpCurrentLevelAttributeFromTheDut_15() + CHIP_ERROR TestReadsTheStartUpCurrentLevelAttributeFromTheDut_19() { CHIPDevice * device = GetDevice("alpha"); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -36389,11 +34169,11 @@ class Test_TC_MC_3_11 : public TestCommandBridge { } }; -class Test_TC_MC_5_1 : public TestCommandBridge { +class Test_TC_MC_3_12 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_MC_5_1() - : TestCommandBridge("Test_TC_MC_5_1") + Test_TC_MC_3_12() + : TestCommandBridge("Test_TC_MC_3_12") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); @@ -36403,7 +34183,7 @@ class Test_TC_MC_5_1 : public TestCommandBridge { } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_MC_5_1() {} + ~Test_TC_MC_3_12() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -36411,11 +34191,11 @@ class Test_TC_MC_5_1 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_5_1\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_3_12\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_5_1\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_3_12\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -36432,216 +34212,20 @@ class Test_TC_MC_5_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the ChannelList attribute from the DUT\n"); - err = TestReadsTheChannelListAttributeFromTheDut_1(); - break; - } - - if (CHIP_NO_ERROR != err) { - ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); - SetCommandExitStatus(err); - } - } - - void OnStatusUpdate(const chip::app::StatusIB & status) override - { - switch (mTestIndex - 1) { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - } - - // Go on to the next test. - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() - { - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee("alpha", value); - } - - CHIP_ERROR TestReadsTheChannelListAttributeFromTheDut_1() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads the ChannelList attribute from the DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("channelList", "", "list")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } -}; - -class Test_TC_MC_5_2 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_MC_5_2() - : TestCommandBridge("Test_TC_MC_5_2") - , mTestIndex(0) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - - ~Test_TC_MC_5_2() {} - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_5_2\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_5_2\n"); - SetCommandExitStatus(CHIP_NO_ERROR); - return; - } - - Wait(); - - // Ensure we increment mTestIndex before we start running the relevant - // command. That way if we lose the timeslice after we send the message - // but before our function call returns, we won't end up with an - // incorrect mTestIndex value observed when we get the response. - switch (mTestIndex++) { - case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Wait for the commissioned device to be retrieved\n"); - err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); - break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : log a command\n"); - err = TestLogACommand_1(); - break; - } - - if (CHIP_NO_ERROR != err) { - ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); - SetCommandExitStatus(err); - } - } - - void OnStatusUpdate(const chip::app::StatusIB & status) override - { - switch (mTestIndex - 1) { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - } - - // Go on to the next test. - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() - { - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee("alpha", value); - } - - CHIP_ERROR TestLogACommand_1() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message - = chip::Span("verify that the channel has changed on the device.garbage: not in length on purpose", 50); - return UserPrompt("alpha", value); - } -}; - -class Test_TC_MC_5_3 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_MC_5_3() - : TestCommandBridge("Test_TC_MC_5_3") - , mTestIndex(0) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - - ~Test_TC_MC_5_3() {} - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_5_3\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_5_3\n"); - SetCommandExitStatus(CHIP_NO_ERROR); - return; - } - - Wait(); - - // Ensure we increment mTestIndex before we start running the relevant - // command. That way if we lose the timeslice after we send the message - // but before our function call returns, we won't end up with an - // incorrect mTestIndex value observed when we get the response. - switch (mTestIndex++) { - case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Wait for the commissioned device to be retrieved\n"); - err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Hide Input Status Command\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestHideInputStatusCommand_1(); break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : log a command\n"); - err = TestLogACommand_1(); + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Show Input Status Command\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestShowInputStatusCommand_2(); break; } @@ -36660,6 +34244,9 @@ class Test_TC_MC_5_3 : public TestCommandBridge { case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -36673,7 +34260,7 @@ class Test_TC_MC_5_3 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; chip::Optional mNodeId; chip::Optional mCluster; @@ -36687,20 +34274,46 @@ class Test_TC_MC_5_3 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestLogACommand_1() + CHIP_ERROR TestHideInputStatusCommand_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message - = chip::Span("verify that the channel has changed on the devicegarbage: not in length on purpose", 49); - return UserPrompt("alpha", value); + CHIPDevice * device = GetDevice("alpha"); + CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster hideInputStatusWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Hide Input Status Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestShowInputStatusCommand_2() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster showInputStatusWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Show Input Status Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } }; -class Test_TC_MC_6_1 : public TestCommandBridge { +class Test_TC_MC_3_13 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_MC_6_1() - : TestCommandBridge("Test_TC_MC_6_1") + Test_TC_MC_3_13() + : TestCommandBridge("Test_TC_MC_3_13") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); @@ -36710,7 +34323,7 @@ class Test_TC_MC_6_1 : public TestCommandBridge { } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_MC_6_1() {} + ~Test_TC_MC_3_13() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -36718,11 +34331,11 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_6_1\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_3_13\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_6_1\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_3_13\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -36739,24 +34352,28 @@ class Test_TC_MC_6_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : log a command\n"); - err = TestLogACommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read attribute media input list\n"); + err = TestReadAttributeMediaInputList_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : log a command\n"); - err = TestLogACommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Rename Input Command\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestRenameInputCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads the playback state attribute\n"); - err = TestReadsThePlaybackStateAttribute_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Rename Input Command\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestRenameInputCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : log a command\n"); - err = TestLogACommand_4(); - break; - case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : log a command\n"); - err = TestLogACommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read attribute media input list\n"); + err = TestReadAttributeMediaInputList_4(); break; } @@ -36784,9 +34401,6 @@ class Test_TC_MC_6_1 : public TestCommandBridge { case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; } // Go on to the next test. @@ -36800,7 +34414,7 @@ class Test_TC_MC_6_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 5; chip::Optional mNodeId; chip::Optional mCluster; @@ -36814,62 +34428,90 @@ class Test_TC_MC_6_1 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestLogACommand_1() + CHIP_ERROR TestReadAttributeMediaInputList_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); - return UserPrompt("alpha", value); - } + CHIPDevice * device = GetDevice("alpha"); + CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - CHIP_ERROR TestLogACommand_2() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Physically verify that the media is playinggarbage: not in length on purpose", 43); - return UserPrompt("alpha", value); + [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute media input list Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("inputList", "", "list")); + NextTest(); + }]; + + return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsThePlaybackStateAttribute_3() + CHIP_ERROR TestRenameInputCommand_2() { CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads the playback state attribute Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + __auto_type * params = [[CHIPMediaInputClusterRenameInputParams alloc] init]; + params.index = [NSNumber numberWithUnsignedChar:1]; + params.name = @"A1"; + [cluster renameInputWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Rename Input Command Error: %@", err); - { - id actualValue = value; - VerifyOrReturn(CheckValue("CurrentState", actualValue, 0)); - } + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestLogACommand_4() + CHIP_ERROR TestRenameInputCommand_3() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Physically verify that the media is pausedgarbage: not in length on purpose", 42); - return UserPrompt("alpha", value); + CHIPDevice * device = GetDevice("alpha"); + CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + __auto_type * params = [[CHIPMediaInputClusterRenameInputParams alloc] init]; + params.index = [NSNumber numberWithUnsignedChar:1]; + params.name = @"A2"; + [cluster renameInputWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Rename Input Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } - CHIP_ERROR TestLogACommand_5() + CHIP_ERROR TestReadAttributeMediaInputList_4() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Physically verify that the media is stopedgarbage: not in length on purpose", 42); - return UserPrompt("alpha", value); + CHIPDevice * device = GetDevice("alpha"); + CHIPTestMediaInput * cluster = [[CHIPTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute media input list Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("inputList", "", "list")); + NextTest(); + }]; + + return CHIP_NO_ERROR; } }; -class Test_TC_MC_6_2 : public TestCommandBridge { +class Test_TC_MC_5_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_MC_6_2() - : TestCommandBridge("Test_TC_MC_6_2") + Test_TC_MC_5_1() + : TestCommandBridge("Test_TC_MC_5_1") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); @@ -36879,7 +34521,7 @@ class Test_TC_MC_6_2 : public TestCommandBridge { } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_MC_6_2() {} + ~Test_TC_MC_5_1() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -36887,11 +34529,11 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_6_2\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_5_1\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_6_2\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_5_1\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -36908,36 +34550,8 @@ class Test_TC_MC_6_2 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : log a command\n"); - err = TestLogACommand_1(); - break; - case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : log a command\n"); - err = TestLogACommand_2(); - break; - case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads the CurrentState attribute\n"); - err = TestReadsTheCurrentStateAttribute_3(); - break; - case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : log a command\n"); - err = TestLogACommand_4(); - break; - case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : log a command\n"); - err = TestLogACommand_5(); - break; - case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : log a command\n"); - err = TestLogACommand_6(); - break; - case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : log a command\n"); - err = TestLogACommand_7(); - break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : log a command\n"); - err = TestLogACommand_8(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the ChannelList attribute from the DUT\n"); + err = TestReadsTheChannelListAttributeFromTheDut_1(); break; } @@ -36956,27 +34570,6 @@ class Test_TC_MC_6_2 : public TestCommandBridge { case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 7: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; } // Go on to the next test. @@ -36990,7 +34583,7 @@ class Test_TC_MC_6_2 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 9; + const uint16_t mTestCount = 2; chip::Optional mNodeId; chip::Optional mCluster; @@ -37004,98 +34597,42 @@ class Test_TC_MC_6_2 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestLogACommand_1() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestLogACommand_2() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Physically verify that the media is playinggarbage: not in length on purpose", 43); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestReadsTheCurrentStateAttribute_3() + CHIP_ERROR TestReadsTheChannelListAttributeFromTheDut_1() { CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads the CurrentState attribute Error: %@", err); + [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the ChannelList attribute from the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("CurrentState", actualValue, 0)); - } - + VerifyOrReturn(CheckConstraintType("channelList", "", "list")); NextTest(); }]; return CHIP_NO_ERROR; } - - CHIP_ERROR TestLogACommand_4() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message - = chip::Span("Physically verify that the media is started overgarbage: not in length on purpose", 48); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestLogACommand_5() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "Verify that the next media item in the queue has been loadedgarbage: not in length on purpose", 60); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestLogACommand_6() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "Verify that the previous media item in the queue has been loadedgarbage: not in length on purpose", 64); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestLogACommand_7() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message - = chip::Span("Verify that the media has skipped forward 10 secondsgarbage: not in length on purpose", 52); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestLogACommand_8() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message - = chip::Span("Verify that the media has skipped backward 10 secondsgarbage: not in length on purpose", 53); - return UserPrompt("alpha", value); - } }; -class Test_TC_MC_6_3 : public TestCommandBridge { +class Test_TC_MC_5_2 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_MC_6_3() - : TestCommandBridge("Test_TC_MC_6_3") + Test_TC_MC_5_2() + : TestCommandBridge("Test_TC_MC_5_2") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("majornumber", 0, UINT16_MAX, &mMajornumber); + AddArgument("minornumber", 0, UINT16_MAX, &mMinornumber); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_MC_6_3() {} + ~Test_TC_MC_5_2() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -37103,11 +34640,11 @@ class Test_TC_MC_6_3 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_6_3\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_5_2\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_6_3\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_5_2\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -37124,17 +34661,29 @@ class Test_TC_MC_6_3 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : log a command\n"); - err = TestLogACommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the ChannelList attribute\n"); + err = TestReadsTheChannelListAttribute_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : log a command\n"); - err = TestLogACommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : TH sends a ChangeChannelByNumber command\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestThSendsAChangeChannelByNumberCommand_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : log a command\n"); err = TestLogACommand_3(); break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads the CurrentChannel attribute\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestReadsTheCurrentChannelAttribute_4(); + break; } if (CHIP_NO_ERROR != err) { @@ -37158,6 +34707,9 @@ class Test_TC_MC_6_3 : public TestCommandBridge { case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -37171,11 +34723,13 @@ class Test_TC_MC_6_3 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 4; + const uint16_t mTestCount = 5; chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; + chip::Optional mMajornumber; + chip::Optional mMinornumber; chip::Optional mTimeout; CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() @@ -37185,45 +34739,96 @@ class Test_TC_MC_6_3 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestLogACommand_1() + CHIP_ERROR TestReadsTheChannelListAttribute_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); - return UserPrompt("alpha", value); + CHIPDevice * device = GetDevice("alpha"); + CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the ChannelList attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("channelList", "", "list")); + NextTest(); + }]; + + return CHIP_NO_ERROR; } - CHIP_ERROR TestLogACommand_2() + CHIP_ERROR TestThSendsAChangeChannelByNumberCommand_2() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "Verify that the media has moved to 10 seconds from the starting point.garbage: not in length on purpose", 70); - return UserPrompt("alpha", value); + CHIPDevice * device = GetDevice("alpha"); + CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + __auto_type * params = [[CHIPChannelClusterChangeChannelByNumberParams alloc] init]; + params.majorNumber = mMajornumber.HasValue() ? [NSNumber numberWithUnsignedShort:mMajornumber.Value()] + : [NSNumber numberWithUnsignedShort:1U]; + params.minorNumber = mMinornumber.HasValue() ? [NSNumber numberWithUnsignedShort:mMinornumber.Value()] + : [NSNumber numberWithUnsignedShort:2U]; + [cluster changeChannelByNumberWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"TH sends a ChangeChannelByNumber command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } CHIP_ERROR TestLogACommand_3() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "User prompt needed to enter the value beyond the furthest valid positiongarbage: not in length on purpose", 72); + value.message + = chip::Span("verify that the channel has changed on the device.garbage: not in length on purpose", 50); return UserPrompt("alpha", value); } + + CHIP_ERROR TestReadsTheCurrentChannelAttribute_4() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeCurrentChannelWithCompletionHandler:^( + CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the CurrentChannel attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValueNonNull("CurrentChannel", actualValue)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } }; -class Test_TC_MC_6_4 : public TestCommandBridge { +class Test_TC_MC_5_3 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_MC_6_4() - : TestCommandBridge("Test_TC_MC_6_4") + Test_TC_MC_5_3() + : TestCommandBridge("Test_TC_MC_5_3") , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("majornumber", 0, UINT16_MAX, &mMajornumber); + AddArgument("minornumber", 0, UINT16_MAX, &mMinornumber); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - ~Test_TC_MC_6_4() {} + ~Test_TC_MC_5_3() {} /////////// TestCommand Interface ///////// void NextTest() override @@ -37231,11 +34836,11 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR err = CHIP_NO_ERROR; if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_6_4\n"); + ChipLogProgress(chipTool, " **** Test Start: Test_TC_MC_5_3\n"); } if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_6_4\n"); + ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MC_5_3\n"); SetCommandExitStatus(CHIP_NO_ERROR); return; } @@ -37252,40 +34857,36 @@ class Test_TC_MC_6_4 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : log a command\n"); - err = TestLogACommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the ChannelList attribute from the DUT\n"); + err = TestReadsTheChannelListAttributeFromTheDut_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Reads the PlaybackSpeed attribute from the DUT\n"); - err = TestReadsThePlaybackSpeedAttributeFromTheDut_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads the CurrentChannel attribute from the DUT\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestReadsTheCurrentChannelAttributeFromTheDut_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : log a command\n"); - err = TestLogACommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Sends a SkipChannel command to the DUT\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestSendsASkipChannelCommandToTheDut_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Reads the CurrentState attribute\n"); - err = TestReadsTheCurrentStateAttribute_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : log a command\n"); + err = TestLogACommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : log a command\n"); - err = TestLogACommand_5(); - break; - case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : log a command\n"); - err = TestLogACommand_6(); - break; - case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Reads the CurrentState attribute\n"); - err = TestReadsTheCurrentStateAttribute_7(); - break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : log a command\n"); - err = TestLogACommand_8(); - break; - case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : log a command\n"); - err = TestLogACommand_9(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Reads the CurrentChannel attribute from the DUT\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestReadsTheCurrentChannelAttributeFromTheDut_5(); break; } @@ -37316,18 +34917,6 @@ class Test_TC_MC_6_4 : public TestCommandBridge { case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 7: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 9: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; } // Go on to the next test. @@ -37341,11 +34930,13 @@ class Test_TC_MC_6_4 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 10; + const uint16_t mTestCount = 6; chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; + chip::Optional mMajornumber; + chip::Optional mMinornumber; chip::Optional mTimeout; CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() @@ -37355,56 +34946,43 @@ class Test_TC_MC_6_4 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestLogACommand_1() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestReadsThePlaybackSpeedAttributeFromTheDut_2() + CHIP_ERROR TestReadsTheChannelListAttributeFromTheDut_1() { CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads the PlaybackSpeed attribute from the DUT Error: %@", err); + [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the ChannelList attribute from the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("PlaybackSpeed", actualValue, 0.0f)); - } - + VerifyOrReturn(CheckConstraintType("channelList", "", "list")); NextTest(); }]; return CHIP_NO_ERROR; } + CHIPChannelClusterChannelInfo * _Nullable currentChannelvalue; - CHIP_ERROR TestLogACommand_3() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that the media is playinggarbage: not in length on purpose", 32); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestReadsTheCurrentStateAttribute_4() + CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_2() { CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads the CurrentState attribute Error: %@", err); + [cluster readAttributeCurrentChannelWithCompletionHandler:^( + CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the CurrentChannel attribute from the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; - VerifyOrReturn(CheckValue("CurrentState", actualValue, 0)); + VerifyOrReturn(CheckValueNonNull("CurrentChannel", actualValue)); + } + { + currentChannelvalue = value; } NextTest(); @@ -37413,59 +34991,52 @@ class Test_TC_MC_6_4 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestLogACommand_5() + CHIP_ERROR TestSendsASkipChannelCommandToTheDut_3() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message - = chip::Span("Verify that the media play speed has increasedgarbage: not in length on purpose", 46); - return UserPrompt("alpha", value); + CHIPDevice * device = GetDevice("alpha"); + CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + __auto_type * params = [[CHIPChannelClusterSkipChannelParams alloc] init]; + params.count = [NSNumber numberWithUnsignedShort:1U]; + [cluster skipChannelWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Sends a SkipChannel command to the DUT Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } - CHIP_ERROR TestLogACommand_6() + CHIP_ERROR TestLogACommand_4() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message - = chip::Span("Verify that the media play has reversed directiongarbage: not in length on purpose", 49); + = chip::Span("verify that the channel has changed on the devicegarbage: not in length on purpose", 49); return UserPrompt("alpha", value); } - CHIP_ERROR TestReadsTheCurrentStateAttribute_7() + CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_5() { CHIPDevice * device = GetDevice("alpha"); - CHIPTestMediaPlayback * cluster = [[CHIPTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + CHIPTestChannel * cluster = [[CHIPTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads the CurrentState attribute Error: %@", err); + [cluster readAttributeCurrentChannelWithCompletionHandler:^( + CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the CurrentChannel attribute from the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("CurrentState", actualValue, 0)); - } - + VerifyOrReturn(CheckConstraintType("currentChannel", "", "list")); NextTest(); }]; return CHIP_NO_ERROR; } - - CHIP_ERROR TestLogACommand_8() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message - = chip::Span("Verify that the media play has reversed directiongarbage: not in length on purpose", 49); - return UserPrompt("alpha", value); - } - - CHIP_ERROR TestLogACommand_9() - { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "Verify that the media is has resumed playing forward at the default speedgarbage: not in length on purpose", 73); - return UserPrompt("alpha", value); - } }; class Test_TC_MC_7_1 : public TestCommandBridge { @@ -37510,6 +35081,26 @@ class Test_TC_MC_7_1 : public TestCommandBridge { ChipLogProgress(chipTool, " ***** Test Step 0 : Wait for the commissioned device to be retrieved\n"); err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; + case 1: + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the OutputList attribute\n"); + err = TestReadsTheOutputListAttribute_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Sends a SelectAudioOutput command\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestSendsASelectAudioOutputCommand_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads the CurrentOutput attribute\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestReadsTheCurrentOutputAttribute_3(); + break; } if (CHIP_NO_ERROR != err) { @@ -37524,6 +35115,15 @@ class Test_TC_MC_7_1 : public TestCommandBridge { case 0: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -37537,7 +35137,7 @@ class Test_TC_MC_7_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 4; chip::Optional mNodeId; chip::Optional mCluster; @@ -37550,6 +35150,66 @@ class Test_TC_MC_7_1 : public TestCommandBridge { value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee("alpha", value); } + + CHIP_ERROR TestReadsTheOutputListAttribute_1() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the OutputList attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("outputList", "", "OutPutInfo")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestSendsASelectAudioOutputCommand_2() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + __auto_type * params = [[CHIPAudioOutputClusterSelectOutputParams alloc] init]; + params.index = [NSNumber numberWithUnsignedChar:1]; + [cluster selectOutputWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Sends a SelectAudioOutput command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadsTheCurrentOutputAttribute_3() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeCurrentOutputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the CurrentOutput attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("CurrentOutput", actualValue, 1)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } }; class Test_TC_MC_7_2 : public TestCommandBridge { @@ -37594,6 +35254,28 @@ class Test_TC_MC_7_2 : public TestCommandBridge { ChipLogProgress(chipTool, " ***** Test Step 0 : Wait for the commissioned device to be retrieved\n"); err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; + case 1: + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the OutputList attribute from the DUT\n"); + err = TestReadsTheOutputListAttributeFromTheDut_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Sends a RenameOutput command\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestSendsARenameOutputCommand_2(); + break; + case 3: + ChipLogProgress(chipTool, + " ***** Test Step 3 : Reads the OutputList attribute from the DUT Verify that the output at the index provided in " + "step 2 has the name CertTest\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestReadsTheOutputListAttributeFromTheDutVerifyThatTheOutputAtTheIndexProvidedInStep2HasTheNameCertTest_3(); + break; } if (CHIP_NO_ERROR != err) { @@ -37608,6 +35290,15 @@ class Test_TC_MC_7_2 : public TestCommandBridge { case 0: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -37621,7 +35312,7 @@ class Test_TC_MC_7_2 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 4; chip::Optional mNodeId; chip::Optional mCluster; @@ -37634,6 +35325,59 @@ class Test_TC_MC_7_2 : public TestCommandBridge { value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee("alpha", value); } + NSArray * _Nonnull audioOutputListValues; + + CHIP_ERROR TestReadsTheOutputListAttributeFromTheDut_1() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the OutputList attribute from the DUT Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("outputList", "", "OutPutInfo")); + { + audioOutputListValues = value; + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestSendsARenameOutputCommand_2() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestAudioOutput * cluster = [[CHIPTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + __auto_type * params = [[CHIPAudioOutputClusterRenameOutputParams alloc] init]; + params.index = [NSNumber numberWithUnsignedChar:1]; + params.name = @"CertTest"; + [cluster renameOutputWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Sends a RenameOutput command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadsTheOutputListAttributeFromTheDutVerifyThatTheOutputAtTheIndexProvidedInStep2HasTheNameCertTest_3() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt("alpha", value); + } }; class Test_TC_MC_8_1 : public TestCommandBridge { @@ -37833,12 +35577,24 @@ class Test_TC_MC_9_1 : public TestCommandBridge { err = TestReadsTheProductIDAttribute_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Reads the Status attribute\n"); - err = TestReadsTheStatusAttribute_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Reads the Application attribute\n"); + if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + NextTest(); + return; + } + err = TestReadsTheApplicationAttribute_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Reads the ApplicationVersion attribute\n"); - err = TestReadsTheApplicationVersionAttribute_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Reads the Status attribute\n"); + err = TestReadsTheStatusAttribute_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Reads the ApplicationVersion attribute\n"); + err = TestReadsTheApplicationVersionAttribute_8(); + break; + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Reads the AllowedVendorList attribute\n"); + err = TestReadsTheAllowedVendorListAttribute_9(); break; } @@ -37875,6 +35631,12 @@ class Test_TC_MC_9_1 : public TestCommandBridge { case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 8: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 9: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -37888,7 +35650,7 @@ class Test_TC_MC_9_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 8; + const uint16_t mTestCount = 10; chip::Optional mNodeId; chip::Optional mCluster; @@ -37991,7 +35753,28 @@ class Test_TC_MC_9_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheStatusAttribute_6() + CHIP_ERROR TestReadsTheApplicationAttribute_6() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeApplicationWithCompletionHandler:^( + CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the Application attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("application", "", "struct")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadsTheStatusAttribute_7() { CHIPDevice * device = GetDevice("alpha"); CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device @@ -38004,9 +35787,11 @@ class Test_TC_MC_9_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("Status", actualValue, 0)); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("status", [value unsignedCharValue], 0)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("status", [value unsignedCharValue], 3)); } NextTest(); @@ -38015,7 +35800,7 @@ class Test_TC_MC_9_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheApplicationVersionAttribute_7() + CHIP_ERROR TestReadsTheApplicationVersionAttribute_8() { CHIPDevice * device = GetDevice("alpha"); CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device @@ -38035,6 +35820,26 @@ class Test_TC_MC_9_1 : public TestCommandBridge { return CHIP_NO_ERROR; } + + CHIP_ERROR TestReadsTheAllowedVendorListAttribute_9() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestApplicationBasic * cluster = [[CHIPTestApplicationBasic alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeAllowedVendorListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads the AllowedVendorList attribute Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("allowedVendorList", "", "list")); + NextTest(); + }]; + + return CHIP_NO_ERROR; + } }; class Test_TC_MC_10_1 : public TestCommandBridge { @@ -41829,159 +39634,6 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { } }; -class Test_TC_OCC_2_2 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_OCC_2_2() - : TestCommandBridge("Test_TC_OCC_2_2") - , mTestIndex(0) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - - ~Test_TC_OCC_2_2() {} - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_OCC_2_2\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_OCC_2_2\n"); - SetCommandExitStatus(CHIP_NO_ERROR); - return; - } - - Wait(); - - // Ensure we increment mTestIndex before we start running the relevant - // command. That way if we lose the timeslice after we send the message - // but before our function call returns, we won't end up with an - // incorrect mTestIndex value observed when we get the response. - switch (mTestIndex++) { - case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Wait for the commissioned device to be retrieved\n"); - err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); - break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Reads Occupancy attribute from DUT\n"); - if (ShouldSkip("A_OCCUPANCY")) { - NextTest(); - return; - } - err = TestReadsOccupancyAttributeFromDut_1(); - break; - case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Reads back Occupancy attribute from DUT after few seconds\n"); - if (ShouldSkip("A_OCCUPANCY")) { - NextTest(); - return; - } - err = TestReadsBackOccupancyAttributeFromDutAfterFewSeconds_2(); - break; - } - - if (CHIP_NO_ERROR != err) { - ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); - SetCommandExitStatus(err); - } - } - - void OnStatusUpdate(const chip::app::StatusIB & status) override - { - switch (mTestIndex - 1) { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - } - - // Go on to the next test. - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() - { - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee("alpha", value); - } - NSNumber * _Nonnull OccupancyValue; - - CHIP_ERROR TestReadsOccupancyAttributeFromDut_1() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads Occupancy attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("occupancy", actualValue, 0)); - } - { - OccupancyValue = value; - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestReadsBackOccupancyAttributeFromDutAfterFewSeconds_2() - { - CHIPDevice * device = GetDevice("alpha"); - CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back Occupancy attribute from DUT after few seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } -}; - class Test_TC_OO_1_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced @@ -46078,36 +43730,36 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { err = TestReadTheMandatoryAttributeConstraintsMeasuredValue_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Write the default values to mandatory attribute: MeasuredValue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeMeasuredValue_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read the mandatory attribute constraints: MinMeasuredValue\n"); + err = TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads back mandatory attribute: MeasuredValue\n"); - err = TestReadsBackMandatoryAttributeMeasuredValue_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Read the mandatory attribute constraints: MaxMeasuredValue\n"); + err = TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Read the mandatory attribute constraints: MinMeasuredValue\n"); - err = TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read the optional attribute: Tolerance\n"); + err = TestReadTheOptionalAttributeTolerance_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Write the default values to mandatory attribute: MinMeasuredValue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeMinMeasuredValue_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Read the optional attribute: ScaledValue\n"); + err = TestReadTheOptionalAttributeScaledValue_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Reads back mandatory attribute: MinMeasuredValue\n"); - err = TestReadsBackMandatoryAttributeMinMeasuredValue_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Read the optional attribute: MinScaledValue\n"); + err = TestReadTheOptionalAttributeMinScaledValue_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Read the mandatory attribute constraints: MaxMeasuredValue\n"); - err = TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Read the optional attribute: MaxScaledValue\n"); + err = TestReadTheOptionalAttributeMaxScaledValue_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Write the default values to mandatory attribute: MaxMeasuredValue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeMaxMeasuredValue_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Read the optional attribute: ScaledTolerance\n"); + err = TestReadTheOptionalAttributeScaledTolerance_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Reads back mandatory attribute: MaxMeasuredValue\n"); - err = TestReadsBackMandatoryAttributeMaxMeasuredValue_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Read the optional attribute: Scale\n"); + err = TestReadTheOptionalAttributeScale_9(); break; } @@ -46127,7 +43779,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -46136,7 +43788,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -46145,7 +43797,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 9: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -46191,13 +43843,20 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "int16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("measuredValue", [value shortValue], -32768)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("measuredValue", [value shortValue], 32767)); + } + NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMeasuredValue_2() + CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_2() { CHIPDevice * device = GetDevice("alpha"); CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device @@ -46205,21 +43864,26 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id measuredValueArgument; - measuredValueArgument = [NSNumber numberWithShort:0]; - [cluster - writeAttributeMeasuredValueWithValue:measuredValueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: MeasuredValue Error: %@", err); + [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute constraints: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "int16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("minMeasuredValue", [value shortValue], -32768)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("minMeasuredValue", [value shortValue], 32767)); + } + + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsBackMandatoryAttributeMeasuredValue_3() + CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_3() { CHIPDevice * device = GetDevice("alpha"); CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device @@ -46227,15 +43891,17 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: MeasuredValue Error: %@", err); + [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the mandatory attribute constraints: MaxMeasuredValue Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValueNonNull("MeasuredValue", actualValue)); - VerifyOrReturn(CheckValue("MeasuredValue", actualValue, 0)); + VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "int16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("maxMeasuredValue", [value shortValue], -32768)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("maxMeasuredValue", [value shortValue], 32767)); } NextTest(); @@ -46244,7 +43910,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_4() + CHIP_ERROR TestReadTheOptionalAttributeTolerance_4() { CHIPDevice * device = GetDevice("alpha"); CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device @@ -46252,19 +43918,31 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute constraints: MinMeasuredValue Error: %@", err); + [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: Tolerance Error: %@", err); + + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "int16")); + VerifyOrReturn(CheckConstraintType("tolerance", "", "int16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("tolerance", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("tolerance", [value unsignedShortValue], 2048U)); + } + NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMinMeasuredValue_5() + CHIP_ERROR TestReadTheOptionalAttributeScaledValue_5() { CHIPDevice * device = GetDevice("alpha"); CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device @@ -46272,21 +43950,31 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id minMeasuredValueArgument; - minMeasuredValueArgument = [NSNumber numberWithShort:0]; - [cluster - writeAttributeMinMeasuredValueWithValue:minMeasuredValueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: MinMeasuredValue Error: %@", err); + [cluster readAttributeScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: ScaledValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("scaledValue", "", "int16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("scaledValue", [value shortValue], -32768)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("scaledValue", [value shortValue], 32767)); + } + + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsBackMandatoryAttributeMinMeasuredValue_6() + CHIP_ERROR TestReadTheOptionalAttributeMinScaledValue_6() { CHIPDevice * device = GetDevice("alpha"); CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device @@ -46294,15 +43982,22 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: MinMeasuredValue Error: %@", err); + [cluster readAttributeMinScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: MinScaledValue Error: %@", err); + + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValueNonNull("MinMeasuredValue", actualValue)); - VerifyOrReturn(CheckValue("MinMeasuredValue", actualValue, 0)); + VerifyOrReturn(CheckConstraintType("minScaledValue", "", "int16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("minScaledValue", [value shortValue], -32768)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("minScaledValue", [value shortValue], 32767)); } NextTest(); @@ -46311,7 +44006,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_7() + CHIP_ERROR TestReadTheOptionalAttributeMaxScaledValue_7() { CHIPDevice * device = GetDevice("alpha"); CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device @@ -46319,19 +44014,31 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the mandatory attribute constraints: MaxMeasuredValue Error: %@", err); + [cluster readAttributeMaxScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: MaxScaledValue Error: %@", err); + + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "int16")); + VerifyOrReturn(CheckConstraintType("maxScaledValue", "", "int16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("maxScaledValue", [value shortValue], -32768)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("maxScaledValue", [value shortValue], 32767)); + } + NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMaxMeasuredValue_8() + CHIP_ERROR TestReadTheOptionalAttributeScaledTolerance_8() { CHIPDevice * device = GetDevice("alpha"); CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device @@ -46339,21 +44046,31 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - id maxMeasuredValueArgument; - maxMeasuredValueArgument = [NSNumber numberWithShort:0]; - [cluster - writeAttributeMaxMeasuredValueWithValue:maxMeasuredValueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: MaxMeasuredValue Error: %@", err); + [cluster readAttributeScaledToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: ScaledTolerance Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("scaledTolerance", "", "int16")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("scaledTolerance", [value unsignedShortValue], 0U)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("scaledTolerance", [value unsignedShortValue], 2048U)); + } + + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsBackMandatoryAttributeMaxMeasuredValue_9() + CHIP_ERROR TestReadTheOptionalAttributeScale_9() { CHIPDevice * device = GetDevice("alpha"); CHIPTestPressureMeasurement * cluster = [[CHIPTestPressureMeasurement alloc] initWithDevice:device @@ -46361,15 +44078,22 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads back mandatory attribute: MaxMeasuredValue Error: %@", err); + [cluster readAttributeScaleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute: Scale Error: %@", err); + + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValueNonNull("MaxMeasuredValue", actualValue)); - VerifyOrReturn(CheckValue("MaxMeasuredValue", actualValue, 0)); + VerifyOrReturn(CheckConstraintType("scale", "", "int8")); + if (value != nil) { + VerifyOrReturn(CheckConstraintMinValue("scale", [value charValue], -127)); + } + if (value != nil) { + VerifyOrReturn(CheckConstraintMaxValue("scale", [value charValue], 127)); } NextTest(); @@ -54943,14 +52667,8 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, - " ***** Test Step 1 : Read ClusterRevision attribute from the DUT and Verify that the DUT response indicates " - "ClusterRevision attribute has the value 2\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { - NextTest(); - return; - } - err = TestReadClusterRevisionAttributeFromTheDutAndVerifyThatTheDutResponseIndicatesClusterRevisionAttributeHasTheValue2_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : TH read ClusterRevision attribute from the DUT\n"); + err = TestThReadClusterRevisionAttributeFromTheDut_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Read the global attribute: AttributeList\n"); @@ -55034,14 +52752,28 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR - TestReadClusterRevisionAttributeFromTheDutAndVerifyThatTheDutResponseIndicatesClusterRevisionAttributeHasTheValue2_1() + CHIP_ERROR TestThReadClusterRevisionAttributeFromTheDut_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter ClusterRevision attribute valuegarbage: not in length on purpose", 44); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("2garbage: not in length on purpose", 1); - return UserPrompt("alpha", value); + CHIPDevice * device = GetDevice("alpha"); + CHIPTestThermostatUserInterfaceConfiguration * cluster = + [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH read ClusterRevision attribute from the DUT Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 2U)); + } + + VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); + NextTest(); + }]; + + return CHIP_NO_ERROR; } CHIP_ERROR TestReadTheGlobalAttributeAttributeList_2() @@ -55455,104 +53187,146 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { err = TestWritesAValueOf0ToTemperatureDisplayModeAttributeOfDut_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Writes a value of 1 to TemperatureDisplayMode attribute of DUT\n"); + ChipLogProgress(chipTool, " ***** Test Step 2 : Verify device temperature displayed in °C\n"); + err = TestVerifyDeviceTemperatureDisplayedInc_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : Writes a value of 1 to TemperatureDisplayMode attribute of DUT\n"); if (ShouldSkip("A_TEMPERATURE_DISPLAY_MODE")) { NextTest(); return; } - err = TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_2(); + err = TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_3(); break; - case 3: + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Verify device temperature displayed in °F\n"); + err = TestVerifyDeviceTemperatureDisplayedInf_4(); + break; + case 5: ChipLogProgress( - chipTool, " ***** Test Step 3 : Writes a value of greater than 1 to TemperatureDisplayMode attribute of DUT\n"); + chipTool, " ***** Test Step 5 : Writes a value of greater than 1 to TemperatureDisplayMode attribute of DUT\n"); if (ShouldSkip("A_TEMPERATURE_DISPLAY_MODE")) { NextTest(); return; } - err = TestWritesAValueOfGreaterThan1ToTemperatureDisplayModeAttributeOfDut_3(); + err = TestWritesAValueOfGreaterThan1ToTemperatureDisplayModeAttributeOfDut_5(); break; - case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Writes a value of 0 to KeypadLockout attribute of DUT\n"); + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Writes a value of 0 to KeypadLockout attribute of DUT\n"); if (ShouldSkip("A_KEYPAD_LOCKOUT")) { NextTest(); return; } - err = TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_4(); + err = TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_6(); break; - case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Writes a value of 1 to KeypadLockout attribute of DUT\n"); + case 7: + ChipLogProgress(chipTool, " ***** Test Step 7 : Verify all device functionality available to the user\n"); + err = TestVerifyAllDeviceFunctionalityAvailableToTheUser_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Writes a value of 1 to KeypadLockout attribute of DUT\n"); if (ShouldSkip("A_KEYPAD_LOCKOUT")) { NextTest(); return; } - err = TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_5(); + err = TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_8(); break; - case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Writes a value of 2 to KeypadLockout attribute of DUT\n"); + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Verify device operates at Level 1 reduced functionality\n"); + err = TestVerifyDeviceOperatesAtLevel1ReducedFunctionality_9(); + break; + case 10: + ChipLogProgress(chipTool, " ***** Test Step 10 : Writes a value of 2 to KeypadLockout attribute of DUT\n"); if (ShouldSkip("A_KEYPAD_LOCKOUT")) { NextTest(); return; } - err = TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_6(); + err = TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_10(); break; - case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Writes a value of 3 to KeypadLockout attribute of DUT\n"); + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : Verify device operates at Level 2 reduced functionality\n"); + err = TestVerifyDeviceOperatesAtLevel2ReducedFunctionality_11(); + break; + case 12: + ChipLogProgress(chipTool, " ***** Test Step 12 : Writes a value of 3 to KeypadLockout attribute of DUT\n"); if (ShouldSkip("A_KEYPAD_LOCKOUT")) { NextTest(); return; } - err = TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_7(); + err = TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_12(); break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Writes a value of 4 to KeypadLockout attribute of DUT\n"); + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : Verify device operates at Level 3 reduced functionality\n"); + err = TestVerifyDeviceOperatesAtLevel3ReducedFunctionality_13(); + break; + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : Writes a value of 4 to KeypadLockout attribute of DUT\n"); if (ShouldSkip("A_KEYPAD_LOCKOUT")) { NextTest(); return; } - err = TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_8(); + err = TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_14(); break; - case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Writes a value of 5 to KeypadLockout attribute of DUT\n"); + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : Verify device operates at Level 4 reduced functionality\n"); + err = TestVerifyDeviceOperatesAtLevel4ReducedFunctionality_15(); + break; + case 16: + ChipLogProgress(chipTool, " ***** Test Step 16 : Writes a value of 5 to KeypadLockout attribute of DUT\n"); if (ShouldSkip("A_KEYPAD_LOCKOUT")) { NextTest(); return; } - err = TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_9(); + err = TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_16(); break; - case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Writes a value of greater than 5 to KeypadLockout attribute of DUT\n"); + case 17: + ChipLogProgress(chipTool, " ***** Test Step 17 : Verify device operates at least functionality level\n"); + err = TestVerifyDeviceOperatesAtLeastFunctionalityLevel_17(); + break; + case 18: + ChipLogProgress(chipTool, " ***** Test Step 18 : Writes a value of greater than 5 to KeypadLockout attribute of DUT\n"); if (ShouldSkip("A_KEYPAD_LOCKOUT")) { NextTest(); return; } - err = TestWritesAValueOfGreaterThan5ToKeypadLockoutAttributeOfDut_10(); + err = TestWritesAValueOfGreaterThan5ToKeypadLockoutAttributeOfDut_18(); break; - case 11: + case 19: ChipLogProgress( - chipTool, " ***** Test Step 11 : Writes a value of 0 to ScheduleProgrammingVisibility attribute of DUT\n"); + chipTool, " ***** Test Step 19 : Writes a value of 0 to ScheduleProgrammingVisibility attribute of DUT\n"); if (ShouldSkip("A_SCHEDULE_PROGRAMMING_VISIBILITY")) { NextTest(); return; } - err = TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_11(); + err = TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_19(); break; - case 12: + case 20: + ChipLogProgress( + chipTool, " ***** Test Step 20 : Verify local schedule programming functionality is enabled at the thermostat\n"); + err = TestVerifyLocalScheduleProgrammingFunctionalityIsEnabledAtTheThermostat_20(); + break; + case 21: ChipLogProgress( - chipTool, " ***** Test Step 12 : Writes a value of 1 to ScheduleProgrammingVisibility attribute of DUT\n"); + chipTool, " ***** Test Step 21 : Writes a value of 1 to ScheduleProgrammingVisibility attribute of DUT\n"); if (ShouldSkip("A_SCHEDULE_PROGRAMMING_VISIBILITY")) { NextTest(); return; } - err = TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_12(); + err = TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_21(); break; - case 13: + case 22: + ChipLogProgress( + chipTool, " ***** Test Step 22 : Verify local schedule programming functionality is disabled at the thermostat\n"); + err = TestVerifyLocalScheduleProgrammingFunctionalityIsDisabledAtTheThermostat_22(); + break; + case 23: ChipLogProgress(chipTool, - " ***** Test Step 13 : Writes a value of greater than 1 to ScheduleProgrammingVisibility attribute of DUT\n"); + " ***** Test Step 23 : Writes a value of greater than 1 to ScheduleProgrammingVisibility attribute of DUT\n"); if (ShouldSkip("A_SCHEDULE_PROGRAMMING_VISIBILITY")) { NextTest(); return; } - err = TestWritesAValueOfGreaterThan1ToScheduleProgrammingVisibilityAttributeOfDut_13(); + err = TestWritesAValueOfGreaterThan1ToScheduleProgrammingVisibilityAttributeOfDut_23(); break; } @@ -55575,13 +53349,13 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -55596,7 +53370,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 10: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -55605,6 +53379,36 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 17: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + break; + case 19: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 20: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 21: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 22: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 23: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; } @@ -55620,7 +53424,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 14; + const uint16_t mTestCount = 24; chip::Optional mNodeId; chip::Optional mCluster; @@ -55656,7 +53460,14 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_2() + CHIP_ERROR TestVerifyDeviceTemperatureDisplayedInc_2() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Verify device temperature displayed in °Cgarbage: not in length on purpose", 42); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_3() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55678,7 +53489,14 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOfGreaterThan1ToTemperatureDisplayModeAttributeOfDut_3() + CHIP_ERROR TestVerifyDeviceTemperatureDisplayedInf_4() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Verify device temperature displayed in °Fgarbage: not in length on purpose", 42); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOfGreaterThan1ToTemperatureDisplayModeAttributeOfDut_5() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55701,7 +53519,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_4() + CHIP_ERROR TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_6() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55722,7 +53540,15 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_5() + CHIP_ERROR TestVerifyAllDeviceFunctionalityAvailableToTheUser_7() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message + = chip::Span("Verify all device functionality available to the usergarbage: not in length on purpose", 53); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_8() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55743,7 +53569,15 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_6() + CHIP_ERROR TestVerifyDeviceOperatesAtLevel1ReducedFunctionality_9() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify device operates at Level 1 reduced functionalitygarbage: not in length on purpose", 55); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_10() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55764,7 +53598,15 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_7() + CHIP_ERROR TestVerifyDeviceOperatesAtLevel2ReducedFunctionality_11() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify device operates at Level 2 reduced functionalitygarbage: not in length on purpose", 55); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_12() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55785,7 +53627,15 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_8() + CHIP_ERROR TestVerifyDeviceOperatesAtLevel3ReducedFunctionality_13() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify device operates at Level 3 reduced functionalitygarbage: not in length on purpose", 55); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_14() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55806,7 +53656,15 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_9() + CHIP_ERROR TestVerifyDeviceOperatesAtLevel4ReducedFunctionality_15() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify device operates at Level 4 reduced functionalitygarbage: not in length on purpose", 55); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_16() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55827,7 +53685,15 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOfGreaterThan5ToKeypadLockoutAttributeOfDut_10() + CHIP_ERROR TestVerifyDeviceOperatesAtLeastFunctionalityLevel_17() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message + = chip::Span("Verify device operates at least functionality levelgarbage: not in length on purpose", 51); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOfGreaterThan5ToKeypadLockoutAttributeOfDut_18() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55847,7 +53713,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_11() + CHIP_ERROR TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_19() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55870,7 +53736,15 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_12() + CHIP_ERROR TestVerifyLocalScheduleProgrammingFunctionalityIsEnabledAtTheThermostat_20() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify local schedule programming functionality is enabled at the thermostatgarbage: not in length on purpose", 76); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_21() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -55893,7 +53767,15 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWritesAValueOfGreaterThan1ToScheduleProgrammingVisibilityAttributeOfDut_13() + CHIP_ERROR TestVerifyLocalScheduleProgrammingFunctionalityIsDisabledAtTheThermostat_22() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify local schedule programming functionality is disabled at the thermostatgarbage: not in length on purpose", 77); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestWritesAValueOfGreaterThan1ToScheduleProgrammingVisibilityAttributeOfDut_23() { CHIPDevice * device = GetDevice("alpha"); CHIPTestThermostatUserInterfaceConfiguration * cluster = @@ -109428,13 +107310,11 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), + make_unique(), + make_unique(), make_unique(), make_unique(), make_unique(), - make_unique(), - make_unique(), - make_unique(), - make_unique(), make_unique(), make_unique(), make_unique(), @@ -109449,7 +107329,6 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), - make_unique(), make_unique(), make_unique(), make_unique(), diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index ebf45d97c812a2..4874629d818012 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -111,13 +111,11 @@ class TestList : public Command printf("Test_TC_MC_3_9\n"); printf("Test_TC_MC_3_10\n"); printf("Test_TC_MC_3_11\n"); + printf("Test_TC_MC_3_12\n"); + printf("Test_TC_MC_3_13\n"); printf("Test_TC_MC_5_1\n"); printf("Test_TC_MC_5_2\n"); printf("Test_TC_MC_5_3\n"); - printf("Test_TC_MC_6_1\n"); - printf("Test_TC_MC_6_2\n"); - printf("Test_TC_MC_6_3\n"); - printf("Test_TC_MC_6_4\n"); printf("Test_TC_MC_7_1\n"); printf("Test_TC_MC_7_2\n"); printf("Test_TC_MC_8_1\n"); @@ -132,7 +130,6 @@ class TestList : public Command printf("OTA_SuccessfulTransfer\n"); printf("Test_TC_OCC_1_1\n"); printf("Test_TC_OCC_2_1\n"); - printf("Test_TC_OCC_2_2\n"); printf("Test_TC_OO_1_1\n"); printf("Test_TC_OO_2_1\n"); printf("Test_TC_OO_2_2\n"); @@ -348,9 +345,11 @@ class ManualTestList : public Command printf("Test_TC_IDM_6_4\n"); printf("Test_TC_IDM_7_1\n"); printf("Test_TC_MC_2_2\n"); - printf("Test_TC_MC_3_12\n"); - printf("Test_TC_MC_3_13\n"); printf("Test_TC_MC_4_1\n"); + printf("Test_TC_MC_6_1\n"); + printf("Test_TC_MC_6_2\n"); + printf("Test_TC_MC_6_3\n"); + printf("Test_TC_MC_6_4\n"); printf("Test_TC_MC_8_2\n"); printf("Test_TC_MC_9_2\n"); printf("Test_TC_MC_10_2\n"); @@ -421,6 +420,7 @@ class ManualTestList : public Command printf("Test_TC_WNCV_6_1\n"); printf("Test_TC_WNCV_7_1\n"); printf("Test_TC_FLW_3_1\n"); + printf("Test_TC_OCC_2_2\n"); printf("Test_TC_OCC_2_3\n"); printf("Test_TC_OCC_2_4\n"); printf("Test_TC_OCC_3_1\n"); @@ -2896,7 +2896,7 @@ class Test_TC_CC_1_1Suite : public TestCommand class Test_TC_CC_2_1Suite : public TestCommand { public: - Test_TC_CC_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_2_1", 139, credsIssuerConfig) + Test_TC_CC_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_2_1", 60, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -2938,48 +2938,28 @@ class Test_TC_CC_2_1Suite : public TestCommand { uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentHue", value, 0)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 254)); } break; case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 254)); - } - break; - case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentSaturation", value, 0)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 254)); } break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 6: + case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - uint8_t value; + uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 254)); + VerifyOrReturn(CheckValue("currentX", value, 24939U)); } break; - case 7: + case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -2989,20 +2969,15 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 9: + case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + VerifyOrReturn(CheckValue("currentY", value, 24701U)); } break; - case 10: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3012,20 +2987,15 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 11: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 12: + case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + VerifyOrReturn(CheckValue("colorTemperature", value, 250U)); } break; - case 13: + case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3035,171 +3005,105 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 14: + case 9: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "enum8")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 2)); + VerifyOrReturn(CheckValue("colorMode", value, 1)); } break; - case 15: + case 10: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "map8")); + VerifyOrReturn(CheckConstraintType("value", "", "enum8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 2)); } break; - case 16: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 17: + case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValue("colorControlOptions", value, 0)); + VerifyOrReturn(CheckConstraintType("value", "", "map8")); } break; - case 18: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - } - break; - case 19: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 20: + case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("enhancedCurrentHue", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); } break; - case 21: + case 13: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("enhancedColorMode", value, 1)); VerifyOrReturn(CheckConstraintType("value", "", "enum8")); } break; - case 22: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - } - break; - case 23: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 24: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - } - break; - case 25: + case 14: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("colorLoopActive", value, 0)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 26: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 27: + case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("colorLoopDirection", value, 0)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 28: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - } - break; - case 29: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 30: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - } - break; - case 31: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - } - break; - case 32: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 33: + case 16: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("colorLoopTime", value, 25U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); } break; - case 34: + case 17: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", value, 8960U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); } break; - case 35: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 36: + case 18: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); } break; - case 37: + case 19: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "map16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 31U)); + VerifyOrReturn(CheckValue("colorCapabilities", value, 0U)); } break; - case 38: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 39: + case 20: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3209,20 +3113,15 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 31U)); } break; - case 40: + case 21: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + VerifyOrReturn(CheckValue("colorTempPhysicalMin", value, 0U)); } break; - case 41: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 42: + case 22: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3232,20 +3131,15 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 43: + case 23: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + VerifyOrReturn(CheckValue("colorTempPhysicalMax", value, 65279U)); } break; - case 44: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 45: + case 24: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3255,34 +3149,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 46: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - } - break; - case 47: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 48: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - } - break; - case 49: + case 25: if (IsUnsupported(status.mStatus)) { return; @@ -3296,26 +3163,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 50: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 51: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("startUpColorTemperatureMireds", value, 0U)); - } - break; - case 52: + case 26: if (IsUnsupported(status.mStatus)) { return; @@ -3325,12 +3173,11 @@ class Test_TC_CC_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 53: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 54: + case 27: if (IsUnsupported(status.mStatus)) { return; @@ -3339,27 +3186,11 @@ class Test_TC_CC_2_1Suite : public TestCommand { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("remainingTime", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); } break; - case 55: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "enum8")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 4)); - } - break; - case 56: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 57: + case 28: if (IsUnsupported(status.mStatus)) { return; @@ -3373,23 +3204,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 4)); } break; - case 58: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::CharSpan value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 254)); - } - break; - case 59: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 60: + case 29: if (IsUnsupported(status.mStatus)) { return; @@ -3402,20 +3217,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 254)); } break; - case 61: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 6)); - } - break; - case 62: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 63: + case 30: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -3425,7 +3227,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 6)); } break; - case 64: + case 31: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3435,10 +3237,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 65: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 66: + case 32: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3448,20 +3247,15 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 67: + case 33: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - uint16_t value; + uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 68: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 69: + case 34: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3471,15 +3265,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 70: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - } - break; - case 71: + case 35: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3489,20 +3275,15 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 72: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 73: + case 36: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - uint16_t value; + uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 74: + case 37: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3512,10 +3293,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 75: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 76: + case 38: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3525,7 +3303,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 77: + case 39: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -3533,7 +3311,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 78: + case 40: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3543,10 +3321,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 79: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 80: + case 41: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3556,20 +3331,15 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 81: + case 42: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - uint16_t value; + uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 82: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 83: + case 43: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3579,15 +3349,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 84: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - } - break; - case 85: + case 44: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3597,20 +3359,15 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 86: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 87: + case 45: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - uint16_t value; + uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 88: + case 46: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3620,10 +3377,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 89: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 90: + case 47: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3633,7 +3387,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 91: + case 48: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -3641,20 +3395,11 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 92: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + case 49: + if (IsUnsupported(status.mStatus)) { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + return; } - break; - case 93: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 94: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3664,20 +3409,11 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 95: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + case 50: + if (IsUnsupported(status.mStatus)) { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + return; } - break; - case 96: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 97: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3687,15 +3423,11 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 98: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + case 51: + if (IsUnsupported(status.mStatus)) { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + return; } - break; - case 99: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3705,20 +3437,11 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 100: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 101: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + case 52: + if (IsUnsupported(status.mStatus)) { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + return; } - break; - case 102: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -3728,20 +3451,11 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 103: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - break; - case 104: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + case 53: + if (IsUnsupported(status.mStatus)) { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); + return; } - break; - case 105: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -3749,7 +3463,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 106: + case 54: if (IsUnsupported(status.mStatus)) { return; @@ -3763,26 +3477,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 107: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 108: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("whitePointX", value, 0U)); - } - break; - case 109: + case 55: if (IsUnsupported(status.mStatus)) { return; @@ -3796,14 +3491,19 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 110: + case 56: if (IsUnsupported(status.mStatus)) { return; } VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + } break; - case 111: + case 57: if (IsUnsupported(status.mStatus)) { return; @@ -3812,10 +3512,12 @@ class Test_TC_CC_2_1Suite : public TestCommand { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("whitePointY", value, 0U)); + VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 112: + case 58: if (IsUnsupported(status.mStatus)) { return; @@ -3829,253 +3531,7 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); } break; - case 113: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 114: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("colorPointRX", value, 0U)); - } - break; - case 115: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); - } - break; - case 116: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 117: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("colorPointRY", value, 0U)); - } - break; - case 118: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - } - break; - case 119: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 120: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("colorPointRIntensity", value, 0)); - } - break; - case 121: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); - } - break; - case 122: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 123: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("colorPointGX", value, 0U)); - } - break; - case 124: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); - } - break; - case 125: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 126: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("colorPointGY", value, 0U)); - } - break; - case 127: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - } - break; - case 128: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 129: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("colorPointGIntensity", value, 0)); - } - break; - case 130: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); - } - break; - case 131: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 132: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("colorPointBX", value, 0U)); - } - break; - case 133: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U)); - } - break; - case 134: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 135: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("colorPointBY", value, 0U)); - } - break; - case 136: + case 59: if (IsUnsupported(status.mStatus)) { return; @@ -4087,25 +3543,6 @@ class Test_TC_CC_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 137: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 138: - if (IsUnsupported(status.mStatus)) - { - return; - } - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("colorPointBIntensity", value, 0)); - } - break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -4128,693 +3565,255 @@ class Test_TC_CC_2_1Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Validate constraints of attribute: current hue"); + LogStep(1, "Validate constraints of attribute: CurrentHue"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id); } case 2: { - LogStep(2, "Write the default value to mandatory attribute: CurrentHue"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, - value); + LogStep(2, "Validate constraints of attribute: CurrentSaturation"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id); } case 3: { - LogStep(3, "Reads back mandatory attribute: CurrentHue"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id); + LogStep(3, "Reads CurrentX attribute from DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); } case 4: { - LogStep(4, "Validate constraints of attribute: CurrentSaturation"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id); + LogStep(4, "Validate constraints of attribute: CurrentX"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); } case 5: { - LogStep(5, "Write the default value to mandatory attribute: CurrentSaturation"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id, - value); + LogStep(5, "Reads CurrentY attribute from DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); } case 6: { - LogStep(6, "Reads back mandatory attribute: CurrentSaturation"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id); + LogStep(6, "Validate constraints of attribute: CurrentY"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); } case 7: { - LogStep(7, "Validate constraints of attribute: CurrentX"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); + LogStep(7, "Reads ColorTemperatureMireds attribute from DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id); } case 8: { - LogStep(8, "Write the default value to mandatory attribute: CurrentX"); - uint16_t value; - value = 24939U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, value); + LogStep(8, "Validate constraints of attribute: ColorTemperatureMireds"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id); } case 9: { - LogStep(9, "Reads back mandatory attribute: CurrentX"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); + LogStep(9, "Reads ColorMode attribute from DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorMode::Id); } case 10: { - LogStep(10, "Validate constraints of attribute: CurrentY"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 11: { - LogStep(11, "Write the default values to mandatory attribute: CurrentY"); - uint16_t value; - value = 24701U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, value); - } - case 12: { - LogStep(12, "Reads back mandatory attribute: CurrentY"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 13: { - LogStep(13, "Validate constraints of attribute: ColorTemperatureMireds"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id); - } - case 14: { - LogStep(14, "Validate constraints of attribute: ColorMode"); + LogStep(10, "Validate constraints of attribute: ColorMode"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorMode::Id); } - case 15: { - LogStep(15, "Validate constraints of attribute: Options"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorControlOptions::Id); - } - case 16: { - LogStep(16, "Write the default values to mandatory attribute: Options"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorControlOptions::Id, value); - } - case 17: { - LogStep(17, "Reads back mandatory attribute: Options"); + case 11: { + LogStep(11, "Validate constraints of attribute: Options"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorControlOptions::Id); } - case 18: { - LogStep(18, "Validate constraints of attribute: EnhancedCurrentHue"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::EnhancedCurrentHue::Id); - } - case 19: { - LogStep(19, "Write the default values to mandatory attribute: EnhancedCurrentHue"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::EnhancedCurrentHue::Id, value); - } - case 20: { - LogStep(20, "Reads back mandatory attribute: EnhancedCurrentHue"); + case 12: { + LogStep(12, "Validate constraints of attribute: EnhancedCurrentHue"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id); } - case 21: { - LogStep(21, "Validate constraints of attribute: EnhancedColorMode"); + case 13: { + LogStep(13, "Validate constraints of attribute: EnhancedColorMode"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedColorMode::Id); } - case 22: { - LogStep(22, "Validate constraints of attribute: ColorLoopActive"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id); - } - case 23: { - LogStep(23, "Write the default values to mandatory attribute: ColorLoopActive"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id, - value); - } - case 24: { - LogStep(24, "Reads back mandatory attribute: ColorLoopActive"); + case 14: { + LogStep(14, "Validate constraints of attribute: ColorLoopActive"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id); } - case 25: { - LogStep(25, "Validate constraints of attribute: ColorLoopDirection"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorLoopDirection::Id); - } - case 26: { - LogStep(26, "Write the default values to mandatory attribute: ColorLoopDirection"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorLoopDirection::Id, value); - } - case 27: { - LogStep(27, "Reads back mandatory attribute: ColorLoopDirection"); + case 15: { + LogStep(15, "Validate constraints of attribute: ColorLoopDirection"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopDirection::Id); } - case 28: { - LogStep(28, "Validate constraints of attribute: ColorLoopTime"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopTime::Id); - } - case 29: { - LogStep(29, "Write the default values to mandatory attribute: ColorLoopTime"); - uint16_t value; - value = 25U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopTime::Id, - value); - } - case 30: { - LogStep(30, "Reads back mandatory attribute: ColorLoopTime"); + case 16: { + LogStep(16, "Validate constraints of attribute: ColorLoopTime"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopTime::Id); } - case 31: { - LogStep(31, "Validate constraints of attribute: ColorLoopStartEnhancedHue"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorLoopStartEnhancedHue::Id); - } - case 32: { - LogStep(32, "Write the default values to mandatory attribute: ColorLoopStartEnhancedHue"); - uint16_t value; - value = 8960U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, value); - } - case 33: { - LogStep(33, "Reads back mandatory attribute: ColorLoopStartEnhancedHue"); + case 17: { + LogStep(17, "Validate constraints of attribute: ColorLoopStartEnhancedHue"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopStartEnhancedHue::Id); } - case 34: { - LogStep(34, "Validate constraints of attribute: ColorLoopStoredEnhancedHue"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id); - } - case 35: { - LogStep(35, "Write the default values to mandatory attribute: ColorLoopStoredEnhancedHue"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, value); - } - case 36: { - LogStep(36, "Reads back mandatory attribute: ColorLoopStoredEnhancedHue"); + case 18: { + LogStep(18, "Validate constraints of attribute: ColorLoopStoredEnhancedHue"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id); } - case 37: { - LogStep(37, "Validate constraints of attribute: ColorCapabilities"); + case 19: { + LogStep(19, "Reads ColorCapabilities attribute from DUT"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorCapabilities::Id); } - case 38: { - LogStep(38, "Write the default values to mandatory attribute: ColorCapabilities"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorCapabilities::Id, - value); - } - case 39: { - LogStep(39, "Reads back mandatory attribute: ColorCapabilities"); + case 20: { + LogStep(20, "Validate constraints of attribute: ColorCapabilities"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorCapabilities::Id); } - case 40: { - LogStep(40, "Validate constraints of attribute: ColorTempPhysicalMinMireds"); + case 21: { + LogStep(21, "Reads ColorTempPhysicalMinMireds attribute from DUT"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTempPhysicalMin::Id); } - case 41: { - LogStep(41, "Write the default values to mandatory attribute: ColorTempPhysicalMinMireds"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorTempPhysicalMin::Id, value); - } - case 42: { - LogStep(42, "Reads back mandatory attribute: ColorTempPhysicalMinMireds"); + case 22: { + LogStep(22, "Validate constraints of attribute: ColorTempPhysicalMinMireds"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTempPhysicalMin::Id); } - case 43: { - LogStep(43, "Validate constraints of attribute: ColorTempPhysicalMaxMireds"); + case 23: { + LogStep(23, "Read ColorTempPhysicalMaxMireds attribute from DUT"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTempPhysicalMax::Id); } - case 44: { - LogStep(44, "Write the default values to mandatory attribute: ColorTempPhysicalMaxMireds"); - uint16_t value; - value = 65279U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorTempPhysicalMax::Id, value); - } - case 45: { - LogStep(45, "Reads back mandatory attribute: ColorTempPhysicalMaxMireds"); + case 24: { + LogStep(24, "Validate constraints of attribute: ColorTempPhysicalMaxMireds"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTempPhysicalMax::Id); } - case 46: { - LogStep(46, "Read the optional attribute: CoupleColorTempToLevelMinMireds"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::CoupleColorTempToLevelMinMireds::Id); - } - case 47: { - LogStep(47, "Write the default values to optional attribute: CoupleColorTempToLevelMinMireds"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::CoupleColorTempToLevelMinMireds::Id, value); - } - case 48: { - LogStep(48, "Reads back optional attribute: CoupleColorTempToLevelMinMireds"); + case 25: { + LogStep(25, "Read the optional attribute: CoupleColorTempToLevelMinMireds"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CoupleColorTempToLevelMinMireds::Id); } - case 49: { - LogStep(49, "Read the optional attribute: StartUpColorTemperatureMireds"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::StartUpColorTemperatureMireds::Id); - } - case 50: { - LogStep(50, "Write the default values to optional attribute: StartUpColorTemperatureMireds"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::StartUpColorTemperatureMireds::Id, value); - } - case 51: { - LogStep(51, "Reads back optional attribute: StartUpColorTemperatureMireds"); + case 26: { + LogStep(26, "Read the optional attribute: StartUpColorTemperatureMireds"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::StartUpColorTemperatureMireds::Id); } - case 52: { - LogStep(52, "Validate constraints of attribute: RemainingTime"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::RemainingTime::Id); - } - case 53: { - LogStep(53, "Write the default values to optional attribute: RemainingTime"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::RemainingTime::Id, - value); - } - case 54: { - LogStep(54, "Reads back optional attribute: RemainingTime"); + case 27: { + LogStep(27, "Validate constraints of attribute: RemainingTime"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::RemainingTime::Id); } - case 55: { - LogStep(55, "Read the optional attribute: DriftCompensation"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::DriftCompensation::Id); - } - case 56: { - LogStep(56, "Write the default values to optional attribute: DriftCompensation"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::DriftCompensation::Id, - value); - } - case 57: { - LogStep(57, "Reads back optional attribute: DriftCompensation"); + case 28: { + LogStep(28, "Read the optional attribute: DriftCompensation"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::DriftCompensation::Id); } - case 58: { - LogStep(58, "Read the optional attribute: CompensationText"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CompensationText::Id); - } - case 59: { - LogStep(59, "Write the default values to optional attribute: CompensationText"); - chip::CharSpan value; - value = chip::Span("garbage: not in length on purpose", 0); - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CompensationText::Id, - value); - } - case 60: { - LogStep(60, "Reads back optional attribute: CompensationText"); + case 29: { + LogStep(29, "Read the optional attribute: CompensationText"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CompensationText::Id); } - case 61: { - LogStep(61, "Read the mandatory attribute: NumberOfPrimaries"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::NumberOfPrimaries::Id); - } - case 62: { - LogStep(62, "Write the default mandatory attribute: NumberOfPrimaries"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::NumberOfPrimaries::Id, - value); - } - case 63: { - LogStep(63, "Read back the mandatory attribute: NumberOfPrimaries"); + case 30: { + LogStep(30, "Read the mandatory attribute: NumberOfPrimaries"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::NumberOfPrimaries::Id); } - case 64: { - LogStep(64, "Read the mandatory attribute: Primary1X"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1X::Id); - } - case 65: { - LogStep(65, "Write the default mandatory attribute: Primary1X"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1X::Id, value); - } - case 66: { - LogStep(66, "Read back the mandatory attribute: Primary1X"); + case 31: { + LogStep(31, "Read the mandatory attribute: Primary1X"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1X::Id); } - case 67: { - LogStep(67, "Read the mandatory attribute: Primary1Y"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1Y::Id); - } - case 68: { - LogStep(68, "Write the default mandatory attribute: Primary1Y"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1Y::Id, value); - } - case 69: { - LogStep(69, "Read back the mandatory attribute: Primary1Y"); + case 32: { + LogStep(32, "Read the mandatory attribute: Primary1Y"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1Y::Id); } - case 70: { - LogStep(70, "Read the mandatory attribute: Primary1Intensity"); + case 33: { + LogStep(33, "Read the mandatory attribute: Primary1Intensity"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1Intensity::Id); } - case 71: { - LogStep(71, "Read the mandatory attribute: Primary2X"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2X::Id); - } - case 72: { - LogStep(72, "Write the default mandatory attribute: Primary2X"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2X::Id, value); - } - case 73: { - LogStep(73, "Read back the mandatory attribute: Primary2X"); + case 34: { + LogStep(34, "Read the mandatory attribute: Primary2X"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2X::Id); } - case 74: { - LogStep(74, "Read the mandatory attribute: Primary2Y"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2Y::Id); - } - case 75: { - LogStep(75, "Write the default mandatory attribute: Primary2Y"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2Y::Id, value); - } - case 76: { - LogStep(76, "Read back the mandatory attribute: Primary2Y"); + case 35: { + LogStep(35, "Read the mandatory attribute: Primary2Y"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2Y::Id); } - case 77: { - LogStep(77, "Validate constraints of attribute: Primary2Intensity"); + case 36: { + LogStep(36, "Validate constraints of attribute: Primary2Intensity"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2Intensity::Id); } - case 78: { - LogStep(78, "Read the mandatory attribute: Primary3X"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3X::Id); - } - case 79: { - LogStep(79, "Write the default mandatory attribute: Primary3X"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3X::Id, value); - } - case 80: { - LogStep(80, "Read back the mandatory attribute: Primary3X"); + case 37: { + LogStep(37, "Read the mandatory attribute: Primary3X"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3X::Id); } - case 81: { - LogStep(81, "Read the mandatory attribute: Primary3Y"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3Y::Id); - } - case 82: { - LogStep(82, "Write the default mandatory attribute: Primary3Y"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3Y::Id, value); - } - case 83: { - LogStep(83, "Read back the mandatory attribute: Primary3Y"); + case 38: { + LogStep(38, "Read the mandatory attribute: Primary3Y"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3Y::Id); } - case 84: { - LogStep(84, "Read the mandatory attribute: Primary3Intensity"); + case 39: { + LogStep(39, "Read the mandatory attribute: Primary3Intensity"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3Intensity::Id); } - case 85: { - LogStep(85, "Read the mandatory attribute: Primary4X"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4X::Id); - } - case 86: { - LogStep(86, "Write the default mandatory attribute: Primary4X"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4X::Id, value); - } - case 87: { - LogStep(87, "Read back the mandatory attribute: Primary4X"); + case 40: { + LogStep(40, "Read the mandatory attribute: Primary4X"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4X::Id); } - case 88: { - LogStep(88, "Read the mandatory attribute: Primary4Y"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4Y::Id); - } - case 89: { - LogStep(89, "Write the default mandatory attribute: Primary4Y"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4Y::Id, value); - } - case 90: { - LogStep(90, "Read back the mandatory attribute: Primary4Y"); + case 41: { + LogStep(41, "Read the mandatory attribute: Primary4Y"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4Y::Id); } - case 91: { - LogStep(91, "Read the mandatory attribute: Primary4Intensity"); + case 42: { + LogStep(42, "Read the mandatory attribute: Primary4Intensity"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4Intensity::Id); } - case 92: { - LogStep(92, "Read the mandatory attribute: Primary5X"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5X::Id); - } - case 93: { - LogStep(93, "Write the default mandatory attribute: Primary5X"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5X::Id, value); - } - case 94: { - LogStep(94, "Read back the mandatory attribute: Primary5X"); + case 43: { + LogStep(43, "Read the mandatory attribute: Primary5X"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5X::Id); } - case 95: { - LogStep(95, "Read the mandatory attribute: Primary5Y"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5Y::Id); - } - case 96: { - LogStep(96, "Write the default mandatory attribute: Primary5Y"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5Y::Id, value); - } - case 97: { - LogStep(97, "Read back the mandatory attribute: Primary5Y"); + case 44: { + LogStep(44, "Read the mandatory attribute: Primary5Y"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5Y::Id); } - case 98: { - LogStep(98, "Read the mandatory attribute: Primary5Intensity"); + case 45: { + LogStep(45, "Read the mandatory attribute: Primary5Intensity"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5Intensity::Id); } - case 99: { - LogStep(99, "Read the mandatory attribute: Primary6X"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6X::Id); - } - case 100: { - LogStep(100, "Write the default mandatory attribute: Primary6X"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6X::Id, value); - } - case 101: { - LogStep(101, "Read back the mandatory attribute: Primary6X"); + case 46: { + LogStep(46, "Read the mandatory attribute: Primary6X"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6X::Id); } - case 102: { - LogStep(102, "Read the mandatory attribute: Primary6Y"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6Y::Id); - } - case 103: { - LogStep(103, "Write the default mandatory attribute: Primary6Y"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6Y::Id, value); - } - case 104: { - LogStep(104, "Read back the mandatory attribute: Primary6Y"); + case 47: { + LogStep(47, "Read the mandatory attribute: Primary6Y"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6Y::Id); } - case 105: { - LogStep(105, "Read the mandatory attribute: Primary6Intensity"); + case 48: { + LogStep(48, "Read the mandatory attribute: Primary6Intensity"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6Intensity::Id); } - case 106: { - LogStep(106, "Read the optional attribute: WhitePointX"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::WhitePointX::Id); - } - case 107: { - LogStep(107, "Write the default optional attribute: WhitePointX"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::WhitePointX::Id, - value); - } - case 108: { - LogStep(108, "Read back the optional attribute: WhitePointX"); + case 49: { + LogStep(49, "Read the optional attribute: WhitePointX"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::WhitePointX::Id); } - case 109: { - LogStep(109, "Read the optional attribute: WhitePointY"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::WhitePointY::Id); - } - case 110: { - LogStep(110, "Write the default optional attribute: WhitePointY"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::WhitePointY::Id, - value); - } - case 111: { - LogStep(111, "Read back the optional attribute: WhitePointY"); + case 50: { + LogStep(50, "Read the optional attribute: WhitePointY"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::WhitePointY::Id); } - case 112: { - LogStep(112, "Read the optional attribute: ColorPointRX"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointRX::Id); - } - case 113: { - LogStep(113, "Write the default optional attribute: ColorPointRX"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointRX::Id, - value); - } - case 114: { - LogStep(114, "Read back the optional attribute: ColorPointRX"); + case 51: { + LogStep(51, "Read the optional attribute: ColorPointRX"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointRX::Id); } - case 115: { - LogStep(115, "Read the optional attribute: ColorPointRY"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointRY::Id); - } - case 116: { - LogStep(116, "Write the default optional attribute: ColorPointRY"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointRY::Id, - value); - } - case 117: { - LogStep(117, "Read back the optional attribute: ColorPointRY"); + case 52: { + LogStep(52, "Read the optional attribute: ColorPointRY"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointRY::Id); } - case 118: { - LogStep(118, "Read the optional attribute: ColorPointRIntensity"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorPointRIntensity::Id); - } - case 119: { - LogStep(119, "Write the default optional attribute: ColorPointRIntensity"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorPointRIntensity::Id, value); - } - case 120: { - LogStep(120, "Read back the optional attribute: ColorPointRIntensity"); + case 53: { + LogStep(53, "Read the optional attribute: ColorPointRIntensity"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointRIntensity::Id); } - case 121: { - LogStep(121, "Read the optional attribute: ColorPointGX"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointGX::Id); - } - case 122: { - LogStep(122, "Write the default optional attribute: ColorPointGX"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointGX::Id, - value); - } - case 123: { - LogStep(123, "Read back the optional attribute: ColorPointGX"); + case 54: { + LogStep(54, "Read the optional attribute: ColorPointGX"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointGX::Id); } - case 124: { - LogStep(124, "Read the optional attribute: ColorPointGY"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointGY::Id); - } - case 125: { - LogStep(125, "Write the default optional attribute: ColorPointGY"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointGY::Id, - value); - } - case 126: { - LogStep(126, "Read back the optional attribute: ColorPointGY"); + case 55: { + LogStep(55, "Read the optional attribute: ColorPointGY"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointGY::Id); } - case 127: { - LogStep(127, "Read the optional attribute: ColorPointGIntensity"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorPointGIntensity::Id); - } - case 128: { - LogStep(128, "Write the default optional attribute: ColorPointGIntensity"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorPointGIntensity::Id, value); - } - case 129: { - LogStep(129, "Read back the optional attribute: ColorPointGIntensity"); + case 56: { + LogStep(56, "Read the optional attribute: ColorPointGIntensity"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointGIntensity::Id); } - case 130: { - LogStep(130, "Read the optional attribute: ColorPointBX"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointBX::Id); - } - case 131: { - LogStep(131, "Write the default optional attribute: ColorPointBX"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointBX::Id, - value); - } - case 132: { - LogStep(132, "Read back the optional attribute: ColorPointBX"); + case 57: { + LogStep(57, "Read the optional attribute: ColorPointBX"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointBX::Id); } - case 133: { - LogStep(133, "Read the optional attribute: ColorPointBY"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointBY::Id); - } - case 134: { - LogStep(134, "Write the default optional attribute: ColorPointBY"); - uint16_t value; - value = 0U; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointBY::Id, - value); - } - case 135: { - LogStep(135, "Read back the optional attribute: ColorPointBY"); + case 58: { + LogStep(58, "Read the optional attribute: ColorPointBY"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointBY::Id); } - case 136: { - LogStep(136, "Read the optional attribute: ColorPointBIntensity"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorPointBIntensity::Id); - } - case 137: { - LogStep(137, "Write the default optional attribute: ColorPointBIntensity"); - uint8_t value; - value = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, - ColorControl::Attributes::ColorPointBIntensity::Id, value); - } - case 138: { - LogStep(138, "Read back the optional attribute: ColorPointBIntensity"); + case 59: { + LogStep(59, "Read the optional attribute: ColorPointBIntensity"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointBIntensity::Id); } @@ -14825,7 +13824,7 @@ class Test_TC_LVL_1_1Suite : public TestCommand class Test_TC_LVL_2_1Suite : public TestCommand { public: - Test_TC_LVL_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_2_1", 16, credsIssuerConfig) + Test_TC_LVL_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_2_1", 17, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -14981,6 +13980,14 @@ class Test_TC_LVL_2_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "map8")); } break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -15070,6 +14077,11 @@ class Test_TC_LVL_2_1Suite : public TestCommand LogStep(15, "Reads the Options attribute "); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::Options::Id); } + case 16: { + LogStep(16, "Reads the StartUpCurrentLevel attribute "); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, + LevelControl::Attributes::StartUpCurrentLevel::Id); + } } return CHIP_NO_ERROR; } @@ -15078,7 +14090,7 @@ class Test_TC_LVL_2_1Suite : public TestCommand class Test_TC_LVL_2_2Suite : public TestCommand { public: - Test_TC_LVL_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_2_2", 16, credsIssuerConfig) + Test_TC_LVL_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_2_2", 20, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -15141,8 +14153,16 @@ class Test_TC_LVL_2_2Suite : public TestCommand break; case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + } break; case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -15152,10 +14172,18 @@ class Test_TC_LVL_2_2Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 7: + case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + } break; - case 8: + case 9: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 10: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -15165,10 +14193,18 @@ class Test_TC_LVL_2_2Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint16")); } break; - case 9: + case 11: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + } + break; + case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 10: + case 13: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -15178,7 +14214,7 @@ class Test_TC_LVL_2_2Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint16")); } break; - case 11: + case 14: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -15188,10 +14224,10 @@ class Test_TC_LVL_2_2Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 12: + case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 13: + case 16: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -15201,10 +14237,18 @@ class Test_TC_LVL_2_2Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 14: + case 17: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + } break; - case 15: + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 19: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -15260,66 +14304,83 @@ class Test_TC_LVL_2_2Suite : public TestCommand LevelControl::Attributes::OnOffTransitionTime::Id, value); } case 5: { - LogStep(5, "writes the OnLevel attribute on the DUT"); + LogStep(5, "Reads the OnLevel attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id); + } + case 6: { + LogStep(6, "writes the OnLevel attribute on the DUT"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 254; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id, value); } - case 6: { - LogStep(6, "Reads the OnLevel attribute from the DUT"); + case 7: { + LogStep(7, "Reads the OnLevel attribute from the DUT"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id); } - case 7: { - LogStep(7, "Writes the OnTransitionTime attribute on the DUT"); + case 8: { + LogStep(8, "Reads the OnTransitionTime attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id); + } + case 9: { + LogStep(9, "Writes the OnTransitionTime attribute on the DUT"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 100U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id, value); } - case 8: { - LogStep(8, "Reads the OnTransitionTime attribute from the DUT"); + case 10: { + LogStep(10, "Reads the OnTransitionTime attribute from the DUT"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id); } - case 9: { - LogStep(9, "Writes the OffTransitionTime attribute on the DUT"); + case 11: { + LogStep(11, "Reads the OffTransitionTime attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id); + } + case 12: { + LogStep(12, "Writes the OffTransitionTime attribute on the DUT"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 100U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id, value); } - case 10: { - LogStep(10, "Reads the OffTransitionTime attribute from the DUT"); + case 13: { + LogStep(13, "Reads the OffTransitionTime attribute from the DUT"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id); } - case 11: { - LogStep(11, "Reads the DefaultMoveRate attribute from the DUT"); + case 14: { + LogStep(14, "Reads the DefaultMoveRate attribute from the DUT"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id); } - case 12: { - LogStep(12, "Writes the DefaultMoveRate attribute on the DUT"); + case 15: { + LogStep(15, "Writes the DefaultMoveRate attribute on the DUT"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 100; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id, value); } - case 13: { - LogStep(13, "Reads the DefaultMoveRate attribute from the DUT"); + case 16: { + LogStep(16, "Reads the DefaultMoveRate attribute from the DUT"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id); } - case 14: { - LogStep(14, "writes the StartUpCurrentLevel attribute on the DUT"); + case 17: { + LogStep(17, "Reads the StartUpCurrentLevel attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, + LevelControl::Attributes::StartUpCurrentLevel::Id); + } + case 18: { + LogStep(18, "writes the StartUpCurrentLevel attribute on the DUT"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 254; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id, value); } - case 15: { - LogStep(15, "reads the StartUpCurrentLevel attribute from the DUT"); + case 19: { + LogStep(19, "reads the StartUpCurrentLevel attribute from the DUT"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id); } @@ -19892,197 +18953,18 @@ class Test_TC_MC_3_10Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Read attribute media input list"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id); - } - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_MC_3_11Suite : public TestCommand -{ -public: - Test_TC_MC_3_11Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_11", 4, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_MC_3_11Suite() {} - - 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) - { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::DataModel::DecodableList value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "list")); - } - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("currentInput", value, 1)); - } - break; - 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) - { - case 0: { - LogStep(0, "Wait for the commissioned device to be retrieved"); - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "Read attribute media input list"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id); - } - case 2: { - LogStep(2, "Select Input Command"); - VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - chip::app::Clusters::MediaInput::Commands::SelectInput::Type value; - value.index = 1; - return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::SelectInput::Id, value); - } - case 3: { - LogStep(3, "Read current input list"); - VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::CurrentInput::Id); - } - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_MC_5_1Suite : public TestCommand -{ -public: - Test_TC_MC_5_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_1", 2, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_MC_5_1Suite() {} - - 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) - { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::DataModel::DecodableList value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "list")); - } - break; - 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) - { - case 0: { - LogStep(0, "Wait for the commissioned device to be retrieved"); - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "Reads the ChannelList attribute from the DUT"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::ChannelList::Id); + LogStep(1, "Read attribute media input list"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id); } } return CHIP_NO_ERROR; } }; -class Test_TC_MC_5_2Suite : public TestCommand +class Test_TC_MC_3_11Suite : public TestCommand { public: - Test_TC_MC_5_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_2", 2, credsIssuerConfig) + Test_TC_MC_3_11Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_11", 4, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -20090,7 +18972,7 @@ class Test_TC_MC_5_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_5_2Suite() {} + ~Test_TC_MC_3_11Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -20121,7 +19003,22 @@ class Test_TC_MC_5_2Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "list")); + } + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentInput", value, 1)); + } break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); @@ -20145,21 +19042,30 @@ class Test_TC_MC_5_2Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("verify that the channel has changed on the device.garbage: not in length on purpose", 50); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, "Read attribute media input list"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id); + } + case 2: { + LogStep(2, "Select Input Command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaInput::Commands::SelectInput::Type value; + value.index = 1; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::SelectInput::Id, value); + } + case 3: { + LogStep(3, "Read current input list"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::CurrentInput::Id); } } return CHIP_NO_ERROR; } }; -class Test_TC_MC_5_3Suite : public TestCommand +class Test_TC_MC_3_12Suite : public TestCommand { public: - Test_TC_MC_5_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_3", 2, credsIssuerConfig) + Test_TC_MC_3_12Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_12", 3, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -20167,7 +19073,7 @@ class Test_TC_MC_5_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_5_3Suite() {} + ~Test_TC_MC_3_12Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -20198,7 +19104,9 @@ class Test_TC_MC_5_3Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); @@ -20222,21 +19130,26 @@ class Test_TC_MC_5_3Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("verify that the channel has changed on the devicegarbage: not in length on purpose", 49); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, "Hide Input Status Command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::HideInputStatus::Id, value); + } + case 2: { + LogStep(2, "Show Input Status Command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::ShowInputStatus::Id, value); } } return CHIP_NO_ERROR; } }; -class Test_TC_MC_6_1Suite : public TestCommand +class Test_TC_MC_3_13Suite : public TestCommand { public: - Test_TC_MC_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_1", 6, credsIssuerConfig) + Test_TC_MC_3_13Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_13", 5, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -20244,7 +19157,7 @@ class Test_TC_MC_6_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_6_1Suite() {} + ~Test_TC_MC_3_13Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -20275,27 +19188,25 @@ class Test_TC_MC_6_1Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "list")); + } break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("currentState", value, 0)); - } break; case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "list")); + } break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); @@ -20319,45 +19230,38 @@ class Test_TC_MC_6_1Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, "Read attribute media input list"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id); } case 2: { - LogStep(2, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Physically verify that the media is playinggarbage: not in length on purpose", 43); - return UserPrompt(kIdentityAlpha, value); + LogStep(2, "Rename Input Command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaInput::Commands::RenameInput::Type value; + value.index = 1; + value.name = chip::Span("A1garbage: not in length on purpose", 2); + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::RenameInput::Id, value); } case 3: { - LogStep(3, "Reads the playback state attribute"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + LogStep(3, "Rename Input Command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaInput::Commands::RenameInput::Type value; + value.index = 1; + value.name = chip::Span("A2garbage: not in length on purpose", 2); + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::RenameInput::Id, value); } case 4: { - LogStep(4, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Physically verify that the media is pausedgarbage: not in length on purpose", 42); - return UserPrompt(kIdentityAlpha, value); - } - case 5: { - LogStep(5, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Physically verify that the media is stopedgarbage: not in length on purpose", 42); - return UserPrompt(kIdentityAlpha, value); + LogStep(4, "Read attribute media input list"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id); } } return CHIP_NO_ERROR; } }; -class Test_TC_MC_6_2Suite : public TestCommand +class Test_TC_MC_5_1Suite : public TestCommand { public: - Test_TC_MC_6_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_2", 9, credsIssuerConfig) + Test_TC_MC_5_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_1", 2, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -20365,7 +19269,7 @@ class Test_TC_MC_6_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_6_2Suite() {} + ~Test_TC_MC_5_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -20395,41 +19299,13 @@ class Test_TC_MC_6_2Suite : public TestCommand shouldContinue = true; break; case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("currentState", value, 0)); + VerifyOrReturn(CheckConstraintType("value", "", "list")); } break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 7: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -20452,74 +19328,28 @@ class Test_TC_MC_6_2Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); - return UserPrompt(kIdentityAlpha, value); - } - case 2: { - LogStep(2, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Physically verify that the media is playinggarbage: not in length on purpose", 43); - return UserPrompt(kIdentityAlpha, value); - } - case 3: { - LogStep(3, "Reads the CurrentState attribute"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); - } - case 4: { - LogStep(4, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Physically verify that the media is started overgarbage: not in length on purpose", 48); - return UserPrompt(kIdentityAlpha, value); - } - case 5: { - LogStep(5, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "Verify that the next media item in the queue has been loadedgarbage: not in length on purpose", 60); - return UserPrompt(kIdentityAlpha, value); - } - case 6: { - LogStep(6, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "Verify that the previous media item in the queue has been loadedgarbage: not in length on purpose", 64); - return UserPrompt(kIdentityAlpha, value); - } - case 7: { - LogStep(7, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Verify that the media has skipped forward 10 secondsgarbage: not in length on purpose", 52); - return UserPrompt(kIdentityAlpha, value); - } - case 8: { - LogStep(8, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "Verify that the media has skipped backward 10 secondsgarbage: not in length on purpose", 53); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, "Reads the ChannelList attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::ChannelList::Id); } } return CHIP_NO_ERROR; } }; -class Test_TC_MC_6_3Suite : public TestCommand +class Test_TC_MC_5_2Suite : public TestCommand { public: - Test_TC_MC_6_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_3", 4, credsIssuerConfig) + Test_TC_MC_5_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_2", 5, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("majornumber", 0, UINT16_MAX, &mMajornumber); + AddArgument("minornumber", 0, UINT16_MAX, &mMinornumber); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_6_3Suite() {} + ~Test_TC_MC_5_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -20530,6 +19360,8 @@ class Test_TC_MC_6_3Suite : public TestCommand chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; + chip::Optional mMajornumber; + chip::Optional mMinornumber; chip::Optional mTimeout; chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } @@ -20550,16 +19382,27 @@ class Test_TC_MC_6_3Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "list")); + } break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValueNonNull("currentChannel", value)); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -20582,42 +19425,48 @@ class Test_TC_MC_6_3Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, "Reads the ChannelList attribute"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::ChannelList::Id); } case 2: { - LogStep(2, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "Verify that the media has moved to 10 seconds from the starting point.garbage: not in length on purpose", 70); - return UserPrompt(kIdentityAlpha, value); + LogStep(2, "TH sends a ChangeChannelByNumber command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::Channel::Commands::ChangeChannelByNumber::Type value; + value.majorNumber = mMajornumber.HasValue() ? mMajornumber.Value() : 1U; + value.minorNumber = mMinornumber.HasValue() ? mMinornumber.Value() : 2U; + return SendCommand(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Commands::ChangeChannelByNumber::Id, value); } case 3: { LogStep(3, "log a command"); chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "User prompt needed to enter the value beyond the furthest valid positiongarbage: not in length on purpose", 72); + value.message = + chip::Span("verify that the channel has changed on the device.garbage: not in length on purpose", 50); return UserPrompt(kIdentityAlpha, value); } + case 4: { + LogStep(4, "Reads the CurrentChannel attribute"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::CurrentChannel::Id); + } } return CHIP_NO_ERROR; } }; -class Test_TC_MC_6_4Suite : public TestCommand +class Test_TC_MC_5_3Suite : public TestCommand { public: - Test_TC_MC_6_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_4", 10, credsIssuerConfig) + Test_TC_MC_5_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_3", 6, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("majornumber", 0, UINT16_MAX, &mMajornumber); + AddArgument("minornumber", 0, UINT16_MAX, &mMinornumber); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_6_4Suite() {} + ~Test_TC_MC_5_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -20628,8 +19477,12 @@ class Test_TC_MC_6_4Suite : public TestCommand chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; + chip::Optional mMajornumber; + chip::Optional mMinornumber; chip::Optional mTimeout; + chip::app::DataModel::Nullable currentChannelvalue; + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } // @@ -20647,53 +19500,38 @@ class Test_TC_MC_6_4Suite : public TestCommand shouldContinue = true; break; case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - float value; + chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("playbackSpeed", value, 0.0f)); + VerifyOrReturn(CheckConstraintType("value", "", "list")); } break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 4: + case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("currentState", value, 0)); + VerifyOrReturn(CheckValueNonNull("currentChannel", value)); + + currentChannelvalue = value; } break; - case 5: + case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; - case 6: + case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 7: + case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("currentState", value, 0)); + VerifyOrReturn(CheckConstraintType("value", "", "list")); } break; - case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 9: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -20716,56 +19554,32 @@ class Test_TC_MC_6_4Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, "Reads the ChannelList attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::ChannelList::Id); } case 2: { - LogStep(2, "Reads the PlaybackSpeed attribute from the DUT"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::PlaybackSpeed::Id); + LogStep(2, "Reads the CurrentChannel attribute from the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::CurrentChannel::Id); } case 3: { - LogStep(3, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Verify that the media is playinggarbage: not in length on purpose", 32); - return UserPrompt(kIdentityAlpha, value); + LogStep(3, "Sends a SkipChannel command to the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::Channel::Commands::SkipChannel::Type value; + value.count = 1U; + return SendCommand(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Commands::SkipChannel::Id, value); } case 4: { - LogStep(4, "Reads the CurrentState attribute"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); - } - case 5: { - LogStep(5, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Verify that the media play speed has increasedgarbage: not in length on purpose", 46); - return UserPrompt(kIdentityAlpha, value); - } - case 6: { - LogStep(6, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Verify that the media play has reversed directiongarbage: not in length on purpose", 49); - return UserPrompt(kIdentityAlpha, value); - } - case 7: { - LogStep(7, "Reads the CurrentState attribute"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); - } - case 8: { - LogStep(8, "log a command"); + LogStep(4, "log a command"); chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = - chip::Span("Verify that the media play has reversed directiongarbage: not in length on purpose", 49); + chip::Span("verify that the channel has changed on the devicegarbage: not in length on purpose", 49); return UserPrompt(kIdentityAlpha, value); } - case 9: { - LogStep(9, "log a command"); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span( - "Verify that the media is has resumed playing forward at the default speedgarbage: not in length on purpose", 73); - return UserPrompt(kIdentityAlpha, value); + case 5: { + LogStep(5, "Reads the CurrentChannel attribute from the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::CurrentChannel::Id); } } return CHIP_NO_ERROR; @@ -20775,7 +19589,7 @@ class Test_TC_MC_6_4Suite : public TestCommand class Test_TC_MC_7_1Suite : public TestCommand { public: - Test_TC_MC_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_7_1", 1, credsIssuerConfig) + Test_TC_MC_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_7_1", 4, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -20812,6 +19626,25 @@ class Test_TC_MC_7_1Suite : public TestCommand VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "OutPutInfo")); + } + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentOutput", value, 1)); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -20833,6 +19666,22 @@ class Test_TC_MC_7_1Suite : public TestCommand value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee(kIdentityAlpha, value); } + case 1: { + LogStep(1, "Reads the OutputList attribute"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), AudioOutput::Id, AudioOutput::Attributes::OutputList::Id); + } + case 2: { + LogStep(2, "Sends a SelectAudioOutput command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type value; + value.index = 1; + return SendCommand(kIdentityAlpha, GetEndpoint(1), AudioOutput::Id, AudioOutput::Commands::SelectOutput::Id, value); + } + case 3: { + LogStep(3, "Reads the CurrentOutput attribute"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), AudioOutput::Id, AudioOutput::Attributes::CurrentOutput::Id); + } } return CHIP_NO_ERROR; } @@ -20841,7 +19690,7 @@ class Test_TC_MC_7_1Suite : public TestCommand class Test_TC_MC_7_2Suite : public TestCommand { public: - Test_TC_MC_7_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_7_2", 1, credsIssuerConfig) + Test_TC_MC_7_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_7_2", 4, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -20862,6 +19711,8 @@ class Test_TC_MC_7_2Suite : public TestCommand chip::Optional mEndpoint; chip::Optional mTimeout; + chip::app::DataModel::DecodableList audioOutputListValues; + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } // @@ -20878,6 +19729,22 @@ class Test_TC_MC_7_2Suite : public TestCommand VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "OutPutInfo")); + audioOutputListValues = value; + } + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -20899,6 +19766,29 @@ class Test_TC_MC_7_2Suite : public TestCommand value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee(kIdentityAlpha, value); } + case 1: { + LogStep(1, "Reads the OutputList attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), AudioOutput::Id, AudioOutput::Attributes::OutputList::Id); + } + case 2: { + LogStep(2, "Sends a RenameOutput command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type value; + value.index = 1; + value.name = chip::Span("CertTestgarbage: not in length on purpose", 8); + return SendCommand(kIdentityAlpha, GetEndpoint(1), AudioOutput::Id, AudioOutput::Commands::RenameOutput::Id, value); + } + case 3: { + LogStep(3, + "Reads the OutputList attribute from the DUT Verify that the output at the index provided in step 2 has the " + "name CertTest"); + VerifyOrdo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); + } } return CHIP_NO_ERROR; } @@ -20998,7 +19888,7 @@ class Test_TC_MC_8_1Suite : public TestCommand class Test_TC_MC_9_1Suite : public TestCommand { public: - Test_TC_MC_9_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_9_1", 8, credsIssuerConfig) + Test_TC_MC_9_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_9_1", 10, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -21076,12 +19966,21 @@ class Test_TC_MC_9_1Suite : public TestCommand case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum value; + chip::app::Clusters::ApplicationBasic::Structs::ApplicationBasicApplication::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("status", value, 0)); + VerifyOrReturn(CheckConstraintType("value", "", "struct")); } break; case 7: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 3)); + } + break; + case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::CharSpan value; @@ -21090,6 +19989,14 @@ class Test_TC_MC_9_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); } break; + case 9: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "list")); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -21137,14 +20044,25 @@ class Test_TC_MC_9_1Suite : public TestCommand return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ApplicationBasic::Id, ApplicationBasic::Attributes::ProductID::Id); } case 6: { - LogStep(6, "Reads the Status attribute"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ApplicationBasic::Id, ApplicationBasic::Attributes::Status::Id); + LogStep(6, "Reads the Application attribute"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ApplicationBasic::Id, + ApplicationBasic::Attributes::Application::Id); } case 7: { - LogStep(7, "Reads the ApplicationVersion attribute"); + LogStep(7, "Reads the Status attribute"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ApplicationBasic::Id, ApplicationBasic::Attributes::Status::Id); + } + case 8: { + LogStep(8, "Reads the ApplicationVersion attribute"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ApplicationBasic::Id, ApplicationBasic::Attributes::ApplicationVersion::Id); } + case 9: { + LogStep(9, "Reads the AllowedVendorList attribute"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ApplicationBasic::Id, + ApplicationBasic::Attributes::AllowedVendorList::Id); + } } return CHIP_NO_ERROR; } @@ -23385,101 +22303,6 @@ class Test_TC_OCC_2_1Suite : public TestCommand } }; -class Test_TC_OCC_2_2Suite : public TestCommand -{ -public: - Test_TC_OCC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_OCC_2_2", 3, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_OCC_2_2Suite() {} - - 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; - - uint8_t OccupancyValue; - - 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) - { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("occupancy", value, 0)); - - OccupancyValue = value; - } - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - 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) - { - case 0: { - LogStep(0, "Wait for the commissioned device to be retrieved"); - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "Reads Occupancy attribute from DUT"); - VerifyOrdo(!ShouldSkip("A_OCCUPANCY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OccupancySensing::Id, OccupancySensing::Attributes::Occupancy::Id); - } - case 2: { - LogStep(2, "Reads back Occupancy attribute from DUT after few seconds"); - VerifyOrdo(!ShouldSkip("A_OCCUPANCY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OccupancySensing::Id, OccupancySensing::Attributes::Occupancy::Id); - } - } - return CHIP_NO_ERROR; - } -}; - class Test_TC_OO_1_1Suite : public TestCommand { public: @@ -25563,58 +24386,112 @@ class Test_TC_PRS_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -32768)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -32768)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); + } break; case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValueNonNull("measuredValue", value)); - VerifyOrReturn(CheckValue("measuredValue.Value()", value.Value(), 0)); + VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -32768)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 4: + if (IsUnsupported(status.mStatus)) + { + return; + } VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - chip::app::DataModel::Nullable value; + uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 2048U)); } break; case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + if (IsUnsupported(status.mStatus)) + { + return; + } + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -32768)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); + } break; case 6: + if (IsUnsupported(status.mStatus)) + { + return; + } VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValueNonNull("minMeasuredValue", value)); - VerifyOrReturn(CheckValue("minMeasuredValue.Value()", value.Value(), 0)); + VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -32768)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 7: + if (IsUnsupported(status.mStatus)) + { + return; + } VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -32768)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + if (IsUnsupported(status.mStatus)) + { + return; + } + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint16_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 2048U)); + } break; case 9: + if (IsUnsupported(status.mStatus)) + { + return; + } VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - chip::app::DataModel::Nullable value; + int8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValueNonNull("maxMeasuredValue", value)); - VerifyOrReturn(CheckValue("maxMeasuredValue.Value()", value.Value(), 0)); + VerifyOrReturn(CheckConstraintType("value", "", "int8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -127)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 127)); } break; default: @@ -25644,53 +24521,44 @@ class Test_TC_PRS_2_1Suite : public TestCommand PressureMeasurement::Attributes::MeasuredValue::Id); } case 2: { - LogStep(2, "Write the default values to mandatory attribute: MeasuredValue"); - chip::app::DataModel::Nullable value; - value.SetNonNull(); - value.Value() = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, - PressureMeasurement::Attributes::MeasuredValue::Id, value); + LogStep(2, "Read the mandatory attribute constraints: MinMeasuredValue"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, + PressureMeasurement::Attributes::MinMeasuredValue::Id); } case 3: { - LogStep(3, "Reads back mandatory attribute: MeasuredValue"); + LogStep(3, "Read the mandatory attribute constraints: MaxMeasuredValue"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, - PressureMeasurement::Attributes::MeasuredValue::Id); + PressureMeasurement::Attributes::MaxMeasuredValue::Id); } case 4: { - LogStep(4, "Read the mandatory attribute constraints: MinMeasuredValue"); + LogStep(4, "Read the optional attribute: Tolerance"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, - PressureMeasurement::Attributes::MinMeasuredValue::Id); + PressureMeasurement::Attributes::Tolerance::Id); } case 5: { - LogStep(5, "Write the default values to mandatory attribute: MinMeasuredValue"); - chip::app::DataModel::Nullable value; - value.SetNonNull(); - value.Value() = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, - PressureMeasurement::Attributes::MinMeasuredValue::Id, value); + LogStep(5, "Read the optional attribute: ScaledValue"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, + PressureMeasurement::Attributes::ScaledValue::Id); } case 6: { - LogStep(6, "Reads back mandatory attribute: MinMeasuredValue"); + LogStep(6, "Read the optional attribute: MinScaledValue"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, - PressureMeasurement::Attributes::MinMeasuredValue::Id); + PressureMeasurement::Attributes::MinScaledValue::Id); } case 7: { - LogStep(7, "Read the mandatory attribute constraints: MaxMeasuredValue"); + LogStep(7, "Read the optional attribute: MaxScaledValue"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, - PressureMeasurement::Attributes::MaxMeasuredValue::Id); + PressureMeasurement::Attributes::MaxScaledValue::Id); } case 8: { - LogStep(8, "Write the default values to mandatory attribute: MaxMeasuredValue"); - chip::app::DataModel::Nullable value; - value.SetNonNull(); - value.Value() = 0; - return WriteAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, - PressureMeasurement::Attributes::MaxMeasuredValue::Id, value); + LogStep(8, "Read the optional attribute: ScaledTolerance"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, + PressureMeasurement::Attributes::ScaledTolerance::Id); } case 9: { - LogStep(9, "Reads back mandatory attribute: MaxMeasuredValue"); + LogStep(9, "Read the optional attribute: Scale"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), PressureMeasurement::Id, - PressureMeasurement::Attributes::MaxMeasuredValue::Id); + PressureMeasurement::Attributes::Scale::Id); } } return CHIP_NO_ERROR; @@ -30617,7 +29485,12 @@ class Test_TC_TSUIC_1_1Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + uint16_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("clusterRevision", value, 2U)); + VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + } break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -30687,16 +29560,9 @@ class Test_TC_TSUIC_1_1Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, - "Read ClusterRevision attribute from the DUT and Verify that the DUT response indicates ClusterRevision " - "attribute has the value 2"); - VerifyOrdo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Please enter ClusterRevision attribute valuegarbage: not in length on purpose", 44); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("2garbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, "TH read ClusterRevision attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, + ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::Id); } case 2: { LogStep(2, "Read the global attribute: AttributeList"); @@ -30882,7 +29748,7 @@ class Test_TC_TSUIC_2_1Suite : public TestCommand class Test_TC_TSUIC_2_2Suite : public TestCommand { public: - Test_TC_TSUIC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_TSUIC_2_2", 14, credsIssuerConfig) + Test_TC_TSUIC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_TSUIC_2_2", 24, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -30924,38 +29790,78 @@ class Test_TC_TSUIC_2_2Suite : public TestCommand break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 9: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 10: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 17: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + break; + case 19: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 20: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 21: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 22: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 23: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; default: @@ -30988,95 +29894,167 @@ class Test_TC_TSUIC_2_2Suite : public TestCommand ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::Id, value); } case 2: { - LogStep(2, "Writes a value of 1 to TemperatureDisplayMode attribute of DUT"); + LogStep(2, "Verify device temperature displayed in °C"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Verify device temperature displayed in °Cgarbage: not in length on purpose", 42); + return UserPrompt(kIdentityAlpha, value); + } + case 3: { + LogStep(3, "Writes a value of 1 to TemperatureDisplayMode attribute of DUT"); VerifyOrdo(!ShouldSkip("A_TEMPERATURE_DISPLAY_MODE"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 1; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::Id, value); } - case 3: { - LogStep(3, "Writes a value of greater than 1 to TemperatureDisplayMode attribute of DUT"); + case 4: { + LogStep(4, "Verify device temperature displayed in °F"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Verify device temperature displayed in °Fgarbage: not in length on purpose", 42); + return UserPrompt(kIdentityAlpha, value); + } + case 5: { + LogStep(5, "Writes a value of greater than 1 to TemperatureDisplayMode attribute of DUT"); VerifyOrdo(!ShouldSkip("A_TEMPERATURE_DISPLAY_MODE"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 2; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::Id, value); } - case 4: { - LogStep(4, "Writes a value of 0 to KeypadLockout attribute of DUT"); + case 6: { + LogStep(6, "Writes a value of 0 to KeypadLockout attribute of DUT"); VerifyOrdo(!ShouldSkip("A_KEYPAD_LOCKOUT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 0; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::Id, value); } - case 5: { - LogStep(5, "Writes a value of 1 to KeypadLockout attribute of DUT"); + case 7: { + LogStep(7, "Verify all device functionality available to the user"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify all device functionality available to the usergarbage: not in length on purpose", 53); + return UserPrompt(kIdentityAlpha, value); + } + case 8: { + LogStep(8, "Writes a value of 1 to KeypadLockout attribute of DUT"); VerifyOrdo(!ShouldSkip("A_KEYPAD_LOCKOUT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 1; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::Id, value); } - case 6: { - LogStep(6, "Writes a value of 2 to KeypadLockout attribute of DUT"); + case 9: { + LogStep(9, "Verify device operates at Level 1 reduced functionality"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify device operates at Level 1 reduced functionalitygarbage: not in length on purpose", 55); + return UserPrompt(kIdentityAlpha, value); + } + case 10: { + LogStep(10, "Writes a value of 2 to KeypadLockout attribute of DUT"); VerifyOrdo(!ShouldSkip("A_KEYPAD_LOCKOUT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 2; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::Id, value); } - case 7: { - LogStep(7, "Writes a value of 3 to KeypadLockout attribute of DUT"); + case 11: { + LogStep(11, "Verify device operates at Level 2 reduced functionality"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify device operates at Level 2 reduced functionalitygarbage: not in length on purpose", 55); + return UserPrompt(kIdentityAlpha, value); + } + case 12: { + LogStep(12, "Writes a value of 3 to KeypadLockout attribute of DUT"); VerifyOrdo(!ShouldSkip("A_KEYPAD_LOCKOUT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 3; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::Id, value); } - case 8: { - LogStep(8, "Writes a value of 4 to KeypadLockout attribute of DUT"); + case 13: { + LogStep(13, "Verify device operates at Level 3 reduced functionality"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify device operates at Level 3 reduced functionalitygarbage: not in length on purpose", 55); + return UserPrompt(kIdentityAlpha, value); + } + case 14: { + LogStep(14, "Writes a value of 4 to KeypadLockout attribute of DUT"); VerifyOrdo(!ShouldSkip("A_KEYPAD_LOCKOUT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 4; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::Id, value); } - case 9: { - LogStep(9, "Writes a value of 5 to KeypadLockout attribute of DUT"); + case 15: { + LogStep(15, "Verify device operates at Level 4 reduced functionality"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify device operates at Level 4 reduced functionalitygarbage: not in length on purpose", 55); + return UserPrompt(kIdentityAlpha, value); + } + case 16: { + LogStep(16, "Writes a value of 5 to KeypadLockout attribute of DUT"); VerifyOrdo(!ShouldSkip("A_KEYPAD_LOCKOUT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 5; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::Id, value); } - case 10: { - LogStep(10, "Writes a value of greater than 5 to KeypadLockout attribute of DUT"); + case 17: { + LogStep(17, "Verify device operates at least functionality level"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Verify device operates at least functionality levelgarbage: not in length on purpose", 51); + return UserPrompt(kIdentityAlpha, value); + } + case 18: { + LogStep(18, "Writes a value of greater than 5 to KeypadLockout attribute of DUT"); VerifyOrdo(!ShouldSkip("A_KEYPAD_LOCKOUT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 6; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::Id, value); } - case 11: { - LogStep(11, "Writes a value of 0 to ScheduleProgrammingVisibility attribute of DUT"); + case 19: { + LogStep(19, "Writes a value of 0 to ScheduleProgrammingVisibility attribute of DUT"); VerifyOrdo(!ShouldSkip("A_SCHEDULE_PROGRAMMING_VISIBILITY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 0; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::Id, value); } - case 12: { - LogStep(12, "Writes a value of 1 to ScheduleProgrammingVisibility attribute of DUT"); + case 20: { + LogStep(20, "Verify local schedule programming functionality is enabled at the thermostat"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify local schedule programming functionality is enabled at the thermostatgarbage: not in length on purpose", + 76); + return UserPrompt(kIdentityAlpha, value); + } + case 21: { + LogStep(21, "Writes a value of 1 to ScheduleProgrammingVisibility attribute of DUT"); VerifyOrdo(!ShouldSkip("A_SCHEDULE_PROGRAMMING_VISIBILITY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 1; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), ThermostatUserInterfaceConfiguration::Id, ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::Id, value); } - case 13: { - LogStep(13, "Writes a value of greater than 1 to ScheduleProgrammingVisibility attribute of DUT"); + case 22: { + LogStep(22, "Verify local schedule programming functionality is disabled at the thermostat"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify local schedule programming functionality is disabled at the thermostatgarbage: not in length on purpose", + 77); + return UserPrompt(kIdentityAlpha, value); + } + case 23: { + LogStep(23, "Writes a value of greater than 1 to ScheduleProgrammingVisibility attribute of DUT"); VerifyOrdo(!ShouldSkip("A_SCHEDULE_PROGRAMMING_VISIBILITY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); uint8_t value; value = 2; @@ -63023,10 +62001,236 @@ class Test_TC_DM_4_18Suite : public TestCommand } }; -class Test_TC_DM_4_19Suite : public TestCommand +class Test_TC_DM_4_19Suite : public TestCommand +{ +public: + Test_TC_DM_4_19Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_19", 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_DM_4_19Suite() {} + + 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_DM_4_20Suite : public TestCommand +{ +public: + Test_TC_DM_4_20Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_20", 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_DM_4_20Suite() {} + + 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_DM_4_21Suite : public TestCommand +{ +public: + Test_TC_DM_4_21Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_21", 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_DM_4_21Suite() {} + + 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_Diag_Log_2_1Suite : public TestCommand +{ +public: + Test_TC_Diag_Log_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_Diag_Log_2_1", 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_Diag_Log_2_1Suite() {} + + 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_Diag_Log_2_2Suite : public TestCommand { public: - Test_TC_DM_4_19Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_19", 0, credsIssuerConfig) + Test_TC_Diag_Log_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_Diag_Log_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63034,7 +62238,7 @@ class Test_TC_DM_4_19Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_4_19Suite() {} + ~Test_TC_Diag_Log_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63079,10 +62283,11 @@ class Test_TC_DM_4_19Suite : public TestCommand } }; -class Test_TC_DM_4_20Suite : public TestCommand +class Test_TC_Diag_Log_2_3Suite : public TestCommand { public: - Test_TC_DM_4_20Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_20", 0, credsIssuerConfig) + Test_TC_Diag_Log_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_Diag_Log_2_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63090,7 +62295,7 @@ class Test_TC_DM_4_20Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_4_20Suite() {} + ~Test_TC_Diag_Log_2_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63135,10 +62340,10 @@ class Test_TC_DM_4_20Suite : public TestCommand } }; -class Test_TC_DM_4_21Suite : public TestCommand +class Test_TC_DESC_1_1Suite : public TestCommand { public: - Test_TC_DM_4_21Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_4_21", 0, credsIssuerConfig) + Test_TC_DESC_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_1_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63146,7 +62351,7 @@ class Test_TC_DM_4_21Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DM_4_21Suite() {} + ~Test_TC_DESC_1_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63191,11 +62396,11 @@ class Test_TC_DM_4_21Suite : public TestCommand } }; -class Test_TC_Diag_Log_2_1Suite : public TestCommand +class Test_TC_ETHDIAG_1_2Suite : public TestCommand { public: - Test_TC_Diag_Log_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_Diag_Log_2_1", 0, credsIssuerConfig) + Test_TC_ETHDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_ETHDIAG_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63203,7 +62408,7 @@ class Test_TC_Diag_Log_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_Diag_Log_2_1Suite() {} + ~Test_TC_ETHDIAG_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63248,11 +62453,10 @@ class Test_TC_Diag_Log_2_1Suite : public TestCommand } }; -class Test_TC_Diag_Log_2_2Suite : public TestCommand +class Test_TC_GC_2_2Suite : public TestCommand { public: - Test_TC_Diag_Log_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_Diag_Log_2_2", 0, credsIssuerConfig) + Test_TC_GC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63260,7 +62464,7 @@ class Test_TC_Diag_Log_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_Diag_Log_2_2Suite() {} + ~Test_TC_GC_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63305,11 +62509,10 @@ class Test_TC_Diag_Log_2_2Suite : public TestCommand } }; -class Test_TC_Diag_Log_2_3Suite : public TestCommand +class Test_TC_GC_2_3Suite : public TestCommand { public: - Test_TC_Diag_Log_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_Diag_Log_2_3", 0, credsIssuerConfig) + Test_TC_GC_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63317,7 +62520,7 @@ class Test_TC_Diag_Log_2_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_Diag_Log_2_3Suite() {} + ~Test_TC_GC_2_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63362,10 +62565,10 @@ class Test_TC_Diag_Log_2_3Suite : public TestCommand } }; -class Test_TC_DESC_1_1Suite : public TestCommand +class Test_TC_GC_2_4Suite : public TestCommand { public: - Test_TC_DESC_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_1_1", 0, credsIssuerConfig) + Test_TC_GC_2_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63373,7 +62576,7 @@ class Test_TC_DESC_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_DESC_1_1Suite() {} + ~Test_TC_GC_2_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63418,11 +62621,11 @@ class Test_TC_DESC_1_1Suite : public TestCommand } }; -class Test_TC_ETHDIAG_1_2Suite : public TestCommand +class Test_TC_GENDIAG_1_1Suite : public TestCommand { public: - Test_TC_ETHDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_ETHDIAG_1_2", 0, credsIssuerConfig) + Test_TC_GENDIAG_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_GENDIAG_1_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63430,7 +62633,7 @@ class Test_TC_ETHDIAG_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_ETHDIAG_1_2Suite() {} + ~Test_TC_GENDIAG_1_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63475,10 +62678,11 @@ class Test_TC_ETHDIAG_1_2Suite : public TestCommand } }; -class Test_TC_GC_2_2Suite : public TestCommand +class Test_TC_GENDIAG_1_2Suite : public TestCommand { public: - Test_TC_GC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_2", 0, credsIssuerConfig) + Test_TC_GENDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_GENDIAG_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63486,7 +62690,7 @@ class Test_TC_GC_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GC_2_2Suite() {} + ~Test_TC_GENDIAG_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63531,10 +62735,11 @@ class Test_TC_GC_2_2Suite : public TestCommand } }; -class Test_TC_GC_2_3Suite : public TestCommand +class Test_TC_GENDIAG_2_1Suite : public TestCommand { public: - Test_TC_GC_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_3", 0, credsIssuerConfig) + Test_TC_GENDIAG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_GENDIAG_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63542,7 +62747,7 @@ class Test_TC_GC_2_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GC_2_3Suite() {} + ~Test_TC_GENDIAG_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63587,10 +62792,10 @@ class Test_TC_GC_2_3Suite : public TestCommand } }; -class Test_TC_GC_2_4Suite : public TestCommand +class Test_TC_I_2_2Suite : public TestCommand { public: - Test_TC_GC_2_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_GC_2_4", 0, credsIssuerConfig) + Test_TC_I_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63598,7 +62803,7 @@ class Test_TC_GC_2_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GC_2_4Suite() {} + ~Test_TC_I_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63643,11 +62848,10 @@ class Test_TC_GC_2_4Suite : public TestCommand } }; -class Test_TC_GENDIAG_1_1Suite : public TestCommand +class Test_TC_I_3_1Suite : public TestCommand { public: - Test_TC_GENDIAG_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_GENDIAG_1_1", 0, credsIssuerConfig) + Test_TC_I_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63655,7 +62859,7 @@ class Test_TC_GENDIAG_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GENDIAG_1_1Suite() {} + ~Test_TC_I_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63700,11 +62904,10 @@ class Test_TC_GENDIAG_1_1Suite : public TestCommand } }; -class Test_TC_GENDIAG_1_2Suite : public TestCommand +class Test_TC_I_3_2Suite : public TestCommand { public: - Test_TC_GENDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_GENDIAG_1_2", 0, credsIssuerConfig) + Test_TC_I_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_3_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63712,7 +62915,7 @@ class Test_TC_GENDIAG_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GENDIAG_1_2Suite() {} + ~Test_TC_I_3_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63757,11 +62960,10 @@ class Test_TC_GENDIAG_1_2Suite : public TestCommand } }; -class Test_TC_GENDIAG_2_1Suite : public TestCommand +class Test_TC_ILL_2_2Suite : public TestCommand { public: - Test_TC_GENDIAG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_GENDIAG_2_1", 0, credsIssuerConfig) + Test_TC_ILL_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_ILL_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63769,7 +62971,7 @@ class Test_TC_GENDIAG_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_GENDIAG_2_1Suite() {} + ~Test_TC_ILL_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63814,10 +63016,10 @@ class Test_TC_GENDIAG_2_1Suite : public TestCommand } }; -class Test_TC_I_2_2Suite : public TestCommand +class Test_TC_ILL_3_1Suite : public TestCommand { public: - Test_TC_I_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_2_2", 0, credsIssuerConfig) + Test_TC_ILL_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_ILL_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63825,7 +63027,7 @@ class Test_TC_I_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_I_2_2Suite() {} + ~Test_TC_ILL_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63870,10 +63072,10 @@ class Test_TC_I_2_2Suite : public TestCommand } }; -class Test_TC_I_3_1Suite : public TestCommand +class Test_TC_IDM_1_1Suite : public TestCommand { public: - Test_TC_I_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_3_1", 0, credsIssuerConfig) + Test_TC_IDM_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_1_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63881,7 +63083,7 @@ class Test_TC_I_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_I_3_1Suite() {} + ~Test_TC_IDM_1_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63926,10 +63128,10 @@ class Test_TC_I_3_1Suite : public TestCommand } }; -class Test_TC_I_3_2Suite : public TestCommand +class Test_TC_IDM_1_2Suite : public TestCommand { public: - Test_TC_I_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_3_2", 0, credsIssuerConfig) + Test_TC_IDM_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63937,7 +63139,7 @@ class Test_TC_I_3_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_I_3_2Suite() {} + ~Test_TC_IDM_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -63982,10 +63184,10 @@ class Test_TC_I_3_2Suite : public TestCommand } }; -class Test_TC_ILL_2_2Suite : public TestCommand +class Test_TC_IDM_2_1Suite : public TestCommand { public: - Test_TC_ILL_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_ILL_2_2", 0, credsIssuerConfig) + Test_TC_IDM_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -63993,7 +63195,7 @@ class Test_TC_ILL_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_ILL_2_2Suite() {} + ~Test_TC_IDM_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64038,10 +63240,10 @@ class Test_TC_ILL_2_2Suite : public TestCommand } }; -class Test_TC_ILL_3_1Suite : public TestCommand +class Test_TC_IDM_2_2Suite : public TestCommand { public: - Test_TC_ILL_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_ILL_3_1", 0, credsIssuerConfig) + Test_TC_IDM_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64049,7 +63251,7 @@ class Test_TC_ILL_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_ILL_3_1Suite() {} + ~Test_TC_IDM_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64094,10 +63296,10 @@ class Test_TC_ILL_3_1Suite : public TestCommand } }; -class Test_TC_IDM_1_1Suite : public TestCommand +class Test_TC_IDM_3_1Suite : public TestCommand { public: - Test_TC_IDM_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_1_1", 0, credsIssuerConfig) + Test_TC_IDM_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64105,7 +63307,7 @@ class Test_TC_IDM_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_1_1Suite() {} + ~Test_TC_IDM_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64150,10 +63352,10 @@ class Test_TC_IDM_1_1Suite : public TestCommand } }; -class Test_TC_IDM_1_2Suite : public TestCommand +class Test_TC_IDM_3_2Suite : public TestCommand { public: - Test_TC_IDM_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_1_2", 0, credsIssuerConfig) + Test_TC_IDM_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_3_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64161,7 +63363,7 @@ class Test_TC_IDM_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_1_2Suite() {} + ~Test_TC_IDM_3_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64206,10 +63408,10 @@ class Test_TC_IDM_1_2Suite : public TestCommand } }; -class Test_TC_IDM_2_1Suite : public TestCommand +class Test_TC_IDM_4_1Suite : public TestCommand { public: - Test_TC_IDM_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_2_1", 0, credsIssuerConfig) + Test_TC_IDM_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_4_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64217,7 +63419,7 @@ class Test_TC_IDM_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_2_1Suite() {} + ~Test_TC_IDM_4_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64262,10 +63464,10 @@ class Test_TC_IDM_2_1Suite : public TestCommand } }; -class Test_TC_IDM_2_2Suite : public TestCommand +class Test_TC_IDM_4_2Suite : public TestCommand { public: - Test_TC_IDM_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_2_2", 0, credsIssuerConfig) + Test_TC_IDM_4_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_4_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64273,7 +63475,7 @@ class Test_TC_IDM_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_2_2Suite() {} + ~Test_TC_IDM_4_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64318,10 +63520,10 @@ class Test_TC_IDM_2_2Suite : public TestCommand } }; -class Test_TC_IDM_3_1Suite : public TestCommand +class Test_TC_IDM_5_1Suite : public TestCommand { public: - Test_TC_IDM_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_3_1", 0, credsIssuerConfig) + Test_TC_IDM_5_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_5_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64329,7 +63531,7 @@ class Test_TC_IDM_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_3_1Suite() {} + ~Test_TC_IDM_5_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64374,10 +63576,10 @@ class Test_TC_IDM_3_1Suite : public TestCommand } }; -class Test_TC_IDM_3_2Suite : public TestCommand +class Test_TC_IDM_5_2Suite : public TestCommand { public: - Test_TC_IDM_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_3_2", 0, credsIssuerConfig) + Test_TC_IDM_5_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_5_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64385,7 +63587,7 @@ class Test_TC_IDM_3_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_3_2Suite() {} + ~Test_TC_IDM_5_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64430,10 +63632,10 @@ class Test_TC_IDM_3_2Suite : public TestCommand } }; -class Test_TC_IDM_4_1Suite : public TestCommand +class Test_TC_IDM_6_1Suite : public TestCommand { public: - Test_TC_IDM_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_4_1", 0, credsIssuerConfig) + Test_TC_IDM_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64441,7 +63643,7 @@ class Test_TC_IDM_4_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_4_1Suite() {} + ~Test_TC_IDM_6_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64486,10 +63688,10 @@ class Test_TC_IDM_4_1Suite : public TestCommand } }; -class Test_TC_IDM_4_2Suite : public TestCommand +class Test_TC_IDM_6_2Suite : public TestCommand { public: - Test_TC_IDM_4_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_4_2", 0, credsIssuerConfig) + Test_TC_IDM_6_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64497,7 +63699,7 @@ class Test_TC_IDM_4_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_4_2Suite() {} + ~Test_TC_IDM_6_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64542,10 +63744,10 @@ class Test_TC_IDM_4_2Suite : public TestCommand } }; -class Test_TC_IDM_5_1Suite : public TestCommand +class Test_TC_IDM_6_3Suite : public TestCommand { public: - Test_TC_IDM_5_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_5_1", 0, credsIssuerConfig) + Test_TC_IDM_6_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64553,7 +63755,7 @@ class Test_TC_IDM_5_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_5_1Suite() {} + ~Test_TC_IDM_6_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64598,10 +63800,10 @@ class Test_TC_IDM_5_1Suite : public TestCommand } }; -class Test_TC_IDM_5_2Suite : public TestCommand +class Test_TC_IDM_6_4Suite : public TestCommand { public: - Test_TC_IDM_5_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_5_2", 0, credsIssuerConfig) + Test_TC_IDM_6_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64609,7 +63811,7 @@ class Test_TC_IDM_5_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_5_2Suite() {} + ~Test_TC_IDM_6_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64654,10 +63856,10 @@ class Test_TC_IDM_5_2Suite : public TestCommand } }; -class Test_TC_IDM_6_1Suite : public TestCommand +class Test_TC_IDM_7_1Suite : public TestCommand { public: - Test_TC_IDM_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_1", 0, credsIssuerConfig) + Test_TC_IDM_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_7_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64665,7 +63867,7 @@ class Test_TC_IDM_6_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_6_1Suite() {} + ~Test_TC_IDM_7_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64710,10 +63912,10 @@ class Test_TC_IDM_6_1Suite : public TestCommand } }; -class Test_TC_IDM_6_2Suite : public TestCommand +class Test_TC_MC_2_2Suite : public TestCommand { public: - Test_TC_IDM_6_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_2", 0, credsIssuerConfig) + Test_TC_MC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64721,7 +63923,7 @@ class Test_TC_IDM_6_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_6_2Suite() {} + ~Test_TC_MC_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64766,10 +63968,10 @@ class Test_TC_IDM_6_2Suite : public TestCommand } }; -class Test_TC_IDM_6_3Suite : public TestCommand +class Test_TC_MC_4_1Suite : public TestCommand { public: - Test_TC_IDM_6_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_3", 0, credsIssuerConfig) + Test_TC_MC_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_4_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64777,7 +63979,7 @@ class Test_TC_IDM_6_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_6_3Suite() {} + ~Test_TC_MC_4_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64822,10 +64024,10 @@ class Test_TC_IDM_6_3Suite : public TestCommand } }; -class Test_TC_IDM_6_4Suite : public TestCommand +class Test_TC_MC_6_1Suite : public TestCommand { public: - Test_TC_IDM_6_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_6_4", 0, credsIssuerConfig) + Test_TC_MC_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_1", 13, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64833,7 +64035,7 @@ class Test_TC_IDM_6_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_6_4Suite() {} + ~Test_TC_MC_6_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64858,6 +64060,86 @@ class Test_TC_IDM_6_4Suite : public TestCommand switch (mTestIndex - 1) { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentState", value, 1)); + } + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 5: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentState", value, 0)); + } + break; + case 7: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 8: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 9: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentState", value, 1)); + } + break; + case 10: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 11: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 12: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentState", value, 2)); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -64873,15 +64155,91 @@ class Test_TC_IDM_6_4Suite : public TestCommand using namespace chip::app::Clusters; switch (testIndex) { + case 0: { + LogStep(0, "Wait for the commissioned device to be retrieved"); + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); + } + case 1: { + LogStep(1, "Precondition: Media content in a paused state at the beginning of the content"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Pause::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Pause::Id, value); + } + case 2: { + LogStep(2, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); + return UserPrompt(kIdentityAlpha, value); + } + case 3: { + LogStep(3, "Reads the CurrentState attribute"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + } + case 4: { + LogStep(4, "sends a Play command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Play::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Play::Id, value); + } + case 5: { + LogStep(5, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Physically verify that the media is playinggarbage: not in length on purpose", 43); + return UserPrompt(kIdentityAlpha, value); + } + case 6: { + LogStep(6, "Reads the playback state attribute"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + } + case 7: { + LogStep(7, "sends a Pause command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Pause::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Pause::Id, value); + } + case 8: { + LogStep(8, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Physically verify that the media is pausedgarbage: not in length on purpose", 42); + return UserPrompt(kIdentityAlpha, value); + } + case 9: { + LogStep(9, "Reads the playback state attribute"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + } + case 10: { + LogStep(10, "sends a Stop command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::StopPlayback::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::StopPlayback::Id, value); + } + case 11: { + LogStep(11, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Physically verify that the media is stopedgarbage: not in length on purpose", 42); + return UserPrompt(kIdentityAlpha, value); + } + case 12: { + LogStep(12, "Reads the playback state attribute"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + } } return CHIP_NO_ERROR; } }; -class Test_TC_IDM_7_1Suite : public TestCommand +class Test_TC_MC_6_2Suite : public TestCommand { public: - Test_TC_IDM_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_IDM_7_1", 0, credsIssuerConfig) + Test_TC_MC_6_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_2", 19, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64889,7 +64247,7 @@ class Test_TC_IDM_7_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_IDM_7_1Suite() {} + ~Test_TC_MC_6_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64914,6 +64272,119 @@ class Test_TC_IDM_7_1Suite : public TestCommand switch (mTestIndex - 1) { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentState", value, 1)); + } + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 5: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentState", value, 0)); + } + break; + case 7: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 8: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 9: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 10: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 11: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 12: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValueNonNull("sampledPosition", value)); + } + break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 17: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValueNonNull("sampledPosition", value)); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -64929,15 +64400,131 @@ class Test_TC_IDM_7_1Suite : public TestCommand using namespace chip::app::Clusters; switch (testIndex) { + case 0: { + LogStep(0, "Wait for the commissioned device to be retrieved"); + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); + } + case 1: { + LogStep(1, "Precondition: Media content in a paused state at the beginning of the content"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Pause::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Pause::Id, value); + } + case 2: { + LogStep(2, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); + return UserPrompt(kIdentityAlpha, value); + } + case 3: { + LogStep(3, "Reads the CurrentState attribute from the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + } + case 4: { + LogStep(4, "Sends a Play command to the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Play::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Play::Id, value); + } + case 5: { + LogStep(5, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Physically verify that the media is playinggarbage: not in length on purpose", 43); + return UserPrompt(kIdentityAlpha, value); + } + case 6: { + LogStep(6, "Reads the CurrentState attribute"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + } + case 7: { + LogStep(7, "Sends a StartOver command to the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::StartOver::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::StartOver::Id, value); + } + case 8: { + LogStep(8, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Physically verify that the media is started overgarbage: not in length on purpose", 48); + return UserPrompt(kIdentityAlpha, value); + } + case 9: { + LogStep(9, "Sends a Next command to the DUT"); + chip::app::Clusters::MediaPlayback::Commands::Next::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Next::Id, value); + } + case 10: { + LogStep(10, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify that the next media item in the queue has been loadedgarbage: not in length on purpose", 60); + return UserPrompt(kIdentityAlpha, value); + } + case 11: { + LogStep(11, "Sends a Previous command to the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Previous::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Previous::Id, value); + } + case 12: { + LogStep(12, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify that the previous media item in the queue has been loadedgarbage: not in length on purpose", 64); + return UserPrompt(kIdentityAlpha, value); + } + case 13: { + LogStep(13, "Sends a SkipForward command to the DUT "); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::SkipForward::Type value; + value.deltaPositionMilliseconds = 10000ULL; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::SkipForward::Id, value); + } + case 14: { + LogStep(14, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Verify that the media has skipped forward 10 secondsgarbage: not in length on purpose", 52); + return UserPrompt(kIdentityAlpha, value); + } + case 15: { + LogStep(15, "Reads the SampledPosition attribute from the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::SampledPosition::Id); + } + case 16: { + LogStep(16, "Sends a SkipBackward command to the DUT "); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::SkipBackward::Type value; + value.deltaPositionMilliseconds = 10000ULL; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::SkipBackward::Id, value); + } + case 17: { + LogStep(17, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify that the media has skipped backward 10 secondsgarbage: not in length on purpose", 53); + return UserPrompt(kIdentityAlpha, value); + } + case 18: { + LogStep(18, "Reads the SampledPosition attribute from the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::SampledPosition::Id); + } } return CHIP_NO_ERROR; } }; -class Test_TC_MC_2_2Suite : public TestCommand +class Test_TC_MC_6_3Suite : public TestCommand { public: - Test_TC_MC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_2_2", 0, credsIssuerConfig) + Test_TC_MC_6_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_3", 9, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -64945,7 +64532,7 @@ class Test_TC_MC_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_2_2Suite() {} + ~Test_TC_MC_6_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -64970,6 +64557,54 @@ class Test_TC_MC_2_2Suite : public TestCommand switch (mTestIndex - 1) { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 5: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValueNonNull("sampledPosition", value)); + } + break; + case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 7: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 8: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 5)); + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -64985,15 +64620,71 @@ class Test_TC_MC_2_2Suite : public TestCommand using namespace chip::app::Clusters; switch (testIndex) { + case 0: { + LogStep(0, "Wait for the commissioned device to be retrieved"); + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); + } + case 1: { + LogStep(1, "Precondition: Media content in a paused state at the beginning of the content"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Pause::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Pause::Id, value); + } + case 2: { + LogStep(2, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); + return UserPrompt(kIdentityAlpha, value); + } + case 3: { + LogStep(3, "Sends a Seek command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Seek::Type value; + value.position = 10000ULL; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Seek::Id, value); + } + case 4: { + LogStep(4, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify that the media has moved to 10 seconds from the starting point.garbage: not in length on purpose", 70); + return UserPrompt(kIdentityAlpha, value); + } + case 5: { + LogStep(5, "Reads the SampledPosition attribute"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::SampledPosition::Id); + } + case 6: { + LogStep(6, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "User prompt needed to enter the value beyond the furthest valid positiongarbage: not in length on purpose", 72); + return UserPrompt(kIdentityAlpha, value); + } + case 7: { + LogStep(7, "Sends a Seek command Position value beyond the furthest valid position"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Seek::Type value; + value.position = 10000ULL; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Seek::Id, value); + } + case 8: { + LogStep(8, "Reads the SampledPosition attribute"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::SampledPosition::Id); + } } return CHIP_NO_ERROR; } }; -class Test_TC_MC_3_12Suite : public TestCommand +class Test_TC_MC_6_4Suite : public TestCommand { public: - Test_TC_MC_3_12Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_12", 3, credsIssuerConfig) + Test_TC_MC_6_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_6_4", 22, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65001,7 +64692,7 @@ class Test_TC_MC_3_12Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_3_12Suite() {} + ~Test_TC_MC_6_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65032,9 +64723,131 @@ class Test_TC_MC_3_12Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentState", value, 1)); + } + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + float value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("playbackSpeed", value, 0.0f)); + } + break; + case 5: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 7: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentState", value, 0)); + } + break; + case 8: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + float value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("playbackSpeed", value, 1.0f)); + } + break; + case 9: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 10: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 11: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + float value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("playbackSpeed", value, 2.0f)); + } + break; + case 12: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::PlaybackStateEnum value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("currentState", value, 0)); + } + break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 17: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::DecodableType value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 19: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + float value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("playbackSpeed", value, 1.0f)); + } + break; + case 20: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 4)); + break; + case 21: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 4)); break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); @@ -65058,24 +64871,134 @@ class Test_TC_MC_3_12Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Hide Input Status Command"); - chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type value; - return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::HideInputStatus::Id, value); + LogStep(1, "Precondition: Media content in a paused state at the beginning of the content"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Pause::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Pause::Id, value); } case 2: { - LogStep(2, "Show Input Status Command"); - chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type value; - return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::ShowInputStatus::Id, value); + LogStep(2, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Verify that media is pausedgarbage: not in length on purpose", 27); + return UserPrompt(kIdentityAlpha, value); + } + case 3: { + LogStep(3, "Reads the CurrentState attribute from the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + } + case 4: { + LogStep(4, "Reads the PlaybackSpeed attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::PlaybackSpeed::Id); + } + case 5: { + LogStep(5, "Sends a FastForward command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::FastForward::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::FastForward::Id, value); + } + case 6: { + LogStep(6, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Verify that the media is playinggarbage: not in length on purpose", 32); + return UserPrompt(kIdentityAlpha, value); + } + case 7: { + LogStep(7, "Reads the CurrentState attribute"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + } + case 8: { + LogStep(8, "Reads the PlaybackSpeed attribute from the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::PlaybackSpeed::Id); + } + case 9: { + LogStep(9, "Sends a FastForward command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::FastForward::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::FastForward::Id, value); + } + case 10: { + LogStep(10, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Verify that the media play speed has increasedgarbage: not in length on purpose", 46); + return UserPrompt(kIdentityAlpha, value); + } + case 11: { + LogStep(11, "Reads the PlaybackSpeed attribute from the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::PlaybackSpeed::Id); + } + case 12: { + LogStep(12, "Sends a Rewind command to the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Rewind::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Rewind::Id, value); + } + case 13: { + LogStep(13, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Verify that the media play has reversed directiongarbage: not in length on purpose", 49); + return UserPrompt(kIdentityAlpha, value); + } + case 14: { + LogStep(14, "Reads the CurrentState attribute"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::CurrentState::Id); + } + case 15: { + LogStep(15, "Sends a Rewind command to the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Rewind::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Rewind::Id, value); + } + case 16: { + LogStep(16, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Verify that the media play has reversed directiongarbage: not in length on purpose", 49); + return UserPrompt(kIdentityAlpha, value); + } + case 17: { + LogStep(17, "Sends a Play command"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Play::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Play::Id, value); + } + case 18: { + LogStep(18, "log a command"); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span( + "Verify that the media is has resumed playing forward at the default speedgarbage: not in length on purpose", 73); + return UserPrompt(kIdentityAlpha, value); + } + case 19: { + LogStep(19, "Reads the PlaybackSpeed attribute from the DUT"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Attributes::PlaybackSpeed::Id); + } + case 20: { + LogStep(20, "Sends consecutive FastForward commands"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::FastForward::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::FastForward::Id, value); + } + case 21: { + LogStep(21, "Sends consecutive Rewind commands"); + VerifyOrdo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::MediaPlayback::Commands::Rewind::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaPlayback::Id, MediaPlayback::Commands::Rewind::Id, value); } } return CHIP_NO_ERROR; } }; -class Test_TC_MC_3_13Suite : public TestCommand +class Test_TC_MC_8_2Suite : public TestCommand { public: - Test_TC_MC_3_13Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_3_13", 5, credsIssuerConfig) + Test_TC_MC_8_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_8_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65083,7 +65006,7 @@ class Test_TC_MC_3_13Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_3_13Suite() {} + ~Test_TC_MC_8_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65108,35 +65031,6 @@ class Test_TC_MC_3_13Suite : public TestCommand switch (mTestIndex - 1) { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::DataModel::DecodableList value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "list")); - } - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::DataModel::DecodableList value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNoMoreListItems("inputList", iter_0, 0)); - } - } - break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -65152,43 +65046,71 @@ class Test_TC_MC_3_13Suite : public TestCommand using namespace chip::app::Clusters; switch (testIndex) { - case 0: { - LogStep(0, "Wait for the commissioned device to be retrieved"); - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "Read attribute media input list"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id); - } - case 2: { - LogStep(2, "Rename Input Command"); - chip::app::Clusters::MediaInput::Commands::RenameInput::Type value; - value.index = 1; - value.name = chip::Span("A1garbage: not in length on purpose", 2); - return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::RenameInput::Id, value); } - case 3: { - LogStep(3, "Rename Input Command"); - chip::app::Clusters::MediaInput::Commands::RenameInput::Type value; - value.index = 1; - value.name = chip::Span("A2garbage: not in length on purpose", 2); - return SendCommand(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Commands::RenameInput::Id, value); + return CHIP_NO_ERROR; + } +}; + +class Test_TC_MC_9_2Suite : public TestCommand +{ +public: + Test_TC_MC_9_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_9_2", 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_MC_9_2Suite() {} + + 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)); } - case 4: { - LogStep(4, "Read attribute media input list"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id); + + 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_MC_4_1Suite : public TestCommand +class Test_TC_MC_10_2Suite : public TestCommand { public: - Test_TC_MC_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_4_1", 0, credsIssuerConfig) + Test_TC_MC_10_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65196,7 +65118,7 @@ class Test_TC_MC_4_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_4_1Suite() {} + ~Test_TC_MC_10_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65241,10 +65163,10 @@ class Test_TC_MC_4_1Suite : public TestCommand } }; -class Test_TC_MC_8_2Suite : public TestCommand +class Test_TC_MC_10_3Suite : public TestCommand { public: - Test_TC_MC_8_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_8_2", 0, credsIssuerConfig) + Test_TC_MC_10_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65252,7 +65174,7 @@ class Test_TC_MC_8_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_8_2Suite() {} + ~Test_TC_MC_10_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65297,10 +65219,10 @@ class Test_TC_MC_8_2Suite : public TestCommand } }; -class Test_TC_MC_9_2Suite : public TestCommand +class Test_TC_MC_10_4Suite : public TestCommand { public: - Test_TC_MC_9_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_9_2", 0, credsIssuerConfig) + Test_TC_MC_10_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65308,7 +65230,7 @@ class Test_TC_MC_9_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_9_2Suite() {} + ~Test_TC_MC_10_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65353,10 +65275,10 @@ class Test_TC_MC_9_2Suite : public TestCommand } }; -class Test_TC_MC_10_2Suite : public TestCommand +class Test_TC_MC_10_5Suite : public TestCommand { public: - Test_TC_MC_10_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_2", 0, credsIssuerConfig) + Test_TC_MC_10_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_5", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65364,7 +65286,7 @@ class Test_TC_MC_10_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_2Suite() {} + ~Test_TC_MC_10_5Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65409,10 +65331,10 @@ class Test_TC_MC_10_2Suite : public TestCommand } }; -class Test_TC_MC_10_3Suite : public TestCommand +class Test_TC_MC_10_6Suite : public TestCommand { public: - Test_TC_MC_10_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_3", 0, credsIssuerConfig) + Test_TC_MC_10_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_6", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65420,7 +65342,7 @@ class Test_TC_MC_10_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_3Suite() {} + ~Test_TC_MC_10_6Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65465,10 +65387,10 @@ class Test_TC_MC_10_3Suite : public TestCommand } }; -class Test_TC_MC_10_4Suite : public TestCommand +class Test_TC_MC_10_7Suite : public TestCommand { public: - Test_TC_MC_10_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_4", 0, credsIssuerConfig) + Test_TC_MC_10_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_7", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65476,7 +65398,7 @@ class Test_TC_MC_10_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_4Suite() {} + ~Test_TC_MC_10_7Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65521,10 +65443,10 @@ class Test_TC_MC_10_4Suite : public TestCommand } }; -class Test_TC_MC_10_5Suite : public TestCommand +class Test_TC_MF_1_1Suite : public TestCommand { public: - Test_TC_MC_10_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_5", 0, credsIssuerConfig) + Test_TC_MF_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65532,7 +65454,7 @@ class Test_TC_MC_10_5Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_5Suite() {} + ~Test_TC_MF_1_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65577,10 +65499,10 @@ class Test_TC_MC_10_5Suite : public TestCommand } }; -class Test_TC_MC_10_6Suite : public TestCommand +class Test_TC_MF_1_2Suite : public TestCommand { public: - Test_TC_MC_10_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_6", 0, credsIssuerConfig) + Test_TC_MF_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65588,7 +65510,7 @@ class Test_TC_MC_10_6Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_6Suite() {} + ~Test_TC_MF_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65633,10 +65555,10 @@ class Test_TC_MC_10_6Suite : public TestCommand } }; -class Test_TC_MC_10_7Suite : public TestCommand +class Test_TC_MF_1_7Suite : public TestCommand { public: - Test_TC_MC_10_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_10_7", 0, credsIssuerConfig) + Test_TC_MF_1_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_7", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65644,7 +65566,7 @@ class Test_TC_MC_10_7Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MC_10_7Suite() {} + ~Test_TC_MF_1_7Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65689,10 +65611,10 @@ class Test_TC_MC_10_7Suite : public TestCommand } }; -class Test_TC_MF_1_1Suite : public TestCommand +class Test_TC_MF_1_8Suite : public TestCommand { public: - Test_TC_MF_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_1", 0, credsIssuerConfig) + Test_TC_MF_1_8Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_8", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65700,7 +65622,7 @@ class Test_TC_MF_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_1Suite() {} + ~Test_TC_MF_1_8Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65745,10 +65667,10 @@ class Test_TC_MF_1_1Suite : public TestCommand } }; -class Test_TC_MF_1_2Suite : public TestCommand +class Test_TC_MF_1_9Suite : public TestCommand { public: - Test_TC_MF_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_2", 0, credsIssuerConfig) + Test_TC_MF_1_9Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_9", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65756,7 +65678,7 @@ class Test_TC_MF_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_2Suite() {} + ~Test_TC_MF_1_9Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65801,10 +65723,10 @@ class Test_TC_MF_1_2Suite : public TestCommand } }; -class Test_TC_MF_1_7Suite : public TestCommand +class Test_TC_MF_1_10Suite : public TestCommand { public: - Test_TC_MF_1_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_7", 0, credsIssuerConfig) + Test_TC_MF_1_10Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_10", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65812,7 +65734,7 @@ class Test_TC_MF_1_7Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_7Suite() {} + ~Test_TC_MF_1_10Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65857,10 +65779,10 @@ class Test_TC_MF_1_7Suite : public TestCommand } }; -class Test_TC_MF_1_8Suite : public TestCommand +class Test_TC_MF_1_11Suite : public TestCommand { public: - Test_TC_MF_1_8Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_8", 0, credsIssuerConfig) + Test_TC_MF_1_11Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_11", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65868,7 +65790,7 @@ class Test_TC_MF_1_8Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_8Suite() {} + ~Test_TC_MF_1_11Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65913,10 +65835,10 @@ class Test_TC_MF_1_8Suite : public TestCommand } }; -class Test_TC_MF_1_9Suite : public TestCommand +class Test_TC_MF_1_12Suite : public TestCommand { public: - Test_TC_MF_1_9Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_9", 0, credsIssuerConfig) + Test_TC_MF_1_12Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_12", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65924,7 +65846,7 @@ class Test_TC_MF_1_9Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_9Suite() {} + ~Test_TC_MF_1_12Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -65969,10 +65891,10 @@ class Test_TC_MF_1_9Suite : public TestCommand } }; -class Test_TC_MF_1_10Suite : public TestCommand +class Test_TC_MF_1_13Suite : public TestCommand { public: - Test_TC_MF_1_10Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_10", 0, credsIssuerConfig) + Test_TC_MF_1_13Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_13", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -65980,7 +65902,7 @@ class Test_TC_MF_1_10Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_10Suite() {} + ~Test_TC_MF_1_13Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66025,10 +65947,10 @@ class Test_TC_MF_1_10Suite : public TestCommand } }; -class Test_TC_MF_1_11Suite : public TestCommand +class Test_TC_MF_1_14Suite : public TestCommand { public: - Test_TC_MF_1_11Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_11", 0, credsIssuerConfig) + Test_TC_MF_1_14Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_14", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66036,7 +65958,7 @@ class Test_TC_MF_1_11Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_11Suite() {} + ~Test_TC_MF_1_14Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66081,10 +66003,10 @@ class Test_TC_MF_1_11Suite : public TestCommand } }; -class Test_TC_MF_1_12Suite : public TestCommand +class Test_TC_MF_1_16Suite : public TestCommand { public: - Test_TC_MF_1_12Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_12", 0, credsIssuerConfig) + Test_TC_MF_1_16Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_16", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66092,7 +66014,7 @@ class Test_TC_MF_1_12Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_12Suite() {} + ~Test_TC_MF_1_16Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66137,10 +66059,10 @@ class Test_TC_MF_1_12Suite : public TestCommand } }; -class Test_TC_MF_1_13Suite : public TestCommand +class Test_TC_MF_1_17Suite : public TestCommand { public: - Test_TC_MF_1_13Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_13", 0, credsIssuerConfig) + Test_TC_MF_1_17Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_17", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66148,7 +66070,7 @@ class Test_TC_MF_1_13Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_13Suite() {} + ~Test_TC_MF_1_17Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66193,10 +66115,10 @@ class Test_TC_MF_1_13Suite : public TestCommand } }; -class Test_TC_MF_1_14Suite : public TestCommand +class Test_TC_MF_1_18Suite : public TestCommand { public: - Test_TC_MF_1_14Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_14", 0, credsIssuerConfig) + Test_TC_MF_1_18Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_18", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66204,7 +66126,7 @@ class Test_TC_MF_1_14Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_14Suite() {} + ~Test_TC_MF_1_18Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66249,18 +66171,18 @@ class Test_TC_MF_1_14Suite : public TestCommand } }; -class Test_TC_MF_1_16Suite : public TestCommand +class Test_TC_MF_1_19Suite : public TestCommand { public: - Test_TC_MF_1_16Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_16", 0, credsIssuerConfig) + Test_TC_MF_1_19Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_19", 0, credsIssuerConfig) { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_16Suite() {} + ~Test_TC_MF_1_19Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66268,9 +66190,9 @@ class Test_TC_MF_1_16Suite : public TestCommand } private: - chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; + chip::Optional mNodeId; chip::Optional mTimeout; chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } @@ -66305,10 +66227,10 @@ class Test_TC_MF_1_16Suite : public TestCommand } }; -class Test_TC_MF_1_17Suite : public TestCommand +class Test_TC_MF_1_20Suite : public TestCommand { public: - Test_TC_MF_1_17Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_17", 0, credsIssuerConfig) + Test_TC_MF_1_20Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_20", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66316,7 +66238,7 @@ class Test_TC_MF_1_17Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_17Suite() {} + ~Test_TC_MF_1_20Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66361,10 +66283,10 @@ class Test_TC_MF_1_17Suite : public TestCommand } }; -class Test_TC_MF_1_18Suite : public TestCommand +class Test_TC_MF_1_21Suite : public TestCommand { public: - Test_TC_MF_1_18Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_18", 0, credsIssuerConfig) + Test_TC_MF_1_21Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_21", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66372,7 +66294,7 @@ class Test_TC_MF_1_18Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_18Suite() {} + ~Test_TC_MF_1_21Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66417,18 +66339,18 @@ class Test_TC_MF_1_18Suite : public TestCommand } }; -class Test_TC_MF_1_19Suite : public TestCommand +class Test_TC_MF_1_22Suite : public TestCommand { public: - Test_TC_MF_1_19Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_19", 0, credsIssuerConfig) + Test_TC_MF_1_22Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_22", 0, credsIssuerConfig) { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_19Suite() {} + ~Test_TC_MF_1_22Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66436,9 +66358,9 @@ class Test_TC_MF_1_19Suite : public TestCommand } private: + chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; - chip::Optional mNodeId; chip::Optional mTimeout; chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } @@ -66473,10 +66395,10 @@ class Test_TC_MF_1_19Suite : public TestCommand } }; -class Test_TC_MF_1_20Suite : public TestCommand +class Test_TC_MF_1_23Suite : public TestCommand { public: - Test_TC_MF_1_20Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_20", 0, credsIssuerConfig) + Test_TC_MF_1_23Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_23", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66484,7 +66406,7 @@ class Test_TC_MF_1_20Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_20Suite() {} + ~Test_TC_MF_1_23Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66529,10 +66451,10 @@ class Test_TC_MF_1_20Suite : public TestCommand } }; -class Test_TC_MF_1_21Suite : public TestCommand +class Test_TC_MF_1_24Suite : public TestCommand { public: - Test_TC_MF_1_21Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_21", 0, credsIssuerConfig) + Test_TC_MF_1_24Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_24", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66540,7 +66462,7 @@ class Test_TC_MF_1_21Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_21Suite() {} + ~Test_TC_MF_1_24Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66585,10 +66507,10 @@ class Test_TC_MF_1_21Suite : public TestCommand } }; -class Test_TC_MF_1_22Suite : public TestCommand +class Test_TC_MF_1_25Suite : public TestCommand { public: - Test_TC_MF_1_22Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_22", 0, credsIssuerConfig) + Test_TC_MF_1_25Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_25", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66596,7 +66518,7 @@ class Test_TC_MF_1_22Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_22Suite() {} + ~Test_TC_MF_1_25Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66641,10 +66563,10 @@ class Test_TC_MF_1_22Suite : public TestCommand } }; -class Test_TC_MF_1_23Suite : public TestCommand +class Test_TC_MF_1_26Suite : public TestCommand { public: - Test_TC_MF_1_23Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_23", 0, credsIssuerConfig) + Test_TC_MF_1_26Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_26", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66652,7 +66574,7 @@ class Test_TC_MF_1_23Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_23Suite() {} + ~Test_TC_MF_1_26Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66697,10 +66619,10 @@ class Test_TC_MF_1_23Suite : public TestCommand } }; -class Test_TC_MF_1_24Suite : public TestCommand +class Test_TC_MF_1_27Suite : public TestCommand { public: - Test_TC_MF_1_24Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_24", 0, credsIssuerConfig) + Test_TC_MF_1_27Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_27", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66708,7 +66630,7 @@ class Test_TC_MF_1_24Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_24Suite() {} + ~Test_TC_MF_1_27Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66753,10 +66675,10 @@ class Test_TC_MF_1_24Suite : public TestCommand } }; -class Test_TC_MF_1_25Suite : public TestCommand +class Test_TC_MF_1_28Suite : public TestCommand { public: - Test_TC_MF_1_25Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_25", 0, credsIssuerConfig) + Test_TC_MF_1_28Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_28", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66764,7 +66686,7 @@ class Test_TC_MF_1_25Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_25Suite() {} + ~Test_TC_MF_1_28Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66809,10 +66731,10 @@ class Test_TC_MF_1_25Suite : public TestCommand } }; -class Test_TC_MF_1_26Suite : public TestCommand +class Test_TC_MOD_1_2Suite : public TestCommand { public: - Test_TC_MF_1_26Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_26", 0, credsIssuerConfig) + Test_TC_MOD_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66820,7 +66742,7 @@ class Test_TC_MF_1_26Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_26Suite() {} + ~Test_TC_MOD_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66865,10 +66787,10 @@ class Test_TC_MF_1_26Suite : public TestCommand } }; -class Test_TC_MF_1_27Suite : public TestCommand +class Test_TC_MOD_1_3Suite : public TestCommand { public: - Test_TC_MF_1_27Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_27", 0, credsIssuerConfig) + Test_TC_MOD_1_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_1_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66876,7 +66798,7 @@ class Test_TC_MF_1_27Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_27Suite() {} + ~Test_TC_MOD_1_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66921,10 +66843,10 @@ class Test_TC_MF_1_27Suite : public TestCommand } }; -class Test_TC_MF_1_28Suite : public TestCommand +class Test_TC_MOD_2_1Suite : public TestCommand { public: - Test_TC_MF_1_28Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_28", 0, credsIssuerConfig) + Test_TC_MOD_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66932,7 +66854,7 @@ class Test_TC_MF_1_28Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MF_1_28Suite() {} + ~Test_TC_MOD_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -66977,10 +66899,10 @@ class Test_TC_MF_1_28Suite : public TestCommand } }; -class Test_TC_MOD_1_2Suite : public TestCommand +class Test_TC_MOD_2_2Suite : public TestCommand { public: - Test_TC_MOD_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_1_2", 0, credsIssuerConfig) + Test_TC_MOD_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -66988,7 +66910,7 @@ class Test_TC_MOD_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MOD_1_2Suite() {} + ~Test_TC_MOD_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67033,10 +66955,10 @@ class Test_TC_MOD_1_2Suite : public TestCommand } }; -class Test_TC_MOD_1_3Suite : public TestCommand +class Test_TC_MOD_3_1Suite : public TestCommand { public: - Test_TC_MOD_1_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_1_3", 0, credsIssuerConfig) + Test_TC_MOD_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67044,7 +66966,7 @@ class Test_TC_MOD_1_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MOD_1_3Suite() {} + ~Test_TC_MOD_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67089,10 +67011,10 @@ class Test_TC_MOD_1_3Suite : public TestCommand } }; -class Test_TC_MOD_2_1Suite : public TestCommand +class Test_TC_MOD_3_2Suite : public TestCommand { public: - Test_TC_MOD_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_2_1", 0, credsIssuerConfig) + Test_TC_MOD_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_3_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67100,7 +67022,7 @@ class Test_TC_MOD_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MOD_2_1Suite() {} + ~Test_TC_MOD_3_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67145,10 +67067,10 @@ class Test_TC_MOD_2_1Suite : public TestCommand } }; -class Test_TC_MOD_2_2Suite : public TestCommand +class Test_TC_MOD_3_3Suite : public TestCommand { public: - Test_TC_MOD_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_2_2", 0, credsIssuerConfig) + Test_TC_MOD_3_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_3_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67156,7 +67078,7 @@ class Test_TC_MOD_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MOD_2_2Suite() {} + ~Test_TC_MOD_3_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67201,10 +67123,10 @@ class Test_TC_MOD_2_2Suite : public TestCommand } }; -class Test_TC_MOD_3_1Suite : public TestCommand +class Test_TC_SU_1_1Suite : public TestCommand { public: - Test_TC_MOD_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_3_1", 0, credsIssuerConfig) + Test_TC_SU_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_1_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67212,7 +67134,7 @@ class Test_TC_MOD_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MOD_3_1Suite() {} + ~Test_TC_SU_1_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67257,10 +67179,10 @@ class Test_TC_MOD_3_1Suite : public TestCommand } }; -class Test_TC_MOD_3_2Suite : public TestCommand +class Test_TC_SU_2_1Suite : public TestCommand { public: - Test_TC_MOD_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_3_2", 0, credsIssuerConfig) + Test_TC_SU_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67268,7 +67190,7 @@ class Test_TC_MOD_3_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MOD_3_2Suite() {} + ~Test_TC_SU_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67313,10 +67235,10 @@ class Test_TC_MOD_3_2Suite : public TestCommand } }; -class Test_TC_MOD_3_3Suite : public TestCommand +class Test_TC_SU_2_2Suite : public TestCommand { public: - Test_TC_MOD_3_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MOD_3_3", 0, credsIssuerConfig) + Test_TC_SU_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67324,7 +67246,7 @@ class Test_TC_MOD_3_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_MOD_3_3Suite() {} + ~Test_TC_SU_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67369,10 +67291,10 @@ class Test_TC_MOD_3_3Suite : public TestCommand } }; -class Test_TC_SU_1_1Suite : public TestCommand +class Test_TC_SU_2_3Suite : public TestCommand { public: - Test_TC_SU_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_1_1", 0, credsIssuerConfig) + Test_TC_SU_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67380,7 +67302,7 @@ class Test_TC_SU_1_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_1_1Suite() {} + ~Test_TC_SU_2_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67425,10 +67347,10 @@ class Test_TC_SU_1_1Suite : public TestCommand } }; -class Test_TC_SU_2_1Suite : public TestCommand +class Test_TC_SU_2_4Suite : public TestCommand { public: - Test_TC_SU_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_1", 0, credsIssuerConfig) + Test_TC_SU_2_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67436,7 +67358,7 @@ class Test_TC_SU_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_2_1Suite() {} + ~Test_TC_SU_2_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67481,10 +67403,10 @@ class Test_TC_SU_2_1Suite : public TestCommand } }; -class Test_TC_SU_2_2Suite : public TestCommand +class Test_TC_SU_2_5Suite : public TestCommand { public: - Test_TC_SU_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_2", 0, credsIssuerConfig) + Test_TC_SU_2_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_5", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67492,7 +67414,7 @@ class Test_TC_SU_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_2_2Suite() {} + ~Test_TC_SU_2_5Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67537,10 +67459,10 @@ class Test_TC_SU_2_2Suite : public TestCommand } }; -class Test_TC_SU_2_3Suite : public TestCommand +class Test_TC_SU_2_6Suite : public TestCommand { public: - Test_TC_SU_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_3", 0, credsIssuerConfig) + Test_TC_SU_2_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_6", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67548,7 +67470,7 @@ class Test_TC_SU_2_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_2_3Suite() {} + ~Test_TC_SU_2_6Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67593,10 +67515,10 @@ class Test_TC_SU_2_3Suite : public TestCommand } }; -class Test_TC_SU_2_4Suite : public TestCommand +class Test_TC_SU_2_7Suite : public TestCommand { public: - Test_TC_SU_2_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_4", 0, credsIssuerConfig) + Test_TC_SU_2_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_7", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67604,7 +67526,7 @@ class Test_TC_SU_2_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_2_4Suite() {} + ~Test_TC_SU_2_7Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67649,10 +67571,10 @@ class Test_TC_SU_2_4Suite : public TestCommand } }; -class Test_TC_SU_2_5Suite : public TestCommand +class Test_TC_SU_3_1Suite : public TestCommand { public: - Test_TC_SU_2_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_5", 0, credsIssuerConfig) + Test_TC_SU_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67660,7 +67582,7 @@ class Test_TC_SU_2_5Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_2_5Suite() {} + ~Test_TC_SU_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67705,10 +67627,10 @@ class Test_TC_SU_2_5Suite : public TestCommand } }; -class Test_TC_SU_2_6Suite : public TestCommand +class Test_TC_SU_3_2Suite : public TestCommand { public: - Test_TC_SU_2_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_6", 0, credsIssuerConfig) + Test_TC_SU_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_3_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67716,7 +67638,7 @@ class Test_TC_SU_2_6Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_2_6Suite() {} + ~Test_TC_SU_3_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67761,10 +67683,10 @@ class Test_TC_SU_2_6Suite : public TestCommand } }; -class Test_TC_SU_2_7Suite : public TestCommand +class Test_TC_SU_3_3Suite : public TestCommand { public: - Test_TC_SU_2_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_2_7", 0, credsIssuerConfig) + Test_TC_SU_3_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_3_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67772,7 +67694,7 @@ class Test_TC_SU_2_7Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_2_7Suite() {} + ~Test_TC_SU_3_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67817,10 +67739,10 @@ class Test_TC_SU_2_7Suite : public TestCommand } }; -class Test_TC_SU_3_1Suite : public TestCommand +class Test_TC_SU_3_4Suite : public TestCommand { public: - Test_TC_SU_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_3_1", 0, credsIssuerConfig) + Test_TC_SU_3_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_3_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67828,7 +67750,7 @@ class Test_TC_SU_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_3_1Suite() {} + ~Test_TC_SU_3_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67873,10 +67795,10 @@ class Test_TC_SU_3_1Suite : public TestCommand } }; -class Test_TC_SU_3_2Suite : public TestCommand +class Test_TC_SU_4_1Suite : public TestCommand { public: - Test_TC_SU_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_3_2", 0, credsIssuerConfig) + Test_TC_SU_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_4_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67884,7 +67806,7 @@ class Test_TC_SU_3_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_3_2Suite() {} + ~Test_TC_SU_4_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67929,10 +67851,10 @@ class Test_TC_SU_3_2Suite : public TestCommand } }; -class Test_TC_SU_3_3Suite : public TestCommand +class Test_TC_SU_4_2Suite : public TestCommand { public: - Test_TC_SU_3_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_3_3", 0, credsIssuerConfig) + Test_TC_SU_4_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_4_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67940,7 +67862,7 @@ class Test_TC_SU_3_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_3_3Suite() {} + ~Test_TC_SU_4_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -67985,10 +67907,10 @@ class Test_TC_SU_3_3Suite : public TestCommand } }; -class Test_TC_SU_3_4Suite : public TestCommand +class Test_TC_PSCFG_2_1Suite : public TestCommand { public: - Test_TC_SU_3_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_3_4", 0, credsIssuerConfig) + Test_TC_PSCFG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_PSCFG_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -67996,7 +67918,7 @@ class Test_TC_SU_3_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_3_4Suite() {} + ~Test_TC_PSCFG_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68041,10 +67963,10 @@ class Test_TC_SU_3_4Suite : public TestCommand } }; -class Test_TC_SU_4_1Suite : public TestCommand +class Test_TC_PSCFG_2_2Suite : public TestCommand { public: - Test_TC_SU_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_4_1", 0, credsIssuerConfig) + Test_TC_PSCFG_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_PSCFG_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68052,7 +67974,7 @@ class Test_TC_SU_4_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_4_1Suite() {} + ~Test_TC_PSCFG_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68097,10 +68019,10 @@ class Test_TC_SU_4_1Suite : public TestCommand } }; -class Test_TC_SU_4_2Suite : public TestCommand +class Test_TC_PSCFG_3_1Suite : public TestCommand { public: - Test_TC_SU_4_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SU_4_2", 0, credsIssuerConfig) + Test_TC_PSCFG_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_PSCFG_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68108,7 +68030,7 @@ class Test_TC_SU_4_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SU_4_2Suite() {} + ~Test_TC_PSCFG_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68153,10 +68075,10 @@ class Test_TC_SU_4_2Suite : public TestCommand } }; -class Test_TC_PSCFG_2_1Suite : public TestCommand +class Test_TC_SC_4_1Suite : public TestCommand { public: - Test_TC_PSCFG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_PSCFG_2_1", 0, credsIssuerConfig) + Test_TC_SC_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68164,7 +68086,7 @@ class Test_TC_PSCFG_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_PSCFG_2_1Suite() {} + ~Test_TC_SC_4_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68209,10 +68131,10 @@ class Test_TC_PSCFG_2_1Suite : public TestCommand } }; -class Test_TC_PSCFG_2_2Suite : public TestCommand +class Test_TC_SC_4_3Suite : public TestCommand { public: - Test_TC_PSCFG_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_PSCFG_2_2", 0, credsIssuerConfig) + Test_TC_SC_4_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68220,7 +68142,7 @@ class Test_TC_PSCFG_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_PSCFG_2_2Suite() {} + ~Test_TC_SC_4_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68265,10 +68187,10 @@ class Test_TC_PSCFG_2_2Suite : public TestCommand } }; -class Test_TC_PSCFG_3_1Suite : public TestCommand +class Test_TC_SC_4_4Suite : public TestCommand { public: - Test_TC_PSCFG_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_PSCFG_3_1", 0, credsIssuerConfig) + Test_TC_SC_4_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68276,7 +68198,7 @@ class Test_TC_PSCFG_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_PSCFG_3_1Suite() {} + ~Test_TC_SC_4_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68321,10 +68243,10 @@ class Test_TC_PSCFG_3_1Suite : public TestCommand } }; -class Test_TC_SC_4_1Suite : public TestCommand +class Test_TC_SC_4_5Suite : public TestCommand { public: - Test_TC_SC_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_1", 0, credsIssuerConfig) + Test_TC_SC_4_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_5", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68332,7 +68254,7 @@ class Test_TC_SC_4_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SC_4_1Suite() {} + ~Test_TC_SC_4_5Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68377,10 +68299,10 @@ class Test_TC_SC_4_1Suite : public TestCommand } }; -class Test_TC_SC_4_3Suite : public TestCommand +class Test_TC_SC_4_6Suite : public TestCommand { public: - Test_TC_SC_4_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_3", 0, credsIssuerConfig) + Test_TC_SC_4_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_6", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68388,7 +68310,7 @@ class Test_TC_SC_4_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SC_4_3Suite() {} + ~Test_TC_SC_4_6Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68433,10 +68355,10 @@ class Test_TC_SC_4_3Suite : public TestCommand } }; -class Test_TC_SC_4_4Suite : public TestCommand +class Test_TC_SC_4_7Suite : public TestCommand { public: - Test_TC_SC_4_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_4", 0, credsIssuerConfig) + Test_TC_SC_4_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_7", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68444,7 +68366,7 @@ class Test_TC_SC_4_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SC_4_4Suite() {} + ~Test_TC_SC_4_7Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68489,10 +68411,10 @@ class Test_TC_SC_4_4Suite : public TestCommand } }; -class Test_TC_SC_4_5Suite : public TestCommand +class Test_TC_SC_4_8Suite : public TestCommand { public: - Test_TC_SC_4_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_5", 0, credsIssuerConfig) + Test_TC_SC_4_8Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_8", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68500,7 +68422,7 @@ class Test_TC_SC_4_5Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SC_4_5Suite() {} + ~Test_TC_SC_4_8Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68545,10 +68467,10 @@ class Test_TC_SC_4_5Suite : public TestCommand } }; -class Test_TC_SC_4_6Suite : public TestCommand +class Test_TC_SC_4_9Suite : public TestCommand { public: - Test_TC_SC_4_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_6", 0, credsIssuerConfig) + Test_TC_SC_4_9Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_9", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68556,7 +68478,7 @@ class Test_TC_SC_4_6Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SC_4_6Suite() {} + ~Test_TC_SC_4_9Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68601,10 +68523,10 @@ class Test_TC_SC_4_6Suite : public TestCommand } }; -class Test_TC_SC_4_7Suite : public TestCommand +class Test_TC_SC_4_10Suite : public TestCommand { public: - Test_TC_SC_4_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_7", 0, credsIssuerConfig) + Test_TC_SC_4_10Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_10", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68612,7 +68534,7 @@ class Test_TC_SC_4_7Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SC_4_7Suite() {} + ~Test_TC_SC_4_10Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68657,10 +68579,10 @@ class Test_TC_SC_4_7Suite : public TestCommand } }; -class Test_TC_SC_4_8Suite : public TestCommand +class Test_TC_SWDIAG_1_2Suite : public TestCommand { public: - Test_TC_SC_4_8Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_8", 0, credsIssuerConfig) + Test_TC_SWDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SWDIAG_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68668,7 +68590,7 @@ class Test_TC_SC_4_8Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SC_4_8Suite() {} + ~Test_TC_SWDIAG_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68713,10 +68635,11 @@ class Test_TC_SC_4_8Suite : public TestCommand } }; -class Test_TC_SC_4_9Suite : public TestCommand +class Test_TC_WIFIDIAG_1_2Suite : public TestCommand { public: - Test_TC_SC_4_9Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_9", 0, credsIssuerConfig) + Test_TC_WIFIDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_WIFIDIAG_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68724,7 +68647,7 @@ class Test_TC_SC_4_9Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SC_4_9Suite() {} + ~Test_TC_WIFIDIAG_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68769,10 +68692,11 @@ class Test_TC_SC_4_9Suite : public TestCommand } }; -class Test_TC_SC_4_10Suite : public TestCommand +class Test_TC_WIFIDIAG_2_1Suite : public TestCommand { public: - Test_TC_SC_4_10Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SC_4_10", 0, credsIssuerConfig) + Test_TC_WIFIDIAG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_WIFIDIAG_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68780,7 +68704,7 @@ class Test_TC_SC_4_10Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SC_4_10Suite() {} + ~Test_TC_WIFIDIAG_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68825,10 +68749,10 @@ class Test_TC_SC_4_10Suite : public TestCommand } }; -class Test_TC_SWDIAG_1_2Suite : public TestCommand +class Test_TC_WNCV_6_1Suite : public TestCommand { public: - Test_TC_SWDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_SWDIAG_1_2", 0, credsIssuerConfig) + Test_TC_WNCV_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_WNCV_6_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68836,7 +68760,7 @@ class Test_TC_SWDIAG_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_SWDIAG_1_2Suite() {} + ~Test_TC_WNCV_6_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68881,11 +68805,10 @@ class Test_TC_SWDIAG_1_2Suite : public TestCommand } }; -class Test_TC_WIFIDIAG_1_2Suite : public TestCommand +class Test_TC_WNCV_7_1Suite : public TestCommand { public: - Test_TC_WIFIDIAG_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_WIFIDIAG_1_2", 0, credsIssuerConfig) + Test_TC_WNCV_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_WNCV_7_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68893,7 +68816,7 @@ class Test_TC_WIFIDIAG_1_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_WIFIDIAG_1_2Suite() {} + ~Test_TC_WNCV_7_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68938,11 +68861,10 @@ class Test_TC_WIFIDIAG_1_2Suite : public TestCommand } }; -class Test_TC_WIFIDIAG_2_1Suite : public TestCommand +class Test_TC_FLW_3_1Suite : public TestCommand { public: - Test_TC_WIFIDIAG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_WIFIDIAG_2_1", 0, credsIssuerConfig) + Test_TC_FLW_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_FLW_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68950,7 +68872,7 @@ class Test_TC_WIFIDIAG_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_WIFIDIAG_2_1Suite() {} + ~Test_TC_FLW_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68995,10 +68917,10 @@ class Test_TC_WIFIDIAG_2_1Suite : public TestCommand } }; -class Test_TC_WNCV_6_1Suite : public TestCommand +class Test_TC_OCC_2_2Suite : public TestCommand { public: - Test_TC_WNCV_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_WNCV_6_1", 0, credsIssuerConfig) + Test_TC_OCC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_OCC_2_2", 4, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -69006,7 +68928,7 @@ class Test_TC_WNCV_6_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_WNCV_6_1Suite() {} + ~Test_TC_OCC_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -69019,61 +68941,7 @@ class Test_TC_WNCV_6_1Suite : public TestCommand 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_WNCV_7_1Suite : public TestCommand -{ -public: - Test_TC_WNCV_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_WNCV_7_1", 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_WNCV_7_1Suite() {} - - 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; + uint8_t OccupancyValue; chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } @@ -69087,6 +68955,31 @@ class Test_TC_WNCV_7_1Suite : public TestCommand switch (mTestIndex - 1) { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("occupancy", value, 0)); + + OccupancyValue = value; + } + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -69102,62 +68995,30 @@ class Test_TC_WNCV_7_1Suite : public TestCommand using namespace chip::app::Clusters; switch (testIndex) { + case 0: { + LogStep(0, "Wait for the commissioned device to be retrieved"); + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_FLW_3_1Suite : public TestCommand -{ -public: - Test_TC_FLW_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_FLW_3_1", 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_FLW_3_1Suite() {} - - 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)); + case 1: { + LogStep(1, "Reads Occupancy attribute from DUT"); + VerifyOrdo(!ShouldSkip("A_OCCUPANCY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OccupancySensing::Id, OccupancySensing::Attributes::Occupancy::Id); } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); + case 2: { + LogStep(2, "Operate on DUT to change the occupancy status"); + VerifyOrdo(!ShouldSkip("MANUAL_OCCUPANCY_CHANGE"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Operate on DUT to change the occupancy statusgarbage: not in length on purpose", 45); + return UserPrompt(kIdentityAlpha, value); + } + case 3: { + LogStep(3, "Reads back Occupancy attribute from DUT after few seconds"); + VerifyOrdo(!ShouldSkip("A_OCCUPANCY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OccupancySensing::Id, OccupancySensing::Attributes::Occupancy::Id); } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { } return CHIP_NO_ERROR; } @@ -73006,13 +72867,11 @@ 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), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -73027,7 +72886,6 @@ 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), @@ -73232,9 +73090,11 @@ 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), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -73305,6 +73165,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),