From 633768a4845eb0b59f7621a1fc98beeebfb43947 Mon Sep 17 00:00:00 2001 From: Andreas Geissler Date: Mon, 24 Oct 2022 13:16:29 +0200 Subject: [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 --- robot/resources/dcaemod_interface.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'robot') 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 -- cgit 1.2.3-korg