smengcl opened a new pull request #2692:
URL: https://github.com/apache/ozone/pull/2692


   https://issues.apache.org/jira/browse/HDDS-5754
   
   - [!] Moved `ozone s3 tenant` subcommands under `ozone tenant`.
   - Implemented GetUserInfo
   
   ## Demo with `compose/ozonesecure`
   
   ```bash
   $ kinit -kt /etc/security/keytabs/om.keytab om/[email protected]
   
   $ curl -k https://ranger:6182/
   {}
   
   $ ozone tenant user info [email protected]
   '[email protected]' is not assigned to any tenant.
   
   $ ozone tenant create finance
   Created tenant 'finance'.
   
   $ ozone tenant user assign [email protected] --tenant=finance
   Assigned '[email protected]' to 'finance' under accessId 
'[email protected]'.
   export AWS_ACCESS_KEY_ID='[email protected]'
   export AWS_SECRET_ACCESS_KEY='...'
   
   $ ozone tenant create dev
   Created tenant 'dev'.
   
   $ ozone tenant user assign [email protected] --tenant=dev
   Assigned '[email protected]' to 'dev' under accessId '[email protected]'.
   export AWS_ACCESS_KEY_ID='[email protected]'
   export AWS_SECRET_ACCESS_KEY='...'
   
   $ ozone tenant user info [email protected]
   User '[email protected]' is assigned to:
   - Tenant 'finance' under accessId '[email protected]'
   - Tenant 'dev' under accessId '[email protected]'
   ```
   
   ## How was this patch tested?
   
   - [x] Added new robot test
   - [x] Added new integration test.
   
   Still needs some polishing and cleanups. Filing as a draft PR for the moment.


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