Merge "Fix test calls for test_connectivity_fip_bmb1" into mcp/epoxy
diff --git a/ironic_tempest_plugin/tests/api/admin/test_shards.py b/ironic_tempest_plugin/tests/api/admin/test_shards.py
index 0638702..f122964 100644
--- a/ironic_tempest_plugin/tests/api/admin/test_shards.py
+++ b/ironic_tempest_plugin/tests/api/admin/test_shards.py
@@ -137,7 +137,7 @@
def setUp(self):
super(TestGetAllShards, self).setUp()
_, self.chassis = self.create_chassis()
- self.shards = ["shard1", "shard2", "shard3"]
+ self.shards = {"shard1", "shard2", "shard3"}
self.node_ids = []
for shard in self.shards:
_, node = self.create_node(self.chassis['uuid'], shard=shard)
@@ -146,6 +146,6 @@
@decorators.idempotent_id('fc786196-63c7-4e0d-bd14-3e478d4d1e3e')
def test_get_all_shards(self):
_, fetched_shards = self.client.get_shards()
- fetched_shards = [shard['name'] for shard in fetched_shards['shards']]
+ fetched_shards = {shard['name'] for shard in fetched_shards['shards']}
- self.assertItemsEqual(self.shards, fetched_shards)
+ self.assertTrue(self.shards.issubset(fetched_shards))