Skip to content

Commit e2ea947

Browse files
author
Ashish Pandey
authored
Merge pull request #1487 from aspandey/error-message-tests
noobaa/operator: Add tests for deletion
2 parents 15ca839 + 3ef407e commit e2ea947

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/cli/test_cli_functions.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,11 @@ function delete_account {
10181018
echo_time "✅ delete accounts is done"
10191019
}
10201020

1021+
function delete_non_existing_resources {
1022+
test_noobaa should_fail obc delete non-existing-obc
1023+
test_noobaa should_fail bucketclass delete non-existing-bc
1024+
}
1025+
10211026
function check_deletes {
10221027
echo_time "💬 Starting the delete cycle"
10231028
local obc=($(test_noobaa silence obc list | grep -v "NAME\|default" | awk '{print $2}'))
@@ -1029,6 +1034,7 @@ function check_deletes {
10291034
delete_backingstore_path
10301035
delete_namespacestore_path
10311036
delete_accounts
1037+
delete_non_existing_resources
10321038
echo_time "✅ delete cycle is done"
10331039
}
10341040

0 commit comments

Comments
 (0)