Skip to content

Commit 6c6d8bd

Browse files
fix url
1 parent a10e5b8 commit 6c6d8bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/pytest-simcore/src/pytest_simcore/minio_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import pytest
66
from faker import Faker
7+
from pydantic import AnyHttpUrl, TypeAdapter
78
from pytest_simcore.helpers.docker import get_service_published_port
89
from pytest_simcore.helpers.host import get_localhost_ip
910
from pytest_simcore.helpers.monkeypatch_envs import setenvs_from_dict
@@ -20,7 +21,9 @@ def minio_s3_settings(
2021
return S3Settings(
2122
S3_ACCESS_KEY=testing_environ_vars["S3_ACCESS_KEY"],
2223
S3_SECRET_KEY=testing_environ_vars["S3_SECRET_KEY"],
23-
S3_ENDPOINT=f"http://{get_localhost_ip()}:{get_service_published_port('minio')}",
24+
S3_ENDPOINT=TypeAdapter(AnyHttpUrl).validate_python(
25+
f"http://{get_localhost_ip()}:{get_service_published_port('minio')}"
26+
),
2427
S3_BUCKET_NAME=testing_environ_vars["S3_BUCKET_NAME"],
2528
S3_REGION="us-east-1",
2629
)

0 commit comments

Comments
 (0)