Browse Source

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
changes/00/620000/2
ghanshyam 1 year ago
parent
commit
a725f64412
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      devstack/plugin.sh

+ 12
- 0
devstack/plugin.sh View File

@@ -277,6 +277,15 @@ function start_panko {
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
function stop_panko {
if is_service_enabled panko-api ; then
@@ -319,6 +328,9 @@ if is_service_enabled panko-api; then
init_panko
# Start the services
start_panko
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
echo_summary "Configuring Tempest for Panko"
configure_tempest_for_panko
fi

if [[ "$1" == "unstack" ]]; then

Loading…
Cancel
Save