testcontainers / testcontainers-python

Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
https://testcontainers-python.readthedocs.io/en/latest/
Apache License 2.0
1.53k stars 280 forks source link

fix(rabbitmq): add `vhost` as parameter to RabbitMqContainer #656

Closed MorganTrench closed 1 month ago

MorganTrench commented 1 month ago

Adds a vhost parameter to the RabbitMQContainer constructor that allows the RABBITMQ_DEFAULT_VHOST environment variable to be modified.

Subsequently vhost is then also used inside the get_connection_params method for the pika connection parameters, which is used to test if the container is ready.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (main@068c431). Learn more about missing BASE report.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #656 +/- ## ======================================= Coverage ? 77.59% ======================================= Files ? 12 Lines ? 598 Branches ? 89 ======================================= Hits ? 464 Misses ? 108 Partials ? 26 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.