summaryrefslogtreecommitdiffstats
path: root/xci
diff options
context:
space:
mode:
authorFatih Degirmenci <fdegir@gmail.com>2018-09-17 10:59:26 +0200
committerFatih Degirmenci <fdegir@gmail.com>2018-09-18 14:26:15 +0200
commitdc707acb1e679abae1e0fea8438833dadd3c5d98 (patch)
tree8de5214a1e1c61446e53d4662069a29af4ac9b57 /xci
parent84e736bed99882021d5aa74f84ac185bef2bcc89 (diff)
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 <fdegir@gmail.com>
Diffstat (limited to 'xci')
-rwxr-xr-xxci/config/env-vars1
-rw-r--r--xci/playbooks/roles/prepare-tests/templates/prepare-tests.sh.j22
-rw-r--r--xci/playbooks/roles/prepare-tests/templates/run-functest.sh.j22
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 \