aboutsummaryrefslogtreecommitdiffstats
path: root/smoke-usecases-robot
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2019-12-10 08:47:28 +0100
committermrichomme <morgan.richomme@orange.com>2019-12-11 12:00:31 +0100
commit1f997a66f658ff11809f44f4630fc678eb091b83 (patch)
treed29e08adfc2a5d193310d9dfc640175b0cf76fc6 /smoke-usecases-robot
parent78b4cdd2c5aa084ee6b8cc0f768187be907ae68c (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 'smoke-usecases-robot')
-rw-r--r--smoke-usecases-robot/README.md16
-rw-r--r--smoke-usecases-robot/docker/Dockerfile39
-rw-r--r--smoke-usecases-robot/docker/testcases.yaml44
-rw-r--r--smoke-usecases-robot/requirements.txt15
-rwxr-xr-xsmoke-usecases-robot/scripts/cmd.sh3
5 files changed, 117 insertions, 0 deletions
diff --git a/smoke-usecases-robot/README.md b/smoke-usecases-robot/README.md
new file mode 100644
index 0000000..9578084
--- /dev/null
+++ b/smoke-usecases-robot/README.md
@@ -0,0 +1,16 @@
+# Smoke use cases
+
+## Goal
+
+The tests are:
+
+* pnf_registrate
+* vfw_cl
+
+## Usage
+
+### Configuration
+
+### Command
+
+### Output
diff --git a/smoke-usecases-robot/docker/Dockerfile b/smoke-usecases-robot/docker/Dockerfile
new file mode 100644
index 0000000..d470cf1
--- /dev/null
+++ b/smoke-usecases-robot/docker/Dockerfile
@@ -0,0 +1,39 @@
+FROM opnfv/xtesting
+
+MAINTAINER Morgan Richomme <morgan.richomme@orange.com>
+
+ARG OPENSTACK_TAG=master
+ARG OPNFV_TAG=master
+ARG ONAP_TAG=master
+ARG PIP_TAG=19.3
+
+ENV TAG all
+
+COPY requirements.txt requirements.txt
+RUN apk --no-cache add --virtual .build-deps --update \
+ python3-dev build-base linux-headers libffi-dev \
+ openssl-dev libjpeg-turbo-dev && \
+ pip3 install --upgrade pip && \
+ pip3 install --no-cache-dir \
+ git+https://git.onap.org/testsuite/heatbridge.git@$ONAP_TAG#egg=heatbridge\&subdirectory=heatbridge \
+ git+https://git.onap.org/testsuite/python-testing-utils.git@$ONAP_TAG#egg=robotframework-onap\&subdirectory=robotframework-onap && \
+ git clone --depth 1 https://git.onap.org/testsuite -b $ONAP_TAG /var/opt/ONAP && \
+ git clone --depth 1 https://git.onap.org/demo -b $ONAP_TAG /src/demo && \
+ pip install \
+ -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
+ pip==$PIP_TAG && \
+ pip install \
+ -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
+ -rrequirements.txt && \
+ mkdir -p /var/opt/ONAP/demo/heat && cp -Rf /src/demo/heat/vFW /var/opt/ONAP/demo/heat/ && \
+ mkdir -p /demo/service_mapping && cp -Rf /src/demo/service_mapping /demo/ && \
+ mkdir -p /var/opt/ONAP/demo/preload_data && cp -Rf /src/demo/preload_data /var/opt/ONAP/demo/ && \
+ ln -s /usr/lib/python3.7/site-packages/vcpeutils /usr/lib/python3.7/site-packages/SoUtils && \
+ ln -s /usr/lib/python3.7/site-packages/heatbridge /usr/lib/python3.7/site-packages/HeatBridge && \
+ rm -r requirements.txt /var/opt/ONAP/.git /src/demo && \
+ cd / && ln -s /var/opt/ONAP/robot/ /robot && \
+ apk del .build-deps
+
+COPY docker/testcases.yaml /usr/lib/python3.7/site-packages/xtesting/ci/testcases.yaml
+COPY scripts/cmd.sh /
+CMD ["/cmd.sh"]
diff --git a/smoke-usecases-robot/docker/testcases.yaml b/smoke-usecases-robot/docker/testcases.yaml
new file mode 100644
index 0000000..969c9b7
--- /dev/null
+++ b/smoke-usecases-robot/docker/testcases.yaml
@@ -0,0 +1,44 @@
+---
+tiers:
+ -
+ name: smoke-usecases
+ order: 1
+ description: >-
+ ONAP E2E tests
+ testcases:
+ -
+ case_name: pnf-registrate
+ project_name: integration
+ enabled: true
+ criteria: 100
+ blocking: true
+ description: >-
+ Registrate PNF
+ dependencies:
+ run:
+ name: 'robotframework'
+ args:
+ suites:
+ - /var/opt/ONAP/robot/testsuites/pnf-registration.robot
+ include:
+ - pnf_registrate
+ variablefile:
+ - '/share/config/robot_properties.py'
+ -
+ case_name: vfw-cl
+ project_name: integration
+ enabled: true
+ criteria: 100
+ blocking: true
+ description: >-
+ vFW closed loop use case
+ dependencies:
+ run:
+ name: 'robotframework'
+ args:
+ suites:
+ - /var/opt/ONAP/robot/testsuites/vfwcl.robot
+ include:
+ - vfwc
+ variablefile:
+ - '/share/config/robot_properties.py'
diff --git a/smoke-usecases-robot/requirements.txt b/smoke-usecases-robot/requirements.txt
new file mode 100644
index 0000000..34e61d8
--- /dev/null
+++ b/smoke-usecases-robot/requirements.txt
@@ -0,0 +1,15 @@
+selenium
+robotframework-seleniumlibrary
+robotframework-archivelibrary
+robotframework-sshlibrary
+robotframework-httplibrary
+robotframework-ftplibrary
+requests>=2.20.0
+robotframework-selenium2library
+robotframework-databaselibrary
+robotframework-extendedselenium2library
+robotframework-requests
+deepdiff
+dnspython
+pyyaml>=4.2b1
+json5
diff --git a/smoke-usecases-robot/scripts/cmd.sh b/smoke-usecases-robot/scripts/cmd.sh
new file mode 100755
index 0000000..aeeffde
--- /dev/null
+++ b/smoke-usecases-robot/scripts/cmd.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+run_tests -t ${TAG} -r || true