Skip to content

Commit

Permalink
TC-IDM-1.2: Fix key error on custom cluster IDs (#29460)
Browse files Browse the repository at this point in the history
* TC-IDM-1.2: Fix key error on custom cluster IDs

* Update src/python_testing/TC_IDM_1_2.py

* Update src/python_testing/TC_IDM_1_2.py

Co-authored-by: Boris Zbarsky <[email protected]>

---------

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 5, 2024
1 parent 688cd9e commit 1702769
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python_testing/TC_IDM_1_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ async def test_TC_IDM_1_2(self):
for i in endpoints:
dut_ep_cluster_ids = wildcard_descriptor[i][Clusters.Descriptor][Clusters.Descriptor.Attributes.ServerList]
unsupported_clusters[i] = list(set(all_cluster_ids) - set(dut_ep_cluster_ids))
supported_clusters[i] = set(dut_ep_cluster_ids)
# We only want to consider the set of standard clusters as "supported clusters", so use the intersection
supported_clusters[i] = set(dut_ep_cluster_ids).intersection(set(all_cluster_ids))

# This is really unlikely to happen on any real product, so we're going to assert here if we can't find anything
# since it's likely a test error
Expand Down

0 comments on commit 1702769

Please sign in to comment.