Switch to Functest Hunter 35/62435/3
authorFatih Degirmenci <fdegir@gmail.com>
Mon, 17 Sep 2018 08:59:26 +0000 (10:59 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Tue, 18 Sep 2018 12:26:15 +0000 (14:26 +0200)
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>
xci/config/env-vars
xci/playbooks/roles/prepare-tests/templates/prepare-tests.sh.j2
xci/playbooks/roles/prepare-tests/templates/run-functest.sh.j2

index 7ab7e2b..0458f31 100755 (executable)
@@ -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"}
index afc1cbb..1b779cb 100644 (file)
@@ -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
index acd19d1..b4cf46d 100644 (file)
@@ -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  \