summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authordjkonro <konraddjimeli@gmail.com>2018-01-14 16:19:05 +0100
committerdjkonro <konraddjimeli@gmail.com>2018-01-24 10:06:08 +0100
commit2a36556281b2d95f6d24da9bd02baa611724faf1 (patch)
treeea123cf60c25368635ef88dd042469f4cd62c77a /docker
parentad86868d3740c6ec4a7da0a7a6126fc0385d6d1b (diff)
Add initial python class for kubernetes testing
JIRA: FUNCTEST-904 Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I9007e4e6f58118d1b09774d0acbb2a315437e09a Signed-off-by: djkonro <konraddjimeli@gmail.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile8
-rw-r--r--docker/testcases.yaml24
2 files changed, 31 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 4b9ddd4e..b8b504b0 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,5 +1,6 @@
FROM opnfv/functest-core
+ARG BRANCH=master
ARG K8S_TAG=v1.7.3
RUN apk --no-cache add --update make bash go \
@@ -9,4 +10,9 @@ RUN apk --no-cache add --update make bash go \
(cd /src/k8s.io/kubernetes && \
make kubectl ginkgo && \
make WHAT=test/e2e/e2e.test) && \
- rm -rf /src/k8s.io/kubernetes/.git
+ git clone https://gerrit.opnfv.org/gerrit/functest-kubernetes /src/functest-kubernetes && \
+ (cd /src/functest-kubernetes && git fetch origin $BRANCH && git checkout FETCH_HEAD) && \
+ pip install /src/functest-kubernetes && \
+ rm -rf /src/k8s.io/kubernetes/.git /src/functest-kubernetes
+COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
+CMD ["run_tests", "-t", "all"]
diff --git a/docker/testcases.yaml b/docker/testcases.yaml
new file mode 100644
index 00000000..2eed64c1
--- /dev/null
+++ b/docker/testcases.yaml
@@ -0,0 +1,24 @@
+---
+tiers:
+ -
+ name: k8s_e2e
+ order: 1
+ ci_loop: '(daily)|(weekly)'
+ description: >-
+ A set of e2e tests integrated from kubernetes project.
+ testcases:
+ -
+ case_name: k8s_smoke
+ project_name: functest
+ criteria: 100
+ blocking: false
+ description: >-
+ Smoke Tests a running Kubernetes cluster, which
+ validates the deployed cluster is accessible, and
+ at least satisfies minimal functional requirements.
+ dependencies:
+ installer: '(compass)|(joid)'
+ scenario: 'k8-*'
+ run:
+ module: 'functest_kubernetes.k8stest'
+ class: 'K8sSmokeTest'