You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2020/08/26 12:44:51 UTC
[GitHub] [activemq-artemis] clebertsuconic commented on a change in pull request #3246: ARTEMIS-2886 optimize security auth
clebertsuconic commented on a change in pull request #3246:
URL: https://github.com/apache/activemq-artemis/pull/3246#discussion_r477270902
##########
File path: tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java
##########
@@ -1412,12 +1413,26 @@ public void testSendMessageUpdateRoleCached() throws Exception {
securityManager.getConfiguration().addRole("auser", "receiver");
- session.createConsumer(SecurityTest.queueA);
+ Wait.assertTrue(() -> {
+ try {
+ session.createConsumer(SecurityTest.queueA);
+ return true;
+ } catch (Exception e) {
+ return false;
+ }
+ }, 2000, 100);
// Removing the Role... the check should be cached, so the next createConsumer shouldn't fail
securityManager.getConfiguration().removeRole("auser", "receiver");
Review comment:
I don't understand this...
Why can't we just use the previous operation on clearing the cache.
I don't think this is a valid test change. The test was written to validate the cache cleared.
if caching becomes a valid option now, we should rather just remove the test.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org