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
  • Loading branch information
CFSNM committed Sep 11, 2024
1 parent 4930cd4 commit c1b973a
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

Check warning

Code scanning / Robocop

Missing documentation in '{{ name }}' test case Warning test

Missing documentation in 'Verify RHODS Operator Logs' test case
[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 c1b973a

Please sign in to comment.