blob: 5d8d26ea2867dfe0f5cb7dc54785acf1d61037b3 [file] [log] [blame]
mrichomme9d6a6762018-05-16 09:06:11 +02001FROM opnfv/xtesting
2
3ARG OPENSTACK_TAG=stable/pike
4ARG OPNFV_TAG=master
5ARG ONAP_TAG=master
6
7ENV PYTHONPATH $PYTHONPATH:/src/testing-utils/eteutils
8
9COPY thirdparty-requirements.txt thirdparty-requirements.txt
10RUN apk --no-cache add --virtual .build-deps --update \
11 python-dev build-base linux-headers libffi-dev \
12 openssl-dev libjpeg-turbo-dev && \
13 git clone --depth 1 https://git.onap.org/testsuite -b $ONAP_TAG /var/opt/OpenECOMP_ETE && \
14 git clone --depth 1 https://git.onap.org/testsuite/properties -b $ONAP_TAG /share/config && \
15 git clone --depth 1 https://git.onap.org/testsuite/python-testing-utils -b $ONAP_TAG /src/testing-utils && \
16 pip install \
17 -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
18 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
19 -rthirdparty-requirements.txt \
20 -e /src/testing-utils && \
21 rm -r thirdparty-requirements.txt /src/testing-utils/.git /share/config/.git \
22 /var/opt/OpenECOMP_ETE/.git && \
23 apk del .build-deps
24
25COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
26CMD ["run_tests", "-t", "all"]