exposed minio adapter #5

Merged
brian merged 3 commits from expose-minio-adapter into main 2025-09-15 14:44:02 +02:00
Owner
No description provided.
brian added 1 commit 2025-09-15 13:38:25 +02:00
exposed minio adapter
Code Quality Pipeline / code-quality (pull_request) Failing after 1m9s
Test Python Package / test (pull_request) Successful in 1m29s
7beca7c398
Author
Owner

Test Coverage Report:

============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.2, pluggy-1.6.0
rootdir: /workspace/brian/python-repositories
configfile: pyproject.toml
plugins: cov-7.0.0, anyio-4.10.0
collected 59 items

tests/integration/connection_aware_interface_test.py ......              [ 10%]
tests/integration/context_aware_interface_test.py ....                   [ 16%]
tests/integration/minio_adapter_test.py ...........................      [ 62%]
tests/integration/redis_adapter_test.py ......................           [100%]

=============================== warnings summary ===============================
.venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready()

.venv/lib/python3.12/site-packages/testcontainers/core/container.py:245
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/container.py:245: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready()

.venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready(redis.exceptions.ConnectionError)

.venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready(ConnectionError)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================ tests coverage ================================
_______________ coverage: platform linux, python 3.12.3-final-0 ________________

Name                                                           Stmts   Miss  Cover   Missing
--------------------------------------------------------------------------------------------
python_repositories/__init__.py                                    3      0   100%
python_repositories/adapters/__init__.py                           3      0   100%
python_repositories/adapters/minio_adapter.py                     99      0   100%
python_repositories/adapters/redis_adapter.py                     75      0   100%
python_repositories/interfaces/__init__.py                         3      0   100%
python_repositories/interfaces/connection_aware_interface.py      12      0   100%
python_repositories/interfaces/context_aware_interface.py          9      0   100%
--------------------------------------------------------------------------------------------
TOTAL                                                            204      0   100%
================== 59 passed, 4 warnings in 69.77s (0:01:09) ===================
**Test Coverage Report:** ``` ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.4.2, pluggy-1.6.0 rootdir: /workspace/brian/python-repositories configfile: pyproject.toml plugins: cov-7.0.0, anyio-4.10.0 collected 59 items tests/integration/connection_aware_interface_test.py ...... [ 10%] tests/integration/context_aware_interface_test.py .... [ 16%] tests/integration/minio_adapter_test.py ........................... [ 62%] tests/integration/redis_adapter_test.py ...................... [100%] =============================== warnings summary =============================== .venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready() .venv/lib/python3.12/site-packages/testcontainers/core/container.py:245 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/container.py:245: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready() .venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready(redis.exceptions.ConnectionError) .venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready(ConnectionError) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================================ tests coverage ================================ _______________ coverage: platform linux, python 3.12.3-final-0 ________________ Name Stmts Miss Cover Missing -------------------------------------------------------------------------------------------- python_repositories/__init__.py 3 0 100% python_repositories/adapters/__init__.py 3 0 100% python_repositories/adapters/minio_adapter.py 99 0 100% python_repositories/adapters/redis_adapter.py 75 0 100% python_repositories/interfaces/__init__.py 3 0 100% python_repositories/interfaces/connection_aware_interface.py 12 0 100% python_repositories/interfaces/context_aware_interface.py 9 0 100% -------------------------------------------------------------------------------------------- TOTAL 204 0 100% ================== 59 passed, 4 warnings in 69.77s (0:01:09) =================== ```
brian added 1 commit 2025-09-15 13:59:11 +02:00
ruff format fix
Code Quality Pipeline / code-quality (pull_request) Successful in 1m21s
Test Python Package / test (pull_request) Successful in 1m30s
d5f437f77c
Author
Owner

Test Coverage Report:

============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.2, pluggy-1.6.0
rootdir: /workspace/brian/python-repositories
configfile: pyproject.toml
plugins: cov-7.0.0, anyio-4.10.0
collected 59 items

tests/integration/connection_aware_interface_test.py ......              [ 10%]
tests/integration/context_aware_interface_test.py ....                   [ 16%]
tests/integration/minio_adapter_test.py ...........................      [ 62%]
tests/integration/redis_adapter_test.py ......................           [100%]

=============================== warnings summary ===============================
.venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready()

.venv/lib/python3.12/site-packages/testcontainers/core/container.py:245
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/container.py:245: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready()

.venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready(redis.exceptions.ConnectionError)

.venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready(ConnectionError)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================ tests coverage ================================
_______________ coverage: platform linux, python 3.12.3-final-0 ________________

Name                                                           Stmts   Miss  Cover   Missing
--------------------------------------------------------------------------------------------
python_repositories/__init__.py                                    3      0   100%
python_repositories/adapters/__init__.py                           3      0   100%
python_repositories/adapters/minio_adapter.py                     99      0   100%
python_repositories/adapters/redis_adapter.py                     75      0   100%
python_repositories/interfaces/__init__.py                         3      0   100%
python_repositories/interfaces/connection_aware_interface.py      12      0   100%
python_repositories/interfaces/context_aware_interface.py          9      0   100%
--------------------------------------------------------------------------------------------
TOTAL                                                            204      0   100%
================== 59 passed, 4 warnings in 69.65s (0:01:09) ===================
**Test Coverage Report:** ``` ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.4.2, pluggy-1.6.0 rootdir: /workspace/brian/python-repositories configfile: pyproject.toml plugins: cov-7.0.0, anyio-4.10.0 collected 59 items tests/integration/connection_aware_interface_test.py ...... [ 10%] tests/integration/context_aware_interface_test.py .... [ 16%] tests/integration/minio_adapter_test.py ........................... [ 62%] tests/integration/redis_adapter_test.py ...................... [100%] =============================== warnings summary =============================== .venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready() .venv/lib/python3.12/site-packages/testcontainers/core/container.py:245 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/container.py:245: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready() .venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready(redis.exceptions.ConnectionError) .venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready(ConnectionError) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================================ tests coverage ================================ _______________ coverage: platform linux, python 3.12.3-final-0 ________________ Name Stmts Miss Cover Missing -------------------------------------------------------------------------------------------- python_repositories/__init__.py 3 0 100% python_repositories/adapters/__init__.py 3 0 100% python_repositories/adapters/minio_adapter.py 99 0 100% python_repositories/adapters/redis_adapter.py 75 0 100% python_repositories/interfaces/__init__.py 3 0 100% python_repositories/interfaces/connection_aware_interface.py 12 0 100% python_repositories/interfaces/context_aware_interface.py 9 0 100% -------------------------------------------------------------------------------------------- TOTAL 204 0 100% ================== 59 passed, 4 warnings in 69.65s (0:01:09) =================== ```
brian added 1 commit 2025-09-15 14:15:46 +02:00
added py.typed mypy config file
Code Quality Pipeline / code-quality (pull_request) Successful in 34s
Test Python Package / test (pull_request) Successful in 40s
7446e88850
Author
Owner

Test Coverage Report:

============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.2, pluggy-1.6.0
rootdir: /workspace/brian/python-repositories
configfile: pyproject.toml
plugins: cov-7.0.0, anyio-4.10.0
collected 59 items

tests/integration/connection_aware_interface_test.py ......              [ 10%]
tests/integration/context_aware_interface_test.py ....                   [ 16%]
tests/integration/minio_adapter_test.py ...........................      [ 62%]
tests/integration/redis_adapter_test.py ......................           [100%]

=============================== warnings summary ===============================
.venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready()

.venv/lib/python3.12/site-packages/testcontainers/core/container.py:245
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/container.py:245: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready()

.venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready(redis.exceptions.ConnectionError)

.venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101
  /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
    @wait_container_is_ready(ConnectionError)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================ tests coverage ================================
_______________ coverage: platform linux, python 3.12.3-final-0 ________________

Name                                                           Stmts   Miss  Cover   Missing
--------------------------------------------------------------------------------------------
python_repositories/__init__.py                                    3      0   100%
python_repositories/adapters/__init__.py                           3      0   100%
python_repositories/adapters/minio_adapter.py                     99      0   100%
python_repositories/adapters/redis_adapter.py                     75      0   100%
python_repositories/interfaces/__init__.py                         3      0   100%
python_repositories/interfaces/connection_aware_interface.py      12      0   100%
python_repositories/interfaces/context_aware_interface.py          9      0   100%
--------------------------------------------------------------------------------------------
TOTAL                                                            204      0   100%
======================= 59 passed, 4 warnings in 19.04s ========================
**Test Coverage Report:** ``` ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.4.2, pluggy-1.6.0 rootdir: /workspace/brian/python-repositories configfile: pyproject.toml plugins: cov-7.0.0, anyio-4.10.0 collected 59 items tests/integration/connection_aware_interface_test.py ...... [ 10%] tests/integration/context_aware_interface_test.py .... [ 16%] tests/integration/minio_adapter_test.py ........................... [ 62%] tests/integration/redis_adapter_test.py ...................... [100%] =============================== warnings summary =============================== .venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/waiting_utils.py:178: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready() .venv/lib/python3.12/site-packages/testcontainers/core/container.py:245 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/core/container.py:245: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready() .venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/redis/__init__.py:46: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready(redis.exceptions.ConnectionError) .venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101 /workspace/brian/python-repositories/.venv/lib/python3.12/site-packages/testcontainers/minio/__init__.py:101: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready')) @wait_container_is_ready(ConnectionError) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================================ tests coverage ================================ _______________ coverage: platform linux, python 3.12.3-final-0 ________________ Name Stmts Miss Cover Missing -------------------------------------------------------------------------------------------- python_repositories/__init__.py 3 0 100% python_repositories/adapters/__init__.py 3 0 100% python_repositories/adapters/minio_adapter.py 99 0 100% python_repositories/adapters/redis_adapter.py 75 0 100% python_repositories/interfaces/__init__.py 3 0 100% python_repositories/interfaces/connection_aware_interface.py 12 0 100% python_repositories/interfaces/context_aware_interface.py 9 0 100% -------------------------------------------------------------------------------------------- TOTAL 204 0 100% ======================= 59 passed, 4 warnings in 19.04s ======================== ```
brian merged commit 0ca07c02ac into main 2025-09-15 14:44:02 +02:00
brian deleted branch expose-minio-adapter 2025-09-15 14:44:04 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lille-vemmelund/python-repositories#5