[CPS] Add cps-temporal health check in CI 72/128772/10
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>
Thu, 21 Apr 2022 14:00:31 +0000 (15:00 +0100)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Tue, 26 Apr 2022 06:14:06 +0000 (06:14 +0000)
   Health check included for cps-temporal

Issue-ID: CPS-990
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I432126b42cf7f66e18c615633ac9d1843c2c2632

smoke-usecases-robot-py3/README.md
smoke-usecases-robot-py3/docker/Dockerfile
smoke-usecases-robot-py3/docker/testcases.yaml
tox.ini

index e5d4652..45ab8a2 100644 (file)
@@ -5,6 +5,8 @@
 The tests are:
 
 - cps-healthcheck
+- cps-temporal-healthcheck
+- cps-ncmp-dmi-plugin-healthcheck
 
 ## Usage
 
index 1caf0f5..ce12e90 100644 (file)
@@ -22,6 +22,10 @@ RUN apk --no-cache add --update openssl && \
         openssl-dev libjpeg-turbo-dev && \
     git clone --depth 1 https://github.com/onap/cps.git -b $ONAP_TAG /cps  && \
     find /cps -mindepth 1 -name csit -prune -o -exec rm -rf {} + && \
+    git clone --depth 1 https://github.com/onap/cps-cps-temporal.git -b $ONAP_TAG /cps-cps-temporal  && \
+    find /cps-cps-temporal -mindepth 1 -name csit -prune -o -exec rm -rf {} + && \
+    git clone --depth 1 https://github.com/onap/cps-ncmp-dmi-plugin.git -b $ONAP_TAG /cps-ncmp-dmi-plugin  && \
+    find /cps-ncmp-dmi-plugin -mindepth 1 -name csit -prune -o -exec rm -rf {} + && \
     pip install --upgrade pip && \
     pip install --no-cache-dir \
     pip install \
index 9992d97..33bf2f1 100644 (file)
@@ -153,7 +153,7 @@ tiers:
                 criteria: 100
                 blocking: true
                 description: >-
-                    Execute CPS healtcheck
+                    Execute CPS healthcheck
                 dependencies:
                 run:
                     name: 'robotframework'
@@ -165,3 +165,43 @@ tiers:
                         variable:
                             - CPS_CORE_HOST:cps-core
                             - CPS_CORE_MANAGEMENT_PORT:8081
+
+            -
+                case_name: cps-temporal-healthcheck
+                project_name: integration
+                enabled: true
+                criteria: 100
+                blocking: true
+                description: >-
+                    Execute CPS temporal healthcheck
+                dependencies:
+                run:
+                    name: 'robotframework'
+                    args:
+                        suites:
+                            - /cps-cps-temporal/csit/tests/actuator/actuator.robot
+                        variablefile:
+                            - '/share/config/robot_properties.py'
+                        variable:
+                            - CPS_TEMPORAL_HOST:cps-temporal
+                            - MANAGEMENT_PORT:8081
+
+            -
+                case_name: cps-dmi-plugin-healthcheck
+                project_name: integration
+                enabled: true
+                criteria: 100
+                blocking: true
+                description: >-
+                    Execute CPS ncmp dmi-plugin healthcheck
+                dependencies:
+                run:
+                    name: 'robotframework'
+                    args:
+                        suites:
+                            - /cps-cps-temporal/csit/tests/actuator/actuator.robot
+                        variablefile:
+                            - '/share/config/robot_properties.py'
+                        variable:
+                            - DMI_HOST:ncmp-dmi-plugin
+                            - DMI_MANAGEMENT_PORT:8081
diff --git a/tox.ini b/tox.ini
index cf8cf62..3b95001 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -37,7 +37,7 @@ commands =
 
 [testenv:md]
 commands_pre =
-    nodeenv -p --verbose
+    nodeenv -p --node=16.10.0 --verbose
     npm install --global remark-cli
     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.md' > /tmp/.coalist_md"
 commands =