Matteo Bertozzi created HBASE-8118:
--------------------------------------
Summary: TestTablePermission depends on the execution order
Key: HBASE-8118
URL: https://issues.apache.org/jira/browse/HBASE-8118
Project: HBase
Issue Type: Bug
Components: test
Affects Versions: 0.94.5, 0.95.0
Reporter: Matteo Bertozzi
Assignee: Matteo Bertozzi
All the tests changes the _acl_ table but they don't clear the state.
If testGlobalPermission() runs before testBasicWrite() you end up with
{code}
java.lang.AssertionError: Full permission map should have entries for both test
tables expected:<2> but was:<3>
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.failNotEquals(Assert.java:647)
at org.junit.Assert.assertEquals(Assert.java:128)
at org.junit.Assert.assertEquals(Assert.java:472)
at
org.apache.hadoop.hbase.security.access.TestTablePermissions.testBasicWrite(TestTablePermissions.java:181)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira