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
![image](https://private-user-images.githubusercontent.com/33000003/294600585-821e2586-a916-4bdb-85ac-fece39b73f3b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzOTg4NDEsIm5iZiI6MTcyNDM5ODU0MSwicGF0aCI6Ii8zMzAwMDAwMy8yOTQ2MDA1ODUtODIxZTI1ODYtYTkxNi00YmRiLTg1YWMtZmVjZTM5YjczZjNiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDA3MzU0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk1MjY3ZWYxZWYxNjIxNTEyNGRjNzYyMDAyMmYwMDg1YTZkYmY2N2M1NGE3ODkxZDdlZWYzYzIwMjA5OWI2MDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sVC3-GKIme8s0KmVEcLnixaAvQDoseHVRFH3fZI-z0o)
LOCALSTACK_HOST
only with default hostname:Port binding:
![image](https://private-user-images.githubusercontent.com/33000003/294600814-4f4fef9d-016e-4ef2-9bde-c09530011192.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzOTg4NDEsIm5iZiI6MTcyNDM5ODU0MSwicGF0aCI6Ii8zMzAwMDAwMy8yOTQ2MDA4MTQtNGY0ZmVmOWQtMDE2ZS00ZWYyLTliZGUtYzA5NTMwMDExMTkyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDA3MzU0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRkYjdlMGY0ZDRmZGJlYjgxNjgxN2E1NTdjMjBjNjc5NzJjMmI4YTJiZGJlYWVkOTU1ODkyZjk2ZDQyODNkYmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.8XaTihNlilXSLum_6ReHALQ4gPERK9CpIOkiZ8tUPFE)
Env variable:
![image](https://private-user-images.githubusercontent.com/33000003/294600867-0a43a643-905b-4bb0-a9a7-c019e84ec522.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzOTg4NDEsIm5iZiI6MTcyNDM5ODU0MSwicGF0aCI6Ii8zMzAwMDAwMy8yOTQ2MDA4NjctMGE0M2E2NDMtOTA1Yi00YmIwLWE5YTctYzAxOWU4NGVjNTIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDA3MzU0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkNDk2NjNmZmJmNDAwMDA5ZmQyMmRmNDJmYzA5OTBhMDc5ZTUwNTZjOGNkZGI3M2RlYjVlY2I3ZDgyYWY2ZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MaZayDP2sn3GoEWsfSPRjhZXtPcfv03V11Esv_HbfEY)
Beta Was this translation helpful? Give feedback.
All reactions