Skip to content

Commit

Permalink
Disable ssl verification during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSuperiorStanislav committed Sep 2, 2024
1 parent 8f55d9c commit 25e851a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions saritasa_s3_tools/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def get_boto3_s3_client(
region: RegionGetter | str = "",
max_pool_connections: int = 100,
signature_version: str | None = None,
verify: bool = True,
) -> mypy_boto3_s3.S3Client:
"""Prepare boto3's s3 client for usage."""
endpoint_url = None
Expand All @@ -44,6 +45,7 @@ def get_boto3_s3_client(
return boto3.client(
service_name="s3", # type: ignore
region_name=region,
verify=verify,
aws_session_token=credentials.token or None,
aws_access_key_id=credentials.access_key or None,
aws_secret_access_key=credentials.secret_key or None,
Expand Down
1 change: 1 addition & 0 deletions saritasa_s3_tools/testing/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def boto3_client(
access_key_getter=access_key_getter,
s3_endpoint_url_getter=s3_endpoint_url_getter,
region=s3_region,
verify=False,
)


Expand Down

0 comments on commit 25e851a

Please sign in to comment.