Update Check Service Status 92/73392/4
authorKarthika Panneer <karthikapaneer97@gmail.com>
Mon, 25 Jun 2018 09:31:46 +0000 (02:31 -0700)
committerKarthika Panneer <karthikapaneer97@gmail.com>
Mon, 25 Jun 2018 10:34:50 +0000 (10:34 +0000)
The existing command to check service status
in the keyword fails for one node setup.

Change-Id: Ib734a3a06c05913f32c55d0e668219fdcecadad1
Signed-off-by: Karthika Panneer <karthikapaneer97@gmail.com>
csit/libraries/Genius.robot

index 6215c506415bbe31d5d9b7827ad3023fd333c2aa..7873967ece10236b35fff57cf38b12c066644e84 100644 (file)
@@ -96,7 +96,8 @@ check establishment
 Check Service Status
     [Arguments]    ${odl_ip}    ${system_ready_state}    ${service_state}    @{service_list}
     [Documentation]    Issues the karaf shell command showSvcStatus to verify the ready and service states are the same as the arguments passed
-    ${service_status_output}    Issue_Command_On_Karaf_Console    showSvcStatus -n ${odl_ip}    ${odl_ip}    8101
+    ${service_status_output} =    Run Keyword If    ${NUM_ODL_SYSTEM}>1    Issue_Command_On_Karaf_Console    showSvcStatus -n ${odl_ip}    ${odl_ip}    8101
+    ...    ELSE    Issue_Command_On_Karaf_Console    showSvcStatus    ${odl_ip}    8101
     Should Contain    ${service_status_output}    ${system_ready_state}
     : FOR    ${service}    IN    @{service_list}
     \    Should Match Regexp    ${service_status_output}    ${service} +: ${service_state}