diff options
author | Manuel Buil <mbuil@suse.com> | 2017-11-20 12:10:24 +0100 |
---|---|---|
committer | Manuel Buil <mbuil@suse.com> | 2017-11-20 15:07:16 +0100 |
commit | b5e4dd95cd0d4c147aaaac90dd421560d809a67c (patch) | |
tree | 5f595fb82ecafc74415465fb11f661817f5fd0f2 /sfc/tests/functest/docker/Dockerfile | |
parent | b8e171c36bdc86c6a45978285ef67cb6f3075b87 (diff) |
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 <mbuil@suse.com>
Diffstat (limited to 'sfc/tests/functest/docker/Dockerfile')
-rw-r--r-- | sfc/tests/functest/docker/Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
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"] |