From dc707acb1e679abae1e0fea8438833dadd3c5d98 Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Mon, 17 Sep 2018 10:59:26 +0200 Subject: Switch to Functest Hunter A new var FUNCTEST_VERSION is introduced to jobs to control the version to use for Functest. Change-Id: Ice7aa9f910db2353ce3d0bef198bef9fa3efe9fd Signed-off-by: Fatih Degirmenci --- xci/config/env-vars | 1 + xci/playbooks/roles/prepare-tests/templates/prepare-tests.sh.j2 | 2 +- xci/playbooks/roles/prepare-tests/templates/run-functest.sh.j2 | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xci/config/env-vars b/xci/config/env-vars index 7ab7e2ba..0458f311 100755 --- a/xci/config/env-vars +++ b/xci/config/env-vars @@ -28,6 +28,7 @@ export XCI_PLAYBOOKS=${XCI_PATH}/xci/playbooks # Functest parameters export FUNCTEST_MODE=${FUNCTEST_MODE:-"tier"} export FUNCTEST_SUITE_NAME=${FUNCTEST_SUITE_NAME:-"healthcheck"} +export FUNCTEST_VERSION=${FUNCTEST_VERSION:-"latest"} # CI paremeters export CI_LOOP=${CI_LOOP:-"daily"} diff --git a/xci/playbooks/roles/prepare-tests/templates/prepare-tests.sh.j2 b/xci/playbooks/roles/prepare-tests/templates/prepare-tests.sh.j2 index afc1cbbe..1b779cb9 100644 --- a/xci/playbooks/roles/prepare-tests/templates/prepare-tests.sh.j2 +++ b/xci/playbooks/roles/prepare-tests/templates/prepare-tests.sh.j2 @@ -1,7 +1,7 @@ #!/bin/bash # Variables that we need to pass from XCI to testing -XCI_ENV=(INSTALLER_TYPE XCI_FLAVOR OPENSTACK_OSA_VERSION CI_LOOP BUILD_TAG NODE_NAME FUNCTEST_MODE FUNCTEST_SUITE_NAME) +XCI_ENV=(INSTALLER_TYPE XCI_FLAVOR OPENSTACK_OSA_VERSION CI_LOOP BUILD_TAG NODE_NAME FUNCTEST_MODE FUNCTEST_SUITE_NAME FUNCTEST_VERSION) # Extract variables from xci.env file if [[ -e /root/xci.env ]]; then diff --git a/xci/playbooks/roles/prepare-tests/templates/run-functest.sh.j2 b/xci/playbooks/roles/prepare-tests/templates/run-functest.sh.j2 index acd19d19..b4cf46d7 100644 --- a/xci/playbooks/roles/prepare-tests/templates/run-functest.sh.j2 +++ b/xci/playbooks/roles/prepare-tests/templates/run-functest.sh.j2 @@ -32,7 +32,7 @@ ls -al . && cd ~ echo "------------------------------------------------------" # docker image to use will be different for healthcheck and smoke test -DOCKER_IMAGE_NAME="ollivier/functest-${FUNCTEST_SUITE_NAME}" +DOCKER_IMAGE_NAME="opnfv/functest-${FUNCTEST_SUITE_NAME}:${FUNCTEST_VERSION}" sudo docker run --env-file env \ -v $(pwd)/openrc:/home/opnfv/functest/conf/env_file \ -- cgit 1.2.3-korg