summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/tests/functional')
-rw-r--r--openstackclient/tests/functional/network/v2/test_network_segment.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/openstackclient/tests/functional/network/v2/test_network_segment.py b/openstackclient/tests/functional/network/v2/test_network_segment.py
index 8940273f..6ffb11cf 100644
--- a/openstackclient/tests/functional/network/v2/test_network_segment.py
+++ b/openstackclient/tests/functional/network/v2/test_network_segment.py
@@ -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(