dwave-cloud-client 0.14.3__tar.gz → 0.14.4__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.
- {dwave_cloud_client-0.14.3/dwave_cloud_client.egg-info → dwave_cloud_client-0.14.4}/PKG-INFO +1 -1
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/package_info.py +1 -1
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/logging.py +2 -2
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4/dwave_cloud_client.egg-info}/PKG-INFO +1 -1
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_utils.py +24 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/LICENSE +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/README.rst +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/__init__.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/api/__init__.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/api/client.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/api/constants.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/api/exceptions.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/api/models.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/api/resources.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/auth/__init__.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/auth/_creds.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/auth/config.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/auth/creds.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/auth/flows.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/auth/server.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/cli.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/client/__init__.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/client/base.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/client/hybrid.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/client/qpu.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/client/sw.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/coders.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/computation.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/concurrency.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/config/__init__.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/config/constants.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/config/exceptions.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/config/loaders.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/config/models.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/events.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/exceptions.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/regions.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/solver.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/testing/__init__.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/testing/mocks.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/upload.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/__init__.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/cli.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/coders.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/decorators.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/dist.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/exception.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/http.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/qubo.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave/cloud/utils/time.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/SOURCES.txt +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/dependency_links.txt +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/entry_points.txt +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/not-zip-safe +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/requires.txt +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/top_level.txt +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/pyproject.toml +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/setup.cfg +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/setup.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_cli.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_client.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_coders.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_concurrency.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_config.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_events.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_exceptions.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_mock_solver_loading.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_mock_submission.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_mock_unstructured_submission.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_regions.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_solver.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_solver_utils.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_testing.py +0 -0
- {dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_upload.py +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
__packagename__ = 'dwave-cloud-client'
|
|
16
16
|
__title__ = 'D-Wave Cloud Client'
|
|
17
|
-
__version__ = '0.14.
|
|
17
|
+
__version__ = '0.14.4'
|
|
18
18
|
__author__ = 'D-Wave Systems Inc.'
|
|
19
19
|
__description__ = 'A minimal client for interacting with D-Wave cloud resources.'
|
|
20
20
|
__url__ = 'https://github.com/dwavesystems/dwave-cloud-client'
|
|
@@ -190,11 +190,11 @@ def configure_logging(logger: Optional[logging.Logger] = None,
|
|
|
190
190
|
Formatter = ISOFormatter
|
|
191
191
|
|
|
192
192
|
if structured_output:
|
|
193
|
-
class Formatter(
|
|
193
|
+
class Formatter(JSONFormatter, Formatter):
|
|
194
194
|
pass
|
|
195
195
|
|
|
196
196
|
if filter_secrets:
|
|
197
|
-
class Formatter(
|
|
197
|
+
class Formatter(FilteredSecretsFormatter, Formatter):
|
|
198
198
|
pass
|
|
199
199
|
|
|
200
200
|
format = dict(
|
|
@@ -1153,6 +1153,30 @@ class TestLogging(unittest.TestCase):
|
|
|
1153
1153
|
self.assertEqual(record.get('message'), 'test')
|
|
1154
1154
|
self.assertEqual(record.get('key'), 'value')
|
|
1155
1155
|
|
|
1156
|
+
@capture_stderr
|
|
1157
|
+
def test_secrets_in_structured_output(self, output):
|
|
1158
|
+
secret = 'beefcafe-aaaa-bbbb-cccc-0123456789ab'
|
|
1159
|
+
|
|
1160
|
+
# secrets filtered by default
|
|
1161
|
+
configure_logging(logger, level=logging.INFO, structured_output=True)
|
|
1162
|
+
logger.info('test', extra=dict(secret=secret))
|
|
1163
|
+
|
|
1164
|
+
# secrets not filtered
|
|
1165
|
+
configure_logging(logger, level=logging.INFO, structured_output=True, filter_secrets=False)
|
|
1166
|
+
logger.info('test', extra=dict(secret=secret))
|
|
1167
|
+
|
|
1168
|
+
output.seek(0)
|
|
1169
|
+
lines = output.readlines()
|
|
1170
|
+
self.assertEqual(len(lines), 2)
|
|
1171
|
+
|
|
1172
|
+
# verify filtering on
|
|
1173
|
+
record = json.loads(lines[0])
|
|
1174
|
+
self.assertEqual(record.get('secret'), f'{secret[:3]}...{secret[-3:]}')
|
|
1175
|
+
|
|
1176
|
+
# verify filtering off
|
|
1177
|
+
record = json.loads(lines[1])
|
|
1178
|
+
self.assertEqual(record.get('secret'), secret)
|
|
1179
|
+
|
|
1156
1180
|
@capture_stderr
|
|
1157
1181
|
def test_multiple_handlers(self, output):
|
|
1158
1182
|
structured_stream = io.StringIO()
|
|
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
|
|
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
|
|
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
|
{dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/dwave_cloud_client.egg-info/top_level.txt
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
|
|
File without changes
|
{dwave_cloud_client-0.14.3 → dwave_cloud_client-0.14.4}/tests/test_mock_unstructured_submission.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|