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

fix: Amqps function returns amqps url instead of amqp url #2458

Conversation

namewasntfound
Copy link

What does this PR do?

Fixes the AmqpsURL function to return an AMQPS URL instead of AMQP URL.

Why is it important?

This fix is essential as it ensures that our tests accurately reflect real-world conditions by returning the correct AMQPS URL, thereby enhancing the reliability and effectiveness of our testing environment.

Related issues

@namewasntfound namewasntfound requested a review from a team as a code owner April 1, 2024 10:07
Copy link

netlify bot commented Apr 1, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 6e53f79
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/660a8771d1eb5700072e79da
😎 Deploy Preview https://deploy-preview-2458--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@eddumelendez eddumelendez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

@@ -48,7 +48,7 @@ func (c *RabbitMQContainer) AmqpURL(ctx context.Context) (string, error) {

// AmqpURL returns the URL for AMQPS clients.
func (c *RabbitMQContainer) AmqpsURL(ctx context.Context) (string, error) {
endpoint, err := c.PortEndpoint(ctx, nat.Port(DefaultAMQPPort), "")
endpoint, err := c.PortEndpoint(ctx, nat.Port(DefaultAMQPSPort), "")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy you found this wrong copy&paste mistake 🤦

Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdelapenya mdelapenya self-assigned this Apr 2, 2024
@mdelapenya mdelapenya added the bug An issue with the library label Apr 2, 2024
@mdelapenya
Copy link
Collaborator

I think this PR is colliding with #2462 but the latter include tests. I think I'll give priority to the one including tests once it passes the CI.

@namewasntfound
Copy link
Author

I think this PR is colliding with #2462 but the latter include tests. I think I'll give priority to the one including tests once it passes the CI.

Sure, I will close the PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: AmqpsURL() function returns AMQP url
3 participants