| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add functionality to generate Azurite connection strings suitable for direct container-to-container communication within a Docker network, alongside existing local host access. Key changes include: - Introduces `ConnectionStringType` enum to provide distinct Azurite connection strings for different access patterns: - `NETWORK`: Optimized for inter-container communication using network aliases. - `LOCALHOST`: For access from the host machine via exposed ports. - Refactored `get_connection_string` to dispatch based on `ConnectionStringType`. - Improved `get_external_connection_string` to prioritize network aliases nd provide a fallback to host IP. - Added comprehensive unit test (`test_azurite_inter_container_communication_with_network_string`) to verify inter-container connectivity.
…hon 3.9 in CI checks
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #859 +/- ##
=======================================
Coverage ? 81.83%
=======================================
Files ? 14
Lines ? 892
Branches ? 140
=======================================
Hits ? 730
Misses ? 127
Partials ? 35 ☔ View full report in Codecov by Sentry.
|
Sorry, something went wrong.
|
Can someone take a look at this PR? Do you want me to update it, or it is good to be merged? |
Sorry, something went wrong.
|
just rebased |
Sorry, something went wrong.
🤖 I have created a release *beep* *boop* --- ## [4.13.0](testcontainers-v4.12.0...testcontainers-v4.13.0) (2025-08-27) ### Features * **azurite:** Enhance connection string generation for network and local access ([#859](#859)) ([b21e5e3](b21e5e3)) * **core:** add enhanced wait strategies ([#855](#855)) ([60d21f8](60d21f8)) * **core:** DockerCompose: support list of env_files ([#847](#847)) ([fe206eb](fe206eb)) ### Bug Fixes * assert-in-get_container_host_ip-before-start ([#862](#862)) ([fc4155e](fc4155e)) * **core:** improper reading of .testcontainers.properties ([#863](#863)) ([350f246](350f246)) * **core:** Make TC_POOLING_INTERVAL/sleep_time a float ([#839](#839)) ([a072f3f](a072f3f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Resolves #851
This Pull Request enhances the AzuriteContainer to provide more flexible and robust connection strings, specifically enabling seamless communication between Azurite and other containers within the same Docker network. It also clarifies access from the local host, addressing the need for distinct connection types in containerized testing environments.
Key Changes
Testing
To validate these functionalities, the new test case test_azurite_inter_container_communication_with_network_string was introduced. This test specifically verifies:
Concerns and Questions
As this is my first contribution to this repository, I've aimed for comprehensive docstrings and clear code. I'm open to feedback on their level of detail, adherence to project conventions, or any other aspect of the implementation.
Please let me know if any further changes or clarifications are needed.