Add config option for XML support in Networking
The first step to removing XML in Kilo is making XML testing optional. Stable test configs will need to be updated to enable this feature to prevent regressions in stable releases. Change-Id: I30b9565e01c623814a9c503c4b1c26642afed878
This commit is contained in:
parent
4b94535ed0
commit
6e07c0daf4
@ -802,6 +802,9 @@
|
||||
# attributes ipv6_ra_mode and ipv6_address_mode (boolean value)
|
||||
#ipv6_subnet_attributes = false
|
||||
|
||||
# If false, skip all network api tests with xml (boolean value)
|
||||
#xml_api = false
|
||||
|
||||
|
||||
[object-storage]
|
||||
|
||||
|
@ -62,6 +62,9 @@ class BaseNetworkTest(tempest.test.BaseTestCase):
|
||||
super(BaseNetworkTest, cls).resource_setup()
|
||||
if not CONF.service_available.neutron:
|
||||
raise cls.skipException("Neutron support is required")
|
||||
if getattr(cls, '_interface', None) == 'xml':
|
||||
if not CONF.network_feature_enabled.xml_api:
|
||||
raise cls.skipException('XML API is not enabled')
|
||||
|
||||
os = cls.get_client_manager()
|
||||
|
||||
|
@ -481,7 +481,10 @@ NetworkFeaturesGroup = [
|
||||
help="Allow the execution of IPv6 subnet tests that use "
|
||||
"the extended IPv6 attributes ipv6_ra_mode "
|
||||
"and ipv6_address_mode"
|
||||
)
|
||||
),
|
||||
cfg.BoolOpt('xml_api',
|
||||
default=False,
|
||||
help='If false, skip all network api tests with xml')
|
||||
]
|
||||
|
||||
messaging_group = cfg.OptGroup(name='messaging',
|
||||
|
Loading…
x
Reference in New Issue
Block a user