mintel / pytest-localstack

Pytest plugin for local AWS integration tests
MIT License
78 stars 18 forks source link

Localstack is starting with random ports #60

Open igorvtorres opened 11 months ago

igorvtorres commented 11 months ago

When I start Localstack container, its start with random port as screenshot

image

Its because the framework is setting None to ports when start the container image

Could you fix to pass the port that I have set in dict services? ports={port: port for port in self.services.values()}

Or maybe create a function to that return the current port after localstack started?

I need that because I am using the localstack with spark and I need to set the end point configuration

spark_session.conf.set("spark.hadoop.fs.s3a.endpoint", "http://localhost.localstack.cloud:4566")