mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
Fix functional job failed
After Neutron patch I3c93818002c2d7753454547231ba08544b6fa1c0 merged, the default value of segment description is an empty string. This patch will determine whether the Neuron shim extension standard-attr-segment supported. Change-Id: I68a3c018f03e5bb53bd637844ac9d7742a765db0
This commit is contained in:
parent
17448ad359
commit
b776f7099a
1 changed files with 14 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue