Replies: 1 comment
-
It looks like this is rather bug in new version of localstack than in testcontainers lib, I've raised an issue to localstack team -> link |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to bump localstack version to 3.x.x but it returns me wrong queue url on creating queue. After investigation it looks like new localstack do not respect actual configuration (maybe something was fixed) and you are forced to use
LOCALSTACK_HOST
to override how localstack is returning created queue url. From docs:But testcontainers set only hostname without port.
Because of binding localstack exposed port (
4566
by default) to random port generated by testcontainers, it is not consistent as localstack return4566
port for created queue in localstack version >3.x.xIt should be fixed and
<hostname>:<port>
should be provided forLOCALSTACK_HOST
considering random generated port for container.As workaround setting
LOCALSTACK.setPortBindings(List.of("4566:4566"))
could be used but there is a danger of port collisions.QueueUrl returned by localstack in version >3.x.x and with setting
LOCALSTACK_HOST
only with default hostname:Port binding:
Env variable:
Beta Was this translation helpful? Give feedback.
All reactions