Add variable to set discovery timeout in tempest tests
Discovery can take longer based on which image we use for testing. This patch adds a variable to control the discovery timeout. Change-Id: I5654d4bf5131ab4c900f9dfd77358c5f8100b38a
This commit is contained in:
parent
2b67a18b51
commit
216de6692b
@ -101,6 +101,9 @@ if [[ "$IRONIC_ENABLED_INSPECT_INTERFACES" != *inspector* ]]; then
|
|||||||
IRONIC_ENABLED_INSPECT_INTERFACES="inspector,$IRONIC_ENABLED_INSPECT_INTERFACES"
|
IRONIC_ENABLED_INSPECT_INTERFACES="inspector,$IRONIC_ENABLED_INSPECT_INTERFACES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ironic Inspector tempest variables
|
||||||
|
IRONIC_INSPECTOR_TEMPEST_DISCOVERY_TIMEOUT=${IRONIC_INSPECTOR_TEMPEST_DISCOVERY_TIMEOUT:-}
|
||||||
|
|
||||||
### Utilities
|
### Utilities
|
||||||
|
|
||||||
function mkdir_chown_stack {
|
function mkdir_chown_stack {
|
||||||
@ -546,6 +549,9 @@ elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
|
|||||||
iniset $TEMPEST_CONFIG baremetal_introspection auto_discovery_default_driver fake-hardware
|
iniset $TEMPEST_CONFIG baremetal_introspection auto_discovery_default_driver fake-hardware
|
||||||
iniset $TEMPEST_CONFIG baremetal_introspection auto_discovery_target_driver ipmi
|
iniset $TEMPEST_CONFIG baremetal_introspection auto_discovery_target_driver ipmi
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${IRONIC_INSPECTOR_TEMPEST_DISCOVERY_TIMEOUT}" ]]; then
|
||||||
|
iniset $TEMPEST_CONFIG baremetal_introspection discovery_timeout $IRONIC_INSPECTOR_TEMPEST_DISCOVERY_TIMEOUT
|
||||||
|
fi
|
||||||
iniset $TEMPEST_CONFIG baremetal_introspection data_store $IRONIC_INSPECTOR_INTROSPECTION_DATA_STORE
|
iniset $TEMPEST_CONFIG baremetal_introspection data_store $IRONIC_INSPECTOR_INTROSPECTION_DATA_STORE
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user