From: Sylvain Desbureaux Date: Tue, 17 Nov 2020 16:32:57 +0000 (+0100) Subject: [INFRA] Add a test to check the status of one chart X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=530e630b89a4101d05c81960cda1db4da6fa0d42;p=integration%2Fxtesting.git [INFRA] Add a test to check the status of one chart 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 Change-Id: I1bda3f135b3964665e7a1ff02bb617f5205d7b9c --- diff --git a/infra-healthcheck/docker/testcases.yaml b/infra-healthcheck/docker/testcases.yaml index ba035c2..3710901 100644 --- a/infra-healthcheck/docker/testcases.yaml +++ b/infra-healthcheck/docker/testcases.yaml @@ -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' diff --git a/infra-healthcheck/requirements.txt b/infra-healthcheck/requirements.txt index cacbc00..1918e10 100644 --- a/infra-healthcheck/requirements.txt +++ b/infra-healthcheck/requirements.txt @@ -13,3 +13,4 @@ kubernetes # Apache-2.0 colorama # BSD kubernetes_status helm_onap_status +chart_status \ No newline at end of file diff --git a/infra-healthcheck/setup.cfg b/infra-healthcheck/setup.cfg index f06fd45..7730106 100644 --- a/infra-healthcheck/setup.cfg +++ b/infra-healthcheck/setup.cfg @@ -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 diff --git a/infra-healthcheck/upper-constraints.txt b/infra-healthcheck/upper-constraints.txt index 527e677..62176f9 100644 --- a/infra-healthcheck/upper-constraints.txt +++ b/infra-healthcheck/upper-constraints.txt @@ -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