Skip to content

Commit

Permalink
Fixed some EP1 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
austina-csa committed Jan 7, 2025
1 parent e436437 commit 2360992
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/python_testing/TC_IDM_2_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,19 +244,14 @@ async def test_TC_IDM_2_2(self):
asserts.assert_equal(parts_list_a, parts_list_b, "Parts list is not the expected value")

for endpoint in read_request:
if endpoint != 1: # Seems to mismatch for endpoint 1 - ServerList contains extra values: {259, 15, 2820, 7}
# These are not present in ClusterObjects.ALL_CLUSTERS
returned_clusters = sorted([x.id for x in read_request[endpoint]])
server_list = sorted(read_request[endpoint][Clusters.Descriptor][Clusters.Descriptor.Attributes.ServerList])
returned_clusters = sorted([x.id for x in read_request[endpoint]])
server_list = sorted(read_request[endpoint][Clusters.Descriptor][Clusters.Descriptor.Attributes.ServerList])

for endpoint in read_request:
for cluster in read_request[endpoint]:
if endpoint != 1: # Endpoint 1 seems to have mismatches with phantom attributes 2 and 3 at DeviceEnergyManagementMode and possibly other clusters
if endpoint != 1: # Endpoint 1 seems an issue with ModeSelect (ServerList has an extra 4293984257)
returned_attrs = sorted([x.attribute_id for x in read_request[endpoint][cluster].keys() if x != Clusters.Attribute.DataVersion])
attr_list = sorted([x for x in read_request[endpoint][cluster][cluster.Attributes.AttributeList] if x != Clusters.UnitTesting.Attributes.WriteOnlyInt8u.attribute_id])
# UnitTesting: 16426 in returned_attrs but not attr_list,
# ClusterObjects.ALL_ATTRIBUTES[4294048773]: chip.clusters.Objects.UnitTesting.Attributes.WriteOnlyInt8u
# Is this a bug?
asserts.assert_equal(returned_attrs, attr_list, f"Mismatch for {cluster} at endpoint {endpoint}")

# Step 6
Expand Down

0 comments on commit 2360992

Please sign in to comment.