pzampino opened a new pull request #426:
URL: https://github.com/apache/knox/pull/426


   …knownTokenException
   
   ## What changes were proposed in this pull request?
   
   To align with other methods in the TokenStateService interface, the 
getTokenMetadata(String tokenId) method has modified to throw 
UnknownTokenException when there is no metadata for the specified token 
identifier.
   
   ## How was this patch tested?
   
   Existing tests have been modified/executed, and I've added 
org.apache.knox.gateway.services.token.impl.DefaultTokenStateServiceTest#testGetMetadata_InvalidToken(),
 which also gets invoked for the Alias- and Journal-based TokenStateService 
implementations.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to