Merge "Protect vs unordered results in TrunkTestInheritJSONBase"

This commit is contained in:
Zuul 2020-04-04 00:41:02 +00:00 committed by Gerrit Code Review
commit 63e2fe2eda

View File

@ -235,7 +235,9 @@ class TrunkTestInheritJSONBase(TrunkTestJSONBase):
'segmentation_id': segmentation_id2}]
# Validate that subport got segmentation details from the network
self.assertEqual(expected_subports, trunk['sub_ports'])
self.assertEqual(
sorted(expected_subports, key=lambda subport: subport['port_id']),
sorted(trunk['sub_ports'], key=lambda subport: subport['port_id']))
class TrunkTestMtusJSONBase(TrunkTestJSONBase):