diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 8 | ||||
-rw-r--r-- | docker/testcases.yaml | 24 |
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' |