yyqdbngt opened a new pull request, #3787:
URL: https://github.com/apache/rocketmq-dashboard/pull/3787

   ### Motivation
   
   The existing `LiteTopicServiceTest` rejects an empty `topicPattern` and a 
zero TTL, but the remaining guard inputs of `extendTTL` — null and 
whitespace-only patterns and a null TTL — were untested.
   
   ### Changes
   
   - `extendTTLShouldRejectNullTopicPattern`: a null pattern is a 400 
`topicPattern is required`.
   - `extendTTLShouldRejectBlankTopicPattern`: a whitespace-only pattern is 
rejected with the same message before any provider work.
   - `extendTTLShouldRejectNullTtl`: a null TTL is a 400 `newTTL must be 
positive`.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=LiteTopicServiceTest
   [INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


-- 
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]

Reply via email to