hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (HDDS-1545) Cli to add,remove,get and delete acls for Ozone objects
Date Thu, 06 Jun 2019 21:38:00 GMT

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

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

                Author: ASF GitHub Bot
            Created on: 06/Jun/19 21:37
            Start Date: 06/Jun/19 21:37
    Worklog Time Spent: 10m 
      Work Description: xiaoyuyao commented on pull request #920: HDDS-1545. Cli to add,remove,get
and delete acls for Ozone objects. Contributed by Ajay Kumar.
URL: https://github.com/apache/hadoop/pull/920#discussion_r291381841
 
 

 ##########
 File path: hadoop-ozone/dist/src/main/smoketest/basic/ozone-shell.robot
 ##########
 @@ -60,6 +63,39 @@ Test ozone shell
                     Execute             ozone sh bucket delete ${protocol}${server}/${volume}/bb1
                     Execute             ozone sh volume delete ${protocol}${server}/${volume}
--user bilbo
 
+Test Volume Acls
+    [arguments]     ${protocol}         ${server}       ${volume}
+    ${result} =     Execute             ozone sh volume create ${protocol}${server}/${volume}
+                    Should not contain  ${result}       Failed
+    ${result} =     Execute             ozone sh volume getacl ${protocol}${server}/${volume}
+    Should Match Regexp                 ${result}       \"type\" : \"USER\",\n.*\"name\"
: \"[a-z]*[A-Z]*[0-9]*\",\n.*\"aclList\" : . \"ALL\" .
+    ${result} =     Execute             ozone sh volume addacl ${protocol}${server}/${volume}
-a user:superuser1:rwxy
+    ${result} =     Execute             ozone sh volume getacl ${protocol}${server}/${volume}
+    Should Match Regexp                 ${result}       \"type\" : \"USER\",\n.*\"name\"
: \"superuser1*\",\n.*\"aclList\" : . \"READ\", \"WRITE\", \"READ_ACL\", \"WRITE_ACL\"
+    ${result} =     Execute             ozone sh volume removeacl ${protocol}${server}/${volume}
-a user:superuser1:xy
+    ${result} =     Execute             ozone sh volume getacl ${protocol}${server}/${volume}
+    Should Match Regexp                 ${result}       \"type\" : \"USER\",\n.*\"name\"
: \"superuser1\",\n.*\"aclList\" : . \"READ\", \"WRITE\"
+    ${result} =     Execute             ozone sh volume setacl ${protocol}${server}/${volume}
-al user:superuser1:rwxy,group:superuser1:a
+    ${result} =     Execute             ozone sh volume getacl ${protocol}${server}/${volume}
+    Should Match Regexp                 ${result}       \"type\" : \"USER\",\n.*\"name\"
: \"superuser1*\",\n.*\"aclList\" : . \"READ\", \"WRITE\", \"READ_ACL\", \"WRITE_ACL\"
+    Should Match Regexp                 ${result}       \"type\" : \"GROUP\",\n.*\"name\"
: \"superuser1\",\n.*\"aclList\" : . \"ALL\"
+
+Test Bucket Acls
+    [arguments]     ${protocol}         ${server}       ${volume}
+    ${result} =     Execute             ozone sh volume getacl ${protocol}${server}/${volume}/bb1
 
 Review comment:
   this needs to be ozone sh 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:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 255469)
    Time Spent: 40m  (was: 0.5h)

> Cli to add,remove,get and delete acls for Ozone objects
> -------------------------------------------------------
>
>                 Key: HDDS-1545
>                 URL: https://issues.apache.org/jira/browse/HDDS-1545
>             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
>
> Update Ozone Cli to add,remove,get and delete acls for Ozone objects



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message