From c1b973abe118c69407b14d34e11cdd651bd8ec97 Mon Sep 17 00:00:00 2001 From: cesar Date: Wed, 11 Sep 2024 14:14:47 +0200 Subject: [PATCH] fix: remove flaky condition to avoid false negative results for the rhods log test --- .../0108__rhods_operator_logs_verification.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ods_ci/tests/Tests/0100__platform/0101__deploy/0104__operators/0104__rhods_operator/0108__rhods_operator_logs_verification.robot b/ods_ci/tests/Tests/0100__platform/0101__deploy/0104__operators/0104__rhods_operator/0108__rhods_operator_logs_verification.robot index 63a532045..12dbfda9a 100644 --- a/ods_ci/tests/Tests/0100__platform/0101__deploy/0104__operators/0104__rhods_operator/0108__rhods_operator_logs_verification.robot +++ b/ods_ci/tests/Tests/0100__platform/0101__deploy/0104__operators/0104__rhods_operator/0108__rhods_operator_logs_verification.robot @@ -22,7 +22,7 @@ ${regex_pattern} level=([Ee]rror).*|([Ff]ailed) to list .* *** Test Cases *** -Verify RHODS Operator log +Verify RHODS Operator Logs [Tags] Sanity ... ODS-1007 ... Operator @@ -31,7 +31,7 @@ Verify RHODS Operator log #Capture the logs based on containers ${val} Run oc logs --tail=1000000 ${data[0]['metadata']['name']} -n ${OPERATOR_NAMESPACE} -c ${OPERATOR_POD_CONTAINER_NAME} #To check if command has been successfully executed and the logs have been captured - IF len($val)==${0} or "error:" in $val FAIL Either OC command has not been executed successfully or Logs are not present + IF len($val)==${0} FAIL Either OC command has not been executed successfully or Logs are not present #Filter the error msg from the log captured ${match_list} Get Regexp Matches ${val} ${regex_pattern} #Remove if any duplicate entry are present