1 FROM opnfv/functest-core
4 ARG OPENSTACK_TAG=master
5 ARG ODL_TAG=85448c9d97b89989488e675b29b38ac42d8674e4
6 ARG TEMPEST_HORIZON_TAG=master
8 COPY thirdparty-requirements.txt thirdparty-requirements.txt
9 RUN apk --no-cache add --virtual .build-deps --update \
10 python3-dev build-base linux-headers libffi-dev openssl-dev && \
11 wget -q -O- https://opendev.org/openstack/requirements/raw/branch/$OPENSTACK_TAG/upper-constraints.txt > upper-constraints.txt && \
12 sed -i -E /^tempest==+.*$/d upper-constraints.txt && \
13 case $(uname -m) in aarch*|arm*) sed -i -E /^PyNaCl=/d upper-constraints.txt ;; esac && \
14 wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH > upper-constraints.opnfv.txt && \
15 sed -i -E /#egg=functest/d upper-constraints.opnfv.txt && \
16 git init /src/tempest-horizon && \
17 (cd /src/tempest-horizon && \
18 git fetch --tags https://opendev.org/openstack/tempest-horizon.git $TEMPEST_HORIZON_TAG && \
19 git checkout FETCH_HEAD) && \
20 update-requirements -s --source /src/openstack-requirements /src/tempest-horizon/ && \
21 pip3 install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
22 /src/tempest-horizon -rthirdparty-requirements.txt && \
23 git init /src/odl_test && \
24 (cd /src/odl_test && \
25 git fetch --tags https://git.opendaylight.org/gerrit/integration/test $ODL_TAG && \
26 git checkout FETCH_HEAD) && \
27 rm -r /src/odl_test/.git /src/tempest-horizon/ thirdparty-requirements.txt \
28 upper-constraints.txt upper-constraints.opnfv.txt && \
30 COPY testcases.yaml /usr/lib/python3.7/site-packages/xtesting/ci/testcases.yaml
31 CMD ["run_tests", "-t", "all"]