From fc207050988e236c32b0736f44c6bf2883cea95f Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Wed, 5 Jun 2019 08:24:45 +0000 Subject: [PATCH] Add setting of placement microversion on tempest conf Tempest not support placement microversion setting so that test can call APIs with specific placement microversion. This commit adds the setting of placement API microversion on Tempest conf. Change-Id: Ie04aa993ec7a1495740d9267b076a40f4291e25e --- lib/tempest | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/tempest b/lib/tempest index 9f1b677eba..6afed0eaf1 100644 --- a/lib/tempest +++ b/lib/tempest @@ -513,6 +513,24 @@ function configure_tempest { iniset $TEMPEST_CONFIG volume storage_protocol "$TEMPEST_STORAGE_PROTOCOL" fi + # Placement Features + # Set the microversion range for placement. + # Setting [None, latest] range of microversion which allow Tempest to run all microversions tests. + # NOTE- To avoid microversion tests failure on stable branch, we need to change "tempest_placement_max_microversion" + # for stable branch on each release which should be changed from "latest" to max supported version of that release. + local tempest_placement_min_microversion=${TEMPEST_PLACEMENT_MIN_MICROVERSION:-None} + local tempest_placement_max_microversion=${TEMPEST_PLACEMENT_MAX_MICROVERSION:-"latest"} + if [ "$tempest_placement_min_microversion" == "None" ]; then + inicomment $TEMPEST_CONFIG placement min_microversion + else + iniset $TEMPEST_CONFIG placement min_microversion $tempest_placement_min_microversion + fi + if [ "$tempest_placement_max_microversion" == "None" ]; then + inicomment $TEMPEST_CONFIG placement max_microversion + else + iniset $TEMPEST_CONFIG placement max_microversion $tempest_placement_max_microversion + fi + # Baremetal if [ "$VIRT_DRIVER" = "ironic" ] ; then iniset $TEMPEST_CONFIG compute-feature-enabled change_password False