[ROBOT] Fix the DCAEMOD testcase for ServiceMesh 54/131754/1
authorAndreas Geissler <andreas-geissler@telekom.de>
Mon, 24 Oct 2022 11:16:29 +0000 (13:16 +0200)
committerAndreas Geissler <andreas-geissler@telekom.de>
Mon, 24 Oct 2022 11:21:40 +0000 (13:21 +0200)
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 <andreas-geissler@telekom.de>
Change-Id: I8e22a5b05b51e5f682dd76c5c362588099132437

robot/resources/dcaemod_interface.robot

index d6d6e36..ae7e20c 100644 (file)
@@ -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