From 1f997a66f658ff11809f44f4630fc678eb091b83 Mon Sep 17 00:00:00 2001 From: mrichomme Date: Tue, 10 Dec 2019 08:47:28 +0100 Subject: Move integration xtesting Dockerfile to ONAP All the Dockerfiles and xtesting configurations were hosted in gitlab.com [1] The goal of this patch is to host these assets in ONAP A jenkins jjb shall be created to generated the docker and push them on the nexus (today the built-in registry of ONAP was used) These xtesting dockers are referencing integration categories [2] and integration use cases [3] These xtesting dockers shall also simplify the way to integrate new use cases in any CI chain (jenkins or gitlab-ci based) [1]: https://gitlab.com/Orange-OpenSource/lfn/onap/integration/xtesting [2]: https://wiki.onap.org/pages/viewpage.action?pageId=71835330 [3]: http://testresults.opnfv.org/onap/api/v1/projects/integration/cases Issue-ID: INT-1366 Signed-off-by: mrichomme Change-Id: Iba0fc0b0415731a7a81ba0225a70ae16391dd129 Signed-off-by: mrichomme --- smoke-usecases-pythonsdk/docker/Dockerfile | 16 ++++++++++ smoke-usecases-pythonsdk/docker/testcases.yaml | 42 ++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 smoke-usecases-pythonsdk/docker/Dockerfile create mode 100644 smoke-usecases-pythonsdk/docker/testcases.yaml (limited to 'smoke-usecases-pythonsdk/docker') diff --git a/smoke-usecases-pythonsdk/docker/Dockerfile b/smoke-usecases-pythonsdk/docker/Dockerfile new file mode 100644 index 0000000..ec7acf0 --- /dev/null +++ b/smoke-usecases-pythonsdk/docker/Dockerfile @@ -0,0 +1,16 @@ +FROM opnfv/xtesting + +MAINTAINER Morgan Richomme + +ARG ONAP_TESTS_TAG=master + +RUN apk add --no-cache python3 git bash && \ + apk add --no-cache --virtual .build-deps libffi-dev python3-dev \ + gcc openssl-dev linux-headers musl-dev && \ + pip3 install --upgrade pip && \ + pip3 install --no-cache-dir \ + git+https://gitlab.com/Orange-OpenSource/onap-tests.git@$ONAP_TESTS_TAG#egg=onap_tests && \ + apk del .build-deps + +COPY docker/testcases.yaml /usr/lib/python3.7/site-packages/xtesting/ci/testcases.yaml +CMD ["run_tests", "-t", "all"] diff --git a/smoke-usecases-pythonsdk/docker/testcases.yaml b/smoke-usecases-pythonsdk/docker/testcases.yaml new file mode 100644 index 0000000..d492c53 --- /dev/null +++ b/smoke-usecases-pythonsdk/docker/testcases.yaml @@ -0,0 +1,42 @@ +--- +tiers: + - + name: smoke-usecases + order: 1 + description: >- + ONAP E2E tests + testcases: + - + case_name: basic_vm + project_name: integration + enabled: true + criteria: 100 + blocking: false + description: >- + Onboard and instantiate a simple ubuntu16.04 VM VNF + dependencies: + run: + name: basic_vm + - + case_name: freeradius_nbi + project_name: integration + enabled: true + criteria: 100 + blocking: true + description: >- + Onboard and instantiate a simple freeradius VM VNF + through NBI + dependencies: + run: + name: freeradius_nbi + - + case_name: clearwater_ims + project_name: integration + enabled: true + criteria: 100 + blocking: false + description: >- + Onboard and instantiate a clearwater IMS VNF + dependencies: + run: + name: clearwater_ims -- cgit 1.2.3-korg