[
https://issues.apache.org/jira/browse/HDDS-1255?focusedWorklogId=219057&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-219057
]
ASF GitHub Bot logged work on HDDS-1255:
----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Mar/19 02:20
Start Date: 27/Mar/19 02:20
Worklog Time Spent: 10m
Work Description: ajayydv commented on pull request #632: HDDS-1255.
Refactor ozone acceptance test to allow run in secure mode. Contributed by Ajay
Kumar.
URL: https://github.com/apache/hadoop/pull/632#discussion_r269384368
##########
File path: hadoop-ozone/dist/src/main/smoketest/commonlib.robot
##########
@@ -35,3 +41,51 @@ Compare files
${checksumbefore} = Execute md5sum ${file1} |
awk '{print $1}'
${checksumafter} = Execute md5sum ${file2} |
awk '{print $1}'
Should Be Equal ${checksumbefore}
${checksumafter}
+Execute AWSS3APICli
+ [Arguments] ${command}
+ ${output} = Execute aws s3api --endpoint-url
${ENDPOINT_URL} ${command}
+ [return] ${output}
+
+Execute AWSS3APICli and checkrc
+ [Arguments] ${command} ${expected_error_code}
+ ${output} = Execute and checkrc aws s3api --endpoint-url
${ENDPOINT_URL} ${command} ${expected_error_code}
+ [return] ${output}
+
+Execute AWSS3Cli
+ [Arguments] ${command}
+ ${output} = Execute aws s3 --endpoint-url
${ENDPOINT_URL} ${command}
+ [return] ${output}
+
+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
+
+Kinit test user
+ ${hostname} = Execute hostname
+ Set Suite Variable ${TEST_USER}
testuser/${hostname}@EXAMPLE.COM
+ Execute kinit -k ${TEST_USER} -t
/etc/security/keytabs/testuser.keytab
+
+Setup secure credentials
+ Run Keyword Install aws cli
+ Run Keyword Kinit test user
+ ${result} = Execute ozone s3 getsecret
+ ${accessKey} = Get Regexp Matches ${result}
(?<=awsAccessKey=).*
+ ${secret} = Get Regexp Matches ${result}
(?<=awsSecret=).*
+ Execute aws configure set
default.s3.signature_version s3v4
+ Execute aws configure set
aws_access_key_id ${accessKey[0]}
+ Execute aws configure set
aws_secret_access_key ${secret[0]}
+ Execute aws configure set region
us-west-1
+
+Setup incorrect credentials for S3
Review comment:
done
----------------------------------------------------------------
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 219057)
Time Spent: 2h 20m (was: 2h 10m)
> Refactor ozone acceptance test to allow run in secure mode
> ----------------------------------------------------------
>
> Key: HDDS-1255
> URL: https://issues.apache.org/jira/browse/HDDS-1255
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Reporter: Ajay Kumar
> Assignee: Ajay Kumar
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> Refactor ozone acceptance test to allow run in secure mode.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]