Merge "Adding port_admin_state_change option to config"
This commit is contained in:
commit
bf9f6117a0
|
@ -802,6 +802,10 @@
|
|||
# attributes ipv6_ra_mode and ipv6_address_mode (boolean value)
|
||||
#ipv6_subnet_attributes = false
|
||||
|
||||
# Does the test environment support changing port admin state (boolean
|
||||
# value)
|
||||
#port_admin_state_change = true
|
||||
|
||||
|
||||
[object-storage]
|
||||
|
||||
|
|
|
@ -506,6 +506,10 @@ NetworkFeaturesGroup = [
|
|||
"the extended IPv6 attributes ipv6_ra_mode "
|
||||
"and ipv6_address_mode"
|
||||
),
|
||||
cfg.BoolOpt('port_admin_state_change',
|
||||
default=True,
|
||||
help="Does the test environment support changing"
|
||||
" port admin state"),
|
||||
]
|
||||
|
||||
messaging_group = cfg.OptGroup(name='messaging',
|
||||
|
|
|
@ -590,6 +590,9 @@ class TestNetworkBasicOps(manager.NetworkScenarioTest):
|
|||
@testtools.skipIf(CONF.baremetal.driver_enabled,
|
||||
'admin_state of instance ports cannot be altered '
|
||||
'for baremetal nodes')
|
||||
@testtools.skipUnless(CONF.network_feature_enabled.port_admin_state_change,
|
||||
"Changing a port's admin state is not supported "
|
||||
"by the test environment")
|
||||
@test.attr(type='smoke')
|
||||
@test.services('compute', 'network')
|
||||
def test_update_instance_port_admin_state(self):
|
||||
|
|
Loading…
Reference in New Issue