Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another fix to Wait Until Csv Is Ready keyword #1195

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions ods_ci/tests/Resources/Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,12 @@ Wait Until Csv Is Ready
Log Waiting ${timeout} for Operator CSV '${display_name}' in ${opeartors_namespace} to have status phase 'Succeeded' console=yes
WHILE True limit=${timeout}
... on_limit_message=${timeout} Timeout exceeded waiting for CSV '${display_name}' to be created
${csv_name}= Run Process oc get csv --no-headers | awk '/${display_name}/ {print \$1}' shell=yes
IF "${csv_name.stdout}" != "${EMPTY}" BREAK
${csv_created}= Run Process oc get csv --no-headers | awk '/${display_name}/ {print \$1}' shell=yes
IF "${csv_created.stdout}" == "${EMPTY}" CONTINUE
${csv_ready}= Run Process
... oc wait --timeout\=${timeout} --for jsonpath\='{.status.phase}'\=Succeeded csv -n ${opeartors_namespace} ${csv_created.stdout} shell=yes
IF ${csv_ready.rc} == ${0} BREAK
END
${result}= Run Process
... oc wait --timeout\=${timeout} --for jsonpath\='{.status.phase}'\=Succeeded csv -n ${opeartors_namespace} ${csv_name.stdout} shell=yes
Should Be Equal As Integers ${result.rc} ${0} msg=${timeout} Timeout exceeded waiting for CSV '${display_name}' to be ready
Log ${result.stdout} console=yes

Get Cluster ID
[Documentation] Retrieves the ID of the currently connected cluster
Expand Down
Loading