https://issues.apache.org/jira/browse/AMQ-3749 - Composite destinations break simple authorisation through role aggregation. additional tests and fix - fix broken test, expecting wrong behaviour

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1296204 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2012-03-02 13:53:31 +00:00
parent 14110f52eb
commit df8d1e824d
1 changed files with 1 additions and 4 deletions

View File

@ -141,10 +141,7 @@ public class LDAPAuthorizationMapTest extends AbstractLdapTestUnit {
public void testComposite() {
ActiveMQDestination q1 = new ActiveMQQueue("queue1,topic://topic1");
Set aclsq1 = authMap.getWriteACLs(q1);
assertEquals(3, aclsq1.size());
assertTrue(aclsq1.contains(new GroupPrincipal("role1")));
assertTrue(aclsq1.contains(new GroupPrincipal("role2")));
assertTrue(aclsq1.contains(new GroupPrincipal("role3")));
assertEquals(0, aclsq1.size());
}
@Test