Skip to content

Commit

Permalink
Modified the test to make use of the contains check that now supports…
Browse files Browse the repository at this point in the history
… structs (project-chip#30241)
  • Loading branch information
lpbeliveau-silabs authored Nov 8, 2023
1 parent f72c875 commit e081fee
Showing 1 changed file with 25 additions and 70 deletions.
95 changes: 25 additions & 70 deletions src/app/tests/suites/certification/Test_TC_S_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e081fee

Please sign in to comment.