sreeb-msft opened a new pull request, #5148: URL: https://github.com/apache/hadoop/pull/5148
<!-- Thanks for sending a pull request! 1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute 2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'. --> This PR introduces a new configuration for Fixed SAS Tokens. Users can either set the fixed SAS Tokens in the configuration itself or provide an implementation of the SASTokenProvider interface, using which a SAS Token can be obtained from the user. The code checks for which is set. In case of both being set, preference is given to the SASTokenProvider implementation. Whereas, in the case of either one being set, that is chosen for creation of the URIs for the HTTP requests for various API calls. #### Test Code added: 4 test cases have been added that tests the conditions mentioned above - whether both token provider class and fixed token configuration are set, whether both are unset, or whether either one is set. It checks for both whether the correct choice of SAS token is made and whether further API calls can be made using the SAS Token chosen. -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org