Skip to content

Noobaa/Operator: Display error message#1482

Merged
aspandey merged 1 commit intonoobaa:masterfrom
aspandey:error-message
Dec 4, 2024
Merged

Noobaa/Operator: Display error message#1482
aspandey merged 1 commit intonoobaa:masterfrom
aspandey:error-message

Conversation

@aspandey
Copy link

@aspandey aspandey commented Dec 3, 2024

While deleting OBC or Bucketclass which does not exist, we should display an error message and should not silently give success.
https://issues.redhat.com/browse/DFBUGS-201
As part of this I have also modified test_cli_functions.sh
Test under "delete_namespacestore_path" function was failing because we do not have a bucket which we are trying to delete. It was passing silently. In this function we are fetching the list of bucketclass and obc freshly and deleting those objects. I think that should cover the cases.

Copy link
Contributor

@shirady shirady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aspandey
Copy link
Author

aspandey commented Dec 3, 2024

@shirady commented my changes just to see if the test will fail or not.
I will again ask for your approval. If you can, remove your approval to avoid accidental merge of wrong code.

@aspandey aspandey force-pushed the error-message branch 2 times, most recently from 853bf73 to aa43076 Compare December 4, 2024 07:13
While deleting OBC or Bucketclass which does not exist,
we should display an error message and should not silently
give success.

Signed-off-by: Ashish Pandey <aspandey@redhat.com>
@aspandey
Copy link
Author

aspandey commented Dec 4, 2024

@shirady Patch is ready to be reviewed again.

@shirady
Copy link
Contributor

shirady commented Dec 4, 2024

@aspandey I don't have additional comments.
Please update the PR description with the changes that were added in test/cli/test_cli_functions.sh so it will be clear why you deleted it and where those are covered.

@aspandey
Copy link
Author

aspandey commented Dec 4, 2024

@aspandey I don't have additional comments. Please update the PR description with the changes that were added in test/cli/test_cli_functions.sh so it will be clear why you deleted it and where those are covered.

Done

@aspandey aspandey merged commit cfae265 into noobaa:master Dec 4, 2024
@aspandey aspandey deleted the error-message branch December 4, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants