Russole opened a new pull request, #9301:
URL: https://github.com/apache/ozone/pull/9301
## What changes were proposed in this pull request?
HDDS-9855: Improve bucket name validation message and update related unit
tests.
Please describe your PR in detail:
* This PR removes the hard-coded text and uses the existing exception message
already generated by the validation logic.
* As a result, bucket names containing unsupported characters (e.g. "_") now
return the detailed message produced by the validator, such as:
"INVALID_BUCKET_NAME Invalid bucket name: bucket_1. bucket name has an
unsupported character : _"
* No new logic is introduced; this change simply exposes the correct
validation
message that already exists in the underlying code.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13932
## How was this patch tested?
All existing unit tests, including TestOMBucketCreateRequest, were executed.
The updated tests now pass locally and in CI, confirming that the new
validation
messages behave as expected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]