@stanterprise/protobuf 0.0.8 → 0.0.9
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 +1094 -590
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1094 -590
- 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 +4 -3
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/{entities.d.ts → test_case.d.ts} +102 -150
- package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts +166 -0
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/events/events.d.ts +32 -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 +11 -5
- package/lib/testsystem/v1/entities/{entities.ts → test_case.ts} +387 -563
- package/lib/testsystem/v1/entities/test_suite.ts +639 -0
- package/lib/testsystem/v1/events/events.ts +44 -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,68 @@ 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[];
|
|
245
242
|
}) {
|
|
246
243
|
super();
|
|
247
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
244
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [8, 12, 13], this.#one_of_decls);
|
|
248
245
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
249
246
|
if ("id" in data && data.id != undefined) {
|
|
250
247
|
this.id = data.id;
|
|
251
248
|
}
|
|
252
|
-
if ("
|
|
253
|
-
this.
|
|
249
|
+
if ("test_id" in data && data.test_id != undefined) {
|
|
250
|
+
this.test_id = data.test_id;
|
|
254
251
|
}
|
|
255
|
-
if ("
|
|
256
|
-
this.
|
|
252
|
+
if ("run_id" in data && data.run_id != undefined) {
|
|
253
|
+
this.run_id = data.run_id;
|
|
257
254
|
}
|
|
258
|
-
if ("
|
|
259
|
-
this.
|
|
255
|
+
if ("test_suite_run_id" in data && data.test_suite_run_id != undefined) {
|
|
256
|
+
this.test_suite_run_id = data.test_suite_run_id;
|
|
260
257
|
}
|
|
261
|
-
if ("
|
|
262
|
-
this.
|
|
258
|
+
if ("title" in data && data.title != undefined) {
|
|
259
|
+
this.title = data.title;
|
|
263
260
|
}
|
|
264
|
-
if ("
|
|
265
|
-
this.
|
|
261
|
+
if ("status" in data && data.status != undefined) {
|
|
262
|
+
this.status = data.status;
|
|
263
|
+
}
|
|
264
|
+
if ("start_time" in data && data.start_time != undefined) {
|
|
265
|
+
this.start_time = data.start_time;
|
|
266
|
+
}
|
|
267
|
+
if ("attachments" in data && data.attachments != undefined) {
|
|
268
|
+
this.attachments = data.attachments;
|
|
269
|
+
}
|
|
270
|
+
if ("error_message" in data && data.error_message != undefined) {
|
|
271
|
+
this.error_message = data.error_message;
|
|
272
|
+
}
|
|
273
|
+
if ("stack_trace" in data && data.stack_trace != undefined) {
|
|
274
|
+
this.stack_trace = data.stack_trace;
|
|
266
275
|
}
|
|
267
276
|
if ("metadata" in data && data.metadata != undefined) {
|
|
268
277
|
this.metadata = data.metadata;
|
|
269
278
|
}
|
|
270
|
-
if ("
|
|
271
|
-
this.
|
|
279
|
+
if ("errors" in data && data.errors != undefined) {
|
|
280
|
+
this.errors = data.errors;
|
|
272
281
|
}
|
|
273
|
-
if ("
|
|
274
|
-
this.
|
|
282
|
+
if ("actual_tags" in data && data.actual_tags != undefined) {
|
|
283
|
+
this.actual_tags = data.actual_tags;
|
|
275
284
|
}
|
|
276
285
|
}
|
|
277
286
|
if (!this.metadata)
|
|
@@ -283,140 +292,196 @@ export namespace testsystem.v1.entities {
|
|
|
283
292
|
set id(value: string) {
|
|
284
293
|
pb_1.Message.setField(this, 1, value);
|
|
285
294
|
}
|
|
286
|
-
get
|
|
295
|
+
get test_id() {
|
|
287
296
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
288
297
|
}
|
|
289
|
-
set
|
|
298
|
+
set test_id(value: string) {
|
|
290
299
|
pb_1.Message.setField(this, 2, value);
|
|
291
300
|
}
|
|
292
|
-
get
|
|
293
|
-
return pb_1.Message.
|
|
301
|
+
get run_id() {
|
|
302
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
294
303
|
}
|
|
295
|
-
set
|
|
296
|
-
pb_1.Message.
|
|
304
|
+
set run_id(value: string) {
|
|
305
|
+
pb_1.Message.setField(this, 3, value);
|
|
297
306
|
}
|
|
298
|
-
get
|
|
299
|
-
return pb_1.Message.
|
|
307
|
+
get test_suite_run_id() {
|
|
308
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
300
309
|
}
|
|
301
|
-
set
|
|
302
|
-
pb_1.Message.
|
|
310
|
+
set test_suite_run_id(value: string) {
|
|
311
|
+
pb_1.Message.setField(this, 4, value);
|
|
303
312
|
}
|
|
304
|
-
get
|
|
313
|
+
get title() {
|
|
305
314
|
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
306
315
|
}
|
|
307
|
-
set
|
|
316
|
+
set title(value: string) {
|
|
308
317
|
pb_1.Message.setField(this, 5, value);
|
|
309
318
|
}
|
|
310
|
-
get
|
|
311
|
-
return pb_1.Message.getFieldWithDefault(this, 6,
|
|
319
|
+
get status() {
|
|
320
|
+
return pb_1.Message.getFieldWithDefault(this, 6, dependency_1.testsystem.v1.common.TestStatus.UNKNOWN) as dependency_1.testsystem.v1.common.TestStatus;
|
|
312
321
|
}
|
|
313
|
-
set
|
|
322
|
+
set status(value: dependency_1.testsystem.v1.common.TestStatus) {
|
|
314
323
|
pb_1.Message.setField(this, 6, value);
|
|
315
324
|
}
|
|
325
|
+
get start_time() {
|
|
326
|
+
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Timestamp, 7) as dependency_2.google.protobuf.Timestamp;
|
|
327
|
+
}
|
|
328
|
+
set start_time(value: dependency_2.google.protobuf.Timestamp) {
|
|
329
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
330
|
+
}
|
|
331
|
+
get has_start_time() {
|
|
332
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
333
|
+
}
|
|
334
|
+
get attachments() {
|
|
335
|
+
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.testsystem.v1.common.Attachment, 8) as dependency_1.testsystem.v1.common.Attachment[];
|
|
336
|
+
}
|
|
337
|
+
set attachments(value: dependency_1.testsystem.v1.common.Attachment[]) {
|
|
338
|
+
pb_1.Message.setRepeatedWrapperField(this, 8, value);
|
|
339
|
+
}
|
|
340
|
+
get error_message() {
|
|
341
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "") as string;
|
|
342
|
+
}
|
|
343
|
+
set error_message(value: string) {
|
|
344
|
+
pb_1.Message.setField(this, 9, value);
|
|
345
|
+
}
|
|
346
|
+
get stack_trace() {
|
|
347
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "") as string;
|
|
348
|
+
}
|
|
349
|
+
set stack_trace(value: string) {
|
|
350
|
+
pb_1.Message.setField(this, 10, value);
|
|
351
|
+
}
|
|
316
352
|
get metadata() {
|
|
317
|
-
return pb_1.Message.getField(this,
|
|
353
|
+
return pb_1.Message.getField(this, 11) as any as Map<string, string>;
|
|
318
354
|
}
|
|
319
355
|
set metadata(value: Map<string, string>) {
|
|
320
|
-
pb_1.Message.setField(this,
|
|
321
|
-
}
|
|
322
|
-
get type() {
|
|
323
|
-
return pb_1.Message.getFieldWithDefault(this, 8, SuiteType.ROOT) as SuiteType;
|
|
356
|
+
pb_1.Message.setField(this, 11, value as any);
|
|
324
357
|
}
|
|
325
|
-
|
|
326
|
-
pb_1.Message.
|
|
358
|
+
get errors() {
|
|
359
|
+
return pb_1.Message.getFieldWithDefault(this, 12, []) as string[];
|
|
327
360
|
}
|
|
328
|
-
|
|
329
|
-
|
|
361
|
+
set errors(value: string[]) {
|
|
362
|
+
pb_1.Message.setField(this, 12, value);
|
|
330
363
|
}
|
|
331
|
-
|
|
332
|
-
pb_1.Message.
|
|
364
|
+
get actual_tags() {
|
|
365
|
+
return pb_1.Message.getFieldWithDefault(this, 13, []) as string[];
|
|
333
366
|
}
|
|
334
|
-
|
|
335
|
-
|
|
367
|
+
set actual_tags(value: string[]) {
|
|
368
|
+
pb_1.Message.setField(this, 13, value);
|
|
336
369
|
}
|
|
337
370
|
static fromObject(data: {
|
|
338
371
|
id?: string;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
372
|
+
test_id?: string;
|
|
373
|
+
run_id?: string;
|
|
374
|
+
test_suite_run_id?: string;
|
|
375
|
+
title?: string;
|
|
376
|
+
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
377
|
+
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
378
|
+
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
379
|
+
error_message?: string;
|
|
380
|
+
stack_trace?: string;
|
|
344
381
|
metadata?: {
|
|
345
382
|
[key: string]: string;
|
|
346
383
|
};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}):
|
|
350
|
-
const message = new
|
|
384
|
+
errors?: string[];
|
|
385
|
+
actual_tags?: string[];
|
|
386
|
+
}): TestCaseRun {
|
|
387
|
+
const message = new TestCaseRun({});
|
|
351
388
|
if (data.id != null) {
|
|
352
389
|
message.id = data.id;
|
|
353
390
|
}
|
|
354
|
-
if (data.
|
|
355
|
-
message.
|
|
391
|
+
if (data.test_id != null) {
|
|
392
|
+
message.test_id = data.test_id;
|
|
356
393
|
}
|
|
357
|
-
if (data.
|
|
358
|
-
message.
|
|
394
|
+
if (data.run_id != null) {
|
|
395
|
+
message.run_id = data.run_id;
|
|
359
396
|
}
|
|
360
|
-
if (data.
|
|
361
|
-
message.
|
|
397
|
+
if (data.test_suite_run_id != null) {
|
|
398
|
+
message.test_suite_run_id = data.test_suite_run_id;
|
|
362
399
|
}
|
|
363
|
-
if (data.
|
|
364
|
-
message.
|
|
400
|
+
if (data.title != null) {
|
|
401
|
+
message.title = data.title;
|
|
365
402
|
}
|
|
366
|
-
if (data.
|
|
367
|
-
message.
|
|
403
|
+
if (data.status != null) {
|
|
404
|
+
message.status = data.status;
|
|
405
|
+
}
|
|
406
|
+
if (data.start_time != null) {
|
|
407
|
+
message.start_time = dependency_2.google.protobuf.Timestamp.fromObject(data.start_time);
|
|
408
|
+
}
|
|
409
|
+
if (data.attachments != null) {
|
|
410
|
+
message.attachments = data.attachments.map(item => dependency_1.testsystem.v1.common.Attachment.fromObject(item));
|
|
411
|
+
}
|
|
412
|
+
if (data.error_message != null) {
|
|
413
|
+
message.error_message = data.error_message;
|
|
414
|
+
}
|
|
415
|
+
if (data.stack_trace != null) {
|
|
416
|
+
message.stack_trace = data.stack_trace;
|
|
368
417
|
}
|
|
369
418
|
if (typeof data.metadata == "object") {
|
|
370
419
|
message.metadata = new Map(Object.entries(data.metadata));
|
|
371
420
|
}
|
|
372
|
-
if (data.
|
|
373
|
-
message.
|
|
421
|
+
if (data.errors != null) {
|
|
422
|
+
message.errors = data.errors;
|
|
374
423
|
}
|
|
375
|
-
if (data.
|
|
376
|
-
message.
|
|
424
|
+
if (data.actual_tags != null) {
|
|
425
|
+
message.actual_tags = data.actual_tags;
|
|
377
426
|
}
|
|
378
427
|
return message;
|
|
379
428
|
}
|
|
380
429
|
toObject() {
|
|
381
430
|
const data: {
|
|
382
431
|
id?: string;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
432
|
+
test_id?: string;
|
|
433
|
+
run_id?: string;
|
|
434
|
+
test_suite_run_id?: string;
|
|
435
|
+
title?: string;
|
|
436
|
+
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
437
|
+
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
438
|
+
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
439
|
+
error_message?: string;
|
|
440
|
+
stack_trace?: string;
|
|
388
441
|
metadata?: {
|
|
389
442
|
[key: string]: string;
|
|
390
443
|
};
|
|
391
|
-
|
|
392
|
-
|
|
444
|
+
errors?: string[];
|
|
445
|
+
actual_tags?: string[];
|
|
393
446
|
} = {};
|
|
394
447
|
if (this.id != null) {
|
|
395
448
|
data.id = this.id;
|
|
396
449
|
}
|
|
397
|
-
if (this.
|
|
398
|
-
data.
|
|
450
|
+
if (this.test_id != null) {
|
|
451
|
+
data.test_id = this.test_id;
|
|
399
452
|
}
|
|
400
|
-
if (this.
|
|
401
|
-
data.
|
|
453
|
+
if (this.run_id != null) {
|
|
454
|
+
data.run_id = this.run_id;
|
|
402
455
|
}
|
|
403
|
-
if (this.
|
|
404
|
-
data.
|
|
456
|
+
if (this.test_suite_run_id != null) {
|
|
457
|
+
data.test_suite_run_id = this.test_suite_run_id;
|
|
405
458
|
}
|
|
406
|
-
if (this.
|
|
407
|
-
data.
|
|
459
|
+
if (this.title != null) {
|
|
460
|
+
data.title = this.title;
|
|
408
461
|
}
|
|
409
|
-
if (this.
|
|
410
|
-
data.
|
|
462
|
+
if (this.status != null) {
|
|
463
|
+
data.status = this.status;
|
|
464
|
+
}
|
|
465
|
+
if (this.start_time != null) {
|
|
466
|
+
data.start_time = this.start_time.toObject();
|
|
467
|
+
}
|
|
468
|
+
if (this.attachments != null) {
|
|
469
|
+
data.attachments = this.attachments.map((item: dependency_1.testsystem.v1.common.Attachment) => item.toObject());
|
|
470
|
+
}
|
|
471
|
+
if (this.error_message != null) {
|
|
472
|
+
data.error_message = this.error_message;
|
|
473
|
+
}
|
|
474
|
+
if (this.stack_trace != null) {
|
|
475
|
+
data.stack_trace = this.stack_trace;
|
|
411
476
|
}
|
|
412
477
|
if (this.metadata != null) {
|
|
413
478
|
data.metadata = (Object.fromEntries)(this.metadata);
|
|
414
479
|
}
|
|
415
|
-
if (this.
|
|
416
|
-
data.
|
|
480
|
+
if (this.errors != null) {
|
|
481
|
+
data.errors = this.errors;
|
|
417
482
|
}
|
|
418
|
-
if (this.
|
|
419
|
-
data.
|
|
483
|
+
if (this.actual_tags != null) {
|
|
484
|
+
data.actual_tags = this.actual_tags;
|
|
420
485
|
}
|
|
421
486
|
return data;
|
|
422
487
|
}
|
|
@@ -426,31 +491,39 @@ export namespace testsystem.v1.entities {
|
|
|
426
491
|
const writer = w || new pb_1.BinaryWriter();
|
|
427
492
|
if (this.id.length)
|
|
428
493
|
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.
|
|
494
|
+
if (this.test_id.length)
|
|
495
|
+
writer.writeString(2, this.test_id);
|
|
496
|
+
if (this.run_id.length)
|
|
497
|
+
writer.writeString(3, this.run_id);
|
|
498
|
+
if (this.test_suite_run_id.length)
|
|
499
|
+
writer.writeString(4, this.test_suite_run_id);
|
|
500
|
+
if (this.title.length)
|
|
501
|
+
writer.writeString(5, this.title);
|
|
502
|
+
if (this.status != dependency_1.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
503
|
+
writer.writeEnum(6, this.status);
|
|
504
|
+
if (this.has_start_time)
|
|
505
|
+
writer.writeMessage(7, this.start_time, () => this.start_time.serialize(writer));
|
|
506
|
+
if (this.attachments.length)
|
|
507
|
+
writer.writeRepeatedMessage(8, this.attachments, (item: dependency_1.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
508
|
+
if (this.error_message.length)
|
|
509
|
+
writer.writeString(9, this.error_message);
|
|
510
|
+
if (this.stack_trace.length)
|
|
511
|
+
writer.writeString(10, this.stack_trace);
|
|
439
512
|
for (const [key, value] of this.metadata) {
|
|
440
|
-
writer.writeMessage(
|
|
513
|
+
writer.writeMessage(11, this.metadata, () => {
|
|
441
514
|
writer.writeString(1, key);
|
|
442
515
|
writer.writeString(2, value);
|
|
443
516
|
});
|
|
444
517
|
}
|
|
445
|
-
if (this.
|
|
446
|
-
writer.
|
|
447
|
-
if (this.
|
|
448
|
-
writer.
|
|
518
|
+
if (this.errors.length)
|
|
519
|
+
writer.writeRepeatedString(12, this.errors);
|
|
520
|
+
if (this.actual_tags.length)
|
|
521
|
+
writer.writeRepeatedString(13, this.actual_tags);
|
|
449
522
|
if (!w)
|
|
450
523
|
return writer.getResultBuffer();
|
|
451
524
|
}
|
|
452
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader):
|
|
453
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
525
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestCaseRun {
|
|
526
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TestCaseRun();
|
|
454
527
|
while (reader.nextField()) {
|
|
455
528
|
if (reader.isEndGroup())
|
|
456
529
|
break;
|
|
@@ -459,28 +532,40 @@ export namespace testsystem.v1.entities {
|
|
|
459
532
|
message.id = reader.readString();
|
|
460
533
|
break;
|
|
461
534
|
case 2:
|
|
462
|
-
message.
|
|
535
|
+
message.test_id = reader.readString();
|
|
463
536
|
break;
|
|
464
537
|
case 3:
|
|
465
|
-
|
|
538
|
+
message.run_id = reader.readString();
|
|
466
539
|
break;
|
|
467
540
|
case 4:
|
|
468
|
-
|
|
541
|
+
message.test_suite_run_id = reader.readString();
|
|
469
542
|
break;
|
|
470
543
|
case 5:
|
|
471
|
-
message.
|
|
544
|
+
message.title = reader.readString();
|
|
472
545
|
break;
|
|
473
546
|
case 6:
|
|
474
|
-
message.
|
|
547
|
+
message.status = reader.readEnum();
|
|
475
548
|
break;
|
|
476
549
|
case 7:
|
|
477
|
-
reader.readMessage(message, () =>
|
|
550
|
+
reader.readMessage(message.start_time, () => message.start_time = dependency_2.google.protobuf.Timestamp.deserialize(reader));
|
|
478
551
|
break;
|
|
479
552
|
case 8:
|
|
480
|
-
message.
|
|
553
|
+
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
554
|
break;
|
|
482
555
|
case 9:
|
|
483
|
-
|
|
556
|
+
message.error_message = reader.readString();
|
|
557
|
+
break;
|
|
558
|
+
case 10:
|
|
559
|
+
message.stack_trace = reader.readString();
|
|
560
|
+
break;
|
|
561
|
+
case 11:
|
|
562
|
+
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
563
|
+
break;
|
|
564
|
+
case 12:
|
|
565
|
+
pb_1.Message.addToRepeatedField(message, 12, reader.readString());
|
|
566
|
+
break;
|
|
567
|
+
case 13:
|
|
568
|
+
pb_1.Message.addToRepeatedField(message, 13, reader.readString());
|
|
484
569
|
break;
|
|
485
570
|
default: reader.skipField();
|
|
486
571
|
}
|
|
@@ -490,36 +575,40 @@ export namespace testsystem.v1.entities {
|
|
|
490
575
|
serializeBinary(): Uint8Array {
|
|
491
576
|
return this.serialize();
|
|
492
577
|
}
|
|
493
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
494
|
-
return
|
|
578
|
+
static deserializeBinary(bytes: Uint8Array): TestCaseRun {
|
|
579
|
+
return TestCaseRun.deserialize(bytes);
|
|
495
580
|
}
|
|
496
581
|
}
|
|
497
|
-
export class
|
|
582
|
+
export class StepRun extends pb_1.Message {
|
|
498
583
|
#one_of_decls: number[][] = [];
|
|
499
584
|
constructor(data?: any[] | {
|
|
500
585
|
id?: string;
|
|
501
|
-
|
|
586
|
+
run_id?: string;
|
|
587
|
+
test_case_run_id?: string;
|
|
502
588
|
title?: string;
|
|
503
589
|
description?: string;
|
|
504
590
|
start_time?: dependency_2.google.protobuf.Timestamp;
|
|
591
|
+
duration?: dependency_3.google.protobuf.Duration;
|
|
505
592
|
type?: string;
|
|
506
|
-
duration?: number;
|
|
507
593
|
metadata?: Map<string, string>;
|
|
508
594
|
parent_step_id?: string;
|
|
509
|
-
sub_steps?: Step[];
|
|
510
595
|
worker_index?: string;
|
|
511
596
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
512
597
|
error?: string;
|
|
598
|
+
errors?: string[];
|
|
513
599
|
location?: string;
|
|
514
600
|
}) {
|
|
515
601
|
super();
|
|
516
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
602
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], this.#one_of_decls);
|
|
517
603
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
518
604
|
if ("id" in data && data.id != undefined) {
|
|
519
605
|
this.id = data.id;
|
|
520
606
|
}
|
|
521
|
-
if ("
|
|
522
|
-
this.
|
|
607
|
+
if ("run_id" in data && data.run_id != undefined) {
|
|
608
|
+
this.run_id = data.run_id;
|
|
609
|
+
}
|
|
610
|
+
if ("test_case_run_id" in data && data.test_case_run_id != undefined) {
|
|
611
|
+
this.test_case_run_id = data.test_case_run_id;
|
|
523
612
|
}
|
|
524
613
|
if ("title" in data && data.title != undefined) {
|
|
525
614
|
this.title = data.title;
|
|
@@ -530,21 +619,18 @@ export namespace testsystem.v1.entities {
|
|
|
530
619
|
if ("start_time" in data && data.start_time != undefined) {
|
|
531
620
|
this.start_time = data.start_time;
|
|
532
621
|
}
|
|
533
|
-
if ("type" in data && data.type != undefined) {
|
|
534
|
-
this.type = data.type;
|
|
535
|
-
}
|
|
536
622
|
if ("duration" in data && data.duration != undefined) {
|
|
537
623
|
this.duration = data.duration;
|
|
538
624
|
}
|
|
625
|
+
if ("type" in data && data.type != undefined) {
|
|
626
|
+
this.type = data.type;
|
|
627
|
+
}
|
|
539
628
|
if ("metadata" in data && data.metadata != undefined) {
|
|
540
629
|
this.metadata = data.metadata;
|
|
541
630
|
}
|
|
542
631
|
if ("parent_step_id" in data && data.parent_step_id != undefined) {
|
|
543
632
|
this.parent_step_id = data.parent_step_id;
|
|
544
633
|
}
|
|
545
|
-
if ("sub_steps" in data && data.sub_steps != undefined) {
|
|
546
|
-
this.sub_steps = data.sub_steps;
|
|
547
|
-
}
|
|
548
634
|
if ("worker_index" in data && data.worker_index != undefined) {
|
|
549
635
|
this.worker_index = data.worker_index;
|
|
550
636
|
}
|
|
@@ -554,6 +640,9 @@ export namespace testsystem.v1.entities {
|
|
|
554
640
|
if ("error" in data && data.error != undefined) {
|
|
555
641
|
this.error = data.error;
|
|
556
642
|
}
|
|
643
|
+
if ("errors" in data && data.errors != undefined) {
|
|
644
|
+
this.errors = data.errors;
|
|
645
|
+
}
|
|
557
646
|
if ("location" in data && data.location != undefined) {
|
|
558
647
|
this.location = data.location;
|
|
559
648
|
}
|
|
@@ -567,62 +656,65 @@ export namespace testsystem.v1.entities {
|
|
|
567
656
|
set id(value: string) {
|
|
568
657
|
pb_1.Message.setField(this, 1, value);
|
|
569
658
|
}
|
|
570
|
-
get
|
|
659
|
+
get run_id() {
|
|
571
660
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
572
661
|
}
|
|
573
|
-
set
|
|
662
|
+
set run_id(value: string) {
|
|
574
663
|
pb_1.Message.setField(this, 2, value);
|
|
575
664
|
}
|
|
576
|
-
get
|
|
665
|
+
get test_case_run_id() {
|
|
577
666
|
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
578
667
|
}
|
|
579
|
-
set
|
|
668
|
+
set test_case_run_id(value: string) {
|
|
580
669
|
pb_1.Message.setField(this, 3, value);
|
|
581
670
|
}
|
|
582
|
-
get
|
|
671
|
+
get title() {
|
|
583
672
|
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
584
673
|
}
|
|
585
|
-
set
|
|
674
|
+
set title(value: string) {
|
|
586
675
|
pb_1.Message.setField(this, 4, value);
|
|
587
676
|
}
|
|
677
|
+
get description() {
|
|
678
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
679
|
+
}
|
|
680
|
+
set description(value: string) {
|
|
681
|
+
pb_1.Message.setField(this, 5, value);
|
|
682
|
+
}
|
|
588
683
|
get start_time() {
|
|
589
|
-
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Timestamp,
|
|
684
|
+
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Timestamp, 6) as dependency_2.google.protobuf.Timestamp;
|
|
590
685
|
}
|
|
591
686
|
set start_time(value: dependency_2.google.protobuf.Timestamp) {
|
|
592
|
-
pb_1.Message.setWrapperField(this,
|
|
687
|
+
pb_1.Message.setWrapperField(this, 6, value);
|
|
593
688
|
}
|
|
594
689
|
get has_start_time() {
|
|
595
|
-
return pb_1.Message.getField(this,
|
|
596
|
-
}
|
|
597
|
-
get type() {
|
|
598
|
-
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
599
|
-
}
|
|
600
|
-
set type(value: string) {
|
|
601
|
-
pb_1.Message.setField(this, 6, value);
|
|
690
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
602
691
|
}
|
|
603
692
|
get duration() {
|
|
604
|
-
return pb_1.Message.
|
|
693
|
+
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Duration, 7) as dependency_3.google.protobuf.Duration;
|
|
605
694
|
}
|
|
606
|
-
set duration(value:
|
|
607
|
-
pb_1.Message.
|
|
695
|
+
set duration(value: dependency_3.google.protobuf.Duration) {
|
|
696
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
697
|
+
}
|
|
698
|
+
get has_duration() {
|
|
699
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
700
|
+
}
|
|
701
|
+
get type() {
|
|
702
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "") as string;
|
|
703
|
+
}
|
|
704
|
+
set type(value: string) {
|
|
705
|
+
pb_1.Message.setField(this, 8, value);
|
|
608
706
|
}
|
|
609
707
|
get metadata() {
|
|
610
|
-
return pb_1.Message.getField(this,
|
|
708
|
+
return pb_1.Message.getField(this, 9) as any as Map<string, string>;
|
|
611
709
|
}
|
|
612
710
|
set metadata(value: Map<string, string>) {
|
|
613
|
-
pb_1.Message.setField(this,
|
|
711
|
+
pb_1.Message.setField(this, 9, value as any);
|
|
614
712
|
}
|
|
615
713
|
get parent_step_id() {
|
|
616
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
714
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "") as string;
|
|
617
715
|
}
|
|
618
716
|
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);
|
|
717
|
+
pb_1.Message.setField(this, 10, value);
|
|
626
718
|
}
|
|
627
719
|
get worker_index() {
|
|
628
720
|
return pb_1.Message.getFieldWithDefault(this, 11, "") as string;
|
|
@@ -642,36 +734,46 @@ export namespace testsystem.v1.entities {
|
|
|
642
734
|
set error(value: string) {
|
|
643
735
|
pb_1.Message.setField(this, 13, value);
|
|
644
736
|
}
|
|
737
|
+
get errors() {
|
|
738
|
+
return pb_1.Message.getFieldWithDefault(this, 14, []) as string[];
|
|
739
|
+
}
|
|
740
|
+
set errors(value: string[]) {
|
|
741
|
+
pb_1.Message.setField(this, 14, value);
|
|
742
|
+
}
|
|
645
743
|
get location() {
|
|
646
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
744
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "") as string;
|
|
647
745
|
}
|
|
648
746
|
set location(value: string) {
|
|
649
|
-
pb_1.Message.setField(this,
|
|
747
|
+
pb_1.Message.setField(this, 15, value);
|
|
650
748
|
}
|
|
651
749
|
static fromObject(data: {
|
|
652
750
|
id?: string;
|
|
653
|
-
|
|
751
|
+
run_id?: string;
|
|
752
|
+
test_case_run_id?: string;
|
|
654
753
|
title?: string;
|
|
655
754
|
description?: string;
|
|
656
755
|
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
756
|
+
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
657
757
|
type?: string;
|
|
658
|
-
duration?: number;
|
|
659
758
|
metadata?: {
|
|
660
759
|
[key: string]: string;
|
|
661
760
|
};
|
|
662
761
|
parent_step_id?: string;
|
|
663
|
-
sub_steps?: ReturnType<typeof Step.prototype.toObject>[];
|
|
664
762
|
worker_index?: string;
|
|
665
763
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
666
764
|
error?: string;
|
|
765
|
+
errors?: string[];
|
|
667
766
|
location?: string;
|
|
668
|
-
}):
|
|
669
|
-
const message = new
|
|
767
|
+
}): StepRun {
|
|
768
|
+
const message = new StepRun({});
|
|
670
769
|
if (data.id != null) {
|
|
671
770
|
message.id = data.id;
|
|
672
771
|
}
|
|
673
|
-
if (data.
|
|
674
|
-
message.
|
|
772
|
+
if (data.run_id != null) {
|
|
773
|
+
message.run_id = data.run_id;
|
|
774
|
+
}
|
|
775
|
+
if (data.test_case_run_id != null) {
|
|
776
|
+
message.test_case_run_id = data.test_case_run_id;
|
|
675
777
|
}
|
|
676
778
|
if (data.title != null) {
|
|
677
779
|
message.title = data.title;
|
|
@@ -682,21 +784,18 @@ export namespace testsystem.v1.entities {
|
|
|
682
784
|
if (data.start_time != null) {
|
|
683
785
|
message.start_time = dependency_2.google.protobuf.Timestamp.fromObject(data.start_time);
|
|
684
786
|
}
|
|
787
|
+
if (data.duration != null) {
|
|
788
|
+
message.duration = dependency_3.google.protobuf.Duration.fromObject(data.duration);
|
|
789
|
+
}
|
|
685
790
|
if (data.type != null) {
|
|
686
791
|
message.type = data.type;
|
|
687
792
|
}
|
|
688
|
-
if (data.duration != null) {
|
|
689
|
-
message.duration = data.duration;
|
|
690
|
-
}
|
|
691
793
|
if (typeof data.metadata == "object") {
|
|
692
794
|
message.metadata = new Map(Object.entries(data.metadata));
|
|
693
795
|
}
|
|
694
796
|
if (data.parent_step_id != null) {
|
|
695
797
|
message.parent_step_id = data.parent_step_id;
|
|
696
798
|
}
|
|
697
|
-
if (data.sub_steps != null) {
|
|
698
|
-
message.sub_steps = data.sub_steps.map(item => Step.fromObject(item));
|
|
699
|
-
}
|
|
700
799
|
if (data.worker_index != null) {
|
|
701
800
|
message.worker_index = data.worker_index;
|
|
702
801
|
}
|
|
@@ -706,6 +805,9 @@ export namespace testsystem.v1.entities {
|
|
|
706
805
|
if (data.error != null) {
|
|
707
806
|
message.error = data.error;
|
|
708
807
|
}
|
|
808
|
+
if (data.errors != null) {
|
|
809
|
+
message.errors = data.errors;
|
|
810
|
+
}
|
|
709
811
|
if (data.location != null) {
|
|
710
812
|
message.location = data.location;
|
|
711
813
|
}
|
|
@@ -714,27 +816,31 @@ export namespace testsystem.v1.entities {
|
|
|
714
816
|
toObject() {
|
|
715
817
|
const data: {
|
|
716
818
|
id?: string;
|
|
717
|
-
|
|
819
|
+
run_id?: string;
|
|
820
|
+
test_case_run_id?: string;
|
|
718
821
|
title?: string;
|
|
719
822
|
description?: string;
|
|
720
823
|
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
824
|
+
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
721
825
|
type?: string;
|
|
722
|
-
duration?: number;
|
|
723
826
|
metadata?: {
|
|
724
827
|
[key: string]: string;
|
|
725
828
|
};
|
|
726
829
|
parent_step_id?: string;
|
|
727
|
-
sub_steps?: ReturnType<typeof Step.prototype.toObject>[];
|
|
728
830
|
worker_index?: string;
|
|
729
831
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
730
832
|
error?: string;
|
|
833
|
+
errors?: string[];
|
|
731
834
|
location?: string;
|
|
732
835
|
} = {};
|
|
733
836
|
if (this.id != null) {
|
|
734
837
|
data.id = this.id;
|
|
735
838
|
}
|
|
736
|
-
if (this.
|
|
737
|
-
data.
|
|
839
|
+
if (this.run_id != null) {
|
|
840
|
+
data.run_id = this.run_id;
|
|
841
|
+
}
|
|
842
|
+
if (this.test_case_run_id != null) {
|
|
843
|
+
data.test_case_run_id = this.test_case_run_id;
|
|
738
844
|
}
|
|
739
845
|
if (this.title != null) {
|
|
740
846
|
data.title = this.title;
|
|
@@ -745,21 +851,18 @@ export namespace testsystem.v1.entities {
|
|
|
745
851
|
if (this.start_time != null) {
|
|
746
852
|
data.start_time = this.start_time.toObject();
|
|
747
853
|
}
|
|
854
|
+
if (this.duration != null) {
|
|
855
|
+
data.duration = this.duration.toObject();
|
|
856
|
+
}
|
|
748
857
|
if (this.type != null) {
|
|
749
858
|
data.type = this.type;
|
|
750
859
|
}
|
|
751
|
-
if (this.duration != null) {
|
|
752
|
-
data.duration = this.duration;
|
|
753
|
-
}
|
|
754
860
|
if (this.metadata != null) {
|
|
755
861
|
data.metadata = (Object.fromEntries)(this.metadata);
|
|
756
862
|
}
|
|
757
863
|
if (this.parent_step_id != null) {
|
|
758
864
|
data.parent_step_id = this.parent_step_id;
|
|
759
865
|
}
|
|
760
|
-
if (this.sub_steps != null) {
|
|
761
|
-
data.sub_steps = this.sub_steps.map((item: Step) => item.toObject());
|
|
762
|
-
}
|
|
763
866
|
if (this.worker_index != null) {
|
|
764
867
|
data.worker_index = this.worker_index;
|
|
765
868
|
}
|
|
@@ -769,6 +872,9 @@ export namespace testsystem.v1.entities {
|
|
|
769
872
|
if (this.error != null) {
|
|
770
873
|
data.error = this.error;
|
|
771
874
|
}
|
|
875
|
+
if (this.errors != null) {
|
|
876
|
+
data.errors = this.errors;
|
|
877
|
+
}
|
|
772
878
|
if (this.location != null) {
|
|
773
879
|
data.location = this.location;
|
|
774
880
|
}
|
|
@@ -780,41 +886,43 @@ export namespace testsystem.v1.entities {
|
|
|
780
886
|
const writer = w || new pb_1.BinaryWriter();
|
|
781
887
|
if (this.id.length)
|
|
782
888
|
writer.writeString(1, this.id);
|
|
783
|
-
if (this.
|
|
784
|
-
writer.writeString(2, this.
|
|
889
|
+
if (this.run_id.length)
|
|
890
|
+
writer.writeString(2, this.run_id);
|
|
891
|
+
if (this.test_case_run_id.length)
|
|
892
|
+
writer.writeString(3, this.test_case_run_id);
|
|
785
893
|
if (this.title.length)
|
|
786
|
-
writer.writeString(
|
|
894
|
+
writer.writeString(4, this.title);
|
|
787
895
|
if (this.description.length)
|
|
788
|
-
writer.writeString(
|
|
896
|
+
writer.writeString(5, this.description);
|
|
789
897
|
if (this.has_start_time)
|
|
790
|
-
writer.writeMessage(
|
|
898
|
+
writer.writeMessage(6, this.start_time, () => this.start_time.serialize(writer));
|
|
899
|
+
if (this.has_duration)
|
|
900
|
+
writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
|
|
791
901
|
if (this.type.length)
|
|
792
|
-
writer.writeString(
|
|
793
|
-
if (this.duration != 0)
|
|
794
|
-
writer.writeInt64(7, this.duration);
|
|
902
|
+
writer.writeString(8, this.type);
|
|
795
903
|
for (const [key, value] of this.metadata) {
|
|
796
|
-
writer.writeMessage(
|
|
904
|
+
writer.writeMessage(9, this.metadata, () => {
|
|
797
905
|
writer.writeString(1, key);
|
|
798
906
|
writer.writeString(2, value);
|
|
799
907
|
});
|
|
800
908
|
}
|
|
801
909
|
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));
|
|
910
|
+
writer.writeString(10, this.parent_step_id);
|
|
805
911
|
if (this.worker_index.length)
|
|
806
912
|
writer.writeString(11, this.worker_index);
|
|
807
913
|
if (this.status != dependency_1.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
808
914
|
writer.writeEnum(12, this.status);
|
|
809
915
|
if (this.error.length)
|
|
810
916
|
writer.writeString(13, this.error);
|
|
917
|
+
if (this.errors.length)
|
|
918
|
+
writer.writeRepeatedString(14, this.errors);
|
|
811
919
|
if (this.location.length)
|
|
812
|
-
writer.writeString(
|
|
920
|
+
writer.writeString(15, this.location);
|
|
813
921
|
if (!w)
|
|
814
922
|
return writer.getResultBuffer();
|
|
815
923
|
}
|
|
816
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader):
|
|
817
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
924
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StepRun {
|
|
925
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StepRun();
|
|
818
926
|
while (reader.nextField()) {
|
|
819
927
|
if (reader.isEndGroup())
|
|
820
928
|
break;
|
|
@@ -823,31 +931,31 @@ export namespace testsystem.v1.entities {
|
|
|
823
931
|
message.id = reader.readString();
|
|
824
932
|
break;
|
|
825
933
|
case 2:
|
|
826
|
-
message.
|
|
934
|
+
message.run_id = reader.readString();
|
|
827
935
|
break;
|
|
828
936
|
case 3:
|
|
829
|
-
message.
|
|
937
|
+
message.test_case_run_id = reader.readString();
|
|
830
938
|
break;
|
|
831
939
|
case 4:
|
|
832
|
-
message.
|
|
940
|
+
message.title = reader.readString();
|
|
833
941
|
break;
|
|
834
942
|
case 5:
|
|
835
|
-
|
|
943
|
+
message.description = reader.readString();
|
|
836
944
|
break;
|
|
837
945
|
case 6:
|
|
838
|
-
message.
|
|
946
|
+
reader.readMessage(message.start_time, () => message.start_time = dependency_2.google.protobuf.Timestamp.deserialize(reader));
|
|
839
947
|
break;
|
|
840
948
|
case 7:
|
|
841
|
-
message.duration =
|
|
949
|
+
reader.readMessage(message.duration, () => message.duration = dependency_3.google.protobuf.Duration.deserialize(reader));
|
|
842
950
|
break;
|
|
843
951
|
case 8:
|
|
844
|
-
|
|
952
|
+
message.type = reader.readString();
|
|
845
953
|
break;
|
|
846
954
|
case 9:
|
|
847
|
-
message.
|
|
955
|
+
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
848
956
|
break;
|
|
849
957
|
case 10:
|
|
850
|
-
|
|
958
|
+
message.parent_step_id = reader.readString();
|
|
851
959
|
break;
|
|
852
960
|
case 11:
|
|
853
961
|
message.worker_index = reader.readString();
|
|
@@ -859,294 +967,10 @@ export namespace testsystem.v1.entities {
|
|
|
859
967
|
message.error = reader.readString();
|
|
860
968
|
break;
|
|
861
969
|
case 14:
|
|
862
|
-
message
|
|
970
|
+
pb_1.Message.addToRepeatedField(message, 14, reader.readString());
|
|
863
971
|
break;
|
|
864
|
-
|
|
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();
|
|
1123
|
-
break;
|
|
1124
|
-
case 2:
|
|
1125
|
-
message.test_id = reader.readString();
|
|
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));
|
|
1147
|
-
break;
|
|
1148
|
-
case 11:
|
|
1149
|
-
pb_1.Message.addToRepeatedField(message, 11, reader.readString());
|
|
972
|
+
case 15:
|
|
973
|
+
message.location = reader.readString();
|
|
1150
974
|
break;
|
|
1151
975
|
default: reader.skipField();
|
|
1152
976
|
}
|
|
@@ -1156,8 +980,8 @@ export namespace testsystem.v1.entities {
|
|
|
1156
980
|
serializeBinary(): Uint8Array {
|
|
1157
981
|
return this.serialize();
|
|
1158
982
|
}
|
|
1159
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
1160
|
-
return
|
|
983
|
+
static deserializeBinary(bytes: Uint8Array): StepRun {
|
|
984
|
+
return StepRun.deserialize(bytes);
|
|
1161
985
|
}
|
|
1162
986
|
}
|
|
1163
987
|
}
|