-
Notifications
You must be signed in to change notification settings - Fork 10
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
W-17286858 | failover brokerUrl format #630
base: main
Are you sure you want to change the base?
Conversation
src/test/java/org/mule/extensions/jms/test/util/ActiveMQConnectionFactoryUtilTestCase.java
Show resolved
Hide resolved
src/main/java/org/mule/extensions/jms/internal/util/ActiveMQConnectionFactoryUtil.java
Show resolved
Hide resolved
@Test | ||
public void testUrlFormatWithoutQueryParameters() { | ||
assertEquals(null, | ||
"failover:(ssl://localhost:61616?socket.verifyHostName=false,ssl://localhost:61616?socket.verifyHostName=false)", | ||
ActiveMQConnectionFactoryUtil.brokerUrlFormat("failover:(ssl://localhost:61616,ssl://localhost:61616)", false)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouln't we add a test to verify the behavior when the verifyHostName parameter is true?
What would it happen if I tests the following scenarios?:
- ActiveMQConnectionFactoryUtil.brokerUrlFormat(brokerURL,
true
) - ActiveMQConnectionFactoryUtil.brokerUrlFormat("",
true
) - ActiveMQConnectionFactoryUtil.brokerUrlFormat(null,
true
) - "failover:(ssl://localhost:61616?socket.verifyHostName=false,ssl://localhost:61616)?maxReconnectAttempts=5"
- "failover:( ssl://localhost:61616, ssl://localhost:61616 )?maxReconnectAttempts=5"
- "failover:(ssl://localhost:61616)?maxReconnectAttempts=5"
- "failover:( invalidURL )?maxReconnectAttempts=5"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…its own query parameters
SonarQube Quality Gate |
Hi, thank you for your work. We understand that you want to merge your changes and move on from this issue, but we also want to maintain the safety, readability, and testability of our code. Because of this, we kindly ask that you confirm that you have fulfilled the prerequisites for each category of activity before merging your changes.
If the Pull Request has a dependency update:
For ALL the Releases:
NOTE: (applies only for Core-Connectors connectors and modules) The release process ends when you merge the pull request that updates the support branch to the new snapshot, please don't forget to do this.
Patch Version:
Minor Version:
Major Version: