diff options
author | djkonro <konraddjimeli@gmail.com> | 2018-01-14 16:19:05 +0100 |
---|---|---|
committer | djkonro <konraddjimeli@gmail.com> | 2018-01-24 10:06:08 +0100 |
commit | 2a36556281b2d95f6d24da9bd02baa611724faf1 (patch) | |
tree | ea123cf60c25368635ef88dd042469f4cd62c77a /docker/Dockerfile | |
parent | ad86868d3740c6ec4a7da0a7a6126fc0385d6d1b (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/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 8 |
1 files changed, 7 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"] |