FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(core): Protocol support for container port bind and expose by Tranquility2 · Pull Request #690 · testcontainers/testcontainers-python · GitHub

feat(core): Protocol support for container port bind and expose - #690

Merged
alexanderankin merged 17 commits into
testcontainers:mainfrom
Tranquility2:ports_refactor
May 4, 2025
Merged

feat(core): Protocol support for container port bind and expose#690
alexanderankin merged 17 commits into
testcontainers:mainfrom
Tranquility2:ports_refactor

Conversation

Tranquility2 commented Aug 21, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

Fix: #674

Changes:

  1. Proper type hinting for ports bindings, support strings like 8080/tcp or 8125/udp
  2. Backward compatible with int
  3. More test coverage
  4. Improve documentations regarding the usage of with_bind_ports and with_exposed_ports

Any comments will be appreciated

Tranquility2 marked this pull request as draft August 21, 2024 21:41

codecov Bot commented Aug 22, 2024
edited
Loading

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #690   +/-   ##
=======================================
  Coverage        ?   85.84%           
=======================================
  Files           ?       12           
  Lines           ?      678           
  Branches        ?      106           
=======================================
  Hits            ?      582           
  Misses          ?       73           
  Partials        ?       23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Tranquility2 marked this pull request as ready for review August 22, 2024 04:40
Comment thread core/testcontainers/core/container.py Outdated
Comment thread core/testcontainers/core/container.py Outdated
alexanderankin merged commit a0d4317 into testcontainers:main May 4, 2025
alexanderankin pushed a commit that referenced this pull request Jun 16, 2025
🤖 I have created a release *beep* *boop*
---


##
[4.11.0](testcontainers-v4.10.0...testcontainers-v4.11.0)
(2025-06-15)


### Features

* **core:** Protocol support for container port bind and expose
([#690](#690))
([a0d4317](a0d4317))
* DockerContainer initializer to accept its private members as kwargs
([#809](#809))
([e7feb53](e7feb53))


### Bug Fixes

* **compose:** use provided docker command instead of default
([#785](#785))
([0ae704a](0ae704a))
* **core:** Add kwargs to image build
([#708](#708))
([cc02f94](cc02f94))
* **core:** change with_command type to include list of strings
([#789](#789))
([f7c29cb](f7c29cb))
* **core:** Determine docker socket for rootless docker
([#779](#779))
([6817582](6817582))
* **core:** Typing in docker_client
([#702](#702))
([e8bf224](e8bf224))
* **core:** Typing in generic + network
([#700](#700))
([2061912](2061912))
* **core:** Typing in version
([#701](#701))
([9dc2a02](9dc2a02))
* **core:** wait in test core registry
([#812](#812))
([b574c0e](b574c0e))
* **modules:** fix cosmosdb failure
([#827](#827))
([dafcbed](dafcbed))
* **modules:** update chroma version
([#826](#826))
([b7d41dd](b7d41dd))
* **rabbitmq:** correct pika pypi reference
([#817](#817))
([e90d308](e90d308))
* **registry:** module typed
([#811](#811))
([6b11268](6b11268))
* use connection mode override function in config
([#775](#775))
([ab2a1ab](ab2a1ab)),
closes
[#774](#774)

---
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Proper type hinting for UDP ports bindings

2 participants


Back | FazBrowse Home | New Git URL