From af56389de9bc693b5f8555af213211d857129628 Mon Sep 17 00:00:00 2001 From: lpbeliveau-silabs <112982107+lpbeliveau-silabs@users.noreply.github.com> Date: Tue, 7 Nov 2023 20:09:37 -0500 Subject: [PATCH] Modified the test to make use of the contains check that now supports structs (#30241) --- .../suites/certification/Test_TC_S_2_2.yaml | 95 +++++-------------- 1 file changed, 25 insertions(+), 70 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_S_2_2.yaml b/src/app/tests/suites/certification/Test_TC_S_2_2.yaml index 16780a7e9c0353..a1f900478330c4 100644 --- a/src/app/tests/suites/certification/Test_TC_S_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_S_2_2.yaml @@ -449,76 +449,31 @@ tests: - name: "TransitionTime" value: 0x0000 - name: "ExtensionFieldSets" - value: - [ - { - ClusterID: 0x0006, - AttributeValueList: - [{ AttributeID: 0x0000, AttributeValue: 0x01 }], - }, - { - ClusterID: 0x0008, - AttributeValueList: - [{ AttributeID: 0x0000, AttributeValue: 0x64 }], - }, - { - ClusterID: 0x0300, - AttributeValueList: - [ - { - AttributeID: 0x0003, - AttributeValue: 0x616b, - }, - { - AttributeID: 0x0004, - AttributeValue: 0x607d, - }, - { - AttributeID: 0x4000, - AttributeValue: 0x0000, - }, - { - AttributeID: 0x0001, - AttributeValue: 0x00, - }, - { - AttributeID: 0x4002, - AttributeValue: 0x00, - }, - { - AttributeID: 0x4003, - AttributeValue: 0x00, - }, - { - AttributeID: 0x4004, - AttributeValue: 0x0019, - }, - { - AttributeID: 0x0007, - AttributeValue: 0x00, - }, - { - AttributeID: 0x4001, - AttributeValue: 0x02, - }, - ], - }, - ] - #TODO : Need to change the check for a check like below if possible - # constraints: - # type: list - # contains: [ - # { - # ClusterID: 0x0006, - # AttributeValueList: - # [{ AttributeID: 0x0000, AttributeValue: 0x01 }], - # }, - # { - # ClusterID: 0x0008, - # AttributeValueList: - # [{ AttributeID: 0x0000, AttributeValue: 0x64 }], - # }, - # ] + constraints: + type: list + contains: + [ + { + ClusterID: 0x0006, + AttributeValueList: + [ + { + AttributeID: 0x0000, + AttributeValue: 0x01, + }, + ], + }, + { + ClusterID: 0x0008, + AttributeValueList: + [ + { + AttributeID: 0x0000, + AttributeValue: 0x64, + }, + ], + }, + ] - label: "Step 5: TH sends a ViewScene command to DUT with the GroupID field