testit-python-commons 3.2.1__tar.gz → 3.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-3.2.1 → testit_python_commons-3.2.2}/PKG-INFO +1 -1
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/setup.py +1 -1
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/app_properties.py +12 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/client/api_client.py +3 -1
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/client/client_configuration.py +4 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons.egg-info/PKG-INFO +1 -1
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/README.md +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/setup.cfg +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/__init__.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/client/__init__.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/client/converter.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/decorators.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/dynamic_methods.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/models/__init__.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/models/adapter_mode.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/models/link.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/models/link_type.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/models/outcome_type.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/models/step_result.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/models/test_result.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/services/__init__.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/services/adapter_manager.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/services/logger.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/services/plugin_manager.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/services/retry.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/services/step_manager.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/services/step_result_storage.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/services/utils.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/step.py +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons.egg-info/requires.txt +0 -0
- {testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons.egg-info/top_level.txt +0 -0
|
@@ -109,6 +109,10 @@ class AppProperties:
|
|
|
109
109
|
option.set_automatic_creation_test_cases):
|
|
110
110
|
cli_properties['automaticcreationtestcases'] = option.set_automatic_creation_test_cases
|
|
111
111
|
|
|
112
|
+
if hasattr(option, 'set_automatic_updation_links_to_test_cases') and cls.__check_property_value(
|
|
113
|
+
option.set_automatic_updation_links_to_test_cases):
|
|
114
|
+
cli_properties['automaticupdationlinkstotestcases'] = option.set_automatic_updation_links_to_test_cases
|
|
115
|
+
|
|
112
116
|
return cli_properties
|
|
113
117
|
|
|
114
118
|
@classmethod
|
|
@@ -156,6 +160,11 @@ class AppProperties:
|
|
|
156
160
|
env_properties['automaticcreationtestcases'] = os.environ.get(
|
|
157
161
|
f'{cls.__env_prefix}_AUTOMATIC_CREATION_TEST_CASES')
|
|
158
162
|
|
|
163
|
+
if f'{cls.__env_prefix}_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES' in os.environ.keys() and cls.__check_property_value(
|
|
164
|
+
os.environ.get(f'{cls.__env_prefix}_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES')):
|
|
165
|
+
env_properties['automaticupdationlinkstotestcases'] = os.environ.get(
|
|
166
|
+
f'{cls.__env_prefix}_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES')
|
|
167
|
+
|
|
159
168
|
return env_properties
|
|
160
169
|
|
|
161
170
|
@classmethod
|
|
@@ -214,6 +223,9 @@ class AppProperties:
|
|
|
214
223
|
if not cls.__check_property_value(properties.get('automaticcreationtestcases')):
|
|
215
224
|
properties['automaticcreationtestcases'] = 'false'
|
|
216
225
|
|
|
226
|
+
if not cls.__check_property_value(properties.get('automaticupdationlinkstotestcases')):
|
|
227
|
+
properties['automaticupdationlinkstotestcases'] = 'false'
|
|
228
|
+
|
|
217
229
|
@staticmethod
|
|
218
230
|
def __search_in_environ(var_name: str):
|
|
219
231
|
if re.fullmatch(r'{[a-zA-Z_]\w*}', var_name) and var_name[1:-1] in os.environ:
|
|
@@ -102,6 +102,7 @@ class ApiClientWorker:
|
|
|
102
102
|
|
|
103
103
|
@adapter_logger
|
|
104
104
|
def __update_autotest_link_from_work_items(self, autotest_global_id: str, work_item_ids: list):
|
|
105
|
+
|
|
105
106
|
linked_work_items = self.__get_work_items_linked_to_autotest(autotest_global_id)
|
|
106
107
|
|
|
107
108
|
for linked_work_item in linked_work_items:
|
|
@@ -112,7 +113,8 @@ class ApiClientWorker:
|
|
|
112
113
|
|
|
113
114
|
continue
|
|
114
115
|
|
|
115
|
-
self.
|
|
116
|
+
if self.__config.get_automatic_updation_links_to_test_cases() != 'false':
|
|
117
|
+
self.__unlink_test_to_work_item(autotest_global_id, linked_work_item_id)
|
|
116
118
|
|
|
117
119
|
for work_item_id in work_item_ids:
|
|
118
120
|
self.__link_test_to_work_item(autotest_global_id, work_item_id)
|
|
@@ -20,6 +20,7 @@ class ClientConfiguration:
|
|
|
20
20
|
self.__tms_proxy = app_properties.get('tmsproxy')
|
|
21
21
|
self.__adapter_mode = app_properties.get('adaptermode')
|
|
22
22
|
self.__cert_validation = app_properties.get('certvalidation')
|
|
23
|
+
self.__automatic_updation_links_to_test_cases = app_properties.get('automaticupdationlinkstotestcases')
|
|
23
24
|
|
|
24
25
|
@adapter_logger
|
|
25
26
|
def get_url(self):
|
|
@@ -63,3 +64,6 @@ class ClientConfiguration:
|
|
|
63
64
|
|
|
64
65
|
def get_cert_validation(self):
|
|
65
66
|
return self.__cert_validation
|
|
67
|
+
|
|
68
|
+
def get_automatic_updation_links_to_test_cases(self):
|
|
69
|
+
return self.__automatic_updation_links_to_test_cases
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/decorators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/models/link.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.2.1 → testit_python_commons-3.2.2}/src/testit_python_commons/step.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|