Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/mode0-orphan-testpoint-inprogress.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ autotest/result parameters, plus search that ignores parameters.

### Why short search is not enough

`TestResultShortResponse` (search) has **no `parameters`**. Full / v2 payload does.
Adapters OpenAPI models also omit `testPointId` on short DTOs → temporary
`GET /api/v2/testResults/{id}` for both `testPointId` and `parameters`.
`TestResultShortResponse` (search) has **no `parameters`** / `testPointId`.
Full detail comes from `GET /adapters/testResults/{id}` (`TestResultResponse`).

---

Expand Down
27 changes: 27 additions & 0 deletions testit-python-commons/src/adapters_api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# flake8: noqa

"""
API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: adapters
Generated by: https://openapi-generator.tech
"""


__version__ = "1.0.0"

# import ApiClient
from adapters_api.api_client import ApiClient

# import Configuration
from adapters_api.configuration import Configuration

# import exceptions
from adapters_api.exceptions import OpenApiException
from adapters_api.exceptions import ApiAttributeError
from adapters_api.exceptions import ApiTypeError
from adapters_api.exceptions import ApiValueError
from adapters_api.exceptions import ApiKeyError
from adapters_api.exceptions import ApiException
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# do not import all apis into this module because that uses a lot of memory and stack frames
# if you need the ability to import all apis from one package, import them with
# from api_client_adapters.apis import AttachmentsApi
# from adapters_api.apis import AttachmentsApi
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import re # noqa: F401
import sys # noqa: F401

from api_client_adapters.api_client import ApiClient, Endpoint as _Endpoint
from api_client_adapters.model_utils import ( # noqa: F401
from adapters_api.api_client import ApiClient, Endpoint as _Endpoint
from adapters_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
Expand All @@ -21,10 +21,10 @@
none_type,
validate_and_convert_types
)
from api_client_adapters.model.attachment_model import AttachmentModel
from api_client_adapters.model.image_resize_type import ImageResizeType
from api_client_adapters.model.problem_details import ProblemDetails
from api_client_adapters.model.validation_problem_details import ValidationProblemDetails
from adapters_api.model.attachment_model import AttachmentModel
from adapters_api.model.image_resize_type import ImageResizeType
from adapters_api.model.problem_details import ProblemDetails
from adapters_api.model.validation_problem_details import ValidationProblemDetails


class AttachmentsApi(object):
Expand All @@ -43,7 +43,7 @@ def __init__(self, api_client=None):
'response_type': ([AttachmentModel],),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/attachments/bulk',
'operation_id': 'adapters_attachments_bulk_post',
Expand Down Expand Up @@ -96,7 +96,7 @@ def __init__(self, api_client=None):
'response_type': None,
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/attachments/{id}',
'operation_id': 'adapters_attachments_id_get',
Expand Down Expand Up @@ -193,7 +193,7 @@ def __init__(self, api_client=None):
'response_type': (AttachmentModel,),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/attachments',
'operation_id': 'adapters_attachments_post',
Expand Down Expand Up @@ -412,7 +412,7 @@ def adapters_attachments_post(
):
"""Upload new attachment file # noqa: E501

File size is restricted to 1 GB (1 073 741 824 bytes) # noqa: E501
File size is restricted to 50 MB (52 428 800 bytes) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import re # noqa: F401
import sys # noqa: F401

from api_client_adapters.api_client import ApiClient, Endpoint as _Endpoint
from api_client_adapters.model_utils import ( # noqa: F401
from adapters_api.api_client import ApiClient, Endpoint as _Endpoint
from adapters_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
Expand All @@ -21,18 +21,18 @@
none_type,
validate_and_convert_types
)
from api_client_adapters.model.adapters_auto_tests_id_work_items_post_request import AdaptersAutoTestsIdWorkItemsPostRequest
from api_client_adapters.model.adapters_auto_tests_post_request import AdaptersAutoTestsPostRequest
from api_client_adapters.model.adapters_auto_tests_put_request import AdaptersAutoTestsPutRequest
from api_client_adapters.model.adapters_auto_tests_search_post_request import AdaptersAutoTestsSearchPostRequest
from api_client_adapters.model.auto_test_api_result import AutoTestApiResult
from api_client_adapters.model.auto_test_create_api_model import AutoTestCreateApiModel
from api_client_adapters.model.auto_test_model import AutoTestModel
from api_client_adapters.model.auto_test_update_api_model import AutoTestUpdateApiModel
from api_client_adapters.model.auto_test_work_item_identifier_api_result import AutoTestWorkItemIdentifierApiResult
from api_client_adapters.model.operation import Operation
from api_client_adapters.model.problem_details import ProblemDetails
from api_client_adapters.model.validation_problem_details import ValidationProblemDetails
from adapters_api.model.adapters_auto_tests_id_work_items_post_request import AdaptersAutoTestsIdWorkItemsPostRequest
from adapters_api.model.adapters_auto_tests_post_request import AdaptersAutoTestsPostRequest
from adapters_api.model.adapters_auto_tests_put_request import AdaptersAutoTestsPutRequest
from adapters_api.model.adapters_auto_tests_search_post_request import AdaptersAutoTestsSearchPostRequest
from adapters_api.model.auto_test_api_result import AutoTestApiResult
from adapters_api.model.auto_test_create_api_model import AutoTestCreateApiModel
from adapters_api.model.auto_test_model import AutoTestModel
from adapters_api.model.auto_test_update_api_model import AutoTestUpdateApiModel
from adapters_api.model.auto_test_work_item_identifier_api_result import AutoTestWorkItemIdentifierApiResult
from adapters_api.model.operation import Operation
from adapters_api.model.problem_details import ProblemDetails
from adapters_api.model.validation_problem_details import ValidationProblemDetails


class AutoTestsApi(object):
Expand All @@ -51,7 +51,7 @@ def __init__(self, api_client=None):
'response_type': ([AutoTestApiResult],),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests/bulk',
'operation_id': 'adapters_auto_tests_bulk_post',
Expand Down Expand Up @@ -107,7 +107,7 @@ def __init__(self, api_client=None):
'response_type': None,
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests/bulk',
'operation_id': 'adapters_auto_tests_bulk_put',
Expand Down Expand Up @@ -158,7 +158,7 @@ def __init__(self, api_client=None):
'response_type': ([AutoTestModel],),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests',
'operation_id': 'adapters_auto_tests_get',
Expand Down Expand Up @@ -334,7 +334,7 @@ def __init__(self, api_client=None):
'response_type': (AutoTestApiResult,),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests/{id}',
'operation_id': 'adapters_auto_tests_id_get',
Expand Down Expand Up @@ -386,7 +386,7 @@ def __init__(self, api_client=None):
'response_type': None,
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests/{id}',
'operation_id': 'adapters_auto_tests_id_patch',
Expand Down Expand Up @@ -444,7 +444,7 @@ def __init__(self, api_client=None):
'response_type': None,
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests/{id}/work-items',
'operation_id': 'adapters_auto_tests_id_work_items_delete',
Expand Down Expand Up @@ -501,7 +501,7 @@ def __init__(self, api_client=None):
'response_type': ([AutoTestWorkItemIdentifierApiResult],),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests/{id}/work-items',
'operation_id': 'adapters_auto_tests_id_work_items_get',
Expand Down Expand Up @@ -563,7 +563,7 @@ def __init__(self, api_client=None):
'response_type': None,
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests/{id}/work-items',
'operation_id': 'adapters_auto_tests_id_work_items_post',
Expand Down Expand Up @@ -621,7 +621,7 @@ def __init__(self, api_client=None):
'response_type': (AutoTestApiResult,),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests',
'operation_id': 'adapters_auto_tests_post',
Expand Down Expand Up @@ -672,7 +672,7 @@ def __init__(self, api_client=None):
'response_type': None,
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests',
'operation_id': 'adapters_auto_tests_put',
Expand Down Expand Up @@ -723,7 +723,7 @@ def __init__(self, api_client=None):
'response_type': ([AutoTestApiResult],),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/autoTests/search',
'operation_id': 'adapters_auto_tests_search_post',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import re # noqa: F401
import sys # noqa: F401

from api_client_adapters.api_client import ApiClient, Endpoint as _Endpoint
from api_client_adapters.model_utils import ( # noqa: F401
from adapters_api.api_client import ApiClient, Endpoint as _Endpoint
from adapters_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
Expand All @@ -21,10 +21,10 @@
none_type,
validate_and_convert_types
)
from api_client_adapters.model.adapters_configurations_search_post_request import AdaptersConfigurationsSearchPostRequest
from api_client_adapters.model.configuration_model import ConfigurationModel
from api_client_adapters.model.problem_details import ProblemDetails
from api_client_adapters.model.validation_problem_details import ValidationProblemDetails
from adapters_api.model.adapters_configurations_search_post_request import AdaptersConfigurationsSearchPostRequest
from adapters_api.model.configuration_model import ConfigurationModel
from adapters_api.model.problem_details import ProblemDetails
from adapters_api.model.validation_problem_details import ValidationProblemDetails


class ConfigurationsApi(object):
Expand All @@ -43,7 +43,7 @@ def __init__(self, api_client=None):
'response_type': ([ConfigurationModel],),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/configurations/search',
'operation_id': 'adapters_configurations_search_post',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import re # noqa: F401
import sys # noqa: F401

from api_client_adapters.api_client import ApiClient, Endpoint as _Endpoint
from api_client_adapters.model_utils import ( # noqa: F401
from adapters_api.api_client import ApiClient, Endpoint as _Endpoint
from adapters_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
Expand All @@ -21,11 +21,11 @@
none_type,
validate_and_convert_types
)
from api_client_adapters.model.adapters_parameters_post_request import AdaptersParametersPostRequest
from api_client_adapters.model.adapters_parameters_search_post_request import AdaptersParametersSearchPostRequest
from api_client_adapters.model.parameter_api_result import ParameterApiResult
from api_client_adapters.model.problem_details import ProblemDetails
from api_client_adapters.model.validation_problem_details import ValidationProblemDetails
from adapters_api.model.adapters_parameters_post_request import AdaptersParametersPostRequest
from adapters_api.model.adapters_parameters_search_post_request import AdaptersParametersSearchPostRequest
from adapters_api.model.parameter_api_result import ParameterApiResult
from adapters_api.model.problem_details import ProblemDetails
from adapters_api.model.validation_problem_details import ValidationProblemDetails


class ParametersApi(object):
Expand All @@ -44,7 +44,7 @@ def __init__(self, api_client=None):
'response_type': (ParameterApiResult,),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/parameters/{id}',
'operation_id': 'adapters_parameters_id_get',
Expand Down Expand Up @@ -96,7 +96,7 @@ def __init__(self, api_client=None):
'response_type': (ParameterApiResult,),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/parameters',
'operation_id': 'adapters_parameters_post',
Expand Down Expand Up @@ -147,7 +147,7 @@ def __init__(self, api_client=None):
'response_type': ([ParameterApiResult],),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/parameters/search',
'operation_id': 'adapters_parameters_search_post',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import re # noqa: F401
import sys # noqa: F401

from api_client_adapters.api_client import ApiClient, Endpoint as _Endpoint
from api_client_adapters.model_utils import ( # noqa: F401
from adapters_api.api_client import ApiClient, Endpoint as _Endpoint
from adapters_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
Expand All @@ -21,11 +21,11 @@
none_type,
validate_and_convert_types
)
from api_client_adapters.model.adapters_projects_project_id_attributes_put_request import AdaptersProjectsProjectIdAttributesPutRequest
from api_client_adapters.model.adapters_projects_project_id_attributes_search_post_request import AdaptersProjectsProjectIdAttributesSearchPostRequest
from api_client_adapters.model.custom_attribute_get_model import CustomAttributeGetModel
from api_client_adapters.model.problem_details import ProblemDetails
from api_client_adapters.model.validation_problem_details import ValidationProblemDetails
from adapters_api.model.adapters_projects_project_id_attributes_put_request import AdaptersProjectsProjectIdAttributesPutRequest
from adapters_api.model.adapters_projects_project_id_attributes_search_post_request import AdaptersProjectsProjectIdAttributesSearchPostRequest
from adapters_api.model.custom_attribute_model import CustomAttributeModel
from adapters_api.model.problem_details import ProblemDetails
from adapters_api.model.validation_problem_details import ValidationProblemDetails


class ProjectAttributesApi(object):
Expand All @@ -44,7 +44,7 @@ def __init__(self, api_client=None):
'response_type': None,
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/projects/{projectId}/attributes',
'operation_id': 'adapters_projects_project_id_attributes_put',
Expand Down Expand Up @@ -99,10 +99,10 @@ def __init__(self, api_client=None):
)
self.adapters_projects_project_id_attributes_search_post_endpoint = _Endpoint(
settings={
'response_type': ([CustomAttributeGetModel],),
'response_type': ([CustomAttributeModel],),
'auth': [
'PrivateToken',
'Cookies'
'Identity.Application'
],
'endpoint_path': '/adapters/projects/{projectId}/attributes/search',
'operation_id': 'adapters_projects_project_id_attributes_search_post',
Expand Down Expand Up @@ -319,7 +319,7 @@ def adapters_projects_project_id_attributes_search_post(
async_req (bool): execute request asynchronously

Returns:
[CustomAttributeGetModel]
[CustomAttributeModel]
If the method is called asynchronously, returns the request
thread.
"""
Expand Down
Loading
Loading