X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric_robot_suite%2Fhelm%2Fnanobot%2Fconfigmap-src%2Fpublic%2Ftestsuites%2Fhealth-check.robot;fp=ric_robot_suite%2Fhelm%2Fnanobot%2Fconfigmap-src%2Fpublic%2Ftestsuites%2Fhealth-check.robot;h=59ed4906236873895ad59a90663ece1acde8b57d;hb=e96ae18fc88ad2c12b00094a623d426c6f14930d;hp=5e5fdba8ff43987629a603d699d58b5b80d844ef;hpb=cc685917b28444e6e9fc70f1a96b14e073d8cec7;p=it%2Ftest.git diff --git a/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/health-check.robot b/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/health-check.robot index 5e5fdba..59ed490 100644 --- a/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/health-check.robot +++ b/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/health-check.robot @@ -30,13 +30,14 @@ Basic Component Health Checks # by the ric-robot, which does not perform template expansion on testsuites. [Tags] health Set Test Variable ${finalStatus} PASS - :FOR ${component} IN @{GLOBAL_RICPLT_COMPONENTS} - \ Run Keyword And Ignore Error - ... Import Resource /robot/resources/${component}/${component}_interface.robot - \ ${healthCheck} = Set Variable Run ${component} Health Check - \ ${status} = Run Keyword If Present ${healthCheck} - \ ${finalStatus} = Set Variable If '${status}' == 'FAIL' FAIL ${finalStatus} - \ Run Keyword If '${status}' == 'FAIL' - ... Log ${component} is unhealthy + FOR ${component} IN @{GLOBAL_RICPLT_COMPONENTS} + Run Keyword And Ignore Error + ... Import Resource /robot/resources/${component}/${component}_interface.robot + ${healthCheck} = Set Variable Run ${component} Health Check + ${status} = Run Keyword If Present ${healthCheck} + ${finalStatus} = Set Variable If '${status}' == 'FAIL' FAIL ${finalStatus} + Run Keyword If '${status}' == 'FAIL' + ... Log ${component} is unhealthy + END Run Keyword If '${finalStatus}' == 'FAIL' ... Fail One or more Health Checks failed