1 FROM opnfv/functest-core
4 ARG OPENSTACK_TAG=stable/queens
5 ARG ODL_TAG=85448c9d97b89989488e675b29b38ac42d8674e4
7 COPY thirdparty-requirements.txt thirdparty-requirements.txt
8 RUN wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG | \
9 sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/git.openstack.org\\/openstack\\/tempest@\\1#egg=tempest/ \
10 > upper-constraints.txt && \
11 wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH | \
12 sed -E /#egg=functest/d > upper-constraints.opnfv.txt && \
13 pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
14 -rthirdparty-requirements.txt && \
15 git init /src/odl_test && \
16 (cd /src/odl_test && \
17 git fetch --tags https://git.opendaylight.org/gerrit/p/integration/test.git $ODL_TAG && \
18 git checkout FETCH_HEAD) && \
19 rm -r /src/odl_test/.git thirdparty-requirements.txt upper-constraints.txt \
20 upper-constraints.opnfv.txt
21 COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
22 CMD ["run_tests", "-t", "all"]