@stanterprise/protobuf 0.0.8 → 0.0.10
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/dist/index.js +1298 -627
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1301 -626
- package/dist/index.mjs.map +1 -1
- package/dist/lib/google/protobuf/duration.d.ts +33 -0
- package/dist/lib/google/protobuf/duration.d.ts.map +1 -0
- package/dist/lib/index.d.ts +13 -14
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/common/common.d.ts +3 -1
- package/dist/lib/testsystem/v1/common/common.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/{entities.d.ts → test_case.d.ts} +128 -150
- package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts +176 -0
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/events/events.d.ts +42 -31
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/lib/google/protobuf/duration.ts +98 -0
- package/lib/index.ts +39 -43
- package/lib/testsystem/v1/common/common.ts +3 -1
- package/lib/testsystem/v1/entities/{entities.ts → test_case.ts} +502 -560
- package/lib/testsystem/v1/entities/test_suite.ts +685 -0
- package/lib/testsystem/v1/events/events.ts +90 -43
- package/package.json +1 -1
- package/dist/lib/testsystem/v1/entities/entities.d.ts.map +0 -1
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
3
3
|
* compiler version: 3.19.1
|
|
4
|
-
* source: testsystem/v1/entities/
|
|
4
|
+
* source: testsystem/v1/entities/test_case.proto
|
|
5
5
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
6
|
import * as dependency_1 from "./../common/common";
|
|
7
7
|
import * as dependency_2 from "./../../../google/protobuf/timestamp";
|
|
8
|
+
import * as dependency_3 from "./../../../google/protobuf/duration";
|
|
8
9
|
import * as pb_1 from "google-protobuf";
|
|
9
10
|
export namespace testsystem.v1.entities {
|
|
10
|
-
export
|
|
11
|
-
ROOT = 0,
|
|
12
|
-
PROJECT = 1,
|
|
13
|
-
SUBSUITE = 2
|
|
14
|
-
}
|
|
15
|
-
export class TestCase extends pb_1.Message {
|
|
11
|
+
export class TestCaseSpec extends pb_1.Message {
|
|
16
12
|
#one_of_decls: number[][] = [];
|
|
17
13
|
constructor(data?: any[] | {
|
|
18
14
|
id?: string;
|
|
19
15
|
name?: string;
|
|
20
16
|
description?: string;
|
|
21
|
-
steps?: Step[];
|
|
22
17
|
metadata?: Map<string, string>;
|
|
23
18
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
24
|
-
|
|
19
|
+
parent_suite_id?: string;
|
|
20
|
+
tags?: string[];
|
|
25
21
|
}) {
|
|
26
22
|
super();
|
|
27
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
23
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [7], this.#one_of_decls);
|
|
28
24
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
29
25
|
if ("id" in data && data.id != undefined) {
|
|
30
26
|
this.id = data.id;
|
|
@@ -35,17 +31,17 @@ export namespace testsystem.v1.entities {
|
|
|
35
31
|
if ("description" in data && data.description != undefined) {
|
|
36
32
|
this.description = data.description;
|
|
37
33
|
}
|
|
38
|
-
if ("steps" in data && data.steps != undefined) {
|
|
39
|
-
this.steps = data.steps;
|
|
40
|
-
}
|
|
41
34
|
if ("metadata" in data && data.metadata != undefined) {
|
|
42
35
|
this.metadata = data.metadata;
|
|
43
36
|
}
|
|
44
37
|
if ("status" in data && data.status != undefined) {
|
|
45
38
|
this.status = data.status;
|
|
46
39
|
}
|
|
47
|
-
if ("
|
|
48
|
-
this.
|
|
40
|
+
if ("parent_suite_id" in data && data.parent_suite_id != undefined) {
|
|
41
|
+
this.parent_suite_id = data.parent_suite_id;
|
|
42
|
+
}
|
|
43
|
+
if ("tags" in data && data.tags != undefined) {
|
|
44
|
+
this.tags = data.tags;
|
|
49
45
|
}
|
|
50
46
|
}
|
|
51
47
|
if (!this.metadata)
|
|
@@ -69,45 +65,42 @@ export namespace testsystem.v1.entities {
|
|
|
69
65
|
set description(value: string) {
|
|
70
66
|
pb_1.Message.setField(this, 3, value);
|
|
71
67
|
}
|
|
72
|
-
get steps() {
|
|
73
|
-
return pb_1.Message.getRepeatedWrapperField(this, Step, 4) as Step[];
|
|
74
|
-
}
|
|
75
|
-
set steps(value: Step[]) {
|
|
76
|
-
pb_1.Message.setRepeatedWrapperField(this, 4, value);
|
|
77
|
-
}
|
|
78
68
|
get metadata() {
|
|
79
|
-
return pb_1.Message.getField(this,
|
|
69
|
+
return pb_1.Message.getField(this, 4) as any as Map<string, string>;
|
|
80
70
|
}
|
|
81
71
|
set metadata(value: Map<string, string>) {
|
|
82
|
-
pb_1.Message.setField(this,
|
|
72
|
+
pb_1.Message.setField(this, 4, value as any);
|
|
83
73
|
}
|
|
84
74
|
get status() {
|
|
85
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
75
|
+
return pb_1.Message.getFieldWithDefault(this, 5, dependency_1.testsystem.v1.common.TestStatus.UNKNOWN) as dependency_1.testsystem.v1.common.TestStatus;
|
|
86
76
|
}
|
|
87
77
|
set status(value: dependency_1.testsystem.v1.common.TestStatus) {
|
|
88
|
-
pb_1.Message.setField(this,
|
|
78
|
+
pb_1.Message.setField(this, 5, value);
|
|
89
79
|
}
|
|
90
|
-
get
|
|
91
|
-
return pb_1.Message.
|
|
80
|
+
get parent_suite_id() {
|
|
81
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
92
82
|
}
|
|
93
|
-
set
|
|
94
|
-
pb_1.Message.
|
|
83
|
+
set parent_suite_id(value: string) {
|
|
84
|
+
pb_1.Message.setField(this, 6, value);
|
|
95
85
|
}
|
|
96
|
-
get
|
|
97
|
-
return pb_1.Message.
|
|
86
|
+
get tags() {
|
|
87
|
+
return pb_1.Message.getFieldWithDefault(this, 7, []) as string[];
|
|
88
|
+
}
|
|
89
|
+
set tags(value: string[]) {
|
|
90
|
+
pb_1.Message.setField(this, 7, value);
|
|
98
91
|
}
|
|
99
92
|
static fromObject(data: {
|
|
100
93
|
id?: string;
|
|
101
94
|
name?: string;
|
|
102
95
|
description?: string;
|
|
103
|
-
steps?: ReturnType<typeof Step.prototype.toObject>[];
|
|
104
96
|
metadata?: {
|
|
105
97
|
[key: string]: string;
|
|
106
98
|
};
|
|
107
99
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
100
|
+
parent_suite_id?: string;
|
|
101
|
+
tags?: string[];
|
|
102
|
+
}): TestCaseSpec {
|
|
103
|
+
const message = new TestCaseSpec({});
|
|
111
104
|
if (data.id != null) {
|
|
112
105
|
message.id = data.id;
|
|
113
106
|
}
|
|
@@ -117,17 +110,17 @@ export namespace testsystem.v1.entities {
|
|
|
117
110
|
if (data.description != null) {
|
|
118
111
|
message.description = data.description;
|
|
119
112
|
}
|
|
120
|
-
if (data.steps != null) {
|
|
121
|
-
message.steps = data.steps.map(item => Step.fromObject(item));
|
|
122
|
-
}
|
|
123
113
|
if (typeof data.metadata == "object") {
|
|
124
114
|
message.metadata = new Map(Object.entries(data.metadata));
|
|
125
115
|
}
|
|
126
116
|
if (data.status != null) {
|
|
127
117
|
message.status = data.status;
|
|
128
118
|
}
|
|
129
|
-
if (data.
|
|
130
|
-
message.
|
|
119
|
+
if (data.parent_suite_id != null) {
|
|
120
|
+
message.parent_suite_id = data.parent_suite_id;
|
|
121
|
+
}
|
|
122
|
+
if (data.tags != null) {
|
|
123
|
+
message.tags = data.tags;
|
|
131
124
|
}
|
|
132
125
|
return message;
|
|
133
126
|
}
|
|
@@ -136,12 +129,12 @@ export namespace testsystem.v1.entities {
|
|
|
136
129
|
id?: string;
|
|
137
130
|
name?: string;
|
|
138
131
|
description?: string;
|
|
139
|
-
steps?: ReturnType<typeof Step.prototype.toObject>[];
|
|
140
132
|
metadata?: {
|
|
141
133
|
[key: string]: string;
|
|
142
134
|
};
|
|
143
135
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
144
|
-
|
|
136
|
+
parent_suite_id?: string;
|
|
137
|
+
tags?: string[];
|
|
145
138
|
} = {};
|
|
146
139
|
if (this.id != null) {
|
|
147
140
|
data.id = this.id;
|
|
@@ -152,17 +145,17 @@ export namespace testsystem.v1.entities {
|
|
|
152
145
|
if (this.description != null) {
|
|
153
146
|
data.description = this.description;
|
|
154
147
|
}
|
|
155
|
-
if (this.steps != null) {
|
|
156
|
-
data.steps = this.steps.map((item: Step) => item.toObject());
|
|
157
|
-
}
|
|
158
148
|
if (this.metadata != null) {
|
|
159
149
|
data.metadata = (Object.fromEntries)(this.metadata);
|
|
160
150
|
}
|
|
161
151
|
if (this.status != null) {
|
|
162
152
|
data.status = this.status;
|
|
163
153
|
}
|
|
164
|
-
if (this.
|
|
165
|
-
data.
|
|
154
|
+
if (this.parent_suite_id != null) {
|
|
155
|
+
data.parent_suite_id = this.parent_suite_id;
|
|
156
|
+
}
|
|
157
|
+
if (this.tags != null) {
|
|
158
|
+
data.tags = this.tags;
|
|
166
159
|
}
|
|
167
160
|
return data;
|
|
168
161
|
}
|
|
@@ -176,23 +169,23 @@ export namespace testsystem.v1.entities {
|
|
|
176
169
|
writer.writeString(2, this.name);
|
|
177
170
|
if (this.description.length)
|
|
178
171
|
writer.writeString(3, this.description);
|
|
179
|
-
if (this.steps.length)
|
|
180
|
-
writer.writeRepeatedMessage(4, this.steps, (item: Step) => item.serialize(writer));
|
|
181
172
|
for (const [key, value] of this.metadata) {
|
|
182
|
-
writer.writeMessage(
|
|
173
|
+
writer.writeMessage(4, this.metadata, () => {
|
|
183
174
|
writer.writeString(1, key);
|
|
184
175
|
writer.writeString(2, value);
|
|
185
176
|
});
|
|
186
177
|
}
|
|
187
178
|
if (this.status != dependency_1.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
188
|
-
writer.writeEnum(
|
|
189
|
-
if (this.
|
|
190
|
-
writer.
|
|
179
|
+
writer.writeEnum(5, this.status);
|
|
180
|
+
if (this.parent_suite_id.length)
|
|
181
|
+
writer.writeString(6, this.parent_suite_id);
|
|
182
|
+
if (this.tags.length)
|
|
183
|
+
writer.writeRepeatedString(7, this.tags);
|
|
191
184
|
if (!w)
|
|
192
185
|
return writer.getResultBuffer();
|
|
193
186
|
}
|
|
194
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader):
|
|
195
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
187
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestCaseSpec {
|
|
188
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TestCaseSpec();
|
|
196
189
|
while (reader.nextField()) {
|
|
197
190
|
if (reader.isEndGroup())
|
|
198
191
|
break;
|
|
@@ -207,16 +200,16 @@ export namespace testsystem.v1.entities {
|
|
|
207
200
|
message.description = reader.readString();
|
|
208
201
|
break;
|
|
209
202
|
case 4:
|
|
210
|
-
reader.readMessage(message
|
|
203
|
+
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
211
204
|
break;
|
|
212
205
|
case 5:
|
|
213
|
-
|
|
206
|
+
message.status = reader.readEnum();
|
|
214
207
|
break;
|
|
215
208
|
case 6:
|
|
216
|
-
message.
|
|
209
|
+
message.parent_suite_id = reader.readString();
|
|
217
210
|
break;
|
|
218
211
|
case 7:
|
|
219
|
-
|
|
212
|
+
pb_1.Message.addToRepeatedField(message, 7, reader.readString());
|
|
220
213
|
break;
|
|
221
214
|
default: reader.skipField();
|
|
222
215
|
}
|
|
@@ -226,52 +219,84 @@ export namespace testsystem.v1.entities {
|
|
|
226
219
|
serializeBinary(): Uint8Array {
|
|
227
220
|
return this.serialize();
|
|
228
221
|
}
|
|
229
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
230
|
-
return
|
|
222
|
+
static deserializeBinary(bytes: Uint8Array): TestCaseSpec {
|
|
223
|
+
return TestCaseSpec.deserialize(bytes);
|
|
231
224
|
}
|
|
232
225
|
}
|
|
233
|
-
export class
|
|
226
|
+
export class TestCaseRun extends pb_1.Message {
|
|
234
227
|
#one_of_decls: number[][] = [];
|
|
235
228
|
constructor(data?: any[] | {
|
|
236
229
|
id?: string;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
230
|
+
test_id?: string;
|
|
231
|
+
run_id?: string;
|
|
232
|
+
test_suite_run_id?: string;
|
|
233
|
+
title?: string;
|
|
234
|
+
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
235
|
+
start_time?: dependency_2.google.protobuf.Timestamp;
|
|
236
|
+
attachments?: dependency_1.testsystem.v1.common.Attachment[];
|
|
237
|
+
error_message?: string;
|
|
238
|
+
stack_trace?: string;
|
|
242
239
|
metadata?: Map<string, string>;
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
errors?: string[];
|
|
241
|
+
actual_tags?: string[];
|
|
242
|
+
duration?: dependency_3.google.protobuf.Duration;
|
|
243
|
+
retry_count?: number;
|
|
244
|
+
retry_index?: number;
|
|
245
|
+
timeout?: number;
|
|
245
246
|
}) {
|
|
246
247
|
super();
|
|
247
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
248
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [8, 12, 13], this.#one_of_decls);
|
|
248
249
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
249
250
|
if ("id" in data && data.id != undefined) {
|
|
250
251
|
this.id = data.id;
|
|
251
252
|
}
|
|
252
|
-
if ("
|
|
253
|
-
this.
|
|
253
|
+
if ("test_id" in data && data.test_id != undefined) {
|
|
254
|
+
this.test_id = data.test_id;
|
|
254
255
|
}
|
|
255
|
-
if ("
|
|
256
|
-
this.
|
|
256
|
+
if ("run_id" in data && data.run_id != undefined) {
|
|
257
|
+
this.run_id = data.run_id;
|
|
257
258
|
}
|
|
258
|
-
if ("
|
|
259
|
-
this.
|
|
259
|
+
if ("test_suite_run_id" in data && data.test_suite_run_id != undefined) {
|
|
260
|
+
this.test_suite_run_id = data.test_suite_run_id;
|
|
260
261
|
}
|
|
261
|
-
if ("
|
|
262
|
-
this.
|
|
262
|
+
if ("title" in data && data.title != undefined) {
|
|
263
|
+
this.title = data.title;
|
|
263
264
|
}
|
|
264
|
-
if ("
|
|
265
|
-
this.
|
|
265
|
+
if ("status" in data && data.status != undefined) {
|
|
266
|
+
this.status = data.status;
|
|
267
|
+
}
|
|
268
|
+
if ("start_time" in data && data.start_time != undefined) {
|
|
269
|
+
this.start_time = data.start_time;
|
|
270
|
+
}
|
|
271
|
+
if ("attachments" in data && data.attachments != undefined) {
|
|
272
|
+
this.attachments = data.attachments;
|
|
273
|
+
}
|
|
274
|
+
if ("error_message" in data && data.error_message != undefined) {
|
|
275
|
+
this.error_message = data.error_message;
|
|
276
|
+
}
|
|
277
|
+
if ("stack_trace" in data && data.stack_trace != undefined) {
|
|
278
|
+
this.stack_trace = data.stack_trace;
|
|
266
279
|
}
|
|
267
280
|
if ("metadata" in data && data.metadata != undefined) {
|
|
268
281
|
this.metadata = data.metadata;
|
|
269
282
|
}
|
|
270
|
-
if ("
|
|
271
|
-
this.
|
|
283
|
+
if ("errors" in data && data.errors != undefined) {
|
|
284
|
+
this.errors = data.errors;
|
|
285
|
+
}
|
|
286
|
+
if ("actual_tags" in data && data.actual_tags != undefined) {
|
|
287
|
+
this.actual_tags = data.actual_tags;
|
|
288
|
+
}
|
|
289
|
+
if ("duration" in data && data.duration != undefined) {
|
|
290
|
+
this.duration = data.duration;
|
|
291
|
+
}
|
|
292
|
+
if ("retry_count" in data && data.retry_count != undefined) {
|
|
293
|
+
this.retry_count = data.retry_count;
|
|
294
|
+
}
|
|
295
|
+
if ("retry_index" in data && data.retry_index != undefined) {
|
|
296
|
+
this.retry_index = data.retry_index;
|
|
272
297
|
}
|
|
273
|
-
if ("
|
|
274
|
-
this.
|
|
298
|
+
if ("timeout" in data && data.timeout != undefined) {
|
|
299
|
+
this.timeout = data.timeout;
|
|
275
300
|
}
|
|
276
301
|
}
|
|
277
302
|
if (!this.metadata)
|
|
@@ -283,140 +308,255 @@ export namespace testsystem.v1.entities {
|
|
|
283
308
|
set id(value: string) {
|
|
284
309
|
pb_1.Message.setField(this, 1, value);
|
|
285
310
|
}
|
|
286
|
-
get
|
|
311
|
+
get test_id() {
|
|
287
312
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
288
313
|
}
|
|
289
|
-
set
|
|
314
|
+
set test_id(value: string) {
|
|
290
315
|
pb_1.Message.setField(this, 2, value);
|
|
291
316
|
}
|
|
292
|
-
get
|
|
293
|
-
return pb_1.Message.
|
|
317
|
+
get run_id() {
|
|
318
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
294
319
|
}
|
|
295
|
-
set
|
|
296
|
-
pb_1.Message.
|
|
320
|
+
set run_id(value: string) {
|
|
321
|
+
pb_1.Message.setField(this, 3, value);
|
|
297
322
|
}
|
|
298
|
-
get
|
|
299
|
-
return pb_1.Message.
|
|
323
|
+
get test_suite_run_id() {
|
|
324
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
300
325
|
}
|
|
301
|
-
set
|
|
302
|
-
pb_1.Message.
|
|
326
|
+
set test_suite_run_id(value: string) {
|
|
327
|
+
pb_1.Message.setField(this, 4, value);
|
|
303
328
|
}
|
|
304
|
-
get
|
|
329
|
+
get title() {
|
|
305
330
|
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
306
331
|
}
|
|
307
|
-
set
|
|
332
|
+
set title(value: string) {
|
|
308
333
|
pb_1.Message.setField(this, 5, value);
|
|
309
334
|
}
|
|
310
|
-
get
|
|
311
|
-
return pb_1.Message.getFieldWithDefault(this, 6,
|
|
335
|
+
get status() {
|
|
336
|
+
return pb_1.Message.getFieldWithDefault(this, 6, dependency_1.testsystem.v1.common.TestStatus.UNKNOWN) as dependency_1.testsystem.v1.common.TestStatus;
|
|
312
337
|
}
|
|
313
|
-
set
|
|
338
|
+
set status(value: dependency_1.testsystem.v1.common.TestStatus) {
|
|
314
339
|
pb_1.Message.setField(this, 6, value);
|
|
315
340
|
}
|
|
341
|
+
get start_time() {
|
|
342
|
+
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Timestamp, 7) as dependency_2.google.protobuf.Timestamp;
|
|
343
|
+
}
|
|
344
|
+
set start_time(value: dependency_2.google.protobuf.Timestamp) {
|
|
345
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
346
|
+
}
|
|
347
|
+
get has_start_time() {
|
|
348
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
349
|
+
}
|
|
350
|
+
get attachments() {
|
|
351
|
+
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.testsystem.v1.common.Attachment, 8) as dependency_1.testsystem.v1.common.Attachment[];
|
|
352
|
+
}
|
|
353
|
+
set attachments(value: dependency_1.testsystem.v1.common.Attachment[]) {
|
|
354
|
+
pb_1.Message.setRepeatedWrapperField(this, 8, value);
|
|
355
|
+
}
|
|
356
|
+
get error_message() {
|
|
357
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "") as string;
|
|
358
|
+
}
|
|
359
|
+
set error_message(value: string) {
|
|
360
|
+
pb_1.Message.setField(this, 9, value);
|
|
361
|
+
}
|
|
362
|
+
get stack_trace() {
|
|
363
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "") as string;
|
|
364
|
+
}
|
|
365
|
+
set stack_trace(value: string) {
|
|
366
|
+
pb_1.Message.setField(this, 10, value);
|
|
367
|
+
}
|
|
316
368
|
get metadata() {
|
|
317
|
-
return pb_1.Message.getField(this,
|
|
369
|
+
return pb_1.Message.getField(this, 11) as any as Map<string, string>;
|
|
318
370
|
}
|
|
319
371
|
set metadata(value: Map<string, string>) {
|
|
320
|
-
pb_1.Message.setField(this,
|
|
372
|
+
pb_1.Message.setField(this, 11, value as any);
|
|
321
373
|
}
|
|
322
|
-
get
|
|
323
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
374
|
+
get errors() {
|
|
375
|
+
return pb_1.Message.getFieldWithDefault(this, 12, []) as string[];
|
|
324
376
|
}
|
|
325
|
-
set
|
|
326
|
-
pb_1.Message.setField(this,
|
|
377
|
+
set errors(value: string[]) {
|
|
378
|
+
pb_1.Message.setField(this, 12, value);
|
|
379
|
+
}
|
|
380
|
+
get actual_tags() {
|
|
381
|
+
return pb_1.Message.getFieldWithDefault(this, 13, []) as string[];
|
|
382
|
+
}
|
|
383
|
+
set actual_tags(value: string[]) {
|
|
384
|
+
pb_1.Message.setField(this, 13, value);
|
|
385
|
+
}
|
|
386
|
+
get duration() {
|
|
387
|
+
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Duration, 14) as dependency_3.google.protobuf.Duration;
|
|
388
|
+
}
|
|
389
|
+
set duration(value: dependency_3.google.protobuf.Duration) {
|
|
390
|
+
pb_1.Message.setWrapperField(this, 14, value);
|
|
391
|
+
}
|
|
392
|
+
get has_duration() {
|
|
393
|
+
return pb_1.Message.getField(this, 14) != null;
|
|
327
394
|
}
|
|
328
|
-
get
|
|
329
|
-
return pb_1.Message.
|
|
395
|
+
get retry_count() {
|
|
396
|
+
return pb_1.Message.getFieldWithDefault(this, 15, 0) as number;
|
|
330
397
|
}
|
|
331
|
-
set
|
|
332
|
-
pb_1.Message.
|
|
398
|
+
set retry_count(value: number) {
|
|
399
|
+
pb_1.Message.setField(this, 15, value);
|
|
333
400
|
}
|
|
334
|
-
get
|
|
335
|
-
return pb_1.Message.
|
|
401
|
+
get retry_index() {
|
|
402
|
+
return pb_1.Message.getFieldWithDefault(this, 16, 0) as number;
|
|
403
|
+
}
|
|
404
|
+
set retry_index(value: number) {
|
|
405
|
+
pb_1.Message.setField(this, 16, value);
|
|
406
|
+
}
|
|
407
|
+
get timeout() {
|
|
408
|
+
return pb_1.Message.getFieldWithDefault(this, 17, 0) as number;
|
|
409
|
+
}
|
|
410
|
+
set timeout(value: number) {
|
|
411
|
+
pb_1.Message.setField(this, 17, value);
|
|
336
412
|
}
|
|
337
413
|
static fromObject(data: {
|
|
338
414
|
id?: string;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
415
|
+
test_id?: string;
|
|
416
|
+
run_id?: string;
|
|
417
|
+
test_suite_run_id?: string;
|
|
418
|
+
title?: string;
|
|
419
|
+
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
420
|
+
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
421
|
+
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
422
|
+
error_message?: string;
|
|
423
|
+
stack_trace?: string;
|
|
344
424
|
metadata?: {
|
|
345
425
|
[key: string]: string;
|
|
346
426
|
};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
427
|
+
errors?: string[];
|
|
428
|
+
actual_tags?: string[];
|
|
429
|
+
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
430
|
+
retry_count?: number;
|
|
431
|
+
retry_index?: number;
|
|
432
|
+
timeout?: number;
|
|
433
|
+
}): TestCaseRun {
|
|
434
|
+
const message = new TestCaseRun({});
|
|
351
435
|
if (data.id != null) {
|
|
352
436
|
message.id = data.id;
|
|
353
437
|
}
|
|
354
|
-
if (data.
|
|
355
|
-
message.
|
|
438
|
+
if (data.test_id != null) {
|
|
439
|
+
message.test_id = data.test_id;
|
|
356
440
|
}
|
|
357
|
-
if (data.
|
|
358
|
-
message.
|
|
441
|
+
if (data.run_id != null) {
|
|
442
|
+
message.run_id = data.run_id;
|
|
359
443
|
}
|
|
360
|
-
if (data.
|
|
361
|
-
message.
|
|
444
|
+
if (data.test_suite_run_id != null) {
|
|
445
|
+
message.test_suite_run_id = data.test_suite_run_id;
|
|
362
446
|
}
|
|
363
|
-
if (data.
|
|
364
|
-
message.
|
|
447
|
+
if (data.title != null) {
|
|
448
|
+
message.title = data.title;
|
|
365
449
|
}
|
|
366
|
-
if (data.
|
|
367
|
-
message.
|
|
450
|
+
if (data.status != null) {
|
|
451
|
+
message.status = data.status;
|
|
452
|
+
}
|
|
453
|
+
if (data.start_time != null) {
|
|
454
|
+
message.start_time = dependency_2.google.protobuf.Timestamp.fromObject(data.start_time);
|
|
455
|
+
}
|
|
456
|
+
if (data.attachments != null) {
|
|
457
|
+
message.attachments = data.attachments.map(item => dependency_1.testsystem.v1.common.Attachment.fromObject(item));
|
|
458
|
+
}
|
|
459
|
+
if (data.error_message != null) {
|
|
460
|
+
message.error_message = data.error_message;
|
|
461
|
+
}
|
|
462
|
+
if (data.stack_trace != null) {
|
|
463
|
+
message.stack_trace = data.stack_trace;
|
|
368
464
|
}
|
|
369
465
|
if (typeof data.metadata == "object") {
|
|
370
466
|
message.metadata = new Map(Object.entries(data.metadata));
|
|
371
467
|
}
|
|
372
|
-
if (data.
|
|
373
|
-
message.
|
|
468
|
+
if (data.errors != null) {
|
|
469
|
+
message.errors = data.errors;
|
|
470
|
+
}
|
|
471
|
+
if (data.actual_tags != null) {
|
|
472
|
+
message.actual_tags = data.actual_tags;
|
|
473
|
+
}
|
|
474
|
+
if (data.duration != null) {
|
|
475
|
+
message.duration = dependency_3.google.protobuf.Duration.fromObject(data.duration);
|
|
476
|
+
}
|
|
477
|
+
if (data.retry_count != null) {
|
|
478
|
+
message.retry_count = data.retry_count;
|
|
374
479
|
}
|
|
375
|
-
if (data.
|
|
376
|
-
message.
|
|
480
|
+
if (data.retry_index != null) {
|
|
481
|
+
message.retry_index = data.retry_index;
|
|
482
|
+
}
|
|
483
|
+
if (data.timeout != null) {
|
|
484
|
+
message.timeout = data.timeout;
|
|
377
485
|
}
|
|
378
486
|
return message;
|
|
379
487
|
}
|
|
380
488
|
toObject() {
|
|
381
489
|
const data: {
|
|
382
490
|
id?: string;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
491
|
+
test_id?: string;
|
|
492
|
+
run_id?: string;
|
|
493
|
+
test_suite_run_id?: string;
|
|
494
|
+
title?: string;
|
|
495
|
+
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
496
|
+
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
497
|
+
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
498
|
+
error_message?: string;
|
|
499
|
+
stack_trace?: string;
|
|
388
500
|
metadata?: {
|
|
389
501
|
[key: string]: string;
|
|
390
502
|
};
|
|
391
|
-
|
|
392
|
-
|
|
503
|
+
errors?: string[];
|
|
504
|
+
actual_tags?: string[];
|
|
505
|
+
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
506
|
+
retry_count?: number;
|
|
507
|
+
retry_index?: number;
|
|
508
|
+
timeout?: number;
|
|
393
509
|
} = {};
|
|
394
510
|
if (this.id != null) {
|
|
395
511
|
data.id = this.id;
|
|
396
512
|
}
|
|
397
|
-
if (this.
|
|
398
|
-
data.
|
|
513
|
+
if (this.test_id != null) {
|
|
514
|
+
data.test_id = this.test_id;
|
|
399
515
|
}
|
|
400
|
-
if (this.
|
|
401
|
-
data.
|
|
516
|
+
if (this.run_id != null) {
|
|
517
|
+
data.run_id = this.run_id;
|
|
402
518
|
}
|
|
403
|
-
if (this.
|
|
404
|
-
data.
|
|
519
|
+
if (this.test_suite_run_id != null) {
|
|
520
|
+
data.test_suite_run_id = this.test_suite_run_id;
|
|
405
521
|
}
|
|
406
|
-
if (this.
|
|
407
|
-
data.
|
|
522
|
+
if (this.title != null) {
|
|
523
|
+
data.title = this.title;
|
|
408
524
|
}
|
|
409
|
-
if (this.
|
|
410
|
-
data.
|
|
525
|
+
if (this.status != null) {
|
|
526
|
+
data.status = this.status;
|
|
527
|
+
}
|
|
528
|
+
if (this.start_time != null) {
|
|
529
|
+
data.start_time = this.start_time.toObject();
|
|
530
|
+
}
|
|
531
|
+
if (this.attachments != null) {
|
|
532
|
+
data.attachments = this.attachments.map((item: dependency_1.testsystem.v1.common.Attachment) => item.toObject());
|
|
533
|
+
}
|
|
534
|
+
if (this.error_message != null) {
|
|
535
|
+
data.error_message = this.error_message;
|
|
536
|
+
}
|
|
537
|
+
if (this.stack_trace != null) {
|
|
538
|
+
data.stack_trace = this.stack_trace;
|
|
411
539
|
}
|
|
412
540
|
if (this.metadata != null) {
|
|
413
541
|
data.metadata = (Object.fromEntries)(this.metadata);
|
|
414
542
|
}
|
|
415
|
-
if (this.
|
|
416
|
-
data.
|
|
543
|
+
if (this.errors != null) {
|
|
544
|
+
data.errors = this.errors;
|
|
545
|
+
}
|
|
546
|
+
if (this.actual_tags != null) {
|
|
547
|
+
data.actual_tags = this.actual_tags;
|
|
548
|
+
}
|
|
549
|
+
if (this.duration != null) {
|
|
550
|
+
data.duration = this.duration.toObject();
|
|
551
|
+
}
|
|
552
|
+
if (this.retry_count != null) {
|
|
553
|
+
data.retry_count = this.retry_count;
|
|
417
554
|
}
|
|
418
|
-
if (this.
|
|
419
|
-
data.
|
|
555
|
+
if (this.retry_index != null) {
|
|
556
|
+
data.retry_index = this.retry_index;
|
|
557
|
+
}
|
|
558
|
+
if (this.timeout != null) {
|
|
559
|
+
data.timeout = this.timeout;
|
|
420
560
|
}
|
|
421
561
|
return data;
|
|
422
562
|
}
|
|
@@ -426,31 +566,47 @@ export namespace testsystem.v1.entities {
|
|
|
426
566
|
const writer = w || new pb_1.BinaryWriter();
|
|
427
567
|
if (this.id.length)
|
|
428
568
|
writer.writeString(1, this.id);
|
|
429
|
-
if (this.
|
|
430
|
-
writer.writeString(2, this.
|
|
431
|
-
if (this.
|
|
432
|
-
writer.
|
|
433
|
-
if (this.
|
|
434
|
-
writer.
|
|
435
|
-
if (this.
|
|
436
|
-
writer.writeString(5, this.
|
|
437
|
-
if (this.
|
|
438
|
-
writer.
|
|
569
|
+
if (this.test_id.length)
|
|
570
|
+
writer.writeString(2, this.test_id);
|
|
571
|
+
if (this.run_id.length)
|
|
572
|
+
writer.writeString(3, this.run_id);
|
|
573
|
+
if (this.test_suite_run_id.length)
|
|
574
|
+
writer.writeString(4, this.test_suite_run_id);
|
|
575
|
+
if (this.title.length)
|
|
576
|
+
writer.writeString(5, this.title);
|
|
577
|
+
if (this.status != dependency_1.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
578
|
+
writer.writeEnum(6, this.status);
|
|
579
|
+
if (this.has_start_time)
|
|
580
|
+
writer.writeMessage(7, this.start_time, () => this.start_time.serialize(writer));
|
|
581
|
+
if (this.attachments.length)
|
|
582
|
+
writer.writeRepeatedMessage(8, this.attachments, (item: dependency_1.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
583
|
+
if (this.error_message.length)
|
|
584
|
+
writer.writeString(9, this.error_message);
|
|
585
|
+
if (this.stack_trace.length)
|
|
586
|
+
writer.writeString(10, this.stack_trace);
|
|
439
587
|
for (const [key, value] of this.metadata) {
|
|
440
|
-
writer.writeMessage(
|
|
588
|
+
writer.writeMessage(11, this.metadata, () => {
|
|
441
589
|
writer.writeString(1, key);
|
|
442
590
|
writer.writeString(2, value);
|
|
443
591
|
});
|
|
444
592
|
}
|
|
445
|
-
if (this.
|
|
446
|
-
writer.
|
|
447
|
-
if (this.
|
|
448
|
-
writer.
|
|
593
|
+
if (this.errors.length)
|
|
594
|
+
writer.writeRepeatedString(12, this.errors);
|
|
595
|
+
if (this.actual_tags.length)
|
|
596
|
+
writer.writeRepeatedString(13, this.actual_tags);
|
|
597
|
+
if (this.has_duration)
|
|
598
|
+
writer.writeMessage(14, this.duration, () => this.duration.serialize(writer));
|
|
599
|
+
if (this.retry_count != 0)
|
|
600
|
+
writer.writeInt32(15, this.retry_count);
|
|
601
|
+
if (this.retry_index != 0)
|
|
602
|
+
writer.writeInt32(16, this.retry_index);
|
|
603
|
+
if (this.timeout != 0)
|
|
604
|
+
writer.writeInt32(17, this.timeout);
|
|
449
605
|
if (!w)
|
|
450
606
|
return writer.getResultBuffer();
|
|
451
607
|
}
|
|
452
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader):
|
|
453
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
608
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestCaseRun {
|
|
609
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TestCaseRun();
|
|
454
610
|
while (reader.nextField()) {
|
|
455
611
|
if (reader.isEndGroup())
|
|
456
612
|
break;
|
|
@@ -459,28 +615,52 @@ export namespace testsystem.v1.entities {
|
|
|
459
615
|
message.id = reader.readString();
|
|
460
616
|
break;
|
|
461
617
|
case 2:
|
|
462
|
-
message.
|
|
618
|
+
message.test_id = reader.readString();
|
|
463
619
|
break;
|
|
464
620
|
case 3:
|
|
465
|
-
|
|
621
|
+
message.run_id = reader.readString();
|
|
466
622
|
break;
|
|
467
623
|
case 4:
|
|
468
|
-
|
|
624
|
+
message.test_suite_run_id = reader.readString();
|
|
469
625
|
break;
|
|
470
626
|
case 5:
|
|
471
|
-
message.
|
|
627
|
+
message.title = reader.readString();
|
|
472
628
|
break;
|
|
473
629
|
case 6:
|
|
474
|
-
message.
|
|
630
|
+
message.status = reader.readEnum();
|
|
475
631
|
break;
|
|
476
632
|
case 7:
|
|
477
|
-
reader.readMessage(message, () =>
|
|
633
|
+
reader.readMessage(message.start_time, () => message.start_time = dependency_2.google.protobuf.Timestamp.deserialize(reader));
|
|
478
634
|
break;
|
|
479
635
|
case 8:
|
|
480
|
-
message.
|
|
636
|
+
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 8, dependency_1.testsystem.v1.common.Attachment.deserialize(reader), dependency_1.testsystem.v1.common.Attachment));
|
|
481
637
|
break;
|
|
482
638
|
case 9:
|
|
483
|
-
|
|
639
|
+
message.error_message = reader.readString();
|
|
640
|
+
break;
|
|
641
|
+
case 10:
|
|
642
|
+
message.stack_trace = reader.readString();
|
|
643
|
+
break;
|
|
644
|
+
case 11:
|
|
645
|
+
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
646
|
+
break;
|
|
647
|
+
case 12:
|
|
648
|
+
pb_1.Message.addToRepeatedField(message, 12, reader.readString());
|
|
649
|
+
break;
|
|
650
|
+
case 13:
|
|
651
|
+
pb_1.Message.addToRepeatedField(message, 13, reader.readString());
|
|
652
|
+
break;
|
|
653
|
+
case 14:
|
|
654
|
+
reader.readMessage(message.duration, () => message.duration = dependency_3.google.protobuf.Duration.deserialize(reader));
|
|
655
|
+
break;
|
|
656
|
+
case 15:
|
|
657
|
+
message.retry_count = reader.readInt32();
|
|
658
|
+
break;
|
|
659
|
+
case 16:
|
|
660
|
+
message.retry_index = reader.readInt32();
|
|
661
|
+
break;
|
|
662
|
+
case 17:
|
|
663
|
+
message.timeout = reader.readInt32();
|
|
484
664
|
break;
|
|
485
665
|
default: reader.skipField();
|
|
486
666
|
}
|
|
@@ -490,36 +670,41 @@ export namespace testsystem.v1.entities {
|
|
|
490
670
|
serializeBinary(): Uint8Array {
|
|
491
671
|
return this.serialize();
|
|
492
672
|
}
|
|
493
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
494
|
-
return
|
|
673
|
+
static deserializeBinary(bytes: Uint8Array): TestCaseRun {
|
|
674
|
+
return TestCaseRun.deserialize(bytes);
|
|
495
675
|
}
|
|
496
676
|
}
|
|
497
|
-
export class
|
|
677
|
+
export class StepRun extends pb_1.Message {
|
|
498
678
|
#one_of_decls: number[][] = [];
|
|
499
679
|
constructor(data?: any[] | {
|
|
500
680
|
id?: string;
|
|
501
|
-
|
|
681
|
+
run_id?: string;
|
|
682
|
+
test_case_run_id?: string;
|
|
502
683
|
title?: string;
|
|
503
684
|
description?: string;
|
|
504
685
|
start_time?: dependency_2.google.protobuf.Timestamp;
|
|
686
|
+
duration?: dependency_3.google.protobuf.Duration;
|
|
505
687
|
type?: string;
|
|
506
|
-
duration?: number;
|
|
507
688
|
metadata?: Map<string, string>;
|
|
508
689
|
parent_step_id?: string;
|
|
509
|
-
sub_steps?: Step[];
|
|
510
690
|
worker_index?: string;
|
|
511
691
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
512
692
|
error?: string;
|
|
693
|
+
errors?: string[];
|
|
513
694
|
location?: string;
|
|
695
|
+
category?: string;
|
|
514
696
|
}) {
|
|
515
697
|
super();
|
|
516
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
698
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], this.#one_of_decls);
|
|
517
699
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
518
700
|
if ("id" in data && data.id != undefined) {
|
|
519
701
|
this.id = data.id;
|
|
520
702
|
}
|
|
521
|
-
if ("
|
|
522
|
-
this.
|
|
703
|
+
if ("run_id" in data && data.run_id != undefined) {
|
|
704
|
+
this.run_id = data.run_id;
|
|
705
|
+
}
|
|
706
|
+
if ("test_case_run_id" in data && data.test_case_run_id != undefined) {
|
|
707
|
+
this.test_case_run_id = data.test_case_run_id;
|
|
523
708
|
}
|
|
524
709
|
if ("title" in data && data.title != undefined) {
|
|
525
710
|
this.title = data.title;
|
|
@@ -530,21 +715,18 @@ export namespace testsystem.v1.entities {
|
|
|
530
715
|
if ("start_time" in data && data.start_time != undefined) {
|
|
531
716
|
this.start_time = data.start_time;
|
|
532
717
|
}
|
|
533
|
-
if ("type" in data && data.type != undefined) {
|
|
534
|
-
this.type = data.type;
|
|
535
|
-
}
|
|
536
718
|
if ("duration" in data && data.duration != undefined) {
|
|
537
719
|
this.duration = data.duration;
|
|
538
720
|
}
|
|
721
|
+
if ("type" in data && data.type != undefined) {
|
|
722
|
+
this.type = data.type;
|
|
723
|
+
}
|
|
539
724
|
if ("metadata" in data && data.metadata != undefined) {
|
|
540
725
|
this.metadata = data.metadata;
|
|
541
726
|
}
|
|
542
727
|
if ("parent_step_id" in data && data.parent_step_id != undefined) {
|
|
543
728
|
this.parent_step_id = data.parent_step_id;
|
|
544
729
|
}
|
|
545
|
-
if ("sub_steps" in data && data.sub_steps != undefined) {
|
|
546
|
-
this.sub_steps = data.sub_steps;
|
|
547
|
-
}
|
|
548
730
|
if ("worker_index" in data && data.worker_index != undefined) {
|
|
549
731
|
this.worker_index = data.worker_index;
|
|
550
732
|
}
|
|
@@ -554,9 +736,15 @@ export namespace testsystem.v1.entities {
|
|
|
554
736
|
if ("error" in data && data.error != undefined) {
|
|
555
737
|
this.error = data.error;
|
|
556
738
|
}
|
|
739
|
+
if ("errors" in data && data.errors != undefined) {
|
|
740
|
+
this.errors = data.errors;
|
|
741
|
+
}
|
|
557
742
|
if ("location" in data && data.location != undefined) {
|
|
558
743
|
this.location = data.location;
|
|
559
744
|
}
|
|
745
|
+
if ("category" in data && data.category != undefined) {
|
|
746
|
+
this.category = data.category;
|
|
747
|
+
}
|
|
560
748
|
}
|
|
561
749
|
if (!this.metadata)
|
|
562
750
|
this.metadata = new Map();
|
|
@@ -567,62 +755,65 @@ export namespace testsystem.v1.entities {
|
|
|
567
755
|
set id(value: string) {
|
|
568
756
|
pb_1.Message.setField(this, 1, value);
|
|
569
757
|
}
|
|
570
|
-
get
|
|
758
|
+
get run_id() {
|
|
571
759
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
572
760
|
}
|
|
573
|
-
set
|
|
761
|
+
set run_id(value: string) {
|
|
574
762
|
pb_1.Message.setField(this, 2, value);
|
|
575
763
|
}
|
|
576
|
-
get
|
|
764
|
+
get test_case_run_id() {
|
|
577
765
|
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
578
766
|
}
|
|
579
|
-
set
|
|
767
|
+
set test_case_run_id(value: string) {
|
|
580
768
|
pb_1.Message.setField(this, 3, value);
|
|
581
769
|
}
|
|
582
|
-
get
|
|
770
|
+
get title() {
|
|
583
771
|
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
584
772
|
}
|
|
585
|
-
set
|
|
773
|
+
set title(value: string) {
|
|
586
774
|
pb_1.Message.setField(this, 4, value);
|
|
587
775
|
}
|
|
776
|
+
get description() {
|
|
777
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
778
|
+
}
|
|
779
|
+
set description(value: string) {
|
|
780
|
+
pb_1.Message.setField(this, 5, value);
|
|
781
|
+
}
|
|
588
782
|
get start_time() {
|
|
589
|
-
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Timestamp,
|
|
783
|
+
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Timestamp, 6) as dependency_2.google.protobuf.Timestamp;
|
|
590
784
|
}
|
|
591
785
|
set start_time(value: dependency_2.google.protobuf.Timestamp) {
|
|
592
|
-
pb_1.Message.setWrapperField(this,
|
|
786
|
+
pb_1.Message.setWrapperField(this, 6, value);
|
|
593
787
|
}
|
|
594
788
|
get has_start_time() {
|
|
595
|
-
return pb_1.Message.getField(this,
|
|
789
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
596
790
|
}
|
|
597
|
-
get
|
|
598
|
-
return pb_1.Message.
|
|
791
|
+
get duration() {
|
|
792
|
+
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Duration, 7) as dependency_3.google.protobuf.Duration;
|
|
599
793
|
}
|
|
600
|
-
set
|
|
601
|
-
pb_1.Message.
|
|
794
|
+
set duration(value: dependency_3.google.protobuf.Duration) {
|
|
795
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
602
796
|
}
|
|
603
|
-
get
|
|
604
|
-
return pb_1.Message.
|
|
797
|
+
get has_duration() {
|
|
798
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
605
799
|
}
|
|
606
|
-
|
|
607
|
-
pb_1.Message.
|
|
800
|
+
get type() {
|
|
801
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "") as string;
|
|
802
|
+
}
|
|
803
|
+
set type(value: string) {
|
|
804
|
+
pb_1.Message.setField(this, 8, value);
|
|
608
805
|
}
|
|
609
806
|
get metadata() {
|
|
610
|
-
return pb_1.Message.getField(this,
|
|
807
|
+
return pb_1.Message.getField(this, 9) as any as Map<string, string>;
|
|
611
808
|
}
|
|
612
809
|
set metadata(value: Map<string, string>) {
|
|
613
|
-
pb_1.Message.setField(this,
|
|
810
|
+
pb_1.Message.setField(this, 9, value as any);
|
|
614
811
|
}
|
|
615
812
|
get parent_step_id() {
|
|
616
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
813
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "") as string;
|
|
617
814
|
}
|
|
618
815
|
set parent_step_id(value: string) {
|
|
619
|
-
pb_1.Message.setField(this,
|
|
620
|
-
}
|
|
621
|
-
get sub_steps() {
|
|
622
|
-
return pb_1.Message.getRepeatedWrapperField(this, Step, 10) as Step[];
|
|
623
|
-
}
|
|
624
|
-
set sub_steps(value: Step[]) {
|
|
625
|
-
pb_1.Message.setRepeatedWrapperField(this, 10, value);
|
|
816
|
+
pb_1.Message.setField(this, 10, value);
|
|
626
817
|
}
|
|
627
818
|
get worker_index() {
|
|
628
819
|
return pb_1.Message.getFieldWithDefault(this, 11, "") as string;
|
|
@@ -642,36 +833,53 @@ export namespace testsystem.v1.entities {
|
|
|
642
833
|
set error(value: string) {
|
|
643
834
|
pb_1.Message.setField(this, 13, value);
|
|
644
835
|
}
|
|
836
|
+
get errors() {
|
|
837
|
+
return pb_1.Message.getFieldWithDefault(this, 14, []) as string[];
|
|
838
|
+
}
|
|
839
|
+
set errors(value: string[]) {
|
|
840
|
+
pb_1.Message.setField(this, 14, value);
|
|
841
|
+
}
|
|
645
842
|
get location() {
|
|
646
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
843
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "") as string;
|
|
647
844
|
}
|
|
648
845
|
set location(value: string) {
|
|
649
|
-
pb_1.Message.setField(this,
|
|
846
|
+
pb_1.Message.setField(this, 15, value);
|
|
847
|
+
}
|
|
848
|
+
get category() {
|
|
849
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "") as string;
|
|
850
|
+
}
|
|
851
|
+
set category(value: string) {
|
|
852
|
+
pb_1.Message.setField(this, 16, value);
|
|
650
853
|
}
|
|
651
854
|
static fromObject(data: {
|
|
652
855
|
id?: string;
|
|
653
|
-
|
|
856
|
+
run_id?: string;
|
|
857
|
+
test_case_run_id?: string;
|
|
654
858
|
title?: string;
|
|
655
859
|
description?: string;
|
|
656
860
|
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
861
|
+
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
657
862
|
type?: string;
|
|
658
|
-
duration?: number;
|
|
659
863
|
metadata?: {
|
|
660
864
|
[key: string]: string;
|
|
661
865
|
};
|
|
662
866
|
parent_step_id?: string;
|
|
663
|
-
sub_steps?: ReturnType<typeof Step.prototype.toObject>[];
|
|
664
867
|
worker_index?: string;
|
|
665
868
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
666
869
|
error?: string;
|
|
870
|
+
errors?: string[];
|
|
667
871
|
location?: string;
|
|
668
|
-
|
|
669
|
-
|
|
872
|
+
category?: string;
|
|
873
|
+
}): StepRun {
|
|
874
|
+
const message = new StepRun({});
|
|
670
875
|
if (data.id != null) {
|
|
671
876
|
message.id = data.id;
|
|
672
877
|
}
|
|
673
|
-
if (data.
|
|
674
|
-
message.
|
|
878
|
+
if (data.run_id != null) {
|
|
879
|
+
message.run_id = data.run_id;
|
|
880
|
+
}
|
|
881
|
+
if (data.test_case_run_id != null) {
|
|
882
|
+
message.test_case_run_id = data.test_case_run_id;
|
|
675
883
|
}
|
|
676
884
|
if (data.title != null) {
|
|
677
885
|
message.title = data.title;
|
|
@@ -682,21 +890,18 @@ export namespace testsystem.v1.entities {
|
|
|
682
890
|
if (data.start_time != null) {
|
|
683
891
|
message.start_time = dependency_2.google.protobuf.Timestamp.fromObject(data.start_time);
|
|
684
892
|
}
|
|
893
|
+
if (data.duration != null) {
|
|
894
|
+
message.duration = dependency_3.google.protobuf.Duration.fromObject(data.duration);
|
|
895
|
+
}
|
|
685
896
|
if (data.type != null) {
|
|
686
897
|
message.type = data.type;
|
|
687
898
|
}
|
|
688
|
-
if (data.duration != null) {
|
|
689
|
-
message.duration = data.duration;
|
|
690
|
-
}
|
|
691
899
|
if (typeof data.metadata == "object") {
|
|
692
900
|
message.metadata = new Map(Object.entries(data.metadata));
|
|
693
901
|
}
|
|
694
902
|
if (data.parent_step_id != null) {
|
|
695
903
|
message.parent_step_id = data.parent_step_id;
|
|
696
904
|
}
|
|
697
|
-
if (data.sub_steps != null) {
|
|
698
|
-
message.sub_steps = data.sub_steps.map(item => Step.fromObject(item));
|
|
699
|
-
}
|
|
700
905
|
if (data.worker_index != null) {
|
|
701
906
|
message.worker_index = data.worker_index;
|
|
702
907
|
}
|
|
@@ -706,35 +911,46 @@ export namespace testsystem.v1.entities {
|
|
|
706
911
|
if (data.error != null) {
|
|
707
912
|
message.error = data.error;
|
|
708
913
|
}
|
|
914
|
+
if (data.errors != null) {
|
|
915
|
+
message.errors = data.errors;
|
|
916
|
+
}
|
|
709
917
|
if (data.location != null) {
|
|
710
918
|
message.location = data.location;
|
|
711
919
|
}
|
|
920
|
+
if (data.category != null) {
|
|
921
|
+
message.category = data.category;
|
|
922
|
+
}
|
|
712
923
|
return message;
|
|
713
924
|
}
|
|
714
925
|
toObject() {
|
|
715
926
|
const data: {
|
|
716
927
|
id?: string;
|
|
717
|
-
|
|
928
|
+
run_id?: string;
|
|
929
|
+
test_case_run_id?: string;
|
|
718
930
|
title?: string;
|
|
719
931
|
description?: string;
|
|
720
932
|
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
933
|
+
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
721
934
|
type?: string;
|
|
722
|
-
duration?: number;
|
|
723
935
|
metadata?: {
|
|
724
936
|
[key: string]: string;
|
|
725
937
|
};
|
|
726
938
|
parent_step_id?: string;
|
|
727
|
-
sub_steps?: ReturnType<typeof Step.prototype.toObject>[];
|
|
728
939
|
worker_index?: string;
|
|
729
940
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
730
941
|
error?: string;
|
|
942
|
+
errors?: string[];
|
|
731
943
|
location?: string;
|
|
944
|
+
category?: string;
|
|
732
945
|
} = {};
|
|
733
946
|
if (this.id != null) {
|
|
734
947
|
data.id = this.id;
|
|
735
948
|
}
|
|
736
|
-
if (this.
|
|
737
|
-
data.
|
|
949
|
+
if (this.run_id != null) {
|
|
950
|
+
data.run_id = this.run_id;
|
|
951
|
+
}
|
|
952
|
+
if (this.test_case_run_id != null) {
|
|
953
|
+
data.test_case_run_id = this.test_case_run_id;
|
|
738
954
|
}
|
|
739
955
|
if (this.title != null) {
|
|
740
956
|
data.title = this.title;
|
|
@@ -745,21 +961,18 @@ export namespace testsystem.v1.entities {
|
|
|
745
961
|
if (this.start_time != null) {
|
|
746
962
|
data.start_time = this.start_time.toObject();
|
|
747
963
|
}
|
|
964
|
+
if (this.duration != null) {
|
|
965
|
+
data.duration = this.duration.toObject();
|
|
966
|
+
}
|
|
748
967
|
if (this.type != null) {
|
|
749
968
|
data.type = this.type;
|
|
750
969
|
}
|
|
751
|
-
if (this.duration != null) {
|
|
752
|
-
data.duration = this.duration;
|
|
753
|
-
}
|
|
754
970
|
if (this.metadata != null) {
|
|
755
971
|
data.metadata = (Object.fromEntries)(this.metadata);
|
|
756
972
|
}
|
|
757
973
|
if (this.parent_step_id != null) {
|
|
758
974
|
data.parent_step_id = this.parent_step_id;
|
|
759
975
|
}
|
|
760
|
-
if (this.sub_steps != null) {
|
|
761
|
-
data.sub_steps = this.sub_steps.map((item: Step) => item.toObject());
|
|
762
|
-
}
|
|
763
976
|
if (this.worker_index != null) {
|
|
764
977
|
data.worker_index = this.worker_index;
|
|
765
978
|
}
|
|
@@ -769,9 +982,15 @@ export namespace testsystem.v1.entities {
|
|
|
769
982
|
if (this.error != null) {
|
|
770
983
|
data.error = this.error;
|
|
771
984
|
}
|
|
985
|
+
if (this.errors != null) {
|
|
986
|
+
data.errors = this.errors;
|
|
987
|
+
}
|
|
772
988
|
if (this.location != null) {
|
|
773
989
|
data.location = this.location;
|
|
774
990
|
}
|
|
991
|
+
if (this.category != null) {
|
|
992
|
+
data.category = this.category;
|
|
993
|
+
}
|
|
775
994
|
return data;
|
|
776
995
|
}
|
|
777
996
|
serialize(): Uint8Array;
|
|
@@ -780,41 +999,45 @@ export namespace testsystem.v1.entities {
|
|
|
780
999
|
const writer = w || new pb_1.BinaryWriter();
|
|
781
1000
|
if (this.id.length)
|
|
782
1001
|
writer.writeString(1, this.id);
|
|
783
|
-
if (this.
|
|
784
|
-
writer.writeString(2, this.
|
|
1002
|
+
if (this.run_id.length)
|
|
1003
|
+
writer.writeString(2, this.run_id);
|
|
1004
|
+
if (this.test_case_run_id.length)
|
|
1005
|
+
writer.writeString(3, this.test_case_run_id);
|
|
785
1006
|
if (this.title.length)
|
|
786
|
-
writer.writeString(
|
|
1007
|
+
writer.writeString(4, this.title);
|
|
787
1008
|
if (this.description.length)
|
|
788
|
-
writer.writeString(
|
|
1009
|
+
writer.writeString(5, this.description);
|
|
789
1010
|
if (this.has_start_time)
|
|
790
|
-
writer.writeMessage(
|
|
1011
|
+
writer.writeMessage(6, this.start_time, () => this.start_time.serialize(writer));
|
|
1012
|
+
if (this.has_duration)
|
|
1013
|
+
writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
|
|
791
1014
|
if (this.type.length)
|
|
792
|
-
writer.writeString(
|
|
793
|
-
if (this.duration != 0)
|
|
794
|
-
writer.writeInt64(7, this.duration);
|
|
1015
|
+
writer.writeString(8, this.type);
|
|
795
1016
|
for (const [key, value] of this.metadata) {
|
|
796
|
-
writer.writeMessage(
|
|
1017
|
+
writer.writeMessage(9, this.metadata, () => {
|
|
797
1018
|
writer.writeString(1, key);
|
|
798
1019
|
writer.writeString(2, value);
|
|
799
1020
|
});
|
|
800
1021
|
}
|
|
801
1022
|
if (this.parent_step_id.length)
|
|
802
|
-
writer.writeString(
|
|
803
|
-
if (this.sub_steps.length)
|
|
804
|
-
writer.writeRepeatedMessage(10, this.sub_steps, (item: Step) => item.serialize(writer));
|
|
1023
|
+
writer.writeString(10, this.parent_step_id);
|
|
805
1024
|
if (this.worker_index.length)
|
|
806
1025
|
writer.writeString(11, this.worker_index);
|
|
807
1026
|
if (this.status != dependency_1.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
808
1027
|
writer.writeEnum(12, this.status);
|
|
809
1028
|
if (this.error.length)
|
|
810
1029
|
writer.writeString(13, this.error);
|
|
1030
|
+
if (this.errors.length)
|
|
1031
|
+
writer.writeRepeatedString(14, this.errors);
|
|
811
1032
|
if (this.location.length)
|
|
812
|
-
writer.writeString(
|
|
1033
|
+
writer.writeString(15, this.location);
|
|
1034
|
+
if (this.category.length)
|
|
1035
|
+
writer.writeString(16, this.category);
|
|
813
1036
|
if (!w)
|
|
814
1037
|
return writer.getResultBuffer();
|
|
815
1038
|
}
|
|
816
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader):
|
|
817
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
1039
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StepRun {
|
|
1040
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StepRun();
|
|
818
1041
|
while (reader.nextField()) {
|
|
819
1042
|
if (reader.isEndGroup())
|
|
820
1043
|
break;
|
|
@@ -823,31 +1046,31 @@ export namespace testsystem.v1.entities {
|
|
|
823
1046
|
message.id = reader.readString();
|
|
824
1047
|
break;
|
|
825
1048
|
case 2:
|
|
826
|
-
message.
|
|
1049
|
+
message.run_id = reader.readString();
|
|
827
1050
|
break;
|
|
828
1051
|
case 3:
|
|
829
|
-
message.
|
|
1052
|
+
message.test_case_run_id = reader.readString();
|
|
830
1053
|
break;
|
|
831
1054
|
case 4:
|
|
832
|
-
message.
|
|
1055
|
+
message.title = reader.readString();
|
|
833
1056
|
break;
|
|
834
1057
|
case 5:
|
|
835
|
-
|
|
1058
|
+
message.description = reader.readString();
|
|
836
1059
|
break;
|
|
837
1060
|
case 6:
|
|
838
|
-
message.
|
|
1061
|
+
reader.readMessage(message.start_time, () => message.start_time = dependency_2.google.protobuf.Timestamp.deserialize(reader));
|
|
839
1062
|
break;
|
|
840
1063
|
case 7:
|
|
841
|
-
message.duration =
|
|
1064
|
+
reader.readMessage(message.duration, () => message.duration = dependency_3.google.protobuf.Duration.deserialize(reader));
|
|
842
1065
|
break;
|
|
843
1066
|
case 8:
|
|
844
|
-
|
|
1067
|
+
message.type = reader.readString();
|
|
845
1068
|
break;
|
|
846
1069
|
case 9:
|
|
847
|
-
message.
|
|
1070
|
+
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
848
1071
|
break;
|
|
849
1072
|
case 10:
|
|
850
|
-
|
|
1073
|
+
message.parent_step_id = reader.readString();
|
|
851
1074
|
break;
|
|
852
1075
|
case 11:
|
|
853
1076
|
message.worker_index = reader.readString();
|
|
@@ -859,294 +1082,13 @@ export namespace testsystem.v1.entities {
|
|
|
859
1082
|
message.error = reader.readString();
|
|
860
1083
|
break;
|
|
861
1084
|
case 14:
|
|
862
|
-
message
|
|
863
|
-
break;
|
|
864
|
-
default: reader.skipField();
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
return message;
|
|
868
|
-
}
|
|
869
|
-
serializeBinary(): Uint8Array {
|
|
870
|
-
return this.serialize();
|
|
871
|
-
}
|
|
872
|
-
static deserializeBinary(bytes: Uint8Array): Step {
|
|
873
|
-
return Step.deserialize(bytes);
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
export class TestResult extends pb_1.Message {
|
|
877
|
-
#one_of_decls: number[][] = [];
|
|
878
|
-
constructor(data?: any[] | {
|
|
879
|
-
id?: string;
|
|
880
|
-
test_id?: string;
|
|
881
|
-
title?: string;
|
|
882
|
-
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
883
|
-
start_time?: dependency_2.google.protobuf.Timestamp;
|
|
884
|
-
attachments?: dependency_1.testsystem.v1.common.Attachment[];
|
|
885
|
-
error_message?: string;
|
|
886
|
-
stack_trace?: string;
|
|
887
|
-
metadata?: Map<string, string>;
|
|
888
|
-
errors?: string[];
|
|
889
|
-
}) {
|
|
890
|
-
super();
|
|
891
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6, 11], this.#one_of_decls);
|
|
892
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
893
|
-
if ("id" in data && data.id != undefined) {
|
|
894
|
-
this.id = data.id;
|
|
895
|
-
}
|
|
896
|
-
if ("test_id" in data && data.test_id != undefined) {
|
|
897
|
-
this.test_id = data.test_id;
|
|
898
|
-
}
|
|
899
|
-
if ("title" in data && data.title != undefined) {
|
|
900
|
-
this.title = data.title;
|
|
901
|
-
}
|
|
902
|
-
if ("status" in data && data.status != undefined) {
|
|
903
|
-
this.status = data.status;
|
|
904
|
-
}
|
|
905
|
-
if ("start_time" in data && data.start_time != undefined) {
|
|
906
|
-
this.start_time = data.start_time;
|
|
907
|
-
}
|
|
908
|
-
if ("attachments" in data && data.attachments != undefined) {
|
|
909
|
-
this.attachments = data.attachments;
|
|
910
|
-
}
|
|
911
|
-
if ("error_message" in data && data.error_message != undefined) {
|
|
912
|
-
this.error_message = data.error_message;
|
|
913
|
-
}
|
|
914
|
-
if ("stack_trace" in data && data.stack_trace != undefined) {
|
|
915
|
-
this.stack_trace = data.stack_trace;
|
|
916
|
-
}
|
|
917
|
-
if ("metadata" in data && data.metadata != undefined) {
|
|
918
|
-
this.metadata = data.metadata;
|
|
919
|
-
}
|
|
920
|
-
if ("errors" in data && data.errors != undefined) {
|
|
921
|
-
this.errors = data.errors;
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
if (!this.metadata)
|
|
925
|
-
this.metadata = new Map();
|
|
926
|
-
}
|
|
927
|
-
get id() {
|
|
928
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
929
|
-
}
|
|
930
|
-
set id(value: string) {
|
|
931
|
-
pb_1.Message.setField(this, 1, value);
|
|
932
|
-
}
|
|
933
|
-
get test_id() {
|
|
934
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
935
|
-
}
|
|
936
|
-
set test_id(value: string) {
|
|
937
|
-
pb_1.Message.setField(this, 2, value);
|
|
938
|
-
}
|
|
939
|
-
get title() {
|
|
940
|
-
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
941
|
-
}
|
|
942
|
-
set title(value: string) {
|
|
943
|
-
pb_1.Message.setField(this, 3, value);
|
|
944
|
-
}
|
|
945
|
-
get status() {
|
|
946
|
-
return pb_1.Message.getFieldWithDefault(this, 4, dependency_1.testsystem.v1.common.TestStatus.UNKNOWN) as dependency_1.testsystem.v1.common.TestStatus;
|
|
947
|
-
}
|
|
948
|
-
set status(value: dependency_1.testsystem.v1.common.TestStatus) {
|
|
949
|
-
pb_1.Message.setField(this, 4, value);
|
|
950
|
-
}
|
|
951
|
-
get start_time() {
|
|
952
|
-
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Timestamp, 5) as dependency_2.google.protobuf.Timestamp;
|
|
953
|
-
}
|
|
954
|
-
set start_time(value: dependency_2.google.protobuf.Timestamp) {
|
|
955
|
-
pb_1.Message.setWrapperField(this, 5, value);
|
|
956
|
-
}
|
|
957
|
-
get has_start_time() {
|
|
958
|
-
return pb_1.Message.getField(this, 5) != null;
|
|
959
|
-
}
|
|
960
|
-
get attachments() {
|
|
961
|
-
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.testsystem.v1.common.Attachment, 6) as dependency_1.testsystem.v1.common.Attachment[];
|
|
962
|
-
}
|
|
963
|
-
set attachments(value: dependency_1.testsystem.v1.common.Attachment[]) {
|
|
964
|
-
pb_1.Message.setRepeatedWrapperField(this, 6, value);
|
|
965
|
-
}
|
|
966
|
-
get error_message() {
|
|
967
|
-
return pb_1.Message.getFieldWithDefault(this, 7, "") as string;
|
|
968
|
-
}
|
|
969
|
-
set error_message(value: string) {
|
|
970
|
-
pb_1.Message.setField(this, 7, value);
|
|
971
|
-
}
|
|
972
|
-
get stack_trace() {
|
|
973
|
-
return pb_1.Message.getFieldWithDefault(this, 8, "") as string;
|
|
974
|
-
}
|
|
975
|
-
set stack_trace(value: string) {
|
|
976
|
-
pb_1.Message.setField(this, 8, value);
|
|
977
|
-
}
|
|
978
|
-
get metadata() {
|
|
979
|
-
return pb_1.Message.getField(this, 9) as any as Map<string, string>;
|
|
980
|
-
}
|
|
981
|
-
set metadata(value: Map<string, string>) {
|
|
982
|
-
pb_1.Message.setField(this, 9, value as any);
|
|
983
|
-
}
|
|
984
|
-
get errors() {
|
|
985
|
-
return pb_1.Message.getFieldWithDefault(this, 11, []) as string[];
|
|
986
|
-
}
|
|
987
|
-
set errors(value: string[]) {
|
|
988
|
-
pb_1.Message.setField(this, 11, value);
|
|
989
|
-
}
|
|
990
|
-
static fromObject(data: {
|
|
991
|
-
id?: string;
|
|
992
|
-
test_id?: string;
|
|
993
|
-
title?: string;
|
|
994
|
-
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
995
|
-
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
996
|
-
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
997
|
-
error_message?: string;
|
|
998
|
-
stack_trace?: string;
|
|
999
|
-
metadata?: {
|
|
1000
|
-
[key: string]: string;
|
|
1001
|
-
};
|
|
1002
|
-
errors?: string[];
|
|
1003
|
-
}): TestResult {
|
|
1004
|
-
const message = new TestResult({});
|
|
1005
|
-
if (data.id != null) {
|
|
1006
|
-
message.id = data.id;
|
|
1007
|
-
}
|
|
1008
|
-
if (data.test_id != null) {
|
|
1009
|
-
message.test_id = data.test_id;
|
|
1010
|
-
}
|
|
1011
|
-
if (data.title != null) {
|
|
1012
|
-
message.title = data.title;
|
|
1013
|
-
}
|
|
1014
|
-
if (data.status != null) {
|
|
1015
|
-
message.status = data.status;
|
|
1016
|
-
}
|
|
1017
|
-
if (data.start_time != null) {
|
|
1018
|
-
message.start_time = dependency_2.google.protobuf.Timestamp.fromObject(data.start_time);
|
|
1019
|
-
}
|
|
1020
|
-
if (data.attachments != null) {
|
|
1021
|
-
message.attachments = data.attachments.map(item => dependency_1.testsystem.v1.common.Attachment.fromObject(item));
|
|
1022
|
-
}
|
|
1023
|
-
if (data.error_message != null) {
|
|
1024
|
-
message.error_message = data.error_message;
|
|
1025
|
-
}
|
|
1026
|
-
if (data.stack_trace != null) {
|
|
1027
|
-
message.stack_trace = data.stack_trace;
|
|
1028
|
-
}
|
|
1029
|
-
if (typeof data.metadata == "object") {
|
|
1030
|
-
message.metadata = new Map(Object.entries(data.metadata));
|
|
1031
|
-
}
|
|
1032
|
-
if (data.errors != null) {
|
|
1033
|
-
message.errors = data.errors;
|
|
1034
|
-
}
|
|
1035
|
-
return message;
|
|
1036
|
-
}
|
|
1037
|
-
toObject() {
|
|
1038
|
-
const data: {
|
|
1039
|
-
id?: string;
|
|
1040
|
-
test_id?: string;
|
|
1041
|
-
title?: string;
|
|
1042
|
-
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
1043
|
-
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
1044
|
-
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
1045
|
-
error_message?: string;
|
|
1046
|
-
stack_trace?: string;
|
|
1047
|
-
metadata?: {
|
|
1048
|
-
[key: string]: string;
|
|
1049
|
-
};
|
|
1050
|
-
errors?: string[];
|
|
1051
|
-
} = {};
|
|
1052
|
-
if (this.id != null) {
|
|
1053
|
-
data.id = this.id;
|
|
1054
|
-
}
|
|
1055
|
-
if (this.test_id != null) {
|
|
1056
|
-
data.test_id = this.test_id;
|
|
1057
|
-
}
|
|
1058
|
-
if (this.title != null) {
|
|
1059
|
-
data.title = this.title;
|
|
1060
|
-
}
|
|
1061
|
-
if (this.status != null) {
|
|
1062
|
-
data.status = this.status;
|
|
1063
|
-
}
|
|
1064
|
-
if (this.start_time != null) {
|
|
1065
|
-
data.start_time = this.start_time.toObject();
|
|
1066
|
-
}
|
|
1067
|
-
if (this.attachments != null) {
|
|
1068
|
-
data.attachments = this.attachments.map((item: dependency_1.testsystem.v1.common.Attachment) => item.toObject());
|
|
1069
|
-
}
|
|
1070
|
-
if (this.error_message != null) {
|
|
1071
|
-
data.error_message = this.error_message;
|
|
1072
|
-
}
|
|
1073
|
-
if (this.stack_trace != null) {
|
|
1074
|
-
data.stack_trace = this.stack_trace;
|
|
1075
|
-
}
|
|
1076
|
-
if (this.metadata != null) {
|
|
1077
|
-
data.metadata = (Object.fromEntries)(this.metadata);
|
|
1078
|
-
}
|
|
1079
|
-
if (this.errors != null) {
|
|
1080
|
-
data.errors = this.errors;
|
|
1081
|
-
}
|
|
1082
|
-
return data;
|
|
1083
|
-
}
|
|
1084
|
-
serialize(): Uint8Array;
|
|
1085
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
1086
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
1087
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
1088
|
-
if (this.id.length)
|
|
1089
|
-
writer.writeString(1, this.id);
|
|
1090
|
-
if (this.test_id.length)
|
|
1091
|
-
writer.writeString(2, this.test_id);
|
|
1092
|
-
if (this.title.length)
|
|
1093
|
-
writer.writeString(3, this.title);
|
|
1094
|
-
if (this.status != dependency_1.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
1095
|
-
writer.writeEnum(4, this.status);
|
|
1096
|
-
if (this.has_start_time)
|
|
1097
|
-
writer.writeMessage(5, this.start_time, () => this.start_time.serialize(writer));
|
|
1098
|
-
if (this.attachments.length)
|
|
1099
|
-
writer.writeRepeatedMessage(6, this.attachments, (item: dependency_1.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
1100
|
-
if (this.error_message.length)
|
|
1101
|
-
writer.writeString(7, this.error_message);
|
|
1102
|
-
if (this.stack_trace.length)
|
|
1103
|
-
writer.writeString(8, this.stack_trace);
|
|
1104
|
-
for (const [key, value] of this.metadata) {
|
|
1105
|
-
writer.writeMessage(9, this.metadata, () => {
|
|
1106
|
-
writer.writeString(1, key);
|
|
1107
|
-
writer.writeString(2, value);
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
if (this.errors.length)
|
|
1111
|
-
writer.writeRepeatedString(11, this.errors);
|
|
1112
|
-
if (!w)
|
|
1113
|
-
return writer.getResultBuffer();
|
|
1114
|
-
}
|
|
1115
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestResult {
|
|
1116
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TestResult();
|
|
1117
|
-
while (reader.nextField()) {
|
|
1118
|
-
if (reader.isEndGroup())
|
|
1119
|
-
break;
|
|
1120
|
-
switch (reader.getFieldNumber()) {
|
|
1121
|
-
case 1:
|
|
1122
|
-
message.id = reader.readString();
|
|
1085
|
+
pb_1.Message.addToRepeatedField(message, 14, reader.readString());
|
|
1123
1086
|
break;
|
|
1124
|
-
case
|
|
1125
|
-
message.
|
|
1126
|
-
break;
|
|
1127
|
-
case 3:
|
|
1128
|
-
message.title = reader.readString();
|
|
1129
|
-
break;
|
|
1130
|
-
case 4:
|
|
1131
|
-
message.status = reader.readEnum();
|
|
1132
|
-
break;
|
|
1133
|
-
case 5:
|
|
1134
|
-
reader.readMessage(message.start_time, () => message.start_time = dependency_2.google.protobuf.Timestamp.deserialize(reader));
|
|
1135
|
-
break;
|
|
1136
|
-
case 6:
|
|
1137
|
-
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 6, dependency_1.testsystem.v1.common.Attachment.deserialize(reader), dependency_1.testsystem.v1.common.Attachment));
|
|
1138
|
-
break;
|
|
1139
|
-
case 7:
|
|
1140
|
-
message.error_message = reader.readString();
|
|
1141
|
-
break;
|
|
1142
|
-
case 8:
|
|
1143
|
-
message.stack_trace = reader.readString();
|
|
1144
|
-
break;
|
|
1145
|
-
case 9:
|
|
1146
|
-
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
1087
|
+
case 15:
|
|
1088
|
+
message.location = reader.readString();
|
|
1147
1089
|
break;
|
|
1148
|
-
case
|
|
1149
|
-
|
|
1090
|
+
case 16:
|
|
1091
|
+
message.category = reader.readString();
|
|
1150
1092
|
break;
|
|
1151
1093
|
default: reader.skipField();
|
|
1152
1094
|
}
|
|
@@ -1156,8 +1098,8 @@ export namespace testsystem.v1.entities {
|
|
|
1156
1098
|
serializeBinary(): Uint8Array {
|
|
1157
1099
|
return this.serialize();
|
|
1158
1100
|
}
|
|
1159
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
1160
|
-
return
|
|
1101
|
+
static deserializeBinary(bytes: Uint8Array): StepRun {
|
|
1102
|
+
return StepRun.deserialize(bytes);
|
|
1161
1103
|
}
|
|
1162
1104
|
}
|
|
1163
1105
|
}
|