[ 
https://issues.apache.org/jira/browse/HBASE-17672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15879002#comment-15879002
 ] 

Ted Yu commented on HBASE-17672:
--------------------------------

{code}
+      assert(found_permission, "Permission for user test_grant_revoke does not 
found.")
{code}
"does not found." -> "was not found."
{code}
+      security_admin.grant(test_grant_revoke_user,"W", @test_name)
{code}
The original test didn't include write permission. Is there reason for granting 
test_grant_revoke_user write permission ?

> "Grant should set access rights appropriately" test fails
> ---------------------------------------------------------
>
>                 Key: HBASE-17672
>                 URL: https://issues.apache.org/jira/browse/HBASE-17672
>             Project: HBase
>          Issue Type: Test
>    Affects Versions: 2.0.0
>            Reporter: Ted Yu
>            Assignee: Zheng Hu
>             Fix For: 2.0.0
>
>         Attachments: HBASE-17672.patch, HBASE-17672.v1.patch
>
>
> The following test failure is reproducible after HBASE-17472 went in:
> {code}
>   1) Failure:
> test_Grant_should_set_access_rights_appropriately(Hbase::SecureAdminMethodsTest)
>     [./src/test/ruby/hbase/security_admin_test.rb:66:in 
> `test_Grant_should_set_access_rights_appropriately'
>      /Users/tyu/trunk/hbase-shell/src/main/ruby/hbase/security.rb:154:in 
> `user_permission'
>      
> file:/Users/tyu/.m2/repository/org/jruby/jruby-complete/1.6.8/jruby-complete-1.6.8.jar!/builtin/java/java.util.rb:7:in
>  `each'
>      /Users/tyu/trunk/hbase-shell/src/main/ruby/hbase/security.rb:136:in 
> `user_permission'
>      ./src/test/ruby/hbase/security_admin_test.rb:65:in 
> `test_Grant_should_set_access_rights_appropriately'
>      org/jruby/RubyProc.java:270:in `call'
>      org/jruby/RubyKernel.java:2105:in `send'
>      org/jruby/RubyArray.java:1620:in `each'
>      org/jruby/RubyArray.java:1620:in `each']:
> {code}
> [~openinx]:
> Can you take a look ?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to