aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sfc/tests/functest/docker/Dockerfile18
-rw-r--r--sfc/tests/functest/docker/testcases.yaml26
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'