Skip to content

Commit

Permalink
fix: remove flaky condition to avoid false negative results for the r…
Browse files Browse the repository at this point in the history
…hods log test (#1799)
  • Loading branch information
CFSNM authored Sep 11, 2024
2 parents 4930cd4 + c1b973a commit 088852e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 088852e

Please sign in to comment.