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
82 changes: 81 additions & 1 deletion .swagger/cloud-swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -29209,7 +29209,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkItemModel"
"$ref": "#/components/schemas/WorkItemApiResult"
}
}
}
Expand Down Expand Up @@ -37024,6 +37024,14 @@
"$ref": "#/components/schemas/CreateLinkApiModel"
},
"description": "Set of links related to the work item"
},
"parameters": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkItemParameterKeyApiModel"
},
"description": "Set of parameter keys related to the work item",
"nullable": true
}
},
"additionalProperties": false
Expand Down Expand Up @@ -41195,6 +41203,7 @@
},
"workflowId": {
"type": "string",
"description": "Identifier of current workflow",
"format": "uuid"
}
},
Expand Down Expand Up @@ -48041,6 +48050,14 @@
"description": "Specifies a test result status codes to search for",
"nullable": true
},
"statusTypes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TestStatusApiType"
},
"description": "Specifies a test result status types to search for",
"nullable": true
},
"failureCategories": {
"type": "array",
"items": {
Expand Down Expand Up @@ -50774,6 +50791,14 @@
},
"description": "Collection of autotest internal ids",
"nullable": true
},
"parameters": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkItemParameterKeyApiModel"
},
"description": "Set of parameter keys related to the work item",
"nullable": true
}
},
"additionalProperties": false
Expand Down Expand Up @@ -51550,6 +51575,7 @@
"links",
"medianDuration",
"name",
"parameters",
"postconditionSteps",
"preconditionSteps",
"priority",
Expand Down Expand Up @@ -51732,6 +51758,13 @@
},
"description": "Set of external issues related to the work item"
},
"parameters": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkItemParameterKeyApiResult"
},
"description": "Set of parameters related to the work item"
},
"createdDate": {
"type": "string",
"description": "Creation date of the work item",
Expand Down Expand Up @@ -53353,6 +53386,7 @@
"links",
"medianDuration",
"name",
"parameters",
"postconditionSteps",
"preconditionSteps",
"priority",
Expand Down Expand Up @@ -53488,6 +53522,12 @@
"$ref": "#/components/schemas/ExternalIssueModel"
}
},
"parameters": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkItemParameterKeyModel"
}
},
"id": {
"title": "Workitem internal identifier",
"type": "string",
Expand Down Expand Up @@ -53612,6 +53652,46 @@
},
"additionalProperties": false
},
"WorkItemParameterKeyApiModel": {
"required": [
"id"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "ID of the parameter key to assign",
"format": "uuid"
}
},
"additionalProperties": false
},
"WorkItemParameterKeyApiResult": {
"required": [
"id"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
},
"WorkItemParameterKeyModel": {
"required": [
"id"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
},
"WorkItemPreviewApiModel": {
"required": [
"description",
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
| 5.4.1 | 7.0.3.post541 |
| 5.5.0 | 7.2.0.post550 |
| 5.6.0 | 7.4.0.post560 |
| Cloud | 7.5.0 + |
| Cloud | 7.5.5 + |

1. For current versions, see the releases tab.
2. Starting with 5.2, we have added a TMS postscript, which means that the utility is compatible with a specific enterprise version.
Expand Down Expand Up @@ -1089,6 +1089,9 @@ Class | Method | HTTP request | Description
- [WorkItemLocalSelectModelFilter](docs/WorkItemLocalSelectModelFilter.md)
- [WorkItemModel](docs/WorkItemModel.md)
- [WorkItemMovePostModel](docs/WorkItemMovePostModel.md)
- [WorkItemParameterKeyApiModel](docs/WorkItemParameterKeyApiModel.md)
- [WorkItemParameterKeyApiResult](docs/WorkItemParameterKeyApiResult.md)
- [WorkItemParameterKeyModel](docs/WorkItemParameterKeyModel.md)
- [WorkItemPreviewApiModel](docs/WorkItemPreviewApiModel.md)
- [WorkItemPreviewStepApiModel](docs/WorkItemPreviewStepApiModel.md)
- [WorkItemPriority](docs/WorkItemPriority.md)
Expand Down
1 change: 1 addition & 0 deletions docs/ApiV2TestResultsSearchPostRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional]
**outcomes** | [**[TestResultOutcome], none_type**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional]
**status_codes** | **[str], none_type** | Specifies a test result status codes to search for | [optional]
**status_types** | [**[TestStatusApiType], none_type**](TestStatusApiType.md) | Specifies a test result status types to search for | [optional]
**failure_categories** | [**[FailureCategoryModel], none_type**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional]
**namespace** | **str, none_type** | Specifies a test result namespace to search for | [optional]
**class_name** | **str, none_type** | Specifies a test result class name to search for | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/ApiV2WorkItemsPostRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Name | Type | Description | Notes
**iterations** | [**[AssignIterationApiModel], none_type**](AssignIterationApiModel.md) | Associated iterations linked to the work item | [optional]
**auto_tests** | [**[AutoTestIdModel], none_type**](AutoTestIdModel.md) | Automated tests associated with the work item | [optional]
**attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Files attached to the work item | [optional]
**parameters** | [**[WorkItemParameterKeyApiModel], none_type**](WorkItemParameterKeyApiModel.md) | Set of parameter keys related to the work item | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions docs/CreateWorkItemApiModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Name | Type | Description | Notes
**iterations** | [**[AssignIterationApiModel], none_type**](AssignIterationApiModel.md) | Associated iterations linked to the work item | [optional]
**auto_tests** | [**[AutoTestIdModel], none_type**](AutoTestIdModel.md) | Automated tests associated with the work item | [optional]
**attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Files attached to the work item | [optional]
**parameters** | [**[WorkItemParameterKeyApiModel], none_type**](WorkItemParameterKeyApiModel.md) | Set of parameter keys related to the work item | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/ManualRerunSelectTestResultsApiModelFilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional]
**outcomes** | [**[TestResultOutcome], none_type**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional]
**status_codes** | **[str], none_type** | Specifies a test result status codes to search for | [optional]
**status_types** | [**[TestStatusApiType], none_type**](TestStatusApiType.md) | Specifies a test result status types to search for | [optional]
**failure_categories** | [**[FailureCategoryModel], none_type**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional]
**namespace** | **str, none_type** | Specifies a test result namespace to search for | [optional]
**class_name** | **str, none_type** | Specifies a test result class name to search for | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ProjectModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**created_by_id** | **str** | Unique ID of the project creator |
**global_id** | **int** | Global ID of the project |
**type** | [**ProjectTypeModel**](ProjectTypeModel.md) | |
**workflow_id** | **str** | |
**workflow_id** | **str** | Identifier of current workflow |
**description** | **str, none_type** | Description of the project | [optional]
**attributes_scheme** | [**[CustomAttributeModel], none_type**](CustomAttributeModel.md) | Collection of the project attributes | [optional]
**test_plans_attributes_scheme** | [**[CustomAttributeModel], none_type**](CustomAttributeModel.md) | Collection of the project test plans attributes | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/TestResultsFilterApiModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional]
**outcomes** | [**[TestResultOutcome], none_type**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional]
**status_codes** | **[str], none_type** | Specifies a test result status codes to search for | [optional]
**status_types** | [**[TestStatusApiType], none_type**](TestStatusApiType.md) | Specifies a test result status types to search for | [optional]
**failure_categories** | [**[FailureCategoryModel], none_type**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional]
**namespace** | **str, none_type** | Specifies a test result namespace to search for | [optional]
**class_name** | **str, none_type** | Specifies a test result class name to search for | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/TestResultsSelectApiModelFilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional]
**outcomes** | [**[TestResultOutcome], none_type**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional]
**status_codes** | **[str], none_type** | Specifies a test result status codes to search for | [optional]
**status_types** | [**[TestStatusApiType], none_type**](TestStatusApiType.md) | Specifies a test result status types to search for | [optional]
**failure_categories** | [**[FailureCategoryModel], none_type**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional]
**namespace** | **str, none_type** | Specifies a test result namespace to search for | [optional]
**class_name** | **str, none_type** | Specifies a test result class name to search for | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/UpdateWorkItemApiModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Name | Type | Description | Notes
**source_type** | [**WorkItemSourceTypeModel**](WorkItemSourceTypeModel.md) | | [optional]
**iterations** | [**[AssignIterationApiModel], none_type**](AssignIterationApiModel.md) | Collection of parameter id sets | [optional]
**auto_tests** | [**[AutoTestIdModel], none_type**](AutoTestIdModel.md) | Collection of autotest internal ids | [optional]
**parameters** | [**[WorkItemParameterKeyApiModel], none_type**](WorkItemParameterKeyApiModel.md) | Set of parameter keys related to the work item | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/UpdateWorkItemRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Name | Type | Description | Notes
**source_type** | [**WorkItemSourceTypeModel**](WorkItemSourceTypeModel.md) | | [optional]
**iterations** | [**[AssignIterationApiModel], none_type**](AssignIterationApiModel.md) | Collection of parameter id sets | [optional]
**auto_tests** | [**[AutoTestIdModel], none_type**](AutoTestIdModel.md) | Collection of autotest internal ids | [optional]
**parameters** | [**[WorkItemParameterKeyApiModel], none_type**](WorkItemParameterKeyApiModel.md) | Set of parameter keys related to the work item | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions docs/WorkItemApiResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Name | Type | Description | Notes
**attachments** | [**[AttachmentModel]**](AttachmentModel.md) | Files attached to the work item |
**links** | [**[LinkModel]**](LinkModel.md) | Set of links related to the work item |
**external_issues** | [**[ExternalIssueApiResult]**](ExternalIssueApiResult.md) | Set of external issues related to the work item |
**parameters** | [**[WorkItemParameterKeyApiResult]**](WorkItemParameterKeyApiResult.md) | Set of parameters related to the work item |
**created_date** | **datetime** | Creation date of the work item |
**created_by_id** | **str** | Unique identifier of the work item creator |
**is_deleted** | **bool** | Indicates whether the work item is marked as deleted |
Expand Down
1 change: 1 addition & 0 deletions docs/WorkItemModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**created_by_id** | **str** | |
**global_id** | **int** | |
**external_issues** | [**[ExternalIssueModel]**](ExternalIssueModel.md) | |
**parameters** | [**[WorkItemParameterKeyModel]**](WorkItemParameterKeyModel.md) | |
**id** | **str** | |
**section_id** | **str** | |
**state** | [**WorkItemStates**](WorkItemStates.md) | |
Expand Down
11 changes: 11 additions & 0 deletions docs/WorkItemParameterKeyApiModel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# WorkItemParameterKeyApiModel


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | ID of the parameter key to assign |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions docs/WorkItemParameterKeyApiResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# WorkItemParameterKeyApiResult


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions docs/WorkItemParameterKeyModel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# WorkItemParameterKeyModel


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


6 changes: 3 additions & 3 deletions docs/WorkItemsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_work_item_by_id**
> WorkItemModel get_work_item_by_id(id)
> WorkItemApiResult get_work_item_by_id(id)

Get Test Case, Checklist or Shared Step by Id or GlobalId

Expand All @@ -1917,7 +1917,7 @@ import time
import testit_api_client
from testit_api_client.api import work_items_api
from testit_api_client.model.problem_details import ProblemDetails
from testit_api_client.model.work_item_model import WorkItemModel
from testit_api_client.model.work_item_api_result import WorkItemApiResult
from testit_api_client.model.validation_problem_details import ValidationProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
Expand Down Expand Up @@ -1974,7 +1974,7 @@ Name | Type | Description | Notes

### Return type

[**WorkItemModel**](WorkItemModel.md)
[**WorkItemApiResult**](WorkItemApiResult.md)

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion genConfig.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packageName: "testit_api_client"
packageUrl: "https://pypi.org/project/testit-api-client/"
packageVersion: 7.5.4
packageVersion: 7.5.5
projectName: "testit-api-client"
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Настройка переменных
FILE_NAME="cloud-swagger.json"
NEW_VERSION="7.5.4"
NEW_VERSION="7.5.5"
GENERATOR="openapi-generator-cli-6.6.0.jar"

if [ ! -f ".swagger/$FILE_NAME" ]; then
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

NAME = "testit-api-client"

VERSION = "7.5.4"
VERSION = "7.5.5"

PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
Expand Down
2 changes: 1 addition & 1 deletion src/testit_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""


__version__ = "7.5.4"
__version__ = "7.5.5"

# import ApiClient
from testit_api_client.api_client import ApiClient
Expand Down
4 changes: 2 additions & 2 deletions src/testit_api_client/api/work_items_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ def __init__(self, api_client=None):
)
self.get_work_item_by_id_endpoint = _Endpoint(
settings={
'response_type': (WorkItemModel,),
'response_type': (WorkItemApiResult,),
'auth': [
'Bearer or PrivateToken'
],
Expand Down Expand Up @@ -3381,7 +3381,7 @@ def get_work_item_by_id(
async_req (bool): execute request asynchronously

Returns:
WorkItemModel
WorkItemApiResult
If the method is called asynchronously, returns the request
thread.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/testit_api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/7.5.4/python'
self.user_agent = 'OpenAPI-Generator/7.5.5/python'

def __enter__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion src/testit_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v2.0\n"\
"SDK Package Version: 7.5.4".\
"SDK Package Version: 7.5.5".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
Loading
Loading