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 ++++++++++++++++++ sfc/tests/functest/docker/testcases.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 sfc/tests/functest/docker/Dockerfile create mode 100644 sfc/tests/functest/docker/testcases.yaml 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' -- cgit 1.2.3-korg