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