Skip to content

Commit

Permalink
Merge pull request #1487 from aspandey/error-message-tests
Browse files Browse the repository at this point in the history
noobaa/operator: Add tests for deletion
  • Loading branch information
aspandey authored Dec 9, 2024
2 parents 15ca839 + 3ef407e commit e2ea947
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 e2ea947

Please sign in to comment.