Set Tempest's service_availability setting for panko
Tempest's service_availability config option includes all the service availability which is further used by tests to take decision of skip or run the test. For example, [service_availability].panko is true then, panko test will run or if [service_availability].panko is false then, all panko related tests either in telemetry tempest plugin or any other plugins will be skipped. This commit add the setting of panko service[1] on panko devstack plugin. Closes-Bug: #1743688 [1] https://github.com/openstack/telemetry-tempest-plugin/blob/master/telemetry_tempest_plugin/config.py#L23 Change-Id: I57e182850fbf7fcab5df75c05f0ef95a8c23e923
This commit is contained in:
parent
f7f87fc969
commit
a725f64412
|
@ -277,6 +277,15 @@ function start_panko {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# configure_tempest_for_panko()
|
||||||
|
# NOTE (gmann): Configure all the Tempest setting for Panko service in
|
||||||
|
# this function.
|
||||||
|
function configure_tempest_for_panko {
|
||||||
|
if is_service_enabled tempest; then
|
||||||
|
iniset $TEMPEST_CONFIG service_available panko True
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# stop_panko() - Stop running processes
|
# stop_panko() - Stop running processes
|
||||||
function stop_panko {
|
function stop_panko {
|
||||||
if is_service_enabled panko-api ; then
|
if is_service_enabled panko-api ; then
|
||||||
|
@ -319,6 +328,9 @@ if is_service_enabled panko-api; then
|
||||||
init_panko
|
init_panko
|
||||||
# Start the services
|
# Start the services
|
||||||
start_panko
|
start_panko
|
||||||
|
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
|
||||||
|
echo_summary "Configuring Tempest for Panko"
|
||||||
|
configure_tempest_for_panko
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "unstack" ]]; then
|
if [[ "$1" == "unstack" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue