[ https://issues.apache.org/jira/browse/HDDS-1255?focusedWorklogId=217604&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-217604 ]
ASF GitHub Bot logged work on HDDS-1255: ---------------------------------------- Author: ASF GitHub Bot Created on: 23/Mar/19 14:33 Start Date: 23/Mar/19 14:33 Worklog Time Spent: 10m Work Description: elek 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_r268396731 ########## File path: hadoop-ozone/dist/src/main/smoketest/security/ozone-secure.robot ########## @@ -17,138 +17,42 @@ Documentation Smoke test to start cluster with docker-compose environments. Library OperatingSystem Library String +Library BuiltIn Resource ../commonlib.robot *** Variables *** -${ENDPOINT_URL} http://s3g:9878 +${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 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 volume names + ${random} Generate Random String 2 [NUMBERS] + Set Suite Variable ${volume1} fstest${random} + Set Suite Variable ${volume2} fstest2${random} *** Test Cases *** Create volume and bucket - ${rc} ${output} = Run And Return Rc And Output ozone sh volume create o3://om/fstest --user bilbo --quota 100TB --root - Should contain ${output} Client cannot authenticate via + Execute kdestroy Review comment: NIT: can be more clean to use two different test case: 1. Create volume bucket with wrong credentials 2. Create volume bucket ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 217604) Time Spent: 40m (was: 0.5h) > 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: 40m > 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: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org