Merge "Adding port_admin_state_change option to config"

This commit is contained in:
Jenkins 2015-04-20 22:24:10 +00:00 committed by Gerrit Code Review
commit bf9f6117a0
3 changed files with 11 additions and 0 deletions

View File

@ -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]

View File

@ -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',

View File

@ -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):