Skip to content

Commit 2719533

Browse files
cecillebzbarsky-apple
authored andcommitted
TC-IDM-1.2: Fix key error on custom cluster IDs (#29460)
* 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]>
1 parent 9eaf042 commit 2719533

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/python_testing/TC_IDM_1_2.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ async def test_TC_IDM_1_2(self):
8585
for i in endpoints:
8686
dut_ep_cluster_ids = wildcard_descriptor[i][Clusters.Descriptor][Clusters.Descriptor.Attributes.ServerList]
8787
unsupported_clusters[i] = list(set(all_cluster_ids) - set(dut_ep_cluster_ids))
88-
supported_clusters[i] = set(dut_ep_cluster_ids)
88+
# We only want to consider the set of standard clusters as "supported clusters", so use the intersection
89+
supported_clusters[i] = set(dut_ep_cluster_ids).intersection(set(all_cluster_ids))
8990

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

0 commit comments

Comments
 (0)