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"
FUNCTEST_IMAGE=${REPO}/functest-healthcheck:${DOCKER_TAG} ;;
neutron-tempest-plugin-api|rally_sanity|refstack_defcore|tempest_full|tempest_scenario|patrole|snaps_smoke|neutron_trunk|networking-bgpvpn|networking-sfc|barbican)
FUNCTEST_IMAGE=${REPO}/functest-smoke:${DOCKER_TAG} ;;
- rally_jobs|shaker|vmtp)
+ rally_full|rally_jobs|shaker|vmtp)
FUNCTEST_IMAGE=${REPO}/functest-benchmarking:${DOCKER_TAG} ;;
- rally_full)
- FUNCTEST_IMAGE=${REPO}/functest-components:${DOCKER_TAG} ;;
cloudify|cloudify_ims|heat_ims|vyos_vrouter|juju_epc)
FUNCTEST_IMAGE=${REPO}/functest-vnf:${DOCKER_TAG} ;;
doctor-notification|bgpvpn|functest-odl-sfc|barometercollectd|fds|vgpu|stor4nfv_os)
}
-[[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
redirect="/dev/stdout"
FUNCTEST_DIR=/home/opnfv/functest
DEPLOY_TYPE=baremetal
echo "Functest: Start Docker and prepare environment"
echo "Functest: Download images that will be used by test cases"
-env
-pwd
-ls -l
images_dir="${HOME}/opnfv/functest/images"
download_script=${WORKSPACE}/functest/ci/download_images.sh
chmod +x ${download_script}
image-feature-enabled:
api_v2: true
api_v1: false
+object-storage:
+ operator_role: SwiftOperator
volume:
storage_protocol: ceph
volume-feature-enabled:
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)
- else
+ 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)
- else
+ if [[ ${BRANCH} == "stable/gambia" ]]; then
tiers=(healthcheck smoke benchmarking features components)
+ else
+ tiers=(healthcheck smoke benchmarking features)
fi
fi
run_tiers ${tiers}