Skip to content

Commit

Permalink
fix: Component Status kw tolerant to not present components
Browse files Browse the repository at this point in the history
  • Loading branch information
CFSNM committed Aug 8, 2024
1 parent 48e02d6 commit be1828c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ Component Should Not Be Enabled
Is Component Enabled
[Documentation] Returns the enabled status of a single component (true/false)
[Arguments] ${component} ${dsc_name}=${DSC_NAME}
${return_code} ${output} = Run And Return Rc And Output oc get datasciencecluster ${dsc_name} -o json | jq '.spec.components.${component}.managementState' #robocop:disable
${return_code} ${output} = Run And Return Rc And Output oc get datasciencecluster ${dsc_name} -o json | jq '.spec.components.${component}.managementState // "Removed"' #robocop:disable
Log ${output}
Should Be Equal As Integers ${return_code} 0 msg=Error detected while getting component status
${n_output} = Evaluate '${output}' == ''
Expand Down

0 comments on commit be1828c

Please sign in to comment.