[INFRA] Add a test to check the status of one chart 07/115007/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 17 Nov 2020 16:32:57 +0000 (17:32 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 17 Nov 2020 16:58:51 +0000 (16:58 +0000)
This new test, which is triggered only when we're on a component (such
as SO, CLAMP, ...) gating, retrieves all the states of deployment,
stafulsets, PVCs, ...

If all these objects are OK, it's set as successful.

Issue-ID: SO-3391
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I1bda3f135b3964665e7a1ff02bb617f5205d7b9c

infra-healthcheck/docker/testcases.yaml
infra-healthcheck/requirements.txt
infra-healthcheck/setup.cfg
infra-healthcheck/upper-constraints.txt

index ba035c2..3710901 100644 (file)
@@ -48,3 +48,16 @@ tiers:
                     Check certificates associated with node ports
                 run:
                     name: 'nodeport_check_certs'
+            -
+                case_name: onap-chart
+                project_name: integration
+                criteria: 100
+                blocking: false
+                description: >-
+                    This test case verifies that the ONAP pods are all Running
+                    and shows the pods, deployments, svc and events for a
+                    particular chart (SO, CLAMP, ...)
+                dependencies:
+                    - DEPLOY_ENVIRONMENT: 'gating_component'
+                run:
+                    name: 'onap_chart'
index cacbc00..1918e10 100644 (file)
@@ -13,3 +13,4 @@ kubernetes # Apache-2.0
 colorama # BSD
 kubernetes_status
 helm_onap_status
+chart_status
\ No newline at end of file
index f06fd45..7730106 100644 (file)
@@ -9,6 +9,7 @@ packages = infra_healthcheck
 xtesting.testcase =
     onap_k8s = kubernetes_status.status:Status
     onap_helm = helm_onap_status.status:Status
+    onap_chart = chart_status.status:Status
     nodeport_ingress = infra_healthcheck.k8stest:OnapSecurityNodePortsIngress
     nodeport_check_certs = infra_healthcheck.k8stest:OnapSecurityNodePortsCerts
 
index 527e677..62176f9 100644 (file)
@@ -1,3 +1,3 @@
 git+https://gitlab.com/Orange-OpenSource/lfn/tools/kubernetes-status.git#egg=kubernetes_status
 git+https://gitlab.com/Orange-OpenSource/lfn/tools/helm-onap-status.git#egg=helm_onap_status
-
+git+https://gitlab.com/Orange-OpenSource/lfn/tools/chart-status.git#egg=chart_status