X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric_robot_suite%2Fhelm%2Fnanobot%2Fconfigmap-src%2Fpublic%2Ftestsuites%2Fmcxapp.robot;fp=ric_robot_suite%2Fhelm%2Fnanobot%2Fconfigmap-src%2Fpublic%2Ftestsuites%2Fmcxapp.robot;h=3cba7546f868f95da869f36ca2afd40fd3bd4b4c;hb=e96ae18fc88ad2c12b00094a623d426c6f14930d;hp=756ff238e62f9ee1c13d20ba0373f15dc7b34214;hpb=cc685917b28444e6e9fc70f1a96b14e073d8cec7;p=it%2Ftest.git diff --git a/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/mcxapp.robot b/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/mcxapp.robot index 756ff23..3cba754 100644 --- a/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/mcxapp.robot +++ b/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/mcxapp.robot @@ -25,10 +25,6 @@ Library Collections Library KubernetesEntity ${GLOBAL_XAPP_NAMESPACE} *** Variables *** -${listenerContainerName} mc-xapp-listener -${listenerStatRegex} ^[0-9]+\\s*\\[STAT\\]\\s*\\(mcl\\) -${recentListenerDrops} .*last 60s.*drops\\s*=\\s*([1-9][0-9]*) -${recentListenerErrors} .*last 60s.*errs\\s*=\\s*([1-9][0-9]*) ${writerVesSuccesses} .*successful\\s+ves\\s+posts\\s*-\\s*([1-9][0-9]*) ${writerVesErrors} .*failed\\s+ves\\s+posts\\s*-\\s*([1-9][0-9]*) @@ -41,42 +37,29 @@ XApp Should Be Available ${status} = Most Recent Availability Condition @{deploy.status.conditions} Should Be Equal As Strings ${status} True ignore_case=True -Listener Should Not Be Dropping Messages - [Tags] etetests xapptests mcxapptests - ${log} = Most Recent Container Logs ${deploymentName} - ... ${GLOBAL_MCXAPP_LISTENER_NAME} - ... ${listenerStatRegex} - Should Not Contain Match ${log} regexp=${recentListenerDrops} - -Listener Should Not Be Producing Errors - [Tags] etetests xapptests mcxapptests - ${log} = Most Recent Container Logs ${deploymentName} - ... ${GLOBAL_MCXAPP_LISTENER_NAME} - ... ${listenerStatRegex} - Should Not Contain Match ${log} regexp=${recentListenerErrors} - Writer Should Be Successfully Sending Statistics [Tags] etetests xapptests mcxapptests Set Test Variable ${finalStatus} PASS - :FOR ${stat} IN @{GLOBAL_MCXAPP_WRITER_STATISTICS} - \ ${statRE} = Regexp Escape ${stat} - \ ${log} = Most Recent Container Logs ${deploymentName} - ... ${GLOBAL_MCXAPP_WRITER_NAME} - ... ^${statRE}:\\s+successful\\s+ves\\s+posts\\.* - \ ${status} ${u} = Run Keyword And Ignore Error - ... Should Contain Match ${log} regexp=${writerVesSuccesses} - \ ${finalStatus} = Set Variable If "${status}" == "FAIL" - ... FAIL - ... ${finalStatus} - \ Run Keyword If "${status}" == "FAIL" - ... Log No messages have been sent to VES for ${stat} - \ ${status} ${u} = Run Keyword And Ignore Error - ... Should Not Contain Match ${log} regexp=${writerVesErrors} - \ ${finalStatus} = Set Variable If "${status}" == "FAIL" - ... FAIL - ... ${finalStatus} - \ Run Keyword If "${status}" == "FAIL" - ... Log ${stat} is producing errors logging to VES + FOR ${stat} IN @{GLOBAL_MCXAPP_WRITER_STATISTICS} + ${statRE} = Regexp Escape ${stat} + ${log} = Most Recent Container Logs ${deploymentName} + ... ${GLOBAL_MCXAPP_WRITER_NAME} + ... ^${statRE}:\\s+successful\\s+ves\\s+posts\\.* + ${status} ${u} = Run Keyword And Ignore Error + ... Should Contain Match ${log} regexp=${writerVesSuccesses} + ${finalStatus} = Set Variable If "${status}" == "FAIL" + ... FAIL + ... ${finalStatus} + Run Keyword If "${status}" == "FAIL" + ... Log No messages have been sent to VES for ${stat} + ${status} ${u} = Run Keyword And Ignore Error + ... Should Not Contain Match ${log} regexp=${writerVesErrors} + ${finalStatus} = Set Variable If "${status}" == "FAIL" + ... FAIL + ... ${finalStatus} + Run Keyword If "${status}" == "FAIL" + ... Log ${stat} is producing errors logging to VES + END Run Keyword If "${finalStatus}" == "FAIL" ... Fail One or more statistics is not being succesfully logged