Gargi-jais11 commented on PR #9371:
URL: https://github.com/apache/ozone/pull/9371#issuecomment-3580486434

   Few other scenarios are also possible, so do you have idea what will be the 
behaviour in the below scenarios?:
   
   - What if header exists but is empty and no body is there?
   ```
   example:
   when(mockHeaders.getHeaderString(S3Acl.GRANT_FULL_CONTROL))
         .thenReturn(""); //empty
   Response resp = bucketEndpoint.put(bucketName, "acl", null);
   ```
   - Or what if header exists but has white space only and no body?
   ```
   example:
   when(mockHeaders.getHeaderString(S3Acl.GRANT_FULL_CONTROL))
         .thenReturn("  "); // whitespace
   Response resp = bucketEndpoint.put(bucketName, "acl", null);
   ```
   So in the above two case what should happen, create bucket should pass or 
fail ? And according do testing of these two scenarios as well.


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

Reply via email to