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

[Bug]: AmqpsURL() function returns AMQP url #2457

Closed
namewasntfound opened this issue Apr 1, 2024 · 0 comments · Fixed by #2462
Closed

[Bug]: AmqpsURL() function returns AMQP url #2457

namewasntfound opened this issue Apr 1, 2024 · 0 comments · Fixed by #2462
Labels
bug An issue with the library

Comments

@namewasntfound
Copy link

namewasntfound commented Apr 1, 2024

Testcontainers version

0.29.1

Using the latest Testcontainers version?

Yes

Host OS

MacOS

Host arch

amd64

Go version

1.21

Docker version

N/A

Docker info

N/A

What happened?

I am using the testcontainers-go framework for our integration tests and I noticed that the AmqpsURL() function returns an AMQP URL:

func (c *RabbitMQContainer) AmqpsURL(ctx context.Context) (string, error) {
	endpoint, err := c.PortEndpoint(ctx, nat.Port(DefaultAMQPPort), "")
	if err != nil {
		return "", err
	}

	return fmt.Sprintf("amqps://%s:%s@%s", c.AdminUsername, c.AdminPassword, endpoint), nil
}

Relevant log output

No response

Additional information

No response

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
1 participant