testit-python-commons 4.2.0.post570__tar.gz → 4.2.2__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.
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/PKG-INFO +2 -2
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/setup.py +2 -2
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/adapter_manager.py +35 -32
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons.egg-info/PKG-INFO +2 -2
- testit_python_commons-4.2.2/src/testit_python_commons.egg-info/requires.txt +3 -0
- testit_python_commons-4.2.0.post570/src/testit_python_commons.egg-info/requires.txt +0 -3
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/README.md +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/setup.cfg +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/api/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/api/completion_api.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/api/health_api.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/api/system_api.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/api/test_results_api.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/api/workers_api.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/api_client.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/apis/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/configuration.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/exceptions.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/completion_response.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/health_status_response.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/register_request.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/register_response.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/set_worker_status_request.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/set_worker_status_response.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/shutdown_response.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/test_result_cut_api_model.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model/test_result_save_response.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/model_utils.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/models/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/api_client_syncstorage/rest.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/app_properties.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/api_client.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/client_configuration.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/converter.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/helpers/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/models/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/configurations/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/configurations/properties_names.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/decorators.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/dynamic_methods.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/adapter_mode.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/fixture.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/link.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/link_type.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/outcome_type.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/status_type.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/step_result.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/test_result.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/fixture_manager.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/fixture_storage.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/logger.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/plugin_manager.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/retry.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/step_manager.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/step_result_storage.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/sync_storage/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/sync_storage/sync_storage_runner.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/services/utils.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/step.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/utils/__init__.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/src/testit_python_commons.egg-info/top_level.txt +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/tests/test_app_properties.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/tests/test_dynamic_methods.py +0 -0
- {testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/tests/test_html_escape_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testit-python-commons
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.2
|
|
4
4
|
Summary: Python commons for Test IT
|
|
5
5
|
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
6
|
Author: Integration team
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
Requires-Dist: pluggy
|
|
19
19
|
Requires-Dist: tomli
|
|
20
|
-
Requires-Dist: testit-api-client==7.5.
|
|
20
|
+
Requires-Dist: testit-api-client==7.5.6
|
|
21
21
|
Dynamic: author
|
|
22
22
|
Dynamic: author-email
|
|
23
23
|
Dynamic: classifier
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from setuptools import find_packages, setup
|
|
2
2
|
|
|
3
|
-
VERSION = "4.2.
|
|
3
|
+
VERSION = "4.2.2"
|
|
4
4
|
|
|
5
5
|
setup(
|
|
6
6
|
name='testit-python-commons',
|
|
@@ -25,5 +25,5 @@ setup(
|
|
|
25
25
|
py_modules=['testit', 'testit_python_commons'],
|
|
26
26
|
packages=find_packages(where='src'),
|
|
27
27
|
package_dir={'': 'src'},
|
|
28
|
-
install_requires=['pluggy', 'tomli', 'testit-api-client==7.5.
|
|
28
|
+
install_requires=['pluggy', 'tomli', 'testit-api-client==7.5.6']
|
|
29
29
|
)
|
|
@@ -48,45 +48,44 @@ class AdapterManager:
|
|
|
48
48
|
|
|
49
49
|
def _initialize_sync_storage(self, client_configuration: ClientConfiguration):
|
|
50
50
|
"""Initialize Sync Storage runner if enabled."""
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
test_run_id = self.__config.get_test_run_id()
|
|
51
|
+
if client_configuration.is_legacy_workflow():
|
|
52
|
+
return None
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
url = client_configuration.get_url()
|
|
65
|
-
private_token = client_configuration.get_private_token()
|
|
66
|
-
port = client_configuration.get_sync_storage_port()
|
|
67
|
-
print(f'sync storage port: {port}')
|
|
68
|
-
|
|
69
|
-
# Create and start Sync Storage runner
|
|
70
|
-
if SYNC_STORAGE_AVAILABLE:
|
|
71
|
-
sync_storage_runner = SyncStorageRunner(
|
|
72
|
-
test_run_id=test_run_id,
|
|
73
|
-
port=port,
|
|
74
|
-
base_url=url,
|
|
75
|
-
private_token=private_token,
|
|
76
|
-
)
|
|
54
|
+
test_run_id = self.__config.get_test_run_id()
|
|
55
|
+
if not test_run_id and self.__config.get_mode() == AdapterMode.NEW_TEST_RUN:
|
|
56
|
+
return None
|
|
57
|
+
|
|
58
|
+
if not test_run_id:
|
|
59
|
+
logging.warning('Sync Storage requires test run ID; skipping initialization')
|
|
60
|
+
return None
|
|
61
|
+
|
|
62
|
+
return self._start_sync_storage(test_run_id, client_configuration)
|
|
77
63
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
64
|
+
def _start_sync_storage(
|
|
65
|
+
self,
|
|
66
|
+
test_run_id: str,
|
|
67
|
+
client_configuration: ClientConfiguration):
|
|
68
|
+
try:
|
|
69
|
+
if not SYNC_STORAGE_AVAILABLE:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
sync_storage_runner = SyncStorageRunner(
|
|
73
|
+
test_run_id=test_run_id,
|
|
74
|
+
port=client_configuration.get_sync_storage_port(),
|
|
75
|
+
base_url=client_configuration.get_url(),
|
|
76
|
+
private_token=client_configuration.get_private_token(),
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
if sync_storage_runner.start():
|
|
80
|
+
logging.info("Sync Storage started successfully")
|
|
81
|
+
return sync_storage_runner
|
|
83
82
|
|
|
83
|
+
logging.warning("Failed to start Sync Storage")
|
|
84
84
|
except Exception as e:
|
|
85
85
|
logging.warning(f"Failed to initialize SyncStorage: {e}", exc_info=True)
|
|
86
86
|
|
|
87
87
|
return None
|
|
88
88
|
|
|
89
|
-
|
|
90
89
|
@adapter_logger
|
|
91
90
|
def set_test_run_id(self, test_run_id: str) -> None:
|
|
92
91
|
|
|
@@ -94,9 +93,13 @@ class AdapterManager:
|
|
|
94
93
|
|
|
95
94
|
self.__api_client.set_test_run_id(test_run_id)
|
|
96
95
|
|
|
97
|
-
# Update Sync Storage with test run ID if available
|
|
98
96
|
if self.__sync_storage_runner:
|
|
99
97
|
self.__sync_storage_runner.test_run_id = test_run_id
|
|
98
|
+
return
|
|
99
|
+
|
|
100
|
+
if SYNC_STORAGE_AVAILABLE and not self.__client_config.is_legacy_workflow():
|
|
101
|
+
self.__sync_storage_runner = self._start_sync_storage(
|
|
102
|
+
test_run_id, self.__client_config)
|
|
100
103
|
|
|
101
104
|
@adapter_logger
|
|
102
105
|
def get_test_run_id(self) -> str:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testit-python-commons
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.2
|
|
4
4
|
Summary: Python commons for Test IT
|
|
5
5
|
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
6
|
Author: Integration team
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
Requires-Dist: pluggy
|
|
19
19
|
Requires-Dist: tomli
|
|
20
|
-
Requires-Dist: testit-api-client==7.5.
|
|
20
|
+
Requires-Dist: testit-api-client==7.5.6
|
|
21
21
|
Dynamic: author
|
|
22
22
|
Dynamic: author-email
|
|
23
23
|
Dynamic: classifier
|
|
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
|
|
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
|
{testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/tests/test_app_properties.py
RENAMED
|
File without changes
|
{testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/tests/test_dynamic_methods.py
RENAMED
|
File without changes
|
{testit_python_commons-4.2.0.post570 → testit_python_commons-4.2.2}/tests/test_html_escape_utils.py
RENAMED
|
File without changes
|