ENERGY_RECORDER_API_URL=http://energy.opnfv.fr/resources
DOCKER_TAG=${DOCKER_TAG:-$([[ ${BRANCH##*/} == "master" ]] && echo "latest" || echo ${BRANCH##*/})}
-check_os_deployment() {
- FUNCTEST_IMAGE=${REPO}/functest-healthcheck:${DOCKER_TAG}
- echo "Functest: Pulling Functest Docker image ${FUNCTEST_IMAGE} ..."
- docker pull ${FUNCTEST_IMAGE}>/dev/null
- cmd="docker run --rm ${volumes} ${FUNCTEST_IMAGE} check_deployment"
- echo "Checking deployment, CMD: ${cmd}"
- eval ${cmd}
- ret_value=$?
- if [ ${ret_value} != 0 ]; then
- echo "ERROR: Problem while checking OpenStack deployment."
- exit 1
- else
- echo "OpenStack deployment OK."
- fi
-
-}
-
run_tiers() {
tiers=$1
cmd_opt="run_tests -r -t all"
}
-[[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
+redirect="/dev/stdout"
FUNCTEST_DIR=/home/opnfv/functest
DEPLOY_TYPE=baremetal
[[ $BUILD_TAG =~ "virtual" ]] && DEPLOY_TYPE=virt
image-feature-enabled:
api_v2: true
api_v1: false
+object-storage:
+ operator_role: SwiftOperator
volume:
storage_protocol: ceph
volume-feature-enabled:
EOF
;;
esac
+case ${BRANCH} in
+master)
+ cat << EOF >> "${tempest_conf_yaml}"
+compute:
+ max_microversion: latest
+EOF
+ ;;
+stable/hunter)
+ cat << EOF >> "${tempest_conf_yaml}"
+compute:
+ max_microversion: 2.65
+EOF
+ ;;
+stable/gambia)
+ cat << EOF >> "${tempest_conf_yaml}"
+compute:
+ max_microversion: 2.60
+EOF
+ ;;
+esac
echo "tempest_conf.yaml:" && cat "${tempest_conf_yaml}"
volumes="${images_vol} ${results_vol} ${sshkey_vol} ${libvirt_vol} \
else
tests=()
skip_tests=0
- if [ ${DEPLOY_TYPE} == 'baremetal' ] && [ "${HOST_ARCH}" != "aarch64" ]; then
- if [[ ${BRANCH} == "stable/fraser" ]]; then
- tiers=(healthcheck smoke features vnf parser)
- tests=(tempest_full_parallel)
- elif [[ ${BRANCH} == "stable/gambia" ]]; then
+ if [ "${HOST_ARCH}" != "aarch64" ]; then
+ if [[ ${BRANCH} == "stable/gambia" ]]; then
tiers=(healthcheck smoke benchmarking features vnf components)
else
tiers=(healthcheck smoke benchmarking features vnf)
fi
else
- if [[ ${BRANCH} == "stable/fraser" ]]; then
- tiers=(healthcheck smoke features parser)
- tests=(tempest_full_parallel)
- elif [[ ${BRANCH} == "stable/gambia" ]]; then
- tiers=(healthcheck smoke benchmarking features vnf components)
+ if [[ ${BRANCH} == "stable/gambia" ]]; then
+ tiers=(healthcheck smoke benchmarking features components)
else
tiers=(healthcheck smoke benchmarking features)
fi