aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarking
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 /benchmarking
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 'benchmarking')
-rw-r--r--benchmarking/README.md11
-rw-r--r--benchmarking/docker/Dockerfile33
-rw-r--r--benchmarking/docker/testcases.yaml26
-rw-r--r--benchmarking/requirements.txt14
-rwxr-xr-xbenchmarking/scripts/cmd.sh3
5 files changed, 87 insertions, 0 deletions
diff --git a/benchmarking/README.md b/benchmarking/README.md
new file mode 100644
index 0000000..3defbf8
--- /dev/null
+++ b/benchmarking/README.md
@@ -0,0 +1,11 @@
+# Security
+
+## Goal
+
+## Usage
+
+### Configuration
+
+### Command
+
+### Output
diff --git a/benchmarking/docker/Dockerfile b/benchmarking/docker/Dockerfile
new file mode 100644
index 0000000..1f2d1cf
--- /dev/null
+++ b/benchmarking/docker/Dockerfile
@@ -0,0 +1,33 @@
+FROM opnfv/xtesting
+ARG OPENSTACK_TAG=master
+ARG OPNFV_TAG=master
+ARG ONAP_TAG=master
+ARG PIP_TAG=19.3
+
+ENV PYTHONPATH $PYTHONPATH:/src/testing-utils/robotframework-onap/eteutils
+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 && \
+ git clone --depth 1 https://git.onap.org/testsuite -b $ONAP_TAG /var/opt/ONAP && \
+ git clone --depth 1 https://git.onap.org/testsuite/python-testing-utils -b $ONAP_TAG /src/testing-utils && \
+ git clone --depth 1 https://git.onap.org/demo -b $ONAP_TAG /src/demo && \
+ pip3 install \
+ -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
+ pip==$PIP_TAG && \
+ pip3 install \
+ -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
+ -rrequirements.txt \
+ -e /src/testing-utils/robotframework-onap && \
+ 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/ && \
+ rm -r requirements.txt /src/testing-utils/.git /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.6/site-packages/xtesting/ci/testcases.yaml
+COPY scripts/cmd.sh /
+CMD ["/cmd.sh"]
diff --git a/benchmarking/docker/testcases.yaml b/benchmarking/docker/testcases.yaml
new file mode 100644
index 0000000..df165e8
--- /dev/null
+++ b/benchmarking/docker/testcases.yaml
@@ -0,0 +1,26 @@
+---
+tiers:
+ -
+ name: benchmarking
+ order: 1
+ ci_loop: 'weekly'
+ description: >-
+ Set of basic Functional benchmarking tests.
+ testcases:
+ -
+ case_name: stability72hr
+ project_name: integration
+ criteria: 100
+ blocking: false
+ description: >-
+ run stability 72h test.
+ run:
+ name: 'robotframework'
+ args:
+ suites:
+ - /var/opt/ONAP/robot/testsuites/vnf-orchestration.robot
+ include:
+ - stability72hr
+ variablefile:
+ - '/share/config/robot_properties.py'
+ - '/share/config/integration_preload_parameters.py'
diff --git a/benchmarking/requirements.txt b/benchmarking/requirements.txt
new file mode 100644
index 0000000..434e5e3
--- /dev/null
+++ b/benchmarking/requirements.txt
@@ -0,0 +1,14 @@
+selenium
+requests>=2.20.0
+robotframework-selenium2library
+robotframework-databaselibrary
+robotframework-extendedselenium2library
+robotframework-requests
+robotframework-sshlibrary
+robotframework-ftplibrary
+deepdiff
+dnspython
+robotframework-httplibrary
+robotframework-archivelibrary
+pyyaml>=4.2b1
+json5
diff --git a/benchmarking/scripts/cmd.sh b/benchmarking/scripts/cmd.sh
new file mode 100755
index 0000000..aeeffde
--- /dev/null
+++ b/benchmarking/scripts/cmd.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+run_tests -t ${TAG} -r || true