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 | |
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>
-rw-r--r-- | sfc/tests/functest/docker/Dockerfile | 18 | ||||
-rw-r--r-- | sfc/tests/functest/docker/testcases.yaml | 26 |
2 files changed, 44 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"] diff --git a/sfc/tests/functest/docker/testcases.yaml b/sfc/tests/functest/docker/testcases.yaml new file mode 100644 index 00000000..64b20461 --- /dev/null +++ b/sfc/tests/functest/docker/testcases.yaml @@ -0,0 +1,26 @@ +--- +tiers: + - + name: features + order: 2 + ci_loop: '(daily)|(weekly)' + description: >- + Test suites from feature projects + integrated in functest + testcases: + - + case_name: functest-odl-sfc + project_name: sfc + criteria: 100 + blocking: false + description: >- + Test suite for odl-sfc to test two chains with one SF and + one chain with two SFs + dependencies: + installer: '' + scenario: 'odl.*sfc' + run: + module: 'functest.core.feature' + class: 'BashFeature' + args: + cmd: 'run_sfc_tests.py' |