@stanterprise/protobuf 0.0.9 → 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 +677 -785
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +681 -785
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.d.ts +13 -15
- 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/test_case.d.ts +56 -72
- package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts +64 -91
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/events/events.d.ts +10 -0
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/lib/index.ts +39 -49
- package/lib/testsystem/v1/common/common.ts +3 -1
- package/lib/testsystem/v1/entities/test_case.ts +253 -301
- package/lib/testsystem/v1/entities/test_suite.ts +269 -368
- package/lib/testsystem/v1/events/events.ts +46 -0
- package/package.json +1 -1
|
@@ -8,246 +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
|
-
|
|
27
|
+
metadata?: Map<string, string>;
|
|
28
|
+
tags?: string[];
|
|
29
|
+
location?: string;
|
|
30
|
+
retry_count?: number;
|
|
31
|
+
retry_index?: number;
|
|
32
|
+
timeout?: number;
|
|
242
33
|
}) {
|
|
243
34
|
super();
|
|
244
|
-
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);
|
|
245
36
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
246
37
|
if ("id" in data && data.id != undefined) {
|
|
247
38
|
this.id = data.id;
|
|
248
39
|
}
|
|
249
|
-
if ("
|
|
250
|
-
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;
|
|
251
45
|
}
|
|
252
46
|
if ("run_id" in data && data.run_id != undefined) {
|
|
253
47
|
this.run_id = data.run_id;
|
|
@@ -255,15 +49,18 @@ export namespace testsystem.v1.entities {
|
|
|
255
49
|
if ("test_suite_run_id" in data && data.test_suite_run_id != undefined) {
|
|
256
50
|
this.test_suite_run_id = data.test_suite_run_id;
|
|
257
51
|
}
|
|
258
|
-
if ("title" in data && data.title != undefined) {
|
|
259
|
-
this.title = data.title;
|
|
260
|
-
}
|
|
261
52
|
if ("status" in data && data.status != undefined) {
|
|
262
53
|
this.status = data.status;
|
|
263
54
|
}
|
|
264
55
|
if ("start_time" in data && data.start_time != undefined) {
|
|
265
56
|
this.start_time = data.start_time;
|
|
266
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
|
+
}
|
|
267
64
|
if ("attachments" in data && data.attachments != undefined) {
|
|
268
65
|
this.attachments = data.attachments;
|
|
269
66
|
}
|
|
@@ -273,14 +70,26 @@ export namespace testsystem.v1.entities {
|
|
|
273
70
|
if ("stack_trace" in data && data.stack_trace != undefined) {
|
|
274
71
|
this.stack_trace = data.stack_trace;
|
|
275
72
|
}
|
|
73
|
+
if ("errors" in data && data.errors != undefined) {
|
|
74
|
+
this.errors = data.errors;
|
|
75
|
+
}
|
|
276
76
|
if ("metadata" in data && data.metadata != undefined) {
|
|
277
77
|
this.metadata = data.metadata;
|
|
278
78
|
}
|
|
279
|
-
if ("
|
|
280
|
-
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;
|
|
84
|
+
}
|
|
85
|
+
if ("retry_count" in data && data.retry_count != undefined) {
|
|
86
|
+
this.retry_count = data.retry_count;
|
|
281
87
|
}
|
|
282
|
-
if ("
|
|
283
|
-
this.
|
|
88
|
+
if ("retry_index" in data && data.retry_index != undefined) {
|
|
89
|
+
this.retry_index = data.retry_index;
|
|
90
|
+
}
|
|
91
|
+
if ("timeout" in data && data.timeout != undefined) {
|
|
92
|
+
this.timeout = data.timeout;
|
|
284
93
|
}
|
|
285
94
|
}
|
|
286
95
|
if (!this.metadata)
|
|
@@ -292,28 +101,28 @@ export namespace testsystem.v1.entities {
|
|
|
292
101
|
set id(value: string) {
|
|
293
102
|
pb_1.Message.setField(this, 1, value);
|
|
294
103
|
}
|
|
295
|
-
get
|
|
104
|
+
get name() {
|
|
296
105
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
297
106
|
}
|
|
298
|
-
set
|
|
107
|
+
set name(value: string) {
|
|
299
108
|
pb_1.Message.setField(this, 2, value);
|
|
300
109
|
}
|
|
301
|
-
get
|
|
110
|
+
get description() {
|
|
302
111
|
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
303
112
|
}
|
|
304
|
-
set
|
|
113
|
+
set description(value: string) {
|
|
305
114
|
pb_1.Message.setField(this, 3, value);
|
|
306
115
|
}
|
|
307
|
-
get
|
|
116
|
+
get run_id() {
|
|
308
117
|
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
309
118
|
}
|
|
310
|
-
set
|
|
119
|
+
set run_id(value: string) {
|
|
311
120
|
pb_1.Message.setField(this, 4, value);
|
|
312
121
|
}
|
|
313
|
-
get
|
|
122
|
+
get test_suite_run_id() {
|
|
314
123
|
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
315
124
|
}
|
|
316
|
-
set
|
|
125
|
+
set test_suite_run_id(value: string) {
|
|
317
126
|
pb_1.Message.setField(this, 5, value);
|
|
318
127
|
}
|
|
319
128
|
get status() {
|
|
@@ -331,65 +140,116 @@ export namespace testsystem.v1.entities {
|
|
|
331
140
|
get has_start_time() {
|
|
332
141
|
return pb_1.Message.getField(this, 7) != null;
|
|
333
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
|
+
}
|
|
334
161
|
get attachments() {
|
|
335
|
-
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[];
|
|
336
163
|
}
|
|
337
164
|
set attachments(value: dependency_1.testsystem.v1.common.Attachment[]) {
|
|
338
|
-
pb_1.Message.setRepeatedWrapperField(this,
|
|
165
|
+
pb_1.Message.setRepeatedWrapperField(this, 10, value);
|
|
339
166
|
}
|
|
340
167
|
get error_message() {
|
|
341
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
168
|
+
return pb_1.Message.getFieldWithDefault(this, 11, "") as string;
|
|
342
169
|
}
|
|
343
170
|
set error_message(value: string) {
|
|
344
|
-
pb_1.Message.setField(this,
|
|
171
|
+
pb_1.Message.setField(this, 11, value);
|
|
345
172
|
}
|
|
346
173
|
get stack_trace() {
|
|
347
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
174
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "") as string;
|
|
348
175
|
}
|
|
349
176
|
set stack_trace(value: string) {
|
|
350
|
-
pb_1.Message.setField(this,
|
|
177
|
+
pb_1.Message.setField(this, 12, value);
|
|
178
|
+
}
|
|
179
|
+
get errors() {
|
|
180
|
+
return pb_1.Message.getFieldWithDefault(this, 13, []) as string[];
|
|
181
|
+
}
|
|
182
|
+
set errors(value: string[]) {
|
|
183
|
+
pb_1.Message.setField(this, 13, value);
|
|
351
184
|
}
|
|
352
185
|
get metadata() {
|
|
353
|
-
return pb_1.Message.getField(this,
|
|
186
|
+
return pb_1.Message.getField(this, 14) as any as Map<string, string>;
|
|
354
187
|
}
|
|
355
188
|
set metadata(value: Map<string, string>) {
|
|
356
|
-
pb_1.Message.setField(this,
|
|
189
|
+
pb_1.Message.setField(this, 14, value as any);
|
|
357
190
|
}
|
|
358
|
-
get
|
|
359
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
191
|
+
get tags() {
|
|
192
|
+
return pb_1.Message.getFieldWithDefault(this, 15, []) as string[];
|
|
360
193
|
}
|
|
361
|
-
set
|
|
362
|
-
pb_1.Message.setField(this,
|
|
194
|
+
set tags(value: string[]) {
|
|
195
|
+
pb_1.Message.setField(this, 15, value);
|
|
363
196
|
}
|
|
364
|
-
get
|
|
365
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
197
|
+
get location() {
|
|
198
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "") as string;
|
|
366
199
|
}
|
|
367
|
-
set
|
|
368
|
-
pb_1.Message.setField(this,
|
|
200
|
+
set location(value: string) {
|
|
201
|
+
pb_1.Message.setField(this, 16, value);
|
|
202
|
+
}
|
|
203
|
+
get retry_count() {
|
|
204
|
+
return pb_1.Message.getFieldWithDefault(this, 17, 0) as number;
|
|
205
|
+
}
|
|
206
|
+
set retry_count(value: number) {
|
|
207
|
+
pb_1.Message.setField(this, 17, value);
|
|
208
|
+
}
|
|
209
|
+
get retry_index() {
|
|
210
|
+
return pb_1.Message.getFieldWithDefault(this, 18, 0) as number;
|
|
211
|
+
}
|
|
212
|
+
set retry_index(value: number) {
|
|
213
|
+
pb_1.Message.setField(this, 18, value);
|
|
214
|
+
}
|
|
215
|
+
get timeout() {
|
|
216
|
+
return pb_1.Message.getFieldWithDefault(this, 19, 0) as number;
|
|
217
|
+
}
|
|
218
|
+
set timeout(value: number) {
|
|
219
|
+
pb_1.Message.setField(this, 19, value);
|
|
369
220
|
}
|
|
370
221
|
static fromObject(data: {
|
|
371
222
|
id?: string;
|
|
372
|
-
|
|
223
|
+
name?: string;
|
|
224
|
+
description?: string;
|
|
373
225
|
run_id?: string;
|
|
374
226
|
test_suite_run_id?: string;
|
|
375
|
-
title?: string;
|
|
376
227
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
377
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>;
|
|
378
231
|
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
379
232
|
error_message?: string;
|
|
380
233
|
stack_trace?: string;
|
|
234
|
+
errors?: string[];
|
|
381
235
|
metadata?: {
|
|
382
236
|
[key: string]: string;
|
|
383
237
|
};
|
|
384
|
-
|
|
385
|
-
|
|
238
|
+
tags?: string[];
|
|
239
|
+
location?: string;
|
|
240
|
+
retry_count?: number;
|
|
241
|
+
retry_index?: number;
|
|
242
|
+
timeout?: number;
|
|
386
243
|
}): TestCaseRun {
|
|
387
244
|
const message = new TestCaseRun({});
|
|
388
245
|
if (data.id != null) {
|
|
389
246
|
message.id = data.id;
|
|
390
247
|
}
|
|
391
|
-
if (data.
|
|
392
|
-
message.
|
|
248
|
+
if (data.name != null) {
|
|
249
|
+
message.name = data.name;
|
|
250
|
+
}
|
|
251
|
+
if (data.description != null) {
|
|
252
|
+
message.description = data.description;
|
|
393
253
|
}
|
|
394
254
|
if (data.run_id != null) {
|
|
395
255
|
message.run_id = data.run_id;
|
|
@@ -397,15 +257,18 @@ export namespace testsystem.v1.entities {
|
|
|
397
257
|
if (data.test_suite_run_id != null) {
|
|
398
258
|
message.test_suite_run_id = data.test_suite_run_id;
|
|
399
259
|
}
|
|
400
|
-
if (data.title != null) {
|
|
401
|
-
message.title = data.title;
|
|
402
|
-
}
|
|
403
260
|
if (data.status != null) {
|
|
404
261
|
message.status = data.status;
|
|
405
262
|
}
|
|
406
263
|
if (data.start_time != null) {
|
|
407
264
|
message.start_time = dependency_2.google.protobuf.Timestamp.fromObject(data.start_time);
|
|
408
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
|
+
}
|
|
409
272
|
if (data.attachments != null) {
|
|
410
273
|
message.attachments = data.attachments.map(item => dependency_1.testsystem.v1.common.Attachment.fromObject(item));
|
|
411
274
|
}
|
|
@@ -415,40 +278,61 @@ export namespace testsystem.v1.entities {
|
|
|
415
278
|
if (data.stack_trace != null) {
|
|
416
279
|
message.stack_trace = data.stack_trace;
|
|
417
280
|
}
|
|
281
|
+
if (data.errors != null) {
|
|
282
|
+
message.errors = data.errors;
|
|
283
|
+
}
|
|
418
284
|
if (typeof data.metadata == "object") {
|
|
419
285
|
message.metadata = new Map(Object.entries(data.metadata));
|
|
420
286
|
}
|
|
421
|
-
if (data.
|
|
422
|
-
message.
|
|
287
|
+
if (data.tags != null) {
|
|
288
|
+
message.tags = data.tags;
|
|
289
|
+
}
|
|
290
|
+
if (data.location != null) {
|
|
291
|
+
message.location = data.location;
|
|
423
292
|
}
|
|
424
|
-
if (data.
|
|
425
|
-
message.
|
|
293
|
+
if (data.retry_count != null) {
|
|
294
|
+
message.retry_count = data.retry_count;
|
|
295
|
+
}
|
|
296
|
+
if (data.retry_index != null) {
|
|
297
|
+
message.retry_index = data.retry_index;
|
|
298
|
+
}
|
|
299
|
+
if (data.timeout != null) {
|
|
300
|
+
message.timeout = data.timeout;
|
|
426
301
|
}
|
|
427
302
|
return message;
|
|
428
303
|
}
|
|
429
304
|
toObject() {
|
|
430
305
|
const data: {
|
|
431
306
|
id?: string;
|
|
432
|
-
|
|
307
|
+
name?: string;
|
|
308
|
+
description?: string;
|
|
433
309
|
run_id?: string;
|
|
434
310
|
test_suite_run_id?: string;
|
|
435
|
-
title?: string;
|
|
436
311
|
status?: dependency_1.testsystem.v1.common.TestStatus;
|
|
437
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>;
|
|
438
315
|
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
439
316
|
error_message?: string;
|
|
440
317
|
stack_trace?: string;
|
|
318
|
+
errors?: string[];
|
|
441
319
|
metadata?: {
|
|
442
320
|
[key: string]: string;
|
|
443
321
|
};
|
|
444
|
-
|
|
445
|
-
|
|
322
|
+
tags?: string[];
|
|
323
|
+
location?: string;
|
|
324
|
+
retry_count?: number;
|
|
325
|
+
retry_index?: number;
|
|
326
|
+
timeout?: number;
|
|
446
327
|
} = {};
|
|
447
328
|
if (this.id != null) {
|
|
448
329
|
data.id = this.id;
|
|
449
330
|
}
|
|
450
|
-
if (this.
|
|
451
|
-
data.
|
|
331
|
+
if (this.name != null) {
|
|
332
|
+
data.name = this.name;
|
|
333
|
+
}
|
|
334
|
+
if (this.description != null) {
|
|
335
|
+
data.description = this.description;
|
|
452
336
|
}
|
|
453
337
|
if (this.run_id != null) {
|
|
454
338
|
data.run_id = this.run_id;
|
|
@@ -456,15 +340,18 @@ export namespace testsystem.v1.entities {
|
|
|
456
340
|
if (this.test_suite_run_id != null) {
|
|
457
341
|
data.test_suite_run_id = this.test_suite_run_id;
|
|
458
342
|
}
|
|
459
|
-
if (this.title != null) {
|
|
460
|
-
data.title = this.title;
|
|
461
|
-
}
|
|
462
343
|
if (this.status != null) {
|
|
463
344
|
data.status = this.status;
|
|
464
345
|
}
|
|
465
346
|
if (this.start_time != null) {
|
|
466
347
|
data.start_time = this.start_time.toObject();
|
|
467
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
|
+
}
|
|
468
355
|
if (this.attachments != null) {
|
|
469
356
|
data.attachments = this.attachments.map((item: dependency_1.testsystem.v1.common.Attachment) => item.toObject());
|
|
470
357
|
}
|
|
@@ -474,14 +361,26 @@ export namespace testsystem.v1.entities {
|
|
|
474
361
|
if (this.stack_trace != null) {
|
|
475
362
|
data.stack_trace = this.stack_trace;
|
|
476
363
|
}
|
|
364
|
+
if (this.errors != null) {
|
|
365
|
+
data.errors = this.errors;
|
|
366
|
+
}
|
|
477
367
|
if (this.metadata != null) {
|
|
478
368
|
data.metadata = (Object.fromEntries)(this.metadata);
|
|
479
369
|
}
|
|
480
|
-
if (this.
|
|
481
|
-
data.
|
|
370
|
+
if (this.tags != null) {
|
|
371
|
+
data.tags = this.tags;
|
|
372
|
+
}
|
|
373
|
+
if (this.location != null) {
|
|
374
|
+
data.location = this.location;
|
|
375
|
+
}
|
|
376
|
+
if (this.retry_count != null) {
|
|
377
|
+
data.retry_count = this.retry_count;
|
|
378
|
+
}
|
|
379
|
+
if (this.retry_index != null) {
|
|
380
|
+
data.retry_index = this.retry_index;
|
|
482
381
|
}
|
|
483
|
-
if (this.
|
|
484
|
-
data.
|
|
382
|
+
if (this.timeout != null) {
|
|
383
|
+
data.timeout = this.timeout;
|
|
485
384
|
}
|
|
486
385
|
return data;
|
|
487
386
|
}
|
|
@@ -491,34 +390,46 @@ export namespace testsystem.v1.entities {
|
|
|
491
390
|
const writer = w || new pb_1.BinaryWriter();
|
|
492
391
|
if (this.id.length)
|
|
493
392
|
writer.writeString(1, this.id);
|
|
494
|
-
if (this.
|
|
495
|
-
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);
|
|
496
397
|
if (this.run_id.length)
|
|
497
|
-
writer.writeString(
|
|
398
|
+
writer.writeString(4, this.run_id);
|
|
498
399
|
if (this.test_suite_run_id.length)
|
|
499
|
-
writer.writeString(
|
|
500
|
-
if (this.title.length)
|
|
501
|
-
writer.writeString(5, this.title);
|
|
400
|
+
writer.writeString(5, this.test_suite_run_id);
|
|
502
401
|
if (this.status != dependency_1.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
503
402
|
writer.writeEnum(6, this.status);
|
|
504
403
|
if (this.has_start_time)
|
|
505
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));
|
|
506
409
|
if (this.attachments.length)
|
|
507
|
-
writer.writeRepeatedMessage(
|
|
410
|
+
writer.writeRepeatedMessage(10, this.attachments, (item: dependency_1.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
508
411
|
if (this.error_message.length)
|
|
509
|
-
writer.writeString(
|
|
412
|
+
writer.writeString(11, this.error_message);
|
|
510
413
|
if (this.stack_trace.length)
|
|
511
|
-
writer.writeString(
|
|
414
|
+
writer.writeString(12, this.stack_trace);
|
|
415
|
+
if (this.errors.length)
|
|
416
|
+
writer.writeRepeatedString(13, this.errors);
|
|
512
417
|
for (const [key, value] of this.metadata) {
|
|
513
|
-
writer.writeMessage(
|
|
418
|
+
writer.writeMessage(14, this.metadata, () => {
|
|
514
419
|
writer.writeString(1, key);
|
|
515
420
|
writer.writeString(2, value);
|
|
516
421
|
});
|
|
517
422
|
}
|
|
518
|
-
if (this.
|
|
519
|
-
writer.writeRepeatedString(
|
|
520
|
-
if (this.
|
|
521
|
-
writer.
|
|
423
|
+
if (this.tags.length)
|
|
424
|
+
writer.writeRepeatedString(15, this.tags);
|
|
425
|
+
if (this.location.length)
|
|
426
|
+
writer.writeString(16, this.location);
|
|
427
|
+
if (this.retry_count != 0)
|
|
428
|
+
writer.writeInt32(17, this.retry_count);
|
|
429
|
+
if (this.retry_index != 0)
|
|
430
|
+
writer.writeInt32(18, this.retry_index);
|
|
431
|
+
if (this.timeout != 0)
|
|
432
|
+
writer.writeInt32(19, this.timeout);
|
|
522
433
|
if (!w)
|
|
523
434
|
return writer.getResultBuffer();
|
|
524
435
|
}
|
|
@@ -532,16 +443,16 @@ export namespace testsystem.v1.entities {
|
|
|
532
443
|
message.id = reader.readString();
|
|
533
444
|
break;
|
|
534
445
|
case 2:
|
|
535
|
-
message.
|
|
446
|
+
message.name = reader.readString();
|
|
536
447
|
break;
|
|
537
448
|
case 3:
|
|
538
|
-
message.
|
|
449
|
+
message.description = reader.readString();
|
|
539
450
|
break;
|
|
540
451
|
case 4:
|
|
541
|
-
message.
|
|
452
|
+
message.run_id = reader.readString();
|
|
542
453
|
break;
|
|
543
454
|
case 5:
|
|
544
|
-
message.
|
|
455
|
+
message.test_suite_run_id = reader.readString();
|
|
545
456
|
break;
|
|
546
457
|
case 6:
|
|
547
458
|
message.status = reader.readEnum();
|
|
@@ -550,23 +461,41 @@ export namespace testsystem.v1.entities {
|
|
|
550
461
|
reader.readMessage(message.start_time, () => message.start_time = dependency_2.google.protobuf.Timestamp.deserialize(reader));
|
|
551
462
|
break;
|
|
552
463
|
case 8:
|
|
553
|
-
reader.readMessage(message.
|
|
464
|
+
reader.readMessage(message.end_time, () => message.end_time = dependency_2.google.protobuf.Timestamp.deserialize(reader));
|
|
554
465
|
break;
|
|
555
466
|
case 9:
|
|
556
|
-
message.
|
|
467
|
+
reader.readMessage(message.duration, () => message.duration = dependency_3.google.protobuf.Duration.deserialize(reader));
|
|
557
468
|
break;
|
|
558
469
|
case 10:
|
|
559
|
-
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));
|
|
560
471
|
break;
|
|
561
472
|
case 11:
|
|
562
|
-
|
|
473
|
+
message.error_message = reader.readString();
|
|
563
474
|
break;
|
|
564
475
|
case 12:
|
|
565
|
-
|
|
476
|
+
message.stack_trace = reader.readString();
|
|
566
477
|
break;
|
|
567
478
|
case 13:
|
|
568
479
|
pb_1.Message.addToRepeatedField(message, 13, reader.readString());
|
|
569
480
|
break;
|
|
481
|
+
case 14:
|
|
482
|
+
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
483
|
+
break;
|
|
484
|
+
case 15:
|
|
485
|
+
pb_1.Message.addToRepeatedField(message, 15, reader.readString());
|
|
486
|
+
break;
|
|
487
|
+
case 16:
|
|
488
|
+
message.location = reader.readString();
|
|
489
|
+
break;
|
|
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:
|
|
497
|
+
message.timeout = reader.readInt32();
|
|
498
|
+
break;
|
|
570
499
|
default: reader.skipField();
|
|
571
500
|
}
|
|
572
501
|
}
|
|
@@ -597,6 +526,7 @@ export namespace testsystem.v1.entities {
|
|
|
597
526
|
error?: string;
|
|
598
527
|
errors?: string[];
|
|
599
528
|
location?: string;
|
|
529
|
+
category?: string;
|
|
600
530
|
}) {
|
|
601
531
|
super();
|
|
602
532
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], this.#one_of_decls);
|
|
@@ -646,6 +576,9 @@ export namespace testsystem.v1.entities {
|
|
|
646
576
|
if ("location" in data && data.location != undefined) {
|
|
647
577
|
this.location = data.location;
|
|
648
578
|
}
|
|
579
|
+
if ("category" in data && data.category != undefined) {
|
|
580
|
+
this.category = data.category;
|
|
581
|
+
}
|
|
649
582
|
}
|
|
650
583
|
if (!this.metadata)
|
|
651
584
|
this.metadata = new Map();
|
|
@@ -746,6 +679,12 @@ export namespace testsystem.v1.entities {
|
|
|
746
679
|
set location(value: string) {
|
|
747
680
|
pb_1.Message.setField(this, 15, value);
|
|
748
681
|
}
|
|
682
|
+
get category() {
|
|
683
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "") as string;
|
|
684
|
+
}
|
|
685
|
+
set category(value: string) {
|
|
686
|
+
pb_1.Message.setField(this, 16, value);
|
|
687
|
+
}
|
|
749
688
|
static fromObject(data: {
|
|
750
689
|
id?: string;
|
|
751
690
|
run_id?: string;
|
|
@@ -764,6 +703,7 @@ export namespace testsystem.v1.entities {
|
|
|
764
703
|
error?: string;
|
|
765
704
|
errors?: string[];
|
|
766
705
|
location?: string;
|
|
706
|
+
category?: string;
|
|
767
707
|
}): StepRun {
|
|
768
708
|
const message = new StepRun({});
|
|
769
709
|
if (data.id != null) {
|
|
@@ -811,6 +751,9 @@ export namespace testsystem.v1.entities {
|
|
|
811
751
|
if (data.location != null) {
|
|
812
752
|
message.location = data.location;
|
|
813
753
|
}
|
|
754
|
+
if (data.category != null) {
|
|
755
|
+
message.category = data.category;
|
|
756
|
+
}
|
|
814
757
|
return message;
|
|
815
758
|
}
|
|
816
759
|
toObject() {
|
|
@@ -832,6 +775,7 @@ export namespace testsystem.v1.entities {
|
|
|
832
775
|
error?: string;
|
|
833
776
|
errors?: string[];
|
|
834
777
|
location?: string;
|
|
778
|
+
category?: string;
|
|
835
779
|
} = {};
|
|
836
780
|
if (this.id != null) {
|
|
837
781
|
data.id = this.id;
|
|
@@ -878,6 +822,9 @@ export namespace testsystem.v1.entities {
|
|
|
878
822
|
if (this.location != null) {
|
|
879
823
|
data.location = this.location;
|
|
880
824
|
}
|
|
825
|
+
if (this.category != null) {
|
|
826
|
+
data.category = this.category;
|
|
827
|
+
}
|
|
881
828
|
return data;
|
|
882
829
|
}
|
|
883
830
|
serialize(): Uint8Array;
|
|
@@ -918,6 +865,8 @@ export namespace testsystem.v1.entities {
|
|
|
918
865
|
writer.writeRepeatedString(14, this.errors);
|
|
919
866
|
if (this.location.length)
|
|
920
867
|
writer.writeString(15, this.location);
|
|
868
|
+
if (this.category.length)
|
|
869
|
+
writer.writeString(16, this.category);
|
|
921
870
|
if (!w)
|
|
922
871
|
return writer.getResultBuffer();
|
|
923
872
|
}
|
|
@@ -972,6 +921,9 @@ export namespace testsystem.v1.entities {
|
|
|
972
921
|
case 15:
|
|
973
922
|
message.location = reader.readString();
|
|
974
923
|
break;
|
|
924
|
+
case 16:
|
|
925
|
+
message.category = reader.readString();
|
|
926
|
+
break;
|
|
975
927
|
default: reader.skipField();
|
|
976
928
|
}
|
|
977
929
|
}
|