From 26e33d83764f7aa87c714c4bfdf449f29fab7aa3 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 3 Feb 2025 17:48:13 -0500 Subject: [PATCH] Switch the basic information constraints as a set compare (use python) --- .../tests/suites/TestBasicInformation.yaml | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/app/tests/suites/TestBasicInformation.yaml b/src/app/tests/suites/TestBasicInformation.yaml index 2f4b2485c0e917..2838dd6c5a1708 100644 --- a/src/app/tests/suites/TestBasicInformation.yaml +++ b/src/app/tests/suites/TestBasicInformation.yaml @@ -57,7 +57,9 @@ tests: command: "readAttribute" attribute: "AttributeList" response: - value: [ + constraints: + python: | + return set(value) == { 0, 1, 2, @@ -80,20 +82,23 @@ tests: 20, 21, 22, - 0xFFFC, # FeatureMap - 0xFFFD, # ClusterRevision 0xFFF8, # GeneratedCommandList 0xFFF9, # AcceptedCommandList 0xFFFA, # EventList 0xFFFB, # AttributeList - ] + 0xFFFC, # FeatureMap + 0xFFFD, # ClusterRevision + } + - label: "Read AttributeList value" PICS: "!PICS_EVENT_LIST_ENABLED" command: "readAttribute" attribute: "AttributeList" response: - value: [ + constraints: + python: | + return set(value) == { 0, 1, 2, @@ -116,12 +121,12 @@ tests: 20, 21, 22, - 0xFFFC, # FeatureMap - 0xFFFD, # ClusterRevision 0xFFF8, # GeneratedCommandList 0xFFF9, # AcceptedCommandList 0xFFFB, # AttributeList - ] + 0xFFFC, # FeatureMap + 0xFFFD, # ClusterRevision + } - label: "Read NodeLabel" command: "readAttribute"