From a725f644120f94f03c575915c70e0f44c7114687 Mon Sep 17 00:00:00 2001 From: ghanshyam Date: Mon, 26 Nov 2018 10:09:13 +0000 Subject: [PATCH] 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 --- devstack/plugin.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 0826abe3..5342d95a 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -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