testit-js-commons 4.2.0-TMS-5.8 → 5.0.0
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.
- package/lib/adapters-api/dist/ApiClient.js +683 -0
- package/lib/adapters-api/dist/api/AttachmentsApi.js +165 -0
- package/lib/adapters-api/dist/api/AutoTestsApi.js +536 -0
- package/lib/adapters-api/dist/api/ConfigurationsApi.js +91 -0
- package/lib/adapters-api/dist/api/ParametersApi.js +159 -0
- package/lib/adapters-api/dist/api/ProjectAttributesApi.js +140 -0
- package/lib/adapters-api/dist/api/ProjectSectionsApi.js +96 -0
- package/lib/adapters-api/dist/api/ProjectWorkItemsApi.js +99 -0
- package/lib/adapters-api/dist/api/ProjectsApi.js +200 -0
- package/lib/adapters-api/dist/api/SectionsApi.js +118 -0
- package/lib/adapters-api/dist/api/TestResultsApi.js +168 -0
- package/lib/adapters-api/dist/api/TestRunsApi.js +331 -0
- package/lib/adapters-api/dist/api/WorkItemsApi.js +170 -0
- package/lib/adapters-api/dist/api/WorkflowsApi.js +75 -0
- package/lib/adapters-api/dist/index.js +951 -0
- package/lib/adapters-api/dist/model/AssignAttachmentApiModel.js +89 -0
- package/lib/adapters-api/dist/model/AssignAutoTestCaseIdApiModel.js +89 -0
- package/lib/adapters-api/dist/model/AssignIterationApiModel.js +112 -0
- package/lib/adapters-api/dist/model/AttachmentApiResult.js +145 -0
- package/lib/adapters-api/dist/model/AttachmentModel.js +193 -0
- package/lib/adapters-api/dist/model/AttachmentPutModel.js +89 -0
- package/lib/adapters-api/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +196 -0
- package/lib/adapters-api/dist/model/AttachmentUpdateRequest.js +89 -0
- package/lib/adapters-api/dist/model/AutoTest.js +327 -0
- package/lib/adapters-api/dist/model/AutoTestApiResult.js +323 -0
- package/lib/adapters-api/dist/model/AutoTestCaseApiModel.js +89 -0
- package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +323 -0
- package/lib/adapters-api/dist/model/AutoTestFilterApiModel.js +201 -0
- package/lib/adapters-api/dist/model/AutoTestIdModel.js +88 -0
- package/lib/adapters-api/dist/model/AutoTestModel.js +488 -0
- package/lib/adapters-api/dist/model/AutoTestResultReasonShort.js +99 -0
- package/lib/adapters-api/dist/model/AutoTestResultsForTestRunModel.js +334 -0
- package/lib/adapters-api/dist/model/AutoTestSearchApiModel.js +96 -0
- package/lib/adapters-api/dist/model/AutoTestSearchIncludeApiModel.js +93 -0
- package/lib/adapters-api/dist/model/AutoTestStep.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepApiModel.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepApiResult.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepModel.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepResult.js +196 -0
- package/lib/adapters-api/dist/model/AutoTestStepResultUpdateRequest.js +196 -0
- package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +327 -0
- package/lib/adapters-api/dist/model/AutoTestWorkItemIdentifierApiResult.js +100 -0
- package/lib/adapters-api/dist/model/AvailableTestResultOutcome.js +67 -0
- package/lib/adapters-api/dist/model/ConfigurationFilterModel.js +114 -0
- package/lib/adapters-api/dist/model/ConfigurationModel.js +213 -0
- package/lib/adapters-api/dist/model/ConfigurationShortModel.js +102 -0
- package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +185 -0
- package/lib/adapters-api/dist/model/CreateLinkApiModel.js +127 -0
- package/lib/adapters-api/dist/model/CreateParameterApiModel.js +117 -0
- package/lib/adapters-api/dist/model/CreateProjectApiModel.js +124 -0
- package/lib/adapters-api/dist/model/CreateStepApiModel.js +131 -0
- package/lib/adapters-api/dist/model/CreateWorkItemApiModel.js +384 -0
- package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +184 -0
- package/lib/adapters-api/dist/model/CustomAttributeGetModel.js +184 -0
- package/lib/adapters-api/dist/model/CustomAttributeOptionApiResult.js +124 -0
- package/lib/adapters-api/dist/model/CustomAttributeOptionModel.js +124 -0
- package/lib/adapters-api/dist/model/CustomAttributePutModel.js +182 -0
- package/lib/adapters-api/dist/model/CustomAttributeType.js +73 -0
- package/lib/adapters-api/dist/model/CustomAttributeTypesEnum.js +73 -0
- package/lib/adapters-api/dist/model/DateTimeRangeSelectorModel.js +82 -0
- package/lib/adapters-api/dist/model/DeletionState.js +55 -0
- package/lib/adapters-api/dist/model/DetailedProjectApiResult.js +204 -0
- package/lib/adapters-api/dist/model/FailureCategoryModel.js +67 -0
- package/lib/adapters-api/dist/model/GuidExtractionModel.js +90 -0
- package/lib/adapters-api/dist/model/ImageResizeType.js +49 -0
- package/lib/adapters-api/dist/model/Int32RangeSelectorModel.js +82 -0
- package/lib/adapters-api/dist/model/Int64RangeSelectorModel.js +82 -0
- package/lib/adapters-api/dist/model/IterationApiResult.js +109 -0
- package/lib/adapters-api/dist/model/IterationModel.js +109 -0
- package/lib/adapters-api/dist/model/LabelApiModel.js +100 -0
- package/lib/adapters-api/dist/model/LabelApiResult.js +100 -0
- package/lib/adapters-api/dist/model/LabelShortModel.js +100 -0
- package/lib/adapters-api/dist/model/LinkApiResult.js +140 -0
- package/lib/adapters-api/dist/model/LinkCreateApiModel.js +127 -0
- package/lib/adapters-api/dist/model/LinkModel.js +149 -0
- package/lib/adapters-api/dist/model/LinkPostModel.js +137 -0
- package/lib/adapters-api/dist/model/LinkPutModel.js +149 -0
- package/lib/adapters-api/dist/model/LinkShortApiResult.js +126 -0
- package/lib/adapters-api/dist/model/LinkType.js +73 -0
- package/lib/adapters-api/dist/model/LinkUpdateApiModel.js +140 -0
- package/lib/adapters-api/dist/model/ManualRerunApiResult.js +84 -0
- package/lib/adapters-api/dist/model/ManualRerunSelectTestResultsApiModel.js +109 -0
- package/lib/adapters-api/dist/model/ManualRerunTestResultApiModel.js +81 -0
- package/lib/adapters-api/dist/model/Operation.js +110 -0
- package/lib/adapters-api/dist/model/ParameterApiResult.js +154 -0
- package/lib/adapters-api/dist/model/ParameterIterationModel.js +100 -0
- package/lib/adapters-api/dist/model/ParameterShortApiResult.js +132 -0
- package/lib/adapters-api/dist/model/ParameterShortModel.js +158 -0
- package/lib/adapters-api/dist/model/ParametersFilterApiModel.js +98 -0
- package/lib/adapters-api/dist/model/ProblemDetails.js +124 -0
- package/lib/adapters-api/dist/model/ProjectApiResult.js +165 -0
- package/lib/adapters-api/dist/model/ProjectAttributesFilterModel.js +132 -0
- package/lib/adapters-api/dist/model/ProjectTypeModel.js +49 -0
- package/lib/adapters-api/dist/model/ProjectsFilterModel.js +209 -0
- package/lib/adapters-api/dist/model/SectionModel.js +180 -0
- package/lib/adapters-api/dist/model/SectionPostModel.js +178 -0
- package/lib/adapters-api/dist/model/SectionWithStepsModel.js +242 -0
- package/lib/adapters-api/dist/model/SharedStepModel.js +145 -0
- package/lib/adapters-api/dist/model/SharedStepResultApiModel.js +102 -0
- package/lib/adapters-api/dist/model/StepCommentApiModel.js +207 -0
- package/lib/adapters-api/dist/model/StepModel.js +163 -0
- package/lib/adapters-api/dist/model/StepPostModel.js +126 -0
- package/lib/adapters-api/dist/model/StepResultApiModel.js +149 -0
- package/lib/adapters-api/dist/model/TagModel.js +88 -0
- package/lib/adapters-api/dist/model/TestResultLinkApiResult.js +153 -0
- package/lib/adapters-api/dist/model/TestResultOutcome.js +67 -0
- package/lib/adapters-api/dist/model/TestResultResponse.js +400 -0
- package/lib/adapters-api/dist/model/TestResultShortResponse.js +311 -0
- package/lib/adapters-api/dist/model/TestResultStepCommentUpdateRequest.js +152 -0
- package/lib/adapters-api/dist/model/TestResultUpdateRequest.js +285 -0
- package/lib/adapters-api/dist/model/TestResultsFilterApiModel.js +226 -0
- package/lib/adapters-api/dist/model/TestRunApiResult.js +196 -0
- package/lib/adapters-api/dist/model/TestRunState.js +61 -0
- package/lib/adapters-api/dist/model/TestStatusApiResult.js +114 -0
- package/lib/adapters-api/dist/model/TestStatusApiType.js +67 -0
- package/lib/adapters-api/dist/model/TestStatusModel.js +149 -0
- package/lib/adapters-api/dist/model/TestStatusType.js +67 -0
- package/lib/adapters-api/dist/model/UpdateEmptyTestRunApiModel.js +187 -0
- package/lib/adapters-api/dist/model/UpdateLinkApiModel.js +140 -0
- package/lib/adapters-api/dist/model/ValidationProblemDetails.js +144 -0
- package/lib/adapters-api/dist/model/WorkItemApiResult.js +499 -0
- package/lib/adapters-api/dist/model/WorkItemEntityTypeApiModel.js +55 -0
- package/lib/adapters-api/dist/model/WorkItemFilterApiModel.js +309 -0
- package/lib/adapters-api/dist/model/WorkItemIdApiModel.js +89 -0
- package/lib/adapters-api/dist/model/WorkItemParameterKeyApiModel.js +89 -0
- package/lib/adapters-api/dist/model/WorkItemParameterKeyApiResult.js +88 -0
- package/lib/adapters-api/dist/model/WorkItemPriorityApiModel.js +67 -0
- package/lib/adapters-api/dist/model/WorkItemPriorityModel.js +67 -0
- package/lib/adapters-api/dist/model/WorkItemSelectApiModel.js +90 -0
- package/lib/adapters-api/dist/model/WorkItemShortApiResult.js +316 -0
- package/lib/adapters-api/dist/model/WorkItemSourceTypeModel.js +49 -0
- package/lib/adapters-api/dist/model/WorkItemStateApiModel.js +55 -0
- package/lib/adapters-api/dist/model/WorkItemStates.js +55 -0
- package/lib/adapters-api/dist/model/WorkItemTypeModel.js +55 -0
- package/lib/adapters-api/dist/model/WorkflowApiResult.js +111 -0
- package/lib/adapters-api/dist/model/WorkflowStatusApiResult.js +114 -0
- package/lib/adapters-api/index.d.ts +8862 -0
- package/lib/common/base.converter.d.ts +16 -17
- package/lib/common/base.converter.js +12 -14
- package/lib/common/base.service.d.ts +1 -1
- package/lib/common/base.service.js +6 -36
- package/lib/services/attachments/attachments.service.d.ts +1 -2
- package/lib/services/attachments/attachments.service.js +7 -7
- package/lib/services/autotests/autotests.converter.d.ts +2 -3
- package/lib/services/autotests/autotests.converter.js +0 -5
- package/lib/services/autotests/autotests.service.d.ts +1 -2
- package/lib/services/autotests/autotests.service.js +11 -44
- package/lib/services/testresults/testresults.converter.d.ts +4 -5
- package/lib/services/testresults/testresults.converter.js +0 -15
- package/lib/services/testresults/testresults.service.d.ts +2 -3
- package/lib/services/testresults/testresults.service.js +16 -44
- package/lib/services/testresults/testresults.type.d.ts +1 -1
- package/lib/services/testruns/testruns.converter.d.ts +12 -13
- package/lib/services/testruns/testruns.converter.js +19 -8
- package/lib/services/testruns/testruns.service.d.ts +1 -2
- package/lib/services/testruns/testruns.service.js +13 -46
- package/package.json +7 -5
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AttachmentUpdateRequest = _interopRequireDefault(require("./AttachmentUpdateRequest"));
|
|
9
|
+
var _AutoTestStepResultUpdateRequest = _interopRequireDefault(require("./AutoTestStepResultUpdateRequest"));
|
|
10
|
+
var _CreateLinkApiModel = _interopRequireDefault(require("./CreateLinkApiModel"));
|
|
11
|
+
var _StepResultApiModel = _interopRequireDefault(require("./StepResultApiModel"));
|
|
12
|
+
var _TestResultOutcome = _interopRequireDefault(require("./TestResultOutcome"));
|
|
13
|
+
var _TestResultStepCommentUpdateRequest = _interopRequireDefault(require("./TestResultStepCommentUpdateRequest"));
|
|
14
|
+
var _TestStatusType = _interopRequireDefault(require("./TestStatusType"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
/**
|
|
17
|
+
* API
|
|
18
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: adapters
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The TestResultUpdateRequest model module.
|
|
31
|
+
* @module model/TestResultUpdateRequest
|
|
32
|
+
* @version 1.0.0
|
|
33
|
+
*/
|
|
34
|
+
class TestResultUpdateRequest {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>TestResultUpdateRequest</code>.
|
|
37
|
+
* @alias module:model/TestResultUpdateRequest
|
|
38
|
+
*/
|
|
39
|
+
constructor() {
|
|
40
|
+
TestResultUpdateRequest.initialize(this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
static initialize(obj) {}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>TestResultUpdateRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/TestResultUpdateRequest} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/TestResultUpdateRequest} The populated <code>TestResultUpdateRequest</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
static constructFromObject(data, obj) {
|
|
58
|
+
if (data) {
|
|
59
|
+
obj = obj || new TestResultUpdateRequest();
|
|
60
|
+
if (data.hasOwnProperty('failureClassIds')) {
|
|
61
|
+
obj['failureClassIds'] = _ApiClient.default.convertToType(data['failureClassIds'], ['String']);
|
|
62
|
+
}
|
|
63
|
+
if (data.hasOwnProperty('outcome')) {
|
|
64
|
+
obj['outcome'] = _ApiClient.default.convertToType(data['outcome'], _TestResultOutcome.default);
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('statusCode')) {
|
|
67
|
+
obj['statusCode'] = _ApiClient.default.convertToType(data['statusCode'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('statusType')) {
|
|
70
|
+
obj['statusType'] = _ApiClient.default.convertToType(data['statusType'], _TestStatusType.default);
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('comment')) {
|
|
73
|
+
obj['comment'] = _ApiClient.default.convertToType(data['comment'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('links')) {
|
|
76
|
+
obj['links'] = _ApiClient.default.convertToType(data['links'], [_CreateLinkApiModel.default]);
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('stepResults')) {
|
|
79
|
+
obj['stepResults'] = _ApiClient.default.convertToType(data['stepResults'], [_StepResultApiModel.default]);
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('attachments')) {
|
|
82
|
+
obj['attachments'] = _ApiClient.default.convertToType(data['attachments'], [_AttachmentUpdateRequest.default]);
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('durationInMs')) {
|
|
85
|
+
obj['durationInMs'] = _ApiClient.default.convertToType(data['durationInMs'], 'Number');
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('duration')) {
|
|
88
|
+
obj['duration'] = _ApiClient.default.convertToType(data['duration'], 'Number');
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('stepComments')) {
|
|
91
|
+
obj['stepComments'] = _ApiClient.default.convertToType(data['stepComments'], [_TestResultStepCommentUpdateRequest.default]);
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('setupResults')) {
|
|
94
|
+
obj['setupResults'] = _ApiClient.default.convertToType(data['setupResults'], [_AutoTestStepResultUpdateRequest.default]);
|
|
95
|
+
}
|
|
96
|
+
if (data.hasOwnProperty('teardownResults')) {
|
|
97
|
+
obj['teardownResults'] = _ApiClient.default.convertToType(data['teardownResults'], [_AutoTestStepResultUpdateRequest.default]);
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('message')) {
|
|
100
|
+
obj['message'] = _ApiClient.default.convertToType(data['message'], 'String');
|
|
101
|
+
}
|
|
102
|
+
if (data.hasOwnProperty('trace')) {
|
|
103
|
+
obj['trace'] = _ApiClient.default.convertToType(data['trace'], 'String');
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Validates the JSON data with respect to <code>TestResultUpdateRequest</code>.
|
|
111
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
112
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TestResultUpdateRequest</code>.
|
|
113
|
+
*/
|
|
114
|
+
static validateJSON(data) {
|
|
115
|
+
// ensure the json data is an array
|
|
116
|
+
if (!Array.isArray(data['failureClassIds'])) {
|
|
117
|
+
throw new Error("Expected the field `failureClassIds` to be an array in the JSON data but got " + data['failureClassIds']);
|
|
118
|
+
}
|
|
119
|
+
// ensure the json data is a string
|
|
120
|
+
if (data['statusCode'] && !(typeof data['statusCode'] === 'string' || data['statusCode'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `statusCode` to be a primitive type in the JSON string but got " + data['statusCode']);
|
|
122
|
+
}
|
|
123
|
+
// ensure the json data is a string
|
|
124
|
+
if (data['comment'] && !(typeof data['comment'] === 'string' || data['comment'] instanceof String)) {
|
|
125
|
+
throw new Error("Expected the field `comment` to be a primitive type in the JSON string but got " + data['comment']);
|
|
126
|
+
}
|
|
127
|
+
if (data['links']) {
|
|
128
|
+
// data not null
|
|
129
|
+
// ensure the json data is an array
|
|
130
|
+
if (!Array.isArray(data['links'])) {
|
|
131
|
+
throw new Error("Expected the field `links` to be an array in the JSON data but got " + data['links']);
|
|
132
|
+
}
|
|
133
|
+
// validate the optional field `links` (array)
|
|
134
|
+
for (const item of data['links']) {
|
|
135
|
+
_CreateLinkApiModel.default.validateJSON(item);
|
|
136
|
+
}
|
|
137
|
+
;
|
|
138
|
+
}
|
|
139
|
+
if (data['stepResults']) {
|
|
140
|
+
// data not null
|
|
141
|
+
// ensure the json data is an array
|
|
142
|
+
if (!Array.isArray(data['stepResults'])) {
|
|
143
|
+
throw new Error("Expected the field `stepResults` to be an array in the JSON data but got " + data['stepResults']);
|
|
144
|
+
}
|
|
145
|
+
// validate the optional field `stepResults` (array)
|
|
146
|
+
for (const item of data['stepResults']) {
|
|
147
|
+
_StepResultApiModel.default.validateJSON(item);
|
|
148
|
+
}
|
|
149
|
+
;
|
|
150
|
+
}
|
|
151
|
+
if (data['attachments']) {
|
|
152
|
+
// data not null
|
|
153
|
+
// ensure the json data is an array
|
|
154
|
+
if (!Array.isArray(data['attachments'])) {
|
|
155
|
+
throw new Error("Expected the field `attachments` to be an array in the JSON data but got " + data['attachments']);
|
|
156
|
+
}
|
|
157
|
+
// validate the optional field `attachments` (array)
|
|
158
|
+
for (const item of data['attachments']) {
|
|
159
|
+
_AttachmentUpdateRequest.default.validateJSON(item);
|
|
160
|
+
}
|
|
161
|
+
;
|
|
162
|
+
}
|
|
163
|
+
if (data['stepComments']) {
|
|
164
|
+
// data not null
|
|
165
|
+
// ensure the json data is an array
|
|
166
|
+
if (!Array.isArray(data['stepComments'])) {
|
|
167
|
+
throw new Error("Expected the field `stepComments` to be an array in the JSON data but got " + data['stepComments']);
|
|
168
|
+
}
|
|
169
|
+
// validate the optional field `stepComments` (array)
|
|
170
|
+
for (const item of data['stepComments']) {
|
|
171
|
+
_TestResultStepCommentUpdateRequest.default.validateJSON(item);
|
|
172
|
+
}
|
|
173
|
+
;
|
|
174
|
+
}
|
|
175
|
+
if (data['setupResults']) {
|
|
176
|
+
// data not null
|
|
177
|
+
// ensure the json data is an array
|
|
178
|
+
if (!Array.isArray(data['setupResults'])) {
|
|
179
|
+
throw new Error("Expected the field `setupResults` to be an array in the JSON data but got " + data['setupResults']);
|
|
180
|
+
}
|
|
181
|
+
// validate the optional field `setupResults` (array)
|
|
182
|
+
for (const item of data['setupResults']) {
|
|
183
|
+
_AutoTestStepResultUpdateRequest.default.validateJSON(item);
|
|
184
|
+
}
|
|
185
|
+
;
|
|
186
|
+
}
|
|
187
|
+
if (data['teardownResults']) {
|
|
188
|
+
// data not null
|
|
189
|
+
// ensure the json data is an array
|
|
190
|
+
if (!Array.isArray(data['teardownResults'])) {
|
|
191
|
+
throw new Error("Expected the field `teardownResults` to be an array in the JSON data but got " + data['teardownResults']);
|
|
192
|
+
}
|
|
193
|
+
// validate the optional field `teardownResults` (array)
|
|
194
|
+
for (const item of data['teardownResults']) {
|
|
195
|
+
_AutoTestStepResultUpdateRequest.default.validateJSON(item);
|
|
196
|
+
}
|
|
197
|
+
;
|
|
198
|
+
}
|
|
199
|
+
// ensure the json data is a string
|
|
200
|
+
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
201
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
202
|
+
}
|
|
203
|
+
// ensure the json data is a string
|
|
204
|
+
if (data['trace'] && !(typeof data['trace'] === 'string' || data['trace'] instanceof String)) {
|
|
205
|
+
throw new Error("Expected the field `trace` to be a primitive type in the JSON string but got " + data['trace']);
|
|
206
|
+
}
|
|
207
|
+
return true;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @member {Array.<String>} failureClassIds
|
|
213
|
+
*/
|
|
214
|
+
TestResultUpdateRequest.prototype['failureClassIds'] = undefined;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @member {module:model/TestResultOutcome} outcome
|
|
218
|
+
*/
|
|
219
|
+
TestResultUpdateRequest.prototype['outcome'] = undefined;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @member {String} statusCode
|
|
223
|
+
*/
|
|
224
|
+
TestResultUpdateRequest.prototype['statusCode'] = undefined;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @member {module:model/TestStatusType} statusType
|
|
228
|
+
*/
|
|
229
|
+
TestResultUpdateRequest.prototype['statusType'] = undefined;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @member {String} comment
|
|
233
|
+
*/
|
|
234
|
+
TestResultUpdateRequest.prototype['comment'] = undefined;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @member {Array.<module:model/CreateLinkApiModel>} links
|
|
238
|
+
*/
|
|
239
|
+
TestResultUpdateRequest.prototype['links'] = undefined;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @member {Array.<module:model/StepResultApiModel>} stepResults
|
|
243
|
+
*/
|
|
244
|
+
TestResultUpdateRequest.prototype['stepResults'] = undefined;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* @member {Array.<module:model/AttachmentUpdateRequest>} attachments
|
|
248
|
+
*/
|
|
249
|
+
TestResultUpdateRequest.prototype['attachments'] = undefined;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @member {Number} durationInMs
|
|
253
|
+
*/
|
|
254
|
+
TestResultUpdateRequest.prototype['durationInMs'] = undefined;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @member {Number} duration
|
|
258
|
+
*/
|
|
259
|
+
TestResultUpdateRequest.prototype['duration'] = undefined;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @member {Array.<module:model/TestResultStepCommentUpdateRequest>} stepComments
|
|
263
|
+
*/
|
|
264
|
+
TestResultUpdateRequest.prototype['stepComments'] = undefined;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @member {Array.<module:model/AutoTestStepResultUpdateRequest>} setupResults
|
|
268
|
+
*/
|
|
269
|
+
TestResultUpdateRequest.prototype['setupResults'] = undefined;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @member {Array.<module:model/AutoTestStepResultUpdateRequest>} teardownResults
|
|
273
|
+
*/
|
|
274
|
+
TestResultUpdateRequest.prototype['teardownResults'] = undefined;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @member {String} message
|
|
278
|
+
*/
|
|
279
|
+
TestResultUpdateRequest.prototype['message'] = undefined;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @member {String} trace
|
|
283
|
+
*/
|
|
284
|
+
TestResultUpdateRequest.prototype['trace'] = undefined;
|
|
285
|
+
var _default = exports.default = TestResultUpdateRequest;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _Int64RangeSelectorModel = _interopRequireDefault(require("./Int64RangeSelectorModel"));
|
|
9
|
+
var _TestResultOutcome = _interopRequireDefault(require("./TestResultOutcome"));
|
|
10
|
+
var _TestStatusApiType = _interopRequireDefault(require("./TestStatusApiType"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
/**
|
|
13
|
+
* API
|
|
14
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
15
|
+
*
|
|
16
|
+
* The version of the OpenAPI document: adapters
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20
|
+
* https://openapi-generator.tech
|
|
21
|
+
* Do not edit the class manually.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The TestResultsFilterApiModel model module.
|
|
27
|
+
* @module model/TestResultsFilterApiModel
|
|
28
|
+
* @version 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
class TestResultsFilterApiModel {
|
|
31
|
+
/**
|
|
32
|
+
* Constructs a new <code>TestResultsFilterApiModel</code>.
|
|
33
|
+
* @alias module:model/TestResultsFilterApiModel
|
|
34
|
+
*/
|
|
35
|
+
constructor() {
|
|
36
|
+
TestResultsFilterApiModel.initialize(this);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Initializes the fields of this object.
|
|
41
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
42
|
+
* Only for internal use.
|
|
43
|
+
*/
|
|
44
|
+
static initialize(obj) {}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Constructs a <code>TestResultsFilterApiModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
48
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
49
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
50
|
+
* @param {module:model/TestResultsFilterApiModel} obj Optional instance to populate.
|
|
51
|
+
* @return {module:model/TestResultsFilterApiModel} The populated <code>TestResultsFilterApiModel</code> instance.
|
|
52
|
+
*/
|
|
53
|
+
static constructFromObject(data, obj) {
|
|
54
|
+
if (data) {
|
|
55
|
+
obj = obj || new TestResultsFilterApiModel();
|
|
56
|
+
if (data.hasOwnProperty('configurationIds')) {
|
|
57
|
+
obj['configurationIds'] = _ApiClient.default.convertToType(data['configurationIds'], ['String']);
|
|
58
|
+
}
|
|
59
|
+
if (data.hasOwnProperty('outcomes')) {
|
|
60
|
+
obj['outcomes'] = _ApiClient.default.convertToType(data['outcomes'], [_TestResultOutcome.default]);
|
|
61
|
+
}
|
|
62
|
+
if (data.hasOwnProperty('statusCodes')) {
|
|
63
|
+
obj['statusCodes'] = _ApiClient.default.convertToType(data['statusCodes'], ['String']);
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('statusTypes')) {
|
|
66
|
+
obj['statusTypes'] = _ApiClient.default.convertToType(data['statusTypes'], [_TestStatusApiType.default]);
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('namespace')) {
|
|
69
|
+
obj['namespace'] = _ApiClient.default.convertToType(data['namespace'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('className')) {
|
|
72
|
+
obj['className'] = _ApiClient.default.convertToType(data['className'], 'String');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('autoTestGlobalIds')) {
|
|
75
|
+
obj['autoTestGlobalIds'] = _ApiClient.default.convertToType(data['autoTestGlobalIds'], ['Number']);
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('autoTestTags')) {
|
|
78
|
+
obj['autoTestTags'] = _ApiClient.default.convertToType(data['autoTestTags'], ['String']);
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('excludeAutoTestTags')) {
|
|
81
|
+
obj['excludeAutoTestTags'] = _ApiClient.default.convertToType(data['excludeAutoTestTags'], ['String']);
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('name')) {
|
|
84
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('duration')) {
|
|
87
|
+
obj['duration'] = _ApiClient.default.convertToType(data['duration'], _Int64RangeSelectorModel.default);
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('testRunIds')) {
|
|
90
|
+
obj['testRunIds'] = _ApiClient.default.convertToType(data['testRunIds'], ['String']);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return obj;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Validates the JSON data with respect to <code>TestResultsFilterApiModel</code>.
|
|
98
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
99
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TestResultsFilterApiModel</code>.
|
|
100
|
+
*/
|
|
101
|
+
static validateJSON(data) {
|
|
102
|
+
// ensure the json data is an array
|
|
103
|
+
if (!Array.isArray(data['configurationIds'])) {
|
|
104
|
+
throw new Error("Expected the field `configurationIds` to be an array in the JSON data but got " + data['configurationIds']);
|
|
105
|
+
}
|
|
106
|
+
// ensure the json data is an array
|
|
107
|
+
if (!Array.isArray(data['outcomes'])) {
|
|
108
|
+
throw new Error("Expected the field `outcomes` to be an array in the JSON data but got " + data['outcomes']);
|
|
109
|
+
}
|
|
110
|
+
// ensure the json data is an array
|
|
111
|
+
if (!Array.isArray(data['statusCodes'])) {
|
|
112
|
+
throw new Error("Expected the field `statusCodes` to be an array in the JSON data but got " + data['statusCodes']);
|
|
113
|
+
}
|
|
114
|
+
// ensure the json data is an array
|
|
115
|
+
if (!Array.isArray(data['statusTypes'])) {
|
|
116
|
+
throw new Error("Expected the field `statusTypes` to be an array in the JSON data but got " + data['statusTypes']);
|
|
117
|
+
}
|
|
118
|
+
// ensure the json data is a string
|
|
119
|
+
if (data['namespace'] && !(typeof data['namespace'] === 'string' || data['namespace'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `namespace` to be a primitive type in the JSON string but got " + data['namespace']);
|
|
121
|
+
}
|
|
122
|
+
// ensure the json data is a string
|
|
123
|
+
if (data['className'] && !(typeof data['className'] === 'string' || data['className'] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `className` to be a primitive type in the JSON string but got " + data['className']);
|
|
125
|
+
}
|
|
126
|
+
// ensure the json data is an array
|
|
127
|
+
if (!Array.isArray(data['autoTestGlobalIds'])) {
|
|
128
|
+
throw new Error("Expected the field `autoTestGlobalIds` to be an array in the JSON data but got " + data['autoTestGlobalIds']);
|
|
129
|
+
}
|
|
130
|
+
// ensure the json data is an array
|
|
131
|
+
if (!Array.isArray(data['autoTestTags'])) {
|
|
132
|
+
throw new Error("Expected the field `autoTestTags` to be an array in the JSON data but got " + data['autoTestTags']);
|
|
133
|
+
}
|
|
134
|
+
// ensure the json data is an array
|
|
135
|
+
if (!Array.isArray(data['excludeAutoTestTags'])) {
|
|
136
|
+
throw new Error("Expected the field `excludeAutoTestTags` to be an array in the JSON data but got " + data['excludeAutoTestTags']);
|
|
137
|
+
}
|
|
138
|
+
// ensure the json data is a string
|
|
139
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
140
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
141
|
+
}
|
|
142
|
+
// validate the optional field `duration`
|
|
143
|
+
if (data['duration']) {
|
|
144
|
+
// data not null
|
|
145
|
+
_Int64RangeSelectorModel.default.validateJSON(data['duration']);
|
|
146
|
+
}
|
|
147
|
+
// ensure the json data is an array
|
|
148
|
+
if (!Array.isArray(data['testRunIds'])) {
|
|
149
|
+
throw new Error("Expected the field `testRunIds` to be an array in the JSON data but got " + data['testRunIds']);
|
|
150
|
+
}
|
|
151
|
+
return true;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Specifies a test result configuration IDs to search for
|
|
157
|
+
* @member {Array.<String>} configurationIds
|
|
158
|
+
*/
|
|
159
|
+
TestResultsFilterApiModel.prototype['configurationIds'] = undefined;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Specifies a test result outcomes to search for
|
|
163
|
+
* @member {Array.<module:model/TestResultOutcome>} outcomes
|
|
164
|
+
*/
|
|
165
|
+
TestResultsFilterApiModel.prototype['outcomes'] = undefined;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Specifies a test result status codes to search for
|
|
169
|
+
* @member {Array.<String>} statusCodes
|
|
170
|
+
*/
|
|
171
|
+
TestResultsFilterApiModel.prototype['statusCodes'] = undefined;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Specifies a test result status types to search for
|
|
175
|
+
* @member {Array.<module:model/TestStatusApiType>} statusTypes
|
|
176
|
+
*/
|
|
177
|
+
TestResultsFilterApiModel.prototype['statusTypes'] = undefined;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Specifies a test result namespace to search for
|
|
181
|
+
* @member {String} namespace
|
|
182
|
+
*/
|
|
183
|
+
TestResultsFilterApiModel.prototype['namespace'] = undefined;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Specifies a test result class name to search for
|
|
187
|
+
* @member {String} className
|
|
188
|
+
*/
|
|
189
|
+
TestResultsFilterApiModel.prototype['className'] = undefined;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Specifies an autotest global IDs to search results for
|
|
193
|
+
* @member {Array.<Number>} autoTestGlobalIds
|
|
194
|
+
*/
|
|
195
|
+
TestResultsFilterApiModel.prototype['autoTestGlobalIds'] = undefined;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Specifies autotest tags to include in the search.
|
|
199
|
+
* @member {Array.<String>} autoTestTags
|
|
200
|
+
*/
|
|
201
|
+
TestResultsFilterApiModel.prototype['autoTestTags'] = undefined;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Specifies autotest tags to exclude from the search.
|
|
205
|
+
* @member {Array.<String>} excludeAutoTestTags
|
|
206
|
+
*/
|
|
207
|
+
TestResultsFilterApiModel.prototype['excludeAutoTestTags'] = undefined;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Specifies an autotest name to search results for
|
|
211
|
+
* @member {String} name
|
|
212
|
+
*/
|
|
213
|
+
TestResultsFilterApiModel.prototype['name'] = undefined;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Specifies a test result duration range to search for
|
|
217
|
+
* @member {module:model/Int64RangeSelectorModel} duration
|
|
218
|
+
*/
|
|
219
|
+
TestResultsFilterApiModel.prototype['duration'] = undefined;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Specifies a test result test run IDs to search for
|
|
223
|
+
* @member {Array.<String>} testRunIds
|
|
224
|
+
*/
|
|
225
|
+
TestResultsFilterApiModel.prototype['testRunIds'] = undefined;
|
|
226
|
+
var _default = exports.default = TestResultsFilterApiModel;
|