Fixed test related to tag-ext

according to bug https://bugs.launchpad.net/neutron/+bug/1682775
tag-ext renamed to standard-attr-tag, after Stein release.
Related-Bug: #1682775

Change-Id: I6f16829a2430e428d80138d25137bd8263f9c15e
This commit is contained in:
AbhishekJ 2020-01-23 15:10:39 +00:00 committed by Abhishek Jaiswal
parent a09c82023b
commit 61b9fd2310
1 changed files with 10 additions and 5 deletions

View File

@ -103,9 +103,10 @@ class TagsExtTest(base.BaseNetworkTest):
List tags.
Remove a tag.
v2.0 of the Neutron API is assumed. The tag-ext extension allows users to
set tags on the following resources: subnets, ports, routers and
subnetpools.
v2.0 of the Neutron API is assumed. The tag-ext or standard-attr-tag
extension allows users to set tags on the following resources: subnets,
ports, routers and subnetpools.
from stein release the tag-ext has been renamed to standard-attr-tag
"""
# NOTE(felipemonteiro): The supported resource names are plural. Use
@ -115,8 +116,12 @@ class TagsExtTest(base.BaseNetworkTest):
@classmethod
def skip_checks(cls):
super(TagsExtTest, cls).skip_checks()
if not utils.is_extension_enabled('tag-ext', 'network'):
msg = "tag-ext extension not enabled."
# Added condition to support backward compatiblity since
# tag-ext has been renamed to standard-attr-tag
if not (utils.is_extension_enabled('tag-ext', 'network') or
utils.is_extension_enabled('standard-attr-tag', 'network')):
msg = ("neither tag-ext nor standard-attr-tag extensions "
"are enabled.")
raise cls.skipException(msg)
@classmethod