aboutsummaryrefslogtreecommitdiffstats
path: root/test/xtesting/robot/Dockerfile
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2018-05-16 09:06:11 +0200
committermrichomme <morgan.richomme@orange.com>2018-05-16 09:08:50 +0200
commit9d6a6762ed7a2c5b7217c0eafaefee9dad49544f (patch)
tree6968e4fafc94c6d948fd19a657f15e098e62bcc7 /test/xtesting/robot/Dockerfile
parentd81a16d66cef5af95832113a4dd02fadb8da87e4 (diff)
Add xtesting to official ONAP repo
provides the files to build a xtesting-onap-repo docker file it inherits xtesting capabilities Issue-ID: INT-499 Change-Id: Ic30d1ef750e9a0ac25b1b1af49fb88d0ba8a64e8 Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'test/xtesting/robot/Dockerfile')
-rw-r--r--test/xtesting/robot/Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/xtesting/robot/Dockerfile b/test/xtesting/robot/Dockerfile
new file mode 100644
index 000000000..5d8d26ea2
--- /dev/null
+++ b/test/xtesting/robot/Dockerfile
@@ -0,0 +1,26 @@
+FROM opnfv/xtesting
+
+ARG OPENSTACK_TAG=stable/pike
+ARG OPNFV_TAG=master
+ARG ONAP_TAG=master
+
+ENV PYTHONPATH $PYTHONPATH:/src/testing-utils/eteutils
+
+COPY thirdparty-requirements.txt thirdparty-requirements.txt
+RUN apk --no-cache add --virtual .build-deps --update \
+ python-dev build-base linux-headers libffi-dev \
+ openssl-dev libjpeg-turbo-dev && \
+ git clone --depth 1 https://git.onap.org/testsuite -b $ONAP_TAG /var/opt/OpenECOMP_ETE && \
+ git clone --depth 1 https://git.onap.org/testsuite/properties -b $ONAP_TAG /share/config && \
+ git clone --depth 1 https://git.onap.org/testsuite/python-testing-utils -b $ONAP_TAG /src/testing-utils && \
+ pip install \
+ -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
+ -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
+ -rthirdparty-requirements.txt \
+ -e /src/testing-utils && \
+ rm -r thirdparty-requirements.txt /src/testing-utils/.git /share/config/.git \
+ /var/opt/OpenECOMP_ETE/.git && \
+ apk del .build-deps
+
+COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
+CMD ["run_tests", "-t", "all"]