hadoop-yetus commented on a change in pull request #561: HDDS-1043. Enable
token based authentication for S3 api.
URL: https://github.com/apache/hadoop/pull/561#discussion_r262792091
##########
File path: hadoop-ozone/dist/src/main/smoketest/security/ozone-secure.robot
##########
@@ -16,14 +16,42 @@
*** Settings ***
Documentation Smoke test to start cluster with docker-compose
environments.
Library OperatingSystem
+Library String
Resource ../commonlib.robot
+*** Variables ***
+${ENDPOINT_URL} http://s3g:9878
+
+*** Keywords ***
+Install aws cli s3 centos
+ Execute sudo yum install -y awscli
+Install aws cli s3 debian
+ Execute sudo apt-get install -y awscli
+
+Install aws cli
+ ${rc} ${output} = Run And Return Rc And
Output which apt-get
+ Run Keyword if '${rc}' == '0' Install aws cli s3 debian
+ ${rc} ${output} = Run And Return Rc And
Output yum --help
+ Run Keyword if '${rc}' == '0' Install aws cli s3 centos
+
+Setup credentials
+ ${hostname}= Execute hostname
+ Execute kinit -k testuser/${hostname}@EXAMPLE.COM -t
/etc/security/keytabs/testuser.keytab
+ ${result} = Execute ozone sh s3 getsecret
+ ${accessKey} = Get Regexp Matches ${result}
(?<=awsAccessKey=).*
Review comment:
whitespace:tabs in line
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]