accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sneha Kanekar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-4651) Tests in org.apache.accumulo.test.functional.PermissionsIT fail
Date Mon, 12 Jun 2017 10:43:00 GMT

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

Sneha Kanekar commented on ACCUMULO-4651:
-----------------------------------------

I tried adding a case GET_SUMMARIES to switch statement:
{code}
diff --git a/test/src/main/java/org/apache/accumulo/test/functional/PermissionsIT.java b/test/src/main/java/org/apache/accumulo/test/functional/PermissionsIT.java
index 7bf52ee..12f2e20 100644
--- a/test/src/main/java/org/apache/accumulo/test/functional/PermissionsIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/functional/PermissionsIT.java
@@ -640,6 +640,9 @@ public class PermissionsIT extends AccumuloClusterHarness {
             throw e;
         }
         break;
+      case GET_SUMMARIES:
+        // test for get summaries permission would go here
+        break;
       default:
         throw new IllegalArgumentException("Unrecognized table Permission: " + perm);
     }
@@ -680,6 +683,9 @@ public class PermissionsIT extends AccumuloClusterHarness {
       case GRANT:
         test_user_conn.securityOperations().grantTablePermission(getAdminPrincipal(), tableName,
TablePermission.GRANT);
         break;
+      case GET_SUMMARIES:
+        // test for get summaries permission would go here
+        break;
       default:
         throw new IllegalArgumentException("Unrecognized table Permission: " + perm);
     }
{code}
After this change the tests are passing. Any update on this?

> Tests in org.apache.accumulo.test.functional.PermissionsIT fail
> ---------------------------------------------------------------
>
>                 Key: ACCUMULO-4651
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4651
>             Project: Accumulo
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.0.0
>         Environment: Ubuntu:14.04
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>            Reporter: Sneha Kanekar
>              Labels: ppc64le, x86
>
> Tests in org.apache.accumulo.test.functional.PermissionsIT fail consistently since ACCUMULO-4501.
The error message is as follows:
> {code:borderStyle=solid}
> java.lang.IllegalArgumentException: Unrecognized table Permission: GET_SUMMARIES
> 	at org.apache.accumulo.test.functional.PermissionsIT.testMissingTablePermission(PermissionsIT.java:644)
> 	at org.apache.accumulo.test.functional.PermissionsIT.tablePermissionTest(PermissionsIT.java:539)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message