Skip to content

Commit fb68ccc

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix functional job failed"
2 parents 5a9fc91 + b776f70 commit fb68ccc

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

openstackclient/tests/functional/network/v2/test_network_segment.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,20 @@ def test_network_segment_set_show(self):
113113
self.openstack,
114114
'network segment delete ' + name
115115
)
116-
self.assertIsNone(
117-
json_output["description"],
118-
)
116+
117+
extension_output = json.loads(self.openstack(
118+
"extension list -f json "
119+
))
120+
ext_alias = [x["Alias"] for x in extension_output]
121+
if "standard-attr-segment" in ext_alias:
122+
self.assertEqual(
123+
'',
124+
json_output["description"],
125+
)
126+
else:
127+
self.assertIsNone(
128+
json_output["description"],
129+
)
119130

120131
new_description = 'new_description'
121132
cmd_output = self.openstack(

0 commit comments

Comments
 (0)