-
-
Notifications
You must be signed in to change notification settings - Fork 600
[Bug]: AmqpsURL() function returns AMQP url #2457
Copy link
Copy link
Closed
Labels
bugAn issue with the libraryAn issue with the library
Description
Testcontainers version
0.29.1
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host arch
amd64
Go version
1.21
Docker version
N/ADocker info
N/AWhat 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn issue with the libraryAn issue with the library