From: Andreas Geissler Date: Mon, 24 Oct 2022 11:16:29 +0000 (+0200) Subject: [ROBOT] Fix the DCAEMOD testcase for ServiceMesh X-Git-Tag: 1.11.0~2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F131754%2F1;p=testsuite.git [ROBOT] Fix the DCAEMOD testcase for ServiceMesh In SM there will be 2 containers running instead of 1 Therefor the readiness of the deployment should be checked instead of the number of running containers Issue-ID: INT-2160 Signed-off-by: Andreas Geissler Change-Id: I8e22a5b05b51e5f682dd76c5c362588099132437 --- diff --git a/robot/resources/dcaemod_interface.robot b/robot/resources/dcaemod_interface.robot index d6d6e369..ae7e20c3 100644 --- a/robot/resources/dcaemod_interface.robot +++ b/robot/resources/dcaemod_interface.robot @@ -240,7 +240,7 @@ Deploy Applictaion Check NGINX Applictaion [Arguments] ${compSpecName} - ${check_command}= Set Variable kubectl get pods -n onap | grep ${compSpecName} | grep Running | grep 1/1 + ${check_command}= Set Variable kubectl get deployment -n onap | grep ${compSpecName} | grep 1/1 ${check_command_command_output}= Run And Return Rc And Output ${check_command} Log ${check_command_command_output[1]} Should Be Equal As Integers ${check_command_command_output[0]} 0 @@ -307,4 +307,4 @@ Delete Process Group And Deployment Run Keyword If ${IS_PROCESS_GROUP_SET} Run Keywords Delete Process Group ${PROCESS_GROUP_ID} ... AND Set Suite Variable ${IS_PROCESS_GROUP_SET} False Run Keyword If ${IS_SERVICE_DEPLOYED} Run Keywords Undeploy Application ${CHART_NAME} - ... AND Set Suite Variable ${IS_SERVICE_DEPLOYED} False \ No newline at end of file + ... AND Set Suite Variable ${IS_SERVICE_DEPLOYED} False