From b5e4dd95cd0d4c147aaaac90dd421560d809a67c Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Mon, 20 Nov 2017 12:10:24 +0100 Subject: Add the needed functest files As agreed with the functest project, we keep the Dockerfile and testscases.yaml in our repo Change-Id: Idb25d4bfff7e36b42e4981a138775f90b0fbe72e Signed-off-by: Manuel Buil --- sfc/tests/functest/docker/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sfc/tests/functest/docker/Dockerfile (limited to 'sfc/tests/functest/docker/Dockerfile') diff --git a/sfc/tests/functest/docker/Dockerfile b/sfc/tests/functest/docker/Dockerfile new file mode 100644 index 00000000..43f987c0 --- /dev/null +++ b/sfc/tests/functest/docker/Dockerfile @@ -0,0 +1,18 @@ +FROM opnfv/functest-core + +ARG REF=master +ARG OPNFV_TAG=master +ARG OPENSTACK_TAG=stable/pike + +RUN apk --no-cache add --update sshpass && \ + wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG | \ + sed /#egg=sfc/d \ + > upper-constraints.txt && \ + git clone https://gerrit.opnfv.org/gerrit/sfc /src/sfc && \ + (cd /src/sfc && git fetch origin $REF && git checkout FETCH_HEAD) && \ + pip install --no-cache-dir -cupper-constraints.txt \ + -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \ + /src/sfc && \ + rm -r upper-constraints.txt /src/sfc +COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml +CMD ["bash","-c","prepare_env start && run_tests -t all"] -- cgit 1.2.3-korg