Skip to content

Commit

Permalink
noobaa/operator: Add tests for deletion
Browse files Browse the repository at this point in the history
Adding tests for deletion of non exiisting OBC and Bucketclass

Signed-off-by: Ashish Pandey <[email protected]>
  • Loading branch information
aspandey committed Dec 9, 2024
1 parent 15ca839 commit 3ef407e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cli/test_cli_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,11 @@ function delete_account {
echo_time "✅ delete accounts is done"
}

function delete_non_existing_resources {
test_noobaa should_fail obc delete non-existing-obc
test_noobaa should_fail bucketclass delete non-existing-bc
}

function check_deletes {
echo_time "💬 Starting the delete cycle"
local obc=($(test_noobaa silence obc list | grep -v "NAME\|default" | awk '{print $2}'))
Expand All @@ -1029,6 +1034,7 @@ function check_deletes {
delete_backingstore_path
delete_namespacestore_path
delete_accounts
delete_non_existing_resources
echo_time "✅ delete cycle is done"
}

Expand Down

0 comments on commit 3ef407e

Please sign in to comment.