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,6 +113,17 @@ class NetworkSegmentTests(common.NetworkTests):
self.openstack,
'network segment delete ' + name
)
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"],
)