ibm-cloud-sdk-core 3.20.2__tar.gz → 3.20.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ibm-cloud-sdk-core-3.20.2/ibm_cloud_sdk_core.egg-info → ibm-cloud-sdk-core-3.20.3}/PKG-INFO +2 -2
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/README.md +1 -1
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/http_adapter.py +3 -2
- ibm-cloud-sdk-core-3.20.3/ibm_cloud_sdk_core/version.py +1 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3/ibm_cloud_sdk_core.egg-info}/PKG-INFO +2 -2
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/setup.py +1 -1
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_http_adapter.py +1 -12
- ibm-cloud-sdk-core-3.20.2/ibm_cloud_sdk_core/version.py +0 -1
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/LICENSE +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/MANIFEST.in +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/__init__.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/api_exception.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/__init__.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/basic_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/bearer_token_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/container_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/cp4d_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/iam_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/iam_request_based_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/mcsp_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/no_auth_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/authenticators/vpc_instance_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/base_service.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/detailed_response.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/get_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/private_helpers.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/token_managers/__init__.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/token_managers/container_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/token_managers/cp4d_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/token_managers/iam_request_based_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/token_managers/iam_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/token_managers/jwt_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/token_managers/mcsp_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/token_managers/token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/token_managers/vpc_instance_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/utils.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core.egg-info/SOURCES.txt +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core.egg-info/dependency_links.txt +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core.egg-info/requires.txt +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core.egg-info/top_level.txt +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core.egg-info/zip-safe +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/pyproject.toml +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/requirements-dev.txt +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/requirements.txt +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/setup.cfg +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/__init__.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_api_exception.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_base_service.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_basic_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_bearer_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_container_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_container_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_cp4d_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_cp4d_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_detailed_response.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_iam_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_iam_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_jwt_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_mcsp_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_mcsp_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_no_auth_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_utils.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_vpc_instance_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_vpc_instance_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test_integration/__init__.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test_integration/test_cp4d_authenticator_integration.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test_integration/test_iam_authenticator_integration.py +0 -0
- {ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test_integration/test_mcsp_authenticator_integration.py +0 -0
{ibm-cloud-sdk-core-3.20.2/ibm_cloud_sdk_core.egg-info → ibm-cloud-sdk-core-3.20.3}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-cloud-sdk-core
|
|
3
|
-
Version: 3.20.
|
|
3
|
+
Version: 3.20.3
|
|
4
4
|
Summary: Core library used by SDKs for IBM Cloud Services
|
|
5
5
|
Home-page: https://github.com/IBM/python-sdk-core
|
|
6
6
|
Author: IBM
|
|
@@ -29,7 +29,7 @@ License-File: LICENSE
|
|
|
29
29
|
[](https://cla-assistant.io/ibm/python-sdk-core)
|
|
30
30
|
[](https://github.com/semantic-release/semantic-release)
|
|
31
31
|
|
|
32
|
-
# IBM Python SDK Core Version 3.20.
|
|
32
|
+
# IBM Python SDK Core Version 3.20.3
|
|
33
33
|
This project contains core functionality required by Python code generated by the IBM Cloud OpenAPI SDK Generator
|
|
34
34
|
(openapi-sdkgen).
|
|
35
35
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://cla-assistant.io/ibm/python-sdk-core)
|
|
5
5
|
[](https://github.com/semantic-release/semantic-release)
|
|
6
6
|
|
|
7
|
-
# IBM Python SDK Core Version 3.20.
|
|
7
|
+
# IBM Python SDK Core Version 3.20.3
|
|
8
8
|
This project contains core functionality required by Python code generated by the IBM Cloud OpenAPI SDK Generator
|
|
9
9
|
(openapi-sdkgen).
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ssl
|
|
2
2
|
|
|
3
|
+
from requests import certs
|
|
3
4
|
from requests.adapters import HTTPAdapter, DEFAULT_POOLBLOCK
|
|
4
5
|
from urllib3.util.ssl_ import create_urllib3_context
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
# pylint: disable=fixme
|
|
8
8
|
class SSLHTTPAdapter(HTTPAdapter):
|
|
9
9
|
"""Wraps the original HTTP adapter and adds additional SSL context."""
|
|
10
10
|
|
|
@@ -17,7 +17,8 @@ class SSLHTTPAdapter(HTTPAdapter):
|
|
|
17
17
|
"""Create and use custom SSL configuration."""
|
|
18
18
|
|
|
19
19
|
ssl_context = create_urllib3_context()
|
|
20
|
-
|
|
20
|
+
# NOTE: https://github.com/psf/requests/pull/6731/files#r1622893724
|
|
21
|
+
ssl_context.load_verify_locations(certs.where())
|
|
21
22
|
ssl_context.minimum_version = ssl.TLSVersion.TLSv1_2
|
|
22
23
|
|
|
23
24
|
if self._disable_ssl_verification:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '3.20.3'
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3/ibm_cloud_sdk_core.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-cloud-sdk-core
|
|
3
|
-
Version: 3.20.
|
|
3
|
+
Version: 3.20.3
|
|
4
4
|
Summary: Core library used by SDKs for IBM Cloud Services
|
|
5
5
|
Home-page: https://github.com/IBM/python-sdk-core
|
|
6
6
|
Author: IBM
|
|
@@ -29,7 +29,7 @@ License-File: LICENSE
|
|
|
29
29
|
[](https://cla-assistant.io/ibm/python-sdk-core)
|
|
30
30
|
[](https://github.com/semantic-release/semantic-release)
|
|
31
31
|
|
|
32
|
-
# IBM Python SDK Core Version 3.20.
|
|
32
|
+
# IBM Python SDK Core Version 3.20.3
|
|
33
33
|
This project contains core functionality required by Python code generated by the IBM Cloud OpenAPI SDK Generator
|
|
34
34
|
(openapi-sdkgen).
|
|
35
35
|
|
|
@@ -3,7 +3,7 @@ import os
|
|
|
3
3
|
import threading
|
|
4
4
|
import warnings
|
|
5
5
|
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
|
6
|
-
from ssl import
|
|
6
|
+
from ssl import SSLContext, PROTOCOL_TLSv1_1, PROTOCOL_TLSv1_2
|
|
7
7
|
from typing import Callable
|
|
8
8
|
|
|
9
9
|
import pytest
|
|
@@ -105,17 +105,6 @@ def test_tls_v1_2():
|
|
|
105
105
|
|
|
106
106
|
ssl_context = service.http_adapter.poolmanager.connection_pool_kw.get("ssl_context")
|
|
107
107
|
assert ssl_context is not None
|
|
108
|
-
# In some cases (especially in Ubuntu containers that we use for testing on Travis)
|
|
109
|
-
# the default CA certificates are stored in a different place, so let's try to
|
|
110
|
-
# load those before making the final decision for this test case.
|
|
111
|
-
if len(ssl_context.get_ca_certs()) == 0:
|
|
112
|
-
try:
|
|
113
|
-
default_ca_path = get_default_verify_paths().capath
|
|
114
|
-
ssl_context.load_verify_locations(os.path.join(default_ca_path, 'ca-certificates.crt'))
|
|
115
|
-
except:
|
|
116
|
-
# Errors are ignored, let's jump straight to the assertion.
|
|
117
|
-
pass
|
|
118
|
-
|
|
119
108
|
assert len(ssl_context.get_ca_certs()) > 0
|
|
120
109
|
|
|
121
110
|
prepped = service.prepare_request('GET', url='/status')
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '3.20.2'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/detailed_response.py
RENAMED
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/get_authenticator.py
RENAMED
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core/private_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core.egg-info/requires.txt
RENAMED
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core.egg-info/top_level.txt
RENAMED
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/ibm_cloud_sdk_core.egg-info/zip-safe
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_container_authenticator.py
RENAMED
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_container_token_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_vpc_instance_authenticator.py
RENAMED
|
File without changes
|
{ibm-cloud-sdk-core-3.20.2 → ibm-cloud-sdk-core-3.20.3}/test/test_vpc_instance_token_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|