From 2a36556281b2d95f6d24da9bd02baa611724faf1 Mon Sep 17 00:00:00 2001 From: djkonro Date: Sun, 14 Jan 2018 16:19:05 +0100 Subject: Add initial python class for kubernetes testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JIRA: FUNCTEST-904 Co-Authored-By: Cédric Ollivier Change-Id: I9007e4e6f58118d1b09774d0acbb2a315437e09a Signed-off-by: djkonro Signed-off-by: Cédric Ollivier --- docker/Dockerfile | 8 +++++++- docker/testcases.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 docker/testcases.yaml (limited to 'docker') 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' -- cgit 1.2.3-korg