[ 
https://issues.apache.org/jira/browse/HDDS-1255?focusedWorklogId=218190&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-218190
 ]

ASF GitHub Bot logged work on HDDS-1255:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Mar/19 18:07
            Start Date: 25/Mar/19 18:07
    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_r268781767
 
 

 ##########
 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:
   currently it used to setup aws secure credentials.
 
----------------------------------------------------------------
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: 218190)
    Time Spent: 1h 20m  (was: 1h 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: 1h 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]

Reply via email to