Merge "Fix functional job failed"

This commit is contained in:
Zuul 2018-04-23 04:51:18 +00:00 committed by Gerrit Code Review
commit fb68cccddd

View File

@ -113,9 +113,20 @@ class NetworkSegmentTests(common.NetworkTests):
self.openstack,
'network segment delete ' + name
)
self.assertIsNone(
json_output["description"],
)
extension_output = json.loads(self.openstack(
"extension list -f json "
))
ext_alias = [x["Alias"] for x in extension_output]
if "standard-attr-segment" in ext_alias:
self.assertEqual(
'',
json_output["description"],
)
else:
self.assertIsNone(
json_output["description"],
)
new_description = 'new_description'
cmd_output = self.openstack(