aboutsummaryrefslogtreecommitdiffstats
path: root/healthcheck/docker
diff options
context:
space:
mode:
Diffstat (limited to 'healthcheck/docker')
-rw-r--r--healthcheck/docker/Dockerfile39
-rw-r--r--healthcheck/docker/testcases.yaml119
2 files changed, 158 insertions, 0 deletions
diff --git a/healthcheck/docker/Dockerfile b/healthcheck/docker/Dockerfile
new file mode 100644
index 0000000..d631129
--- /dev/null
+++ b/healthcheck/docker/Dockerfile
@@ -0,0 +1,39 @@
+FROM opnfv/xtesting
+
+ARG OPENSTACK_TAG=master
+ARG OPNFV_TAG=master
+ARG ONAP_TAG=master
+ARG PIP_TAG=18.0
+
+ENV PYTHONPATH $PYTHONPATH:/src/testing-utils/robotframework-onap/eteutils
+ENV TAG all
+
+COPY requirements.txt requirements.txt
+RUN apk --no-cache add --update openssl && \
+ 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/healthcheck/docker/testcases.yaml b/healthcheck/docker/testcases.yaml
new file mode 100644
index 0000000..d85cace
--- /dev/null
+++ b/healthcheck/docker/testcases.yaml
@@ -0,0 +1,119 @@
+---
+tiers:
+ -
+ name: healthcheck
+ order: 1
+ ci_loop: '(daily)|(weekly)!(gating)'
+ description: >-
+ Set of basic Functional tests to validate the ONAP installation.
+ testcases:
+ -
+ case_name: core
+ project_name: integration
+ criteria: 100
+ blocking: false
+ description: >-
+ This test case verifies the API of core ONAP components
+ aai, dmap, portal, sdc, sdnc, so, robot
+ run:
+ name: 'robotframework'
+ args:
+ suites:
+ - /var/opt/ONAP/robot/testsuites/health-check.robot
+ include:
+ - core
+ variablefile:
+ - '/share/config/robot_properties.py'
+ -
+ case_name: small
+ project_name: integration
+ criteria: 100
+ blocking: false
+ description: >-
+ This test case verifies the API of the components
+ aai, dmap, portal, sdc, sdnc, so, robot,
+ AAF, APPC, CLI, COnsul, ESR, Log, MSB, Multicloud, NBI, VID
+ run:
+ name: 'robotframework'
+ args:
+ suites:
+ - /var/opt/ONAP/robot/testsuites/health-check.robot
+ include:
+ - core
+ - small
+ variablefile:
+ - '/share/config/robot_properties.py'
+ -
+ case_name: medium
+ project_name: integration
+ criteria: 100
+ blocking: false
+ description: >-
+ This test case verifies the API of the components
+ aai, dmap, portal, sdc, sdnc, so, robot,
+ AAF, APPC, CLI, COnsul, ESR, Log, MSB, Multicloud, NBI, VID,
+ CLAMP, DCAE, OOF, POLICY, UUI, SNIRO
+ run:
+ name: 'robotframework'
+ args:
+ suites:
+ - /var/opt/ONAP/robot/testsuites/health-check.robot
+ include:
+ - core
+ - small
+ - medium
+ variablefile:
+ - '/share/config/robot_properties.py'
+ -
+ case_name: full
+ project_name: integration
+ criteria: 100
+ blocking: false
+ description: >-
+ This test case verifies all the healthcheck Robot tests
+ based on the default robot tests
+ run:
+ name: 'robotframework'
+ args:
+ suites:
+ - /var/opt/ONAP/robot/testsuites/health-check.robot
+ include:
+ - health
+ variablefile:
+ - '/share/config/robot_properties.py'
+ -
+ case_name: postinstall
+ project_name: integration
+ criteria: 100
+ blocking: false
+ description: >-
+ This test runs a set of test to verify some components at
+ the end of the installation: DMAAP Message Router ACL
+ Update Test and AAI Service Design Models Size Test
+ run:
+ name: 'robotframework'
+ args:
+ suites:
+ - /var/opt/ONAP/robot/testsuites/post-install-tests.robot
+ include:
+ - postinstall
+ variablefile:
+ - '/share/config/robot_properties.py'
+ -
+ case_name: healthdist
+ project_name: integration
+ criteria: 100
+ blocking: false
+ description: >-
+ This test case verifies that the vFW model is properly
+ distributed. At the end the csar file shall be downloaded
+ from the sdc
+ run:
+ name: 'robotframework'
+ args:
+ suites:
+ - /var/opt/ONAP/robot/testsuites/health-check.robot
+ include:
+ - healthdist
+ variablefile:
+ - '/share/config/robot_properties.py'