-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use S3 dualstack endpoint by default
When using the default S3 endpoints, request using dualstack IPv4/IPv6 endpoints by default. This behavior can be disabled by configuring S3 with use_dualstack_endpoints as false.
- Loading branch information
1 parent
0a958d3
commit 451b588
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,10 @@ def test_get_transfer_s3( | |
) -> None: | ||
expected_config_arg = dict(config) | ||
expected_config_arg.pop("notifier") | ||
expected_botocore_config = {"proxies": {"https": "socks5://bob:[email protected]:16666"}} | ||
expected_botocore_config = { | ||
"proxies": {"https": "socks5://bob:[email protected]:16666"}, | ||
"use_dualstack_endpoint": True, | ||
} | ||
mock_config_model.return_value = S3ObjectStorageConfig(**expected_config_arg) | ||
|
||
transfer_object = get_transfer(config) | ||
|