@@ -66,8 +66,8 @@ public void testAuthorization() throws Exception {
6666 alterPredicateWithUserAccount (false );
6767
6868 createGroupAndAcls (UNUSED_GROUP , false );
69- System .out .println ("Sleep for 35 seconds for acl caches to be refreshed" );
70- Thread .sleep (35 * 1000 );
69+ System .out .println ("Sleep for 6 seconds for acl caches to be refreshed" );
70+ Thread .sleep (6 * 1000 );
7171
7272 // now all the operations should fail since there are rules defined on the unusedGroup
7373 queryPredicateWithUserAccount (true );
@@ -77,18 +77,18 @@ public void testAuthorization() throws Exception {
7777
7878 // create the dev group and add the user to it
7979 createGroupAndAcls (DEV_GROUP , true );
80- System .out .println ("Sleep for 35 seconds for acl caches to be refreshed" );
81- Thread .sleep (35 * 1000 );
80+ System .out .println ("Sleep for 6 seconds for acl caches to be refreshed" );
81+ Thread .sleep (6 * 1000 );
8282
8383 // now the operations should succeed again through the dev group
8484 queryPredicateWithUserAccount (false );
8585 // sleep long enough (10s per the docker-compose.yml in this directory)
8686 // for the accessJwt to expire in order to test auto login through refresh jwt
87- System .out .println ("Sleep for 12 seconds for the accessJwt to expire" );
88- Thread .sleep (12 * 1000 );
87+ System .out .println ("Sleep for 4 seconds for the accessJwt to expire" );
88+ Thread .sleep (4 * 1000 );
8989 mutatePredicateWithUserAccount (false );
90- System .out .println ("Sleep for 12 seconds for the accessJwt to expire" );
91- Thread .sleep (12 * 1000 );
90+ System .out .println ("Sleep for 4 seconds for the accessJwt to expire" );
91+ Thread .sleep (4 * 1000 );
9292 alterPredicateWithUserAccount (false );
9393 }
9494
@@ -144,7 +144,7 @@ private void createGroupAndAcls(String group, boolean addUserToGroup)
144144 group ,
145145 "-p" ,
146146 PREDICATE_TO_READ ,
147- "-P " ,
147+ "-m " ,
148148 "4" ,
149149 "-x" ,
150150 GROOT_PASSWORD );
@@ -161,7 +161,7 @@ private void createGroupAndAcls(String group, boolean addUserToGroup)
161161 group ,
162162 "-p" ,
163163 QUERY_ATTR ,
164- "-P " ,
164+ "-m " ,
165165 "4" ,
166166 "-x" ,
167167 GROOT_PASSWORD );
@@ -177,7 +177,7 @@ private void createGroupAndAcls(String group, boolean addUserToGroup)
177177 group ,
178178 "-p" ,
179179 PREDICATE_TO_WRITE ,
180- "-P " ,
180+ "-m " ,
181181 "2" ,
182182 "-x" ,
183183 GROOT_PASSWORD );
@@ -192,7 +192,7 @@ private void createGroupAndAcls(String group, boolean addUserToGroup)
192192 group ,
193193 "-p" ,
194194 PREDICATE_TO_ALTER ,
195- "-P " ,
195+ "-m " ,
196196 "1" ,
197197 "-x" ,
198198 GROOT_PASSWORD );
0 commit comments