diff options
author | 2019-12-10 08:47:28 +0100 | |
---|---|---|
committer | 2019-12-11 12:00:31 +0100 | |
commit | 1f997a66f658ff11809f44f4630fc678eb091b83 (patch) | |
tree | d29e08adfc2a5d193310d9dfc640175b0cf76fc6 /candidate-usecases | |
parent | 78b4cdd2c5aa084ee6b8cc0f768187be907ae68c (diff) |
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 <morgan.richomme@orange.com>
Change-Id: Iba0fc0b0415731a7a81ba0225a70ae16391dd129
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'candidate-usecases')
-rw-r--r-- | candidate-usecases/README.md | 26 | ||||
-rw-r--r-- | candidate-usecases/docker/Dockerfile | 16 | ||||
-rw-r--r-- | candidate-usecases/docker/testcases.yaml | 19 |
3 files changed, 61 insertions, 0 deletions
diff --git a/candidate-usecases/README.md b/candidate-usecases/README.md new file mode 100644 index 0000000..7f9e0b7 --- /dev/null +++ b/candidate-usecases/README.md @@ -0,0 +1,26 @@ +# Smoke use cases + +## Goal + +The goal of this docker is to run End to End use cases on ONAP in order to +check the solution. The testcases defined in this docker MUST be PASS to +validate the release. +The test cases can be run using Robot framework or onap-test (ONAP python SDK). +Bash, python and unit test drivers also exist. Additionnal drivers can be added +but the Dockerfile must be adapted accordingly. + +The tests are: + +* basic_vm: it onboard/distribute/deploy a single Ubuntu VM in ONAP using + VNF-API. The components used are SDC, SO, AA&I, SDNC. +* freeradius_nbi: based on basic_vm, the instantiation part is done through the + ONAP external API (NBI) module. +* clearwater_ims: it consists in a full deployment of an clearwater vIMS in ONAP. + +## Usage + +### Configuration + +### Command + +### Output diff --git a/candidate-usecases/docker/Dockerfile b/candidate-usecases/docker/Dockerfile new file mode 100644 index 0000000..ec7acf0 --- /dev/null +++ b/candidate-usecases/docker/Dockerfile @@ -0,0 +1,16 @@ +FROM opnfv/xtesting + +MAINTAINER Morgan Richomme <morgan.richomme@orange.com> + +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/candidate-usecases/docker/testcases.yaml b/candidate-usecases/docker/testcases.yaml new file mode 100644 index 0000000..ee1dcfd --- /dev/null +++ b/candidate-usecases/docker/testcases.yaml @@ -0,0 +1,19 @@ +--- +tiers: + - + name: candidate-usecases + order: 1 + description: >- + ONAP E2E tests + testcases: + - + case_name: 5g_son + project_name: integration + enabled: true + criteria: 100 + blocking: false + description: >- + Test 5G SON use case + dependencies: + run: + name: 5g_son |