aboutsummaryrefslogtreecommitdiffstats
path: root/smoke-usecases-pythonsdk
diff options
context:
space:
mode:
Diffstat (limited to 'smoke-usecases-pythonsdk')
-rw-r--r--smoke-usecases-pythonsdk/README.md26
-rw-r--r--smoke-usecases-pythonsdk/docker/Dockerfile16
-rw-r--r--smoke-usecases-pythonsdk/docker/testcases.yaml42
-rw-r--r--smoke-usecases-pythonsdk/requirements.txt10
4 files changed, 94 insertions, 0 deletions
diff --git a/smoke-usecases-pythonsdk/README.md b/smoke-usecases-pythonsdk/README.md
new file mode 100644
index 0000000..7f9e0b7
--- /dev/null
+++ b/smoke-usecases-pythonsdk/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/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 <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/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
diff --git a/smoke-usecases-pythonsdk/requirements.txt b/smoke-usecases-pythonsdk/requirements.txt
new file mode 100644
index 0000000..c14cf0d
--- /dev/null
+++ b/smoke-usecases-pythonsdk/requirements.txt
@@ -0,0 +1,10 @@
+# The order of packages is significant, because pip processes them in the order
+# of appearance. Changing the order has an impact on the overall integration
+# process, which may cause wedges in the gate later.
+requests[socks]
+urllib3<=1.24.1
+pyyaml
+xtesting
+oyaml
+openstacksdk
+simplejson