hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [hadoop] elek commented on a change in pull request #632: HDDS-1255. Refactor ozone acceptance test to allow run in secure mode. Contributed by Ajay Kumar.
Date Sat, 23 Mar 2019 14:33:22 GMT
elek commented on a change in 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_r268396480
 
 

 ##########
 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
 
 Review comment:
   Do we need to install aws cli for all the tests? I think most of the time "Kinit test user"
is enough

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message