Merge "Only disable Neutron tests when our Grenade is running"
This commit is contained in:
commit
0334c7e390
@ -12,3 +12,7 @@ devstack_localrc base enable_service ironic-inspector ironic-inspector-dhcp
|
|||||||
|
|
||||||
devstack_localrc target enable_plugin ironic-inspector https://github.com/openstack/ironic-inspector
|
devstack_localrc target enable_plugin ironic-inspector https://github.com/openstack/ironic-inspector
|
||||||
devstack_localrc target enable_service ironic-inspector ironic-inspector-dhcp
|
devstack_localrc target enable_service ironic-inspector ironic-inspector-dhcp
|
||||||
|
|
||||||
|
# NOTE(dtantsur): enable possible work arounds for grenade specifically.
|
||||||
|
# We can't use shell variables "thanks" to tempest using tox.
|
||||||
|
touch /tmp/ironic-inspector-grenade
|
||||||
|
@ -33,9 +33,10 @@ class InspectorTempestPlugin(plugins.TempestPlugin):
|
|||||||
conf.register_group(config.baremetal_introspection_group)
|
conf.register_group(config.baremetal_introspection_group)
|
||||||
conf.register_opts(config.BaremetalIntrospectionGroup,
|
conf.register_opts(config.BaremetalIntrospectionGroup,
|
||||||
group="baremetal_introspection")
|
group="baremetal_introspection")
|
||||||
# FIXME(dtantsur): pretend like Neutron does not exist due to random
|
if os.path.exists('/tmp/ironic-inspector-grenade'):
|
||||||
# failures, see https://bugs.launchpad.net/bugs/1621791.
|
# FIXME(dtantsur): pretend like Neutron does not exist due to
|
||||||
cfg.CONF.set_override('neutron', False, 'service_available')
|
# random failures, see https://bugs.launchpad.net/bugs/1621791.
|
||||||
|
cfg.CONF.set_override('neutron', False, 'service_available')
|
||||||
|
|
||||||
def get_opt_lists(self):
|
def get_opt_lists(self):
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user