Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ARTEMIS-1629] Set connection.clientID before executing ... #1806

Closed
wants to merge 1 commit into from
Closed

[ARTEMIS-1629] Set connection.clientID before executing ... #1806

wants to merge 1 commit into from

Conversation

jostbg
Copy link
Contributor

@jostbg jostbg commented Jan 23, 2018

connection#validateUser

@michaelandrepearce
Copy link
Contributor

Can there be a test case to a) show why this needs to be changed, b) avoid any future regression.

@jostbg
Copy link
Contributor Author

jostbg commented Jan 23, 2018

@michaelandrepearce @jbertram I added a test case to the JIRA that outlines the issue but I have no idea how to get it into the same form that is used in the stomp test cases in the integration-tests project. There seems to obvious way how to use a different SecurityManager when extending StompTestBase class.

@jbertram
Copy link
Contributor

@jostbg, you can extend StompTestBase and override the createServer() method. Look at the implementation of createServer() in StompTestBase to get an idea how to create/configure the server. The method org.apache.activemq.artemis.core.server.ActiveMQServers#newActiveMQServer(org.apache.activemq.artemis.core.config.Configuration, javax.management.MBeanServer, org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager, boolean) will likely come in handy for you when creating your server.

@jostbg
Copy link
Contributor Author

jostbg commented Jan 23, 2018

@michaelandrepearce @jbertram Is that kind of test what you are having in mind?

@jbertram
Copy link
Contributor

@jostbg, that's what I was looking for. Although I would expect the commits to be squashed together.

@jostbg
Copy link
Contributor Author

jostbg commented Jan 23, 2018

@jbertram Ok, done.

@michaelandrepearce
Copy link
Contributor

@jostbg thanks for the test :) +1.

@asfgit asfgit closed this in f92df7f Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants