diff --git a/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py b/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py index cbe557d..e066ad2 100644 --- a/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py +++ b/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py @@ -90,9 +90,9 @@ def openapi_types(): 'is_enabled': (bool,), # noqa: E501 'is_required': (bool,), # noqa: E501 'is_global': (bool,), # noqa: E501 - 'is_read_only': (bool,), # noqa: E501 - 'is_system': (bool,), # noqa: E501 - 'targets': ([str],), # noqa: E501 + 'is_read_only': (bool, none_type,), # noqa: E501 + 'is_system': (bool, none_type,), # noqa: E501 + 'targets': ([str], none_type,), # noqa: E501 'code': (str, none_type,), # noqa: E501 } @@ -123,7 +123,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_required, is_global, is_read_only, is_system, targets, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_required, is_global, *args, **kwargs): # noqa: E501 """CustomAttributeApiResult - a model defined in OpenAPI Args: @@ -135,11 +135,11 @@ def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_ is_enabled (bool): Indicates if the attribute is enabled is_required (bool): Indicates if the attribute value is mandatory to specify is_global (bool): Indicates if the attribute is available across all projects - is_read_only (bool): Indicates if the attribute is read-only - is_system (bool): Indicates if the attribute is system - targets ([str]): Collection of the attribute targets Defines where the attribute can be used (e.g., TestCases, AutoTestCases, TestPlans) Keyword Args: + is_read_only (bool): Indicates if the attribute is read-only. [optional] # noqa: E501 + is_system (bool): Indicates if the attribute is system. [optional] # noqa: E501 + targets ([str]): Collection of the attribute targets. [optional] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -178,6 +178,9 @@ def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_ _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + is_read_only = kwargs.pop('is_read_only', False) + is_system = kwargs.pop('is_system', False) + targets = kwargs.pop('targets', None) self = super(OpenApiModel, cls).__new__(cls) @@ -233,7 +236,7 @@ def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_ ]) @convert_js_args_to_python_args - def __init__(self, id, options, type, is_deleted, name, is_enabled, is_required, is_global, is_read_only, is_system, targets, *args, **kwargs): # noqa: E501 + def __init__(self, id, options, type, is_deleted, name, is_enabled, is_required, is_global, *args, **kwargs): # noqa: E501 """CustomAttributeApiResult - a model defined in OpenAPI Args: @@ -245,11 +248,11 @@ def __init__(self, id, options, type, is_deleted, name, is_enabled, is_required, is_enabled (bool): Indicates if the attribute is enabled is_required (bool): Indicates if the attribute value is mandatory to specify is_global (bool): Indicates if the attribute is available across all projects - is_read_only (bool): Indicates if the attribute is read-only - is_system (bool): Indicates if the attribute is system - targets ([str]): Collection of the attribute targets Defines where the attribute can be used (e.g., TestCases, AutoTestCases, TestPlans) Keyword Args: + is_read_only (bool): Indicates if the attribute is read-only. [optional] # noqa: E501 + is_system (bool): Indicates if the attribute is system. [optional] # noqa: E501 + targets ([str]): Collection of the attribute targets. [optional] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -288,6 +291,9 @@ def __init__(self, id, options, type, is_deleted, name, is_enabled, is_required, _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + is_read_only = kwargs.pop('is_read_only', False) + is_system = kwargs.pop('is_system', False) + targets = kwargs.pop('targets', None) if args: for arg in args: diff --git a/testit-python-commons/src/testit_python_commons/client/converter.py b/testit-python-commons/src/testit_python_commons/client/converter.py index 5b3d2d7..b7d017c 100644 --- a/testit-python-commons/src/testit_python_commons/client/converter.py +++ b/testit-python-commons/src/testit_python_commons/client/converter.py @@ -305,6 +305,7 @@ def test_result_to_autotest_put_model( external_id=test_result.get_external_id(), project_id=project_id, name=test_result.get_autotest_name(), + reset_layer=False, steps=cls.step_results_to_autotest_steps_model( test_result.get_step_results()), setup=cls.step_results_to_autotest_steps_model( @@ -331,6 +332,7 @@ def test_result_to_update_autotest_request( external_id=test_result.get_external_id(), project_id=project_id, name=test_result.get_autotest_name(), + reset_layer=False, steps=cls.step_results_to_autotest_steps_model( test_result.get_step_results()), setup=cls.step_results_to_autotest_steps_model(