Skip to content

Commit

Permalink
add minio ns clean up kw
Browse files Browse the repository at this point in the history
  • Loading branch information
bdattoma committed Feb 28, 2024
1 parent 285f66f commit 34eb16b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 10 additions & 2 deletions ods_ci/tests/Resources/CLI/Minio.resource
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,16 @@ Get Minio Credentials
RETURN ${key} ${pw}

Remove Minio
[Documentation] Delete the MinIO objects from the cluster
[Documentation] Deletes the MinIO objects from the cluster
[Arguments] ${namespace}
${rc} ${out}= Run And Return Rc And Output oc delete all -l app=minio -n ${namespace}

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used Note test

Variable '${out}' is assigned but not used
Should Be Equal As Integers ${rc} ${0}
Wait For Pods To Be Terminated label_selector=app=minio namespace=${namespace}

Clean Up Minio Namespace
[Documentation] Removes MinIO objects and delete the OCP namespace
[Arguments] ${namespace}
Remove Minio ${namespace}
${rc} ${out}= Run And Return Rc And Output oc delete project ${namespace}

Check warning

Code scanning / Robocop

Local variable '{{ name }}' is overwritten before usage Warning test

Local variable '${out}' is overwritten before usage
Should Be Equal As Integers ${rc} ${0}
${rc} ${out}= Run And Return Rc And Output oc wait --for=delete namespace ${namespace} --timeout=20s

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used Note test

Variable '${out}' is assigned but not used
Should Be Equal As Integers ${rc} ${0}

Check warning

Code scanning / Robocop

Missing trailing blank line at the end of file Warning test

Missing trailing blank line at the end of file
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ Verify User Can Serve And Query A Model From Minio
[Teardown] Run Keywords
... Clean Up Test Project test_ns=${test_namespace} isvc_names=${models_names} wait_prj_deletion=${FALSE}

Check warning

Code scanning / Robocop

Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test

Line is too long (121/120)
... AND
... Remove Minio namespace=${minio_namespace}
... AND
... Run And Return Rc oc delete project ${minio_namespace}
... Clean Up Minio Namespace namespace=${minio_namespace}


*** Keywords ***
Expand Down

0 comments on commit 34eb16b

Please sign in to comment.