added support for content type when putting object in minio #9

Merged
brian merged 2 commits from add-support-for-content-type-in-minio into main 2025-09-18 19:40:28 +02:00
Owner
No description provided.
brian added 1 commit 2025-09-18 19:34:20 +02:00
added support for content type when putting object in minio
Code Quality Pipeline / code-quality (pull_request) Failing after 24s
Test Python Package / test (pull_request) Successful in 1m9s
3ab8da92fb
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 60 items

tests/integration/connection_aware_interface_test.py ......              [ 10%]
tests/integration/context_aware_interface_test.py ....                   [ 16%]
tests/integration/minio_adapter_test.py ............................     [ 63%]
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                    103      0   100%
python_repositories/adapters/redis_adapter.py                     78      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                                                            211      0   100%
======================= 60 passed, 4 warnings in 53.48s ========================
**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 60 items tests/integration/connection_aware_interface_test.py ...... [ 10%] tests/integration/context_aware_interface_test.py .... [ 16%] tests/integration/minio_adapter_test.py ............................ [ 63%] 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 103 0 100% python_repositories/adapters/redis_adapter.py 78 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 211 0 100% ======================= 60 passed, 4 warnings in 53.48s ======================== ```
brian added 1 commit 2025-09-18 19:38:45 +02:00
ruff format fix
Code Quality Pipeline / code-quality (pull_request) Successful in 29s
Test Python Package / test (pull_request) Successful in 35s
2e9330949c
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 60 items

tests/integration/connection_aware_interface_test.py ......              [ 10%]
tests/integration/context_aware_interface_test.py ....                   [ 16%]
tests/integration/minio_adapter_test.py ............................     [ 63%]
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                    103      0   100%
python_repositories/adapters/redis_adapter.py                     78      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                                                            211      0   100%
======================= 60 passed, 4 warnings in 17.98s ========================
**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 60 items tests/integration/connection_aware_interface_test.py ...... [ 10%] tests/integration/context_aware_interface_test.py .... [ 16%] tests/integration/minio_adapter_test.py ............................ [ 63%] 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 103 0 100% python_repositories/adapters/redis_adapter.py 78 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 211 0 100% ======================= 60 passed, 4 warnings in 17.98s ======================== ```
brian merged commit fa011be862 into main 2025-09-18 19:40:28 +02:00
brian deleted branch add-support-for-content-type-in-minio 2025-09-18 19:40:29 +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#9