@stanterprise/protobuf 0.0.10 → 0.0.11
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 +730 -1005
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +730 -1005
- package/dist/index.mjs.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_case.d.ts +36 -78
- package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts +64 -101
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -1
- package/lib/testsystem/v1/entities/test_case.ts +169 -335
- package/lib/testsystem/v1/entities/test_suite.ts +261 -406
- package/package.json +1 -1
|
@@ -8,250 +8,40 @@ import * as dependency_2 from "./../../../google/protobuf/timestamp";
|
|
|
8
8
|
import * as dependency_3 from "./../../../google/protobuf/duration";
|
|
9
9
|
import * as pb_1 from "google-protobuf";
|
|
10
10
|
export namespace testsystem.v1.entities {
|
|
11
|
-
export class
|
|
11
|
+
export class TestCaseRun extends pb_1.Message {
|
|
12
12
|
#one_of_decls: number[][] = [];
|
|
13
13
|
constructor(data?: any[] | {
|
|
14
14
|
id?: string;
|
|
15
15
|
name?: string;
|
|
16
16
|
description?: string;
|
|
17
|
-
metadata?: Map<string, string>;
|
|
18
|
-
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
19
|
-
parent_suite_id?: string;
|
|
20
|
-
tags?: string[];
|
|
21
|
-
}) {
|
|
22
|
-
super();
|
|
23
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [7], this.#one_of_decls);
|
|
24
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
25
|
-
if ("id" in data && data.id != undefined) {
|
|
26
|
-
this.id = data.id;
|
|
27
|
-
}
|
|
28
|
-
if ("name" in data && data.name != undefined) {
|
|
29
|
-
this.name = data.name;
|
|
30
|
-
}
|
|
31
|
-
if ("description" in data && data.description != undefined) {
|
|
32
|
-
this.description = data.description;
|
|
33
|
-
}
|
|
34
|
-
if ("metadata" in data && data.metadata != undefined) {
|
|
35
|
-
this.metadata = data.metadata;
|
|
36
|
-
}
|
|
37
|
-
if ("status" in data && data.status != undefined) {
|
|
38
|
-
this.status = data.status;
|
|
39
|
-
}
|
|
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;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (!this.metadata)
|
|
48
|
-
this.metadata = new Map();
|
|
49
|
-
}
|
|
50
|
-
get id() {
|
|
51
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
52
|
-
}
|
|
53
|
-
set id(value: string) {
|
|
54
|
-
pb_1.Message.setField(this, 1, value);
|
|
55
|
-
}
|
|
56
|
-
get name() {
|
|
57
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
58
|
-
}
|
|
59
|
-
set name(value: string) {
|
|
60
|
-
pb_1.Message.setField(this, 2, value);
|
|
61
|
-
}
|
|
62
|
-
get description() {
|
|
63
|
-
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
64
|
-
}
|
|
65
|
-
set description(value: string) {
|
|
66
|
-
pb_1.Message.setField(this, 3, value);
|
|
67
|
-
}
|
|
68
|
-
get metadata() {
|
|
69
|
-
return pb_1.Message.getField(this, 4) as any as Map<string, string>;
|
|
70
|
-
}
|
|
71
|
-
set metadata(value: Map<string, string>) {
|
|
72
|
-
pb_1.Message.setField(this, 4, value as any);
|
|
73
|
-
}
|
|
74
|
-
get status() {
|
|
75
|
-
return pb_1.Message.getFieldWithDefault(this, 5, dependency_1.testsystem.v1.common.TestStatus.UNKNOWN) as dependency_1.testsystem.v1.common.TestStatus;
|
|
76
|
-
}
|
|
77
|
-
set status(value: dependency_1.testsystem.v1.common.TestStatus) {
|
|
78
|
-
pb_1.Message.setField(this, 5, value);
|
|
79
|
-
}
|
|
80
|
-
get parent_suite_id() {
|
|
81
|
-
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
82
|
-
}
|
|
83
|
-
set parent_suite_id(value: string) {
|
|
84
|
-
pb_1.Message.setField(this, 6, value);
|
|
85
|
-
}
|
|
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);
|
|
91
|
-
}
|
|
92
|
-
static fromObject(data: {
|
|
93
|
-
id?: string;
|
|
94
|
-
name?: string;
|
|
95
|
-
description?: string;
|
|
96
|
-
metadata?: {
|
|
97
|
-
[key: string]: string;
|
|
98
|
-
};
|
|
99
|
-
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
100
|
-
parent_suite_id?: string;
|
|
101
|
-
tags?: string[];
|
|
102
|
-
}): TestCaseSpec {
|
|
103
|
-
const message = new TestCaseSpec({});
|
|
104
|
-
if (data.id != null) {
|
|
105
|
-
message.id = data.id;
|
|
106
|
-
}
|
|
107
|
-
if (data.name != null) {
|
|
108
|
-
message.name = data.name;
|
|
109
|
-
}
|
|
110
|
-
if (data.description != null) {
|
|
111
|
-
message.description = data.description;
|
|
112
|
-
}
|
|
113
|
-
if (typeof data.metadata == "object") {
|
|
114
|
-
message.metadata = new Map(Object.entries(data.metadata));
|
|
115
|
-
}
|
|
116
|
-
if (data.status != null) {
|
|
117
|
-
message.status = data.status;
|
|
118
|
-
}
|
|
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;
|
|
124
|
-
}
|
|
125
|
-
return message;
|
|
126
|
-
}
|
|
127
|
-
toObject() {
|
|
128
|
-
const data: {
|
|
129
|
-
id?: string;
|
|
130
|
-
name?: string;
|
|
131
|
-
description?: string;
|
|
132
|
-
metadata?: {
|
|
133
|
-
[key: string]: string;
|
|
134
|
-
};
|
|
135
|
-
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
136
|
-
parent_suite_id?: string;
|
|
137
|
-
tags?: string[];
|
|
138
|
-
} = {};
|
|
139
|
-
if (this.id != null) {
|
|
140
|
-
data.id = this.id;
|
|
141
|
-
}
|
|
142
|
-
if (this.name != null) {
|
|
143
|
-
data.name = this.name;
|
|
144
|
-
}
|
|
145
|
-
if (this.description != null) {
|
|
146
|
-
data.description = this.description;
|
|
147
|
-
}
|
|
148
|
-
if (this.metadata != null) {
|
|
149
|
-
data.metadata = (Object.fromEntries)(this.metadata);
|
|
150
|
-
}
|
|
151
|
-
if (this.status != null) {
|
|
152
|
-
data.status = this.status;
|
|
153
|
-
}
|
|
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;
|
|
159
|
-
}
|
|
160
|
-
return data;
|
|
161
|
-
}
|
|
162
|
-
serialize(): Uint8Array;
|
|
163
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
164
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
165
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
166
|
-
if (this.id.length)
|
|
167
|
-
writer.writeString(1, this.id);
|
|
168
|
-
if (this.name.length)
|
|
169
|
-
writer.writeString(2, this.name);
|
|
170
|
-
if (this.description.length)
|
|
171
|
-
writer.writeString(3, this.description);
|
|
172
|
-
for (const [key, value] of this.metadata) {
|
|
173
|
-
writer.writeMessage(4, this.metadata, () => {
|
|
174
|
-
writer.writeString(1, key);
|
|
175
|
-
writer.writeString(2, value);
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
if (this.status != dependency_1.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
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);
|
|
184
|
-
if (!w)
|
|
185
|
-
return writer.getResultBuffer();
|
|
186
|
-
}
|
|
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();
|
|
189
|
-
while (reader.nextField()) {
|
|
190
|
-
if (reader.isEndGroup())
|
|
191
|
-
break;
|
|
192
|
-
switch (reader.getFieldNumber()) {
|
|
193
|
-
case 1:
|
|
194
|
-
message.id = reader.readString();
|
|
195
|
-
break;
|
|
196
|
-
case 2:
|
|
197
|
-
message.name = reader.readString();
|
|
198
|
-
break;
|
|
199
|
-
case 3:
|
|
200
|
-
message.description = reader.readString();
|
|
201
|
-
break;
|
|
202
|
-
case 4:
|
|
203
|
-
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
204
|
-
break;
|
|
205
|
-
case 5:
|
|
206
|
-
message.status = reader.readEnum();
|
|
207
|
-
break;
|
|
208
|
-
case 6:
|
|
209
|
-
message.parent_suite_id = reader.readString();
|
|
210
|
-
break;
|
|
211
|
-
case 7:
|
|
212
|
-
pb_1.Message.addToRepeatedField(message, 7, reader.readString());
|
|
213
|
-
break;
|
|
214
|
-
default: reader.skipField();
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
return message;
|
|
218
|
-
}
|
|
219
|
-
serializeBinary(): Uint8Array {
|
|
220
|
-
return this.serialize();
|
|
221
|
-
}
|
|
222
|
-
static deserializeBinary(bytes: Uint8Array): TestCaseSpec {
|
|
223
|
-
return TestCaseSpec.deserialize(bytes);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
export class TestCaseRun extends pb_1.Message {
|
|
227
|
-
#one_of_decls: number[][] = [];
|
|
228
|
-
constructor(data?: any[] | {
|
|
229
|
-
id?: string;
|
|
230
|
-
test_id?: string;
|
|
231
17
|
run_id?: string;
|
|
232
18
|
test_suite_run_id?: string;
|
|
233
|
-
title?: string;
|
|
234
19
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
235
20
|
start_time?: dependency_2.google.protobuf.Timestamp;
|
|
21
|
+
end_time?: dependency_2.google.protobuf.Timestamp;
|
|
22
|
+
duration?: dependency_3.google.protobuf.Duration;
|
|
236
23
|
attachments?: dependency_1.testsystem.v1.common.Attachment[];
|
|
237
24
|
error_message?: string;
|
|
238
25
|
stack_trace?: string;
|
|
239
|
-
metadata?: Map<string, string>;
|
|
240
26
|
errors?: string[];
|
|
241
|
-
|
|
242
|
-
|
|
27
|
+
metadata?: Map<string, string>;
|
|
28
|
+
tags?: string[];
|
|
29
|
+
location?: string;
|
|
243
30
|
retry_count?: number;
|
|
244
31
|
retry_index?: number;
|
|
245
32
|
timeout?: number;
|
|
246
33
|
}) {
|
|
247
34
|
super();
|
|
248
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
35
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [10, 13, 15], this.#one_of_decls);
|
|
249
36
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
250
37
|
if ("id" in data && data.id != undefined) {
|
|
251
38
|
this.id = data.id;
|
|
252
39
|
}
|
|
253
|
-
if ("
|
|
254
|
-
this.
|
|
40
|
+
if ("name" in data && data.name != undefined) {
|
|
41
|
+
this.name = data.name;
|
|
42
|
+
}
|
|
43
|
+
if ("description" in data && data.description != undefined) {
|
|
44
|
+
this.description = data.description;
|
|
255
45
|
}
|
|
256
46
|
if ("run_id" in data && data.run_id != undefined) {
|
|
257
47
|
this.run_id = data.run_id;
|
|
@@ -259,15 +49,18 @@ export namespace testsystem.v1.entities {
|
|
|
259
49
|
if ("test_suite_run_id" in data && data.test_suite_run_id != undefined) {
|
|
260
50
|
this.test_suite_run_id = data.test_suite_run_id;
|
|
261
51
|
}
|
|
262
|
-
if ("title" in data && data.title != undefined) {
|
|
263
|
-
this.title = data.title;
|
|
264
|
-
}
|
|
265
52
|
if ("status" in data && data.status != undefined) {
|
|
266
53
|
this.status = data.status;
|
|
267
54
|
}
|
|
268
55
|
if ("start_time" in data && data.start_time != undefined) {
|
|
269
56
|
this.start_time = data.start_time;
|
|
270
57
|
}
|
|
58
|
+
if ("end_time" in data && data.end_time != undefined) {
|
|
59
|
+
this.end_time = data.end_time;
|
|
60
|
+
}
|
|
61
|
+
if ("duration" in data && data.duration != undefined) {
|
|
62
|
+
this.duration = data.duration;
|
|
63
|
+
}
|
|
271
64
|
if ("attachments" in data && data.attachments != undefined) {
|
|
272
65
|
this.attachments = data.attachments;
|
|
273
66
|
}
|
|
@@ -277,17 +70,17 @@ export namespace testsystem.v1.entities {
|
|
|
277
70
|
if ("stack_trace" in data && data.stack_trace != undefined) {
|
|
278
71
|
this.stack_trace = data.stack_trace;
|
|
279
72
|
}
|
|
280
|
-
if ("metadata" in data && data.metadata != undefined) {
|
|
281
|
-
this.metadata = data.metadata;
|
|
282
|
-
}
|
|
283
73
|
if ("errors" in data && data.errors != undefined) {
|
|
284
74
|
this.errors = data.errors;
|
|
285
75
|
}
|
|
286
|
-
if ("
|
|
287
|
-
this.
|
|
76
|
+
if ("metadata" in data && data.metadata != undefined) {
|
|
77
|
+
this.metadata = data.metadata;
|
|
288
78
|
}
|
|
289
|
-
if ("
|
|
290
|
-
this.
|
|
79
|
+
if ("tags" in data && data.tags != undefined) {
|
|
80
|
+
this.tags = data.tags;
|
|
81
|
+
}
|
|
82
|
+
if ("location" in data && data.location != undefined) {
|
|
83
|
+
this.location = data.location;
|
|
291
84
|
}
|
|
292
85
|
if ("retry_count" in data && data.retry_count != undefined) {
|
|
293
86
|
this.retry_count = data.retry_count;
|
|
@@ -308,28 +101,28 @@ export namespace testsystem.v1.entities {
|
|
|
308
101
|
set id(value: string) {
|
|
309
102
|
pb_1.Message.setField(this, 1, value);
|
|
310
103
|
}
|
|
311
|
-
get
|
|
104
|
+
get name() {
|
|
312
105
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
313
106
|
}
|
|
314
|
-
set
|
|
107
|
+
set name(value: string) {
|
|
315
108
|
pb_1.Message.setField(this, 2, value);
|
|
316
109
|
}
|
|
317
|
-
get
|
|
110
|
+
get description() {
|
|
318
111
|
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
319
112
|
}
|
|
320
|
-
set
|
|
113
|
+
set description(value: string) {
|
|
321
114
|
pb_1.Message.setField(this, 3, value);
|
|
322
115
|
}
|
|
323
|
-
get
|
|
116
|
+
get run_id() {
|
|
324
117
|
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
325
118
|
}
|
|
326
|
-
set
|
|
119
|
+
set run_id(value: string) {
|
|
327
120
|
pb_1.Message.setField(this, 4, value);
|
|
328
121
|
}
|
|
329
|
-
get
|
|
122
|
+
get test_suite_run_id() {
|
|
330
123
|
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
331
124
|
}
|
|
332
|
-
set
|
|
125
|
+
set test_suite_run_id(value: string) {
|
|
333
126
|
pb_1.Message.setField(this, 5, value);
|
|
334
127
|
}
|
|
335
128
|
get status() {
|
|
@@ -347,86 +140,103 @@ export namespace testsystem.v1.entities {
|
|
|
347
140
|
get has_start_time() {
|
|
348
141
|
return pb_1.Message.getField(this, 7) != null;
|
|
349
142
|
}
|
|
143
|
+
get end_time() {
|
|
144
|
+
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Timestamp, 8) as dependency_2.google.protobuf.Timestamp;
|
|
145
|
+
}
|
|
146
|
+
set end_time(value: dependency_2.google.protobuf.Timestamp) {
|
|
147
|
+
pb_1.Message.setWrapperField(this, 8, value);
|
|
148
|
+
}
|
|
149
|
+
get has_end_time() {
|
|
150
|
+
return pb_1.Message.getField(this, 8) != null;
|
|
151
|
+
}
|
|
152
|
+
get duration() {
|
|
153
|
+
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Duration, 9) as dependency_3.google.protobuf.Duration;
|
|
154
|
+
}
|
|
155
|
+
set duration(value: dependency_3.google.protobuf.Duration) {
|
|
156
|
+
pb_1.Message.setWrapperField(this, 9, value);
|
|
157
|
+
}
|
|
158
|
+
get has_duration() {
|
|
159
|
+
return pb_1.Message.getField(this, 9) != null;
|
|
160
|
+
}
|
|
350
161
|
get attachments() {
|
|
351
|
-
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.testsystem.v1.common.Attachment,
|
|
162
|
+
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.testsystem.v1.common.Attachment, 10) as dependency_1.testsystem.v1.common.Attachment[];
|
|
352
163
|
}
|
|
353
164
|
set attachments(value: dependency_1.testsystem.v1.common.Attachment[]) {
|
|
354
|
-
pb_1.Message.setRepeatedWrapperField(this,
|
|
165
|
+
pb_1.Message.setRepeatedWrapperField(this, 10, value);
|
|
355
166
|
}
|
|
356
167
|
get error_message() {
|
|
357
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
168
|
+
return pb_1.Message.getFieldWithDefault(this, 11, "") as string;
|
|
358
169
|
}
|
|
359
170
|
set error_message(value: string) {
|
|
360
|
-
pb_1.Message.setField(this,
|
|
171
|
+
pb_1.Message.setField(this, 11, value);
|
|
361
172
|
}
|
|
362
173
|
get stack_trace() {
|
|
363
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
174
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "") as string;
|
|
364
175
|
}
|
|
365
176
|
set stack_trace(value: string) {
|
|
366
|
-
pb_1.Message.setField(this,
|
|
367
|
-
}
|
|
368
|
-
get metadata() {
|
|
369
|
-
return pb_1.Message.getField(this, 11) as any as Map<string, string>;
|
|
370
|
-
}
|
|
371
|
-
set metadata(value: Map<string, string>) {
|
|
372
|
-
pb_1.Message.setField(this, 11, value as any);
|
|
177
|
+
pb_1.Message.setField(this, 12, value);
|
|
373
178
|
}
|
|
374
179
|
get errors() {
|
|
375
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
180
|
+
return pb_1.Message.getFieldWithDefault(this, 13, []) as string[];
|
|
376
181
|
}
|
|
377
182
|
set errors(value: string[]) {
|
|
378
|
-
pb_1.Message.setField(this,
|
|
183
|
+
pb_1.Message.setField(this, 13, value);
|
|
379
184
|
}
|
|
380
|
-
get
|
|
381
|
-
return pb_1.Message.
|
|
185
|
+
get metadata() {
|
|
186
|
+
return pb_1.Message.getField(this, 14) as any as Map<string, string>;
|
|
382
187
|
}
|
|
383
|
-
set
|
|
384
|
-
pb_1.Message.setField(this,
|
|
188
|
+
set metadata(value: Map<string, string>) {
|
|
189
|
+
pb_1.Message.setField(this, 14, value as any);
|
|
385
190
|
}
|
|
386
|
-
get
|
|
387
|
-
return pb_1.Message.
|
|
191
|
+
get tags() {
|
|
192
|
+
return pb_1.Message.getFieldWithDefault(this, 15, []) as string[];
|
|
388
193
|
}
|
|
389
|
-
set
|
|
390
|
-
pb_1.Message.
|
|
194
|
+
set tags(value: string[]) {
|
|
195
|
+
pb_1.Message.setField(this, 15, value);
|
|
391
196
|
}
|
|
392
|
-
get
|
|
393
|
-
return pb_1.Message.
|
|
197
|
+
get location() {
|
|
198
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "") as string;
|
|
199
|
+
}
|
|
200
|
+
set location(value: string) {
|
|
201
|
+
pb_1.Message.setField(this, 16, value);
|
|
394
202
|
}
|
|
395
203
|
get retry_count() {
|
|
396
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
204
|
+
return pb_1.Message.getFieldWithDefault(this, 17, 0) as number;
|
|
397
205
|
}
|
|
398
206
|
set retry_count(value: number) {
|
|
399
|
-
pb_1.Message.setField(this,
|
|
207
|
+
pb_1.Message.setField(this, 17, value);
|
|
400
208
|
}
|
|
401
209
|
get retry_index() {
|
|
402
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
210
|
+
return pb_1.Message.getFieldWithDefault(this, 18, 0) as number;
|
|
403
211
|
}
|
|
404
212
|
set retry_index(value: number) {
|
|
405
|
-
pb_1.Message.setField(this,
|
|
213
|
+
pb_1.Message.setField(this, 18, value);
|
|
406
214
|
}
|
|
407
215
|
get timeout() {
|
|
408
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
216
|
+
return pb_1.Message.getFieldWithDefault(this, 19, 0) as number;
|
|
409
217
|
}
|
|
410
218
|
set timeout(value: number) {
|
|
411
|
-
pb_1.Message.setField(this,
|
|
219
|
+
pb_1.Message.setField(this, 19, value);
|
|
412
220
|
}
|
|
413
221
|
static fromObject(data: {
|
|
414
222
|
id?: string;
|
|
415
|
-
|
|
223
|
+
name?: string;
|
|
224
|
+
description?: string;
|
|
416
225
|
run_id?: string;
|
|
417
226
|
test_suite_run_id?: string;
|
|
418
|
-
title?: string;
|
|
419
227
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
420
228
|
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
229
|
+
end_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
230
|
+
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
421
231
|
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
422
232
|
error_message?: string;
|
|
423
233
|
stack_trace?: string;
|
|
234
|
+
errors?: string[];
|
|
424
235
|
metadata?: {
|
|
425
236
|
[key: string]: string;
|
|
426
237
|
};
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
238
|
+
tags?: string[];
|
|
239
|
+
location?: string;
|
|
430
240
|
retry_count?: number;
|
|
431
241
|
retry_index?: number;
|
|
432
242
|
timeout?: number;
|
|
@@ -435,8 +245,11 @@ export namespace testsystem.v1.entities {
|
|
|
435
245
|
if (data.id != null) {
|
|
436
246
|
message.id = data.id;
|
|
437
247
|
}
|
|
438
|
-
if (data.
|
|
439
|
-
message.
|
|
248
|
+
if (data.name != null) {
|
|
249
|
+
message.name = data.name;
|
|
250
|
+
}
|
|
251
|
+
if (data.description != null) {
|
|
252
|
+
message.description = data.description;
|
|
440
253
|
}
|
|
441
254
|
if (data.run_id != null) {
|
|
442
255
|
message.run_id = data.run_id;
|
|
@@ -444,15 +257,18 @@ export namespace testsystem.v1.entities {
|
|
|
444
257
|
if (data.test_suite_run_id != null) {
|
|
445
258
|
message.test_suite_run_id = data.test_suite_run_id;
|
|
446
259
|
}
|
|
447
|
-
if (data.title != null) {
|
|
448
|
-
message.title = data.title;
|
|
449
|
-
}
|
|
450
260
|
if (data.status != null) {
|
|
451
261
|
message.status = data.status;
|
|
452
262
|
}
|
|
453
263
|
if (data.start_time != null) {
|
|
454
264
|
message.start_time = dependency_2.google.protobuf.Timestamp.fromObject(data.start_time);
|
|
455
265
|
}
|
|
266
|
+
if (data.end_time != null) {
|
|
267
|
+
message.end_time = dependency_2.google.protobuf.Timestamp.fromObject(data.end_time);
|
|
268
|
+
}
|
|
269
|
+
if (data.duration != null) {
|
|
270
|
+
message.duration = dependency_3.google.protobuf.Duration.fromObject(data.duration);
|
|
271
|
+
}
|
|
456
272
|
if (data.attachments != null) {
|
|
457
273
|
message.attachments = data.attachments.map(item => dependency_1.testsystem.v1.common.Attachment.fromObject(item));
|
|
458
274
|
}
|
|
@@ -462,17 +278,17 @@ export namespace testsystem.v1.entities {
|
|
|
462
278
|
if (data.stack_trace != null) {
|
|
463
279
|
message.stack_trace = data.stack_trace;
|
|
464
280
|
}
|
|
465
|
-
if (typeof data.metadata == "object") {
|
|
466
|
-
message.metadata = new Map(Object.entries(data.metadata));
|
|
467
|
-
}
|
|
468
281
|
if (data.errors != null) {
|
|
469
282
|
message.errors = data.errors;
|
|
470
283
|
}
|
|
471
|
-
if (data.
|
|
472
|
-
message.
|
|
284
|
+
if (typeof data.metadata == "object") {
|
|
285
|
+
message.metadata = new Map(Object.entries(data.metadata));
|
|
473
286
|
}
|
|
474
|
-
if (data.
|
|
475
|
-
message.
|
|
287
|
+
if (data.tags != null) {
|
|
288
|
+
message.tags = data.tags;
|
|
289
|
+
}
|
|
290
|
+
if (data.location != null) {
|
|
291
|
+
message.location = data.location;
|
|
476
292
|
}
|
|
477
293
|
if (data.retry_count != null) {
|
|
478
294
|
message.retry_count = data.retry_count;
|
|
@@ -488,21 +304,23 @@ export namespace testsystem.v1.entities {
|
|
|
488
304
|
toObject() {
|
|
489
305
|
const data: {
|
|
490
306
|
id?: string;
|
|
491
|
-
|
|
307
|
+
name?: string;
|
|
308
|
+
description?: string;
|
|
492
309
|
run_id?: string;
|
|
493
310
|
test_suite_run_id?: string;
|
|
494
|
-
title?: string;
|
|
495
311
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
496
312
|
start_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
313
|
+
end_time?: ReturnType<typeof dependency_2.google.protobuf.Timestamp.prototype.toObject>;
|
|
314
|
+
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
497
315
|
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
498
316
|
error_message?: string;
|
|
499
317
|
stack_trace?: string;
|
|
318
|
+
errors?: string[];
|
|
500
319
|
metadata?: {
|
|
501
320
|
[key: string]: string;
|
|
502
321
|
};
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
|
|
322
|
+
tags?: string[];
|
|
323
|
+
location?: string;
|
|
506
324
|
retry_count?: number;
|
|
507
325
|
retry_index?: number;
|
|
508
326
|
timeout?: number;
|
|
@@ -510,8 +328,11 @@ export namespace testsystem.v1.entities {
|
|
|
510
328
|
if (this.id != null) {
|
|
511
329
|
data.id = this.id;
|
|
512
330
|
}
|
|
513
|
-
if (this.
|
|
514
|
-
data.
|
|
331
|
+
if (this.name != null) {
|
|
332
|
+
data.name = this.name;
|
|
333
|
+
}
|
|
334
|
+
if (this.description != null) {
|
|
335
|
+
data.description = this.description;
|
|
515
336
|
}
|
|
516
337
|
if (this.run_id != null) {
|
|
517
338
|
data.run_id = this.run_id;
|
|
@@ -519,15 +340,18 @@ export namespace testsystem.v1.entities {
|
|
|
519
340
|
if (this.test_suite_run_id != null) {
|
|
520
341
|
data.test_suite_run_id = this.test_suite_run_id;
|
|
521
342
|
}
|
|
522
|
-
if (this.title != null) {
|
|
523
|
-
data.title = this.title;
|
|
524
|
-
}
|
|
525
343
|
if (this.status != null) {
|
|
526
344
|
data.status = this.status;
|
|
527
345
|
}
|
|
528
346
|
if (this.start_time != null) {
|
|
529
347
|
data.start_time = this.start_time.toObject();
|
|
530
348
|
}
|
|
349
|
+
if (this.end_time != null) {
|
|
350
|
+
data.end_time = this.end_time.toObject();
|
|
351
|
+
}
|
|
352
|
+
if (this.duration != null) {
|
|
353
|
+
data.duration = this.duration.toObject();
|
|
354
|
+
}
|
|
531
355
|
if (this.attachments != null) {
|
|
532
356
|
data.attachments = this.attachments.map((item: dependency_1.testsystem.v1.common.Attachment) => item.toObject());
|
|
533
357
|
}
|
|
@@ -537,17 +361,17 @@ export namespace testsystem.v1.entities {
|
|
|
537
361
|
if (this.stack_trace != null) {
|
|
538
362
|
data.stack_trace = this.stack_trace;
|
|
539
363
|
}
|
|
540
|
-
if (this.metadata != null) {
|
|
541
|
-
data.metadata = (Object.fromEntries)(this.metadata);
|
|
542
|
-
}
|
|
543
364
|
if (this.errors != null) {
|
|
544
365
|
data.errors = this.errors;
|
|
545
366
|
}
|
|
546
|
-
if (this.
|
|
547
|
-
data.
|
|
367
|
+
if (this.metadata != null) {
|
|
368
|
+
data.metadata = (Object.fromEntries)(this.metadata);
|
|
548
369
|
}
|
|
549
|
-
if (this.
|
|
550
|
-
data.
|
|
370
|
+
if (this.tags != null) {
|
|
371
|
+
data.tags = this.tags;
|
|
372
|
+
}
|
|
373
|
+
if (this.location != null) {
|
|
374
|
+
data.location = this.location;
|
|
551
375
|
}
|
|
552
376
|
if (this.retry_count != null) {
|
|
553
377
|
data.retry_count = this.retry_count;
|
|
@@ -566,42 +390,46 @@ export namespace testsystem.v1.entities {
|
|
|
566
390
|
const writer = w || new pb_1.BinaryWriter();
|
|
567
391
|
if (this.id.length)
|
|
568
392
|
writer.writeString(1, this.id);
|
|
569
|
-
if (this.
|
|
570
|
-
writer.writeString(2, this.
|
|
393
|
+
if (this.name.length)
|
|
394
|
+
writer.writeString(2, this.name);
|
|
395
|
+
if (this.description.length)
|
|
396
|
+
writer.writeString(3, this.description);
|
|
571
397
|
if (this.run_id.length)
|
|
572
|
-
writer.writeString(
|
|
398
|
+
writer.writeString(4, this.run_id);
|
|
573
399
|
if (this.test_suite_run_id.length)
|
|
574
|
-
writer.writeString(
|
|
575
|
-
if (this.title.length)
|
|
576
|
-
writer.writeString(5, this.title);
|
|
400
|
+
writer.writeString(5, this.test_suite_run_id);
|
|
577
401
|
if (this.status != dependency_1.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
578
402
|
writer.writeEnum(6, this.status);
|
|
579
403
|
if (this.has_start_time)
|
|
580
404
|
writer.writeMessage(7, this.start_time, () => this.start_time.serialize(writer));
|
|
405
|
+
if (this.has_end_time)
|
|
406
|
+
writer.writeMessage(8, this.end_time, () => this.end_time.serialize(writer));
|
|
407
|
+
if (this.has_duration)
|
|
408
|
+
writer.writeMessage(9, this.duration, () => this.duration.serialize(writer));
|
|
581
409
|
if (this.attachments.length)
|
|
582
|
-
writer.writeRepeatedMessage(
|
|
410
|
+
writer.writeRepeatedMessage(10, this.attachments, (item: dependency_1.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
583
411
|
if (this.error_message.length)
|
|
584
|
-
writer.writeString(
|
|
412
|
+
writer.writeString(11, this.error_message);
|
|
585
413
|
if (this.stack_trace.length)
|
|
586
|
-
writer.writeString(
|
|
414
|
+
writer.writeString(12, this.stack_trace);
|
|
415
|
+
if (this.errors.length)
|
|
416
|
+
writer.writeRepeatedString(13, this.errors);
|
|
587
417
|
for (const [key, value] of this.metadata) {
|
|
588
|
-
writer.writeMessage(
|
|
418
|
+
writer.writeMessage(14, this.metadata, () => {
|
|
589
419
|
writer.writeString(1, key);
|
|
590
420
|
writer.writeString(2, value);
|
|
591
421
|
});
|
|
592
422
|
}
|
|
593
|
-
if (this.
|
|
594
|
-
writer.writeRepeatedString(
|
|
595
|
-
if (this.
|
|
596
|
-
writer.
|
|
597
|
-
if (this.has_duration)
|
|
598
|
-
writer.writeMessage(14, this.duration, () => this.duration.serialize(writer));
|
|
423
|
+
if (this.tags.length)
|
|
424
|
+
writer.writeRepeatedString(15, this.tags);
|
|
425
|
+
if (this.location.length)
|
|
426
|
+
writer.writeString(16, this.location);
|
|
599
427
|
if (this.retry_count != 0)
|
|
600
|
-
writer.writeInt32(
|
|
428
|
+
writer.writeInt32(17, this.retry_count);
|
|
601
429
|
if (this.retry_index != 0)
|
|
602
|
-
writer.writeInt32(
|
|
430
|
+
writer.writeInt32(18, this.retry_index);
|
|
603
431
|
if (this.timeout != 0)
|
|
604
|
-
writer.writeInt32(
|
|
432
|
+
writer.writeInt32(19, this.timeout);
|
|
605
433
|
if (!w)
|
|
606
434
|
return writer.getResultBuffer();
|
|
607
435
|
}
|
|
@@ -615,16 +443,16 @@ export namespace testsystem.v1.entities {
|
|
|
615
443
|
message.id = reader.readString();
|
|
616
444
|
break;
|
|
617
445
|
case 2:
|
|
618
|
-
message.
|
|
446
|
+
message.name = reader.readString();
|
|
619
447
|
break;
|
|
620
448
|
case 3:
|
|
621
|
-
message.
|
|
449
|
+
message.description = reader.readString();
|
|
622
450
|
break;
|
|
623
451
|
case 4:
|
|
624
|
-
message.
|
|
452
|
+
message.run_id = reader.readString();
|
|
625
453
|
break;
|
|
626
454
|
case 5:
|
|
627
|
-
message.
|
|
455
|
+
message.test_suite_run_id = reader.readString();
|
|
628
456
|
break;
|
|
629
457
|
case 6:
|
|
630
458
|
message.status = reader.readEnum();
|
|
@@ -633,33 +461,39 @@ export namespace testsystem.v1.entities {
|
|
|
633
461
|
reader.readMessage(message.start_time, () => message.start_time = dependency_2.google.protobuf.Timestamp.deserialize(reader));
|
|
634
462
|
break;
|
|
635
463
|
case 8:
|
|
636
|
-
reader.readMessage(message.
|
|
464
|
+
reader.readMessage(message.end_time, () => message.end_time = dependency_2.google.protobuf.Timestamp.deserialize(reader));
|
|
637
465
|
break;
|
|
638
466
|
case 9:
|
|
639
|
-
message.
|
|
467
|
+
reader.readMessage(message.duration, () => message.duration = dependency_3.google.protobuf.Duration.deserialize(reader));
|
|
640
468
|
break;
|
|
641
469
|
case 10:
|
|
642
|
-
message.
|
|
470
|
+
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 10, dependency_1.testsystem.v1.common.Attachment.deserialize(reader), dependency_1.testsystem.v1.common.Attachment));
|
|
643
471
|
break;
|
|
644
472
|
case 11:
|
|
645
|
-
|
|
473
|
+
message.error_message = reader.readString();
|
|
646
474
|
break;
|
|
647
475
|
case 12:
|
|
648
|
-
|
|
476
|
+
message.stack_trace = reader.readString();
|
|
649
477
|
break;
|
|
650
478
|
case 13:
|
|
651
479
|
pb_1.Message.addToRepeatedField(message, 13, reader.readString());
|
|
652
480
|
break;
|
|
653
481
|
case 14:
|
|
654
|
-
reader.readMessage(message
|
|
482
|
+
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
655
483
|
break;
|
|
656
484
|
case 15:
|
|
657
|
-
message
|
|
485
|
+
pb_1.Message.addToRepeatedField(message, 15, reader.readString());
|
|
658
486
|
break;
|
|
659
487
|
case 16:
|
|
660
|
-
message.
|
|
488
|
+
message.location = reader.readString();
|
|
661
489
|
break;
|
|
662
490
|
case 17:
|
|
491
|
+
message.retry_count = reader.readInt32();
|
|
492
|
+
break;
|
|
493
|
+
case 18:
|
|
494
|
+
message.retry_index = reader.readInt32();
|
|
495
|
+
break;
|
|
496
|
+
case 19:
|
|
663
497
|
message.timeout = reader.readInt32();
|
|
664
498
|
break;
|
|
665
499
|
default: reader.skipField();
|