Skip to content

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

@namewasntfound

Description

@namewasntfound

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue with the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions