@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
package/dist/index.mjs
CHANGED
|
@@ -368,12 +368,12 @@ var testsystem2;
|
|
|
368
368
|
((v12) => {
|
|
369
369
|
let entities;
|
|
370
370
|
((entities2) => {
|
|
371
|
-
var _one_of_decls, _one_of_decls2
|
|
372
|
-
const
|
|
371
|
+
var _one_of_decls, _one_of_decls2;
|
|
372
|
+
const _TestCaseRun = class _TestCaseRun extends pb_14.Message {
|
|
373
373
|
constructor(data) {
|
|
374
374
|
super();
|
|
375
375
|
__privateAdd(this, _one_of_decls, []);
|
|
376
|
-
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
376
|
+
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [10, 13, 15], __privateGet(this, _one_of_decls));
|
|
377
377
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
378
378
|
if ("id" in data && data.id != void 0) {
|
|
379
379
|
this.id = data.id;
|
|
@@ -384,18 +384,54 @@ var testsystem2;
|
|
|
384
384
|
if ("description" in data && data.description != void 0) {
|
|
385
385
|
this.description = data.description;
|
|
386
386
|
}
|
|
387
|
-
if ("
|
|
388
|
-
this.
|
|
387
|
+
if ("run_id" in data && data.run_id != void 0) {
|
|
388
|
+
this.run_id = data.run_id;
|
|
389
|
+
}
|
|
390
|
+
if ("test_suite_run_id" in data && data.test_suite_run_id != void 0) {
|
|
391
|
+
this.test_suite_run_id = data.test_suite_run_id;
|
|
389
392
|
}
|
|
390
393
|
if ("status" in data && data.status != void 0) {
|
|
391
394
|
this.status = data.status;
|
|
392
395
|
}
|
|
393
|
-
if ("
|
|
394
|
-
this.
|
|
396
|
+
if ("start_time" in data && data.start_time != void 0) {
|
|
397
|
+
this.start_time = data.start_time;
|
|
398
|
+
}
|
|
399
|
+
if ("end_time" in data && data.end_time != void 0) {
|
|
400
|
+
this.end_time = data.end_time;
|
|
401
|
+
}
|
|
402
|
+
if ("duration" in data && data.duration != void 0) {
|
|
403
|
+
this.duration = data.duration;
|
|
404
|
+
}
|
|
405
|
+
if ("attachments" in data && data.attachments != void 0) {
|
|
406
|
+
this.attachments = data.attachments;
|
|
407
|
+
}
|
|
408
|
+
if ("error_message" in data && data.error_message != void 0) {
|
|
409
|
+
this.error_message = data.error_message;
|
|
410
|
+
}
|
|
411
|
+
if ("stack_trace" in data && data.stack_trace != void 0) {
|
|
412
|
+
this.stack_trace = data.stack_trace;
|
|
413
|
+
}
|
|
414
|
+
if ("errors" in data && data.errors != void 0) {
|
|
415
|
+
this.errors = data.errors;
|
|
416
|
+
}
|
|
417
|
+
if ("metadata" in data && data.metadata != void 0) {
|
|
418
|
+
this.metadata = data.metadata;
|
|
395
419
|
}
|
|
396
420
|
if ("tags" in data && data.tags != void 0) {
|
|
397
421
|
this.tags = data.tags;
|
|
398
422
|
}
|
|
423
|
+
if ("location" in data && data.location != void 0) {
|
|
424
|
+
this.location = data.location;
|
|
425
|
+
}
|
|
426
|
+
if ("retry_count" in data && data.retry_count != void 0) {
|
|
427
|
+
this.retry_count = data.retry_count;
|
|
428
|
+
}
|
|
429
|
+
if ("retry_index" in data && data.retry_index != void 0) {
|
|
430
|
+
this.retry_index = data.retry_index;
|
|
431
|
+
}
|
|
432
|
+
if ("timeout" in data && data.timeout != void 0) {
|
|
433
|
+
this.timeout = data.timeout;
|
|
434
|
+
}
|
|
399
435
|
}
|
|
400
436
|
if (!this.metadata)
|
|
401
437
|
this.metadata = /* @__PURE__ */ new Map();
|
|
@@ -418,32 +454,113 @@ var testsystem2;
|
|
|
418
454
|
set description(value) {
|
|
419
455
|
pb_14.Message.setField(this, 3, value);
|
|
420
456
|
}
|
|
421
|
-
get
|
|
422
|
-
return pb_14.Message.
|
|
457
|
+
get run_id() {
|
|
458
|
+
return pb_14.Message.getFieldWithDefault(this, 4, "");
|
|
423
459
|
}
|
|
424
|
-
set
|
|
460
|
+
set run_id(value) {
|
|
425
461
|
pb_14.Message.setField(this, 4, value);
|
|
426
462
|
}
|
|
427
|
-
get
|
|
428
|
-
return pb_14.Message.getFieldWithDefault(this, 5,
|
|
463
|
+
get test_suite_run_id() {
|
|
464
|
+
return pb_14.Message.getFieldWithDefault(this, 5, "");
|
|
429
465
|
}
|
|
430
|
-
set
|
|
466
|
+
set test_suite_run_id(value) {
|
|
431
467
|
pb_14.Message.setField(this, 5, value);
|
|
432
468
|
}
|
|
433
|
-
get
|
|
434
|
-
return pb_14.Message.getFieldWithDefault(this, 6,
|
|
469
|
+
get status() {
|
|
470
|
+
return pb_14.Message.getFieldWithDefault(this, 6, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
435
471
|
}
|
|
436
|
-
set
|
|
472
|
+
set status(value) {
|
|
437
473
|
pb_14.Message.setField(this, 6, value);
|
|
438
474
|
}
|
|
475
|
+
get start_time() {
|
|
476
|
+
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 7);
|
|
477
|
+
}
|
|
478
|
+
set start_time(value) {
|
|
479
|
+
pb_14.Message.setWrapperField(this, 7, value);
|
|
480
|
+
}
|
|
481
|
+
get has_start_time() {
|
|
482
|
+
return pb_14.Message.getField(this, 7) != null;
|
|
483
|
+
}
|
|
484
|
+
get end_time() {
|
|
485
|
+
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 8);
|
|
486
|
+
}
|
|
487
|
+
set end_time(value) {
|
|
488
|
+
pb_14.Message.setWrapperField(this, 8, value);
|
|
489
|
+
}
|
|
490
|
+
get has_end_time() {
|
|
491
|
+
return pb_14.Message.getField(this, 8) != null;
|
|
492
|
+
}
|
|
493
|
+
get duration() {
|
|
494
|
+
return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 9);
|
|
495
|
+
}
|
|
496
|
+
set duration(value) {
|
|
497
|
+
pb_14.Message.setWrapperField(this, 9, value);
|
|
498
|
+
}
|
|
499
|
+
get has_duration() {
|
|
500
|
+
return pb_14.Message.getField(this, 9) != null;
|
|
501
|
+
}
|
|
502
|
+
get attachments() {
|
|
503
|
+
return pb_14.Message.getRepeatedWrapperField(this, testsystem.v1.common.Attachment, 10);
|
|
504
|
+
}
|
|
505
|
+
set attachments(value) {
|
|
506
|
+
pb_14.Message.setRepeatedWrapperField(this, 10, value);
|
|
507
|
+
}
|
|
508
|
+
get error_message() {
|
|
509
|
+
return pb_14.Message.getFieldWithDefault(this, 11, "");
|
|
510
|
+
}
|
|
511
|
+
set error_message(value) {
|
|
512
|
+
pb_14.Message.setField(this, 11, value);
|
|
513
|
+
}
|
|
514
|
+
get stack_trace() {
|
|
515
|
+
return pb_14.Message.getFieldWithDefault(this, 12, "");
|
|
516
|
+
}
|
|
517
|
+
set stack_trace(value) {
|
|
518
|
+
pb_14.Message.setField(this, 12, value);
|
|
519
|
+
}
|
|
520
|
+
get errors() {
|
|
521
|
+
return pb_14.Message.getFieldWithDefault(this, 13, []);
|
|
522
|
+
}
|
|
523
|
+
set errors(value) {
|
|
524
|
+
pb_14.Message.setField(this, 13, value);
|
|
525
|
+
}
|
|
526
|
+
get metadata() {
|
|
527
|
+
return pb_14.Message.getField(this, 14);
|
|
528
|
+
}
|
|
529
|
+
set metadata(value) {
|
|
530
|
+
pb_14.Message.setField(this, 14, value);
|
|
531
|
+
}
|
|
439
532
|
get tags() {
|
|
440
|
-
return pb_14.Message.getFieldWithDefault(this,
|
|
533
|
+
return pb_14.Message.getFieldWithDefault(this, 15, []);
|
|
441
534
|
}
|
|
442
535
|
set tags(value) {
|
|
443
|
-
pb_14.Message.setField(this,
|
|
536
|
+
pb_14.Message.setField(this, 15, value);
|
|
537
|
+
}
|
|
538
|
+
get location() {
|
|
539
|
+
return pb_14.Message.getFieldWithDefault(this, 16, "");
|
|
540
|
+
}
|
|
541
|
+
set location(value) {
|
|
542
|
+
pb_14.Message.setField(this, 16, value);
|
|
543
|
+
}
|
|
544
|
+
get retry_count() {
|
|
545
|
+
return pb_14.Message.getFieldWithDefault(this, 17, 0);
|
|
546
|
+
}
|
|
547
|
+
set retry_count(value) {
|
|
548
|
+
pb_14.Message.setField(this, 17, value);
|
|
549
|
+
}
|
|
550
|
+
get retry_index() {
|
|
551
|
+
return pb_14.Message.getFieldWithDefault(this, 18, 0);
|
|
552
|
+
}
|
|
553
|
+
set retry_index(value) {
|
|
554
|
+
pb_14.Message.setField(this, 18, value);
|
|
555
|
+
}
|
|
556
|
+
get timeout() {
|
|
557
|
+
return pb_14.Message.getFieldWithDefault(this, 19, 0);
|
|
558
|
+
}
|
|
559
|
+
set timeout(value) {
|
|
560
|
+
pb_14.Message.setField(this, 19, value);
|
|
444
561
|
}
|
|
445
562
|
static fromObject(data) {
|
|
446
|
-
const message = new
|
|
563
|
+
const message = new _TestCaseRun({});
|
|
447
564
|
if (data.id != null) {
|
|
448
565
|
message.id = data.id;
|
|
449
566
|
}
|
|
@@ -453,18 +570,54 @@ var testsystem2;
|
|
|
453
570
|
if (data.description != null) {
|
|
454
571
|
message.description = data.description;
|
|
455
572
|
}
|
|
456
|
-
if (
|
|
457
|
-
message.
|
|
573
|
+
if (data.run_id != null) {
|
|
574
|
+
message.run_id = data.run_id;
|
|
575
|
+
}
|
|
576
|
+
if (data.test_suite_run_id != null) {
|
|
577
|
+
message.test_suite_run_id = data.test_suite_run_id;
|
|
458
578
|
}
|
|
459
579
|
if (data.status != null) {
|
|
460
580
|
message.status = data.status;
|
|
461
581
|
}
|
|
462
|
-
if (data.
|
|
463
|
-
message.
|
|
582
|
+
if (data.start_time != null) {
|
|
583
|
+
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
584
|
+
}
|
|
585
|
+
if (data.end_time != null) {
|
|
586
|
+
message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
|
|
587
|
+
}
|
|
588
|
+
if (data.duration != null) {
|
|
589
|
+
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
590
|
+
}
|
|
591
|
+
if (data.attachments != null) {
|
|
592
|
+
message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
|
|
593
|
+
}
|
|
594
|
+
if (data.error_message != null) {
|
|
595
|
+
message.error_message = data.error_message;
|
|
596
|
+
}
|
|
597
|
+
if (data.stack_trace != null) {
|
|
598
|
+
message.stack_trace = data.stack_trace;
|
|
599
|
+
}
|
|
600
|
+
if (data.errors != null) {
|
|
601
|
+
message.errors = data.errors;
|
|
602
|
+
}
|
|
603
|
+
if (typeof data.metadata == "object") {
|
|
604
|
+
message.metadata = new Map(Object.entries(data.metadata));
|
|
464
605
|
}
|
|
465
606
|
if (data.tags != null) {
|
|
466
607
|
message.tags = data.tags;
|
|
467
608
|
}
|
|
609
|
+
if (data.location != null) {
|
|
610
|
+
message.location = data.location;
|
|
611
|
+
}
|
|
612
|
+
if (data.retry_count != null) {
|
|
613
|
+
message.retry_count = data.retry_count;
|
|
614
|
+
}
|
|
615
|
+
if (data.retry_index != null) {
|
|
616
|
+
message.retry_index = data.retry_index;
|
|
617
|
+
}
|
|
618
|
+
if (data.timeout != null) {
|
|
619
|
+
message.timeout = data.timeout;
|
|
620
|
+
}
|
|
468
621
|
return message;
|
|
469
622
|
}
|
|
470
623
|
toObject() {
|
|
@@ -478,18 +631,54 @@ var testsystem2;
|
|
|
478
631
|
if (this.description != null) {
|
|
479
632
|
data.description = this.description;
|
|
480
633
|
}
|
|
481
|
-
if (this.
|
|
482
|
-
data.
|
|
634
|
+
if (this.run_id != null) {
|
|
635
|
+
data.run_id = this.run_id;
|
|
636
|
+
}
|
|
637
|
+
if (this.test_suite_run_id != null) {
|
|
638
|
+
data.test_suite_run_id = this.test_suite_run_id;
|
|
483
639
|
}
|
|
484
640
|
if (this.status != null) {
|
|
485
641
|
data.status = this.status;
|
|
486
642
|
}
|
|
487
|
-
if (this.
|
|
488
|
-
data.
|
|
643
|
+
if (this.start_time != null) {
|
|
644
|
+
data.start_time = this.start_time.toObject();
|
|
645
|
+
}
|
|
646
|
+
if (this.end_time != null) {
|
|
647
|
+
data.end_time = this.end_time.toObject();
|
|
648
|
+
}
|
|
649
|
+
if (this.duration != null) {
|
|
650
|
+
data.duration = this.duration.toObject();
|
|
651
|
+
}
|
|
652
|
+
if (this.attachments != null) {
|
|
653
|
+
data.attachments = this.attachments.map((item) => item.toObject());
|
|
654
|
+
}
|
|
655
|
+
if (this.error_message != null) {
|
|
656
|
+
data.error_message = this.error_message;
|
|
657
|
+
}
|
|
658
|
+
if (this.stack_trace != null) {
|
|
659
|
+
data.stack_trace = this.stack_trace;
|
|
660
|
+
}
|
|
661
|
+
if (this.errors != null) {
|
|
662
|
+
data.errors = this.errors;
|
|
663
|
+
}
|
|
664
|
+
if (this.metadata != null) {
|
|
665
|
+
data.metadata = Object.fromEntries(this.metadata);
|
|
489
666
|
}
|
|
490
667
|
if (this.tags != null) {
|
|
491
668
|
data.tags = this.tags;
|
|
492
669
|
}
|
|
670
|
+
if (this.location != null) {
|
|
671
|
+
data.location = this.location;
|
|
672
|
+
}
|
|
673
|
+
if (this.retry_count != null) {
|
|
674
|
+
data.retry_count = this.retry_count;
|
|
675
|
+
}
|
|
676
|
+
if (this.retry_index != null) {
|
|
677
|
+
data.retry_index = this.retry_index;
|
|
678
|
+
}
|
|
679
|
+
if (this.timeout != null) {
|
|
680
|
+
data.timeout = this.timeout;
|
|
681
|
+
}
|
|
493
682
|
return data;
|
|
494
683
|
}
|
|
495
684
|
serialize(w) {
|
|
@@ -500,23 +689,47 @@ var testsystem2;
|
|
|
500
689
|
writer.writeString(2, this.name);
|
|
501
690
|
if (this.description.length)
|
|
502
691
|
writer.writeString(3, this.description);
|
|
692
|
+
if (this.run_id.length)
|
|
693
|
+
writer.writeString(4, this.run_id);
|
|
694
|
+
if (this.test_suite_run_id.length)
|
|
695
|
+
writer.writeString(5, this.test_suite_run_id);
|
|
696
|
+
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
697
|
+
writer.writeEnum(6, this.status);
|
|
698
|
+
if (this.has_start_time)
|
|
699
|
+
writer.writeMessage(7, this.start_time, () => this.start_time.serialize(writer));
|
|
700
|
+
if (this.has_end_time)
|
|
701
|
+
writer.writeMessage(8, this.end_time, () => this.end_time.serialize(writer));
|
|
702
|
+
if (this.has_duration)
|
|
703
|
+
writer.writeMessage(9, this.duration, () => this.duration.serialize(writer));
|
|
704
|
+
if (this.attachments.length)
|
|
705
|
+
writer.writeRepeatedMessage(10, this.attachments, (item) => item.serialize(writer));
|
|
706
|
+
if (this.error_message.length)
|
|
707
|
+
writer.writeString(11, this.error_message);
|
|
708
|
+
if (this.stack_trace.length)
|
|
709
|
+
writer.writeString(12, this.stack_trace);
|
|
710
|
+
if (this.errors.length)
|
|
711
|
+
writer.writeRepeatedString(13, this.errors);
|
|
503
712
|
for (const [key, value] of this.metadata) {
|
|
504
|
-
writer.writeMessage(
|
|
713
|
+
writer.writeMessage(14, this.metadata, () => {
|
|
505
714
|
writer.writeString(1, key);
|
|
506
715
|
writer.writeString(2, value);
|
|
507
716
|
});
|
|
508
717
|
}
|
|
509
|
-
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
510
|
-
writer.writeEnum(5, this.status);
|
|
511
|
-
if (this.parent_suite_id.length)
|
|
512
|
-
writer.writeString(6, this.parent_suite_id);
|
|
513
718
|
if (this.tags.length)
|
|
514
|
-
writer.writeRepeatedString(
|
|
719
|
+
writer.writeRepeatedString(15, this.tags);
|
|
720
|
+
if (this.location.length)
|
|
721
|
+
writer.writeString(16, this.location);
|
|
722
|
+
if (this.retry_count != 0)
|
|
723
|
+
writer.writeInt32(17, this.retry_count);
|
|
724
|
+
if (this.retry_index != 0)
|
|
725
|
+
writer.writeInt32(18, this.retry_index);
|
|
726
|
+
if (this.timeout != 0)
|
|
727
|
+
writer.writeInt32(19, this.timeout);
|
|
515
728
|
if (!w)
|
|
516
729
|
return writer.getResultBuffer();
|
|
517
730
|
}
|
|
518
731
|
static deserialize(bytes) {
|
|
519
|
-
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new
|
|
732
|
+
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestCaseRun();
|
|
520
733
|
while (reader.nextField()) {
|
|
521
734
|
if (reader.isEndGroup())
|
|
522
735
|
break;
|
|
@@ -531,89 +744,122 @@ var testsystem2;
|
|
|
531
744
|
message.description = reader.readString();
|
|
532
745
|
break;
|
|
533
746
|
case 4:
|
|
534
|
-
|
|
747
|
+
message.run_id = reader.readString();
|
|
535
748
|
break;
|
|
536
749
|
case 5:
|
|
537
|
-
message.
|
|
750
|
+
message.test_suite_run_id = reader.readString();
|
|
538
751
|
break;
|
|
539
752
|
case 6:
|
|
540
|
-
message.
|
|
753
|
+
message.status = reader.readEnum();
|
|
541
754
|
break;
|
|
542
755
|
case 7:
|
|
543
|
-
|
|
756
|
+
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
544
757
|
break;
|
|
545
|
-
|
|
546
|
-
reader.
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
758
|
+
case 8:
|
|
759
|
+
reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
|
|
760
|
+
break;
|
|
761
|
+
case 9:
|
|
762
|
+
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
763
|
+
break;
|
|
764
|
+
case 10:
|
|
765
|
+
reader.readMessage(message.attachments, () => pb_14.Message.addToRepeatedWrapperField(message, 10, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
|
|
766
|
+
break;
|
|
767
|
+
case 11:
|
|
768
|
+
message.error_message = reader.readString();
|
|
769
|
+
break;
|
|
770
|
+
case 12:
|
|
771
|
+
message.stack_trace = reader.readString();
|
|
772
|
+
break;
|
|
773
|
+
case 13:
|
|
774
|
+
pb_14.Message.addToRepeatedField(message, 13, reader.readString());
|
|
775
|
+
break;
|
|
776
|
+
case 14:
|
|
777
|
+
reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
778
|
+
break;
|
|
779
|
+
case 15:
|
|
780
|
+
pb_14.Message.addToRepeatedField(message, 15, reader.readString());
|
|
781
|
+
break;
|
|
782
|
+
case 16:
|
|
783
|
+
message.location = reader.readString();
|
|
784
|
+
break;
|
|
785
|
+
case 17:
|
|
786
|
+
message.retry_count = reader.readInt32();
|
|
787
|
+
break;
|
|
788
|
+
case 18:
|
|
789
|
+
message.retry_index = reader.readInt32();
|
|
790
|
+
break;
|
|
791
|
+
case 19:
|
|
792
|
+
message.timeout = reader.readInt32();
|
|
793
|
+
break;
|
|
794
|
+
default:
|
|
795
|
+
reader.skipField();
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
return message;
|
|
799
|
+
}
|
|
800
|
+
serializeBinary() {
|
|
801
|
+
return this.serialize();
|
|
802
|
+
}
|
|
803
|
+
static deserializeBinary(bytes) {
|
|
804
|
+
return _TestCaseRun.deserialize(bytes);
|
|
805
|
+
}
|
|
806
|
+
};
|
|
558
807
|
_one_of_decls = new WeakMap();
|
|
559
|
-
let
|
|
560
|
-
entities2.
|
|
561
|
-
const
|
|
808
|
+
let TestCaseRun = _TestCaseRun;
|
|
809
|
+
entities2.TestCaseRun = _TestCaseRun;
|
|
810
|
+
const _StepRun = class _StepRun extends pb_14.Message {
|
|
562
811
|
constructor(data) {
|
|
563
812
|
super();
|
|
564
813
|
__privateAdd(this, _one_of_decls2, []);
|
|
565
|
-
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
814
|
+
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], __privateGet(this, _one_of_decls2));
|
|
566
815
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
567
816
|
if ("id" in data && data.id != void 0) {
|
|
568
817
|
this.id = data.id;
|
|
569
818
|
}
|
|
570
|
-
if ("test_id" in data && data.test_id != void 0) {
|
|
571
|
-
this.test_id = data.test_id;
|
|
572
|
-
}
|
|
573
819
|
if ("run_id" in data && data.run_id != void 0) {
|
|
574
820
|
this.run_id = data.run_id;
|
|
575
821
|
}
|
|
576
|
-
if ("
|
|
577
|
-
this.
|
|
822
|
+
if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
|
|
823
|
+
this.test_case_run_id = data.test_case_run_id;
|
|
578
824
|
}
|
|
579
825
|
if ("title" in data && data.title != void 0) {
|
|
580
826
|
this.title = data.title;
|
|
581
827
|
}
|
|
582
|
-
if ("
|
|
583
|
-
this.
|
|
828
|
+
if ("description" in data && data.description != void 0) {
|
|
829
|
+
this.description = data.description;
|
|
584
830
|
}
|
|
585
831
|
if ("start_time" in data && data.start_time != void 0) {
|
|
586
832
|
this.start_time = data.start_time;
|
|
587
833
|
}
|
|
588
|
-
if ("
|
|
589
|
-
this.
|
|
590
|
-
}
|
|
591
|
-
if ("error_message" in data && data.error_message != void 0) {
|
|
592
|
-
this.error_message = data.error_message;
|
|
834
|
+
if ("duration" in data && data.duration != void 0) {
|
|
835
|
+
this.duration = data.duration;
|
|
593
836
|
}
|
|
594
|
-
if ("
|
|
595
|
-
this.
|
|
837
|
+
if ("type" in data && data.type != void 0) {
|
|
838
|
+
this.type = data.type;
|
|
596
839
|
}
|
|
597
840
|
if ("metadata" in data && data.metadata != void 0) {
|
|
598
841
|
this.metadata = data.metadata;
|
|
599
842
|
}
|
|
600
|
-
if ("
|
|
601
|
-
this.
|
|
843
|
+
if ("parent_step_id" in data && data.parent_step_id != void 0) {
|
|
844
|
+
this.parent_step_id = data.parent_step_id;
|
|
602
845
|
}
|
|
603
|
-
if ("
|
|
604
|
-
this.
|
|
846
|
+
if ("worker_index" in data && data.worker_index != void 0) {
|
|
847
|
+
this.worker_index = data.worker_index;
|
|
605
848
|
}
|
|
606
|
-
if ("
|
|
607
|
-
this.
|
|
849
|
+
if ("status" in data && data.status != void 0) {
|
|
850
|
+
this.status = data.status;
|
|
608
851
|
}
|
|
609
|
-
if ("
|
|
610
|
-
this.
|
|
852
|
+
if ("error" in data && data.error != void 0) {
|
|
853
|
+
this.error = data.error;
|
|
611
854
|
}
|
|
612
|
-
if ("
|
|
613
|
-
this.
|
|
855
|
+
if ("errors" in data && data.errors != void 0) {
|
|
856
|
+
this.errors = data.errors;
|
|
614
857
|
}
|
|
615
|
-
if ("
|
|
616
|
-
this.
|
|
858
|
+
if ("location" in data && data.location != void 0) {
|
|
859
|
+
this.location = data.location;
|
|
860
|
+
}
|
|
861
|
+
if ("category" in data && data.category != void 0) {
|
|
862
|
+
this.category = data.category;
|
|
617
863
|
}
|
|
618
864
|
}
|
|
619
865
|
if (!this.metadata)
|
|
@@ -625,160 +871,151 @@ var testsystem2;
|
|
|
625
871
|
set id(value) {
|
|
626
872
|
pb_14.Message.setField(this, 1, value);
|
|
627
873
|
}
|
|
628
|
-
get
|
|
874
|
+
get run_id() {
|
|
629
875
|
return pb_14.Message.getFieldWithDefault(this, 2, "");
|
|
630
876
|
}
|
|
631
|
-
set
|
|
877
|
+
set run_id(value) {
|
|
632
878
|
pb_14.Message.setField(this, 2, value);
|
|
633
879
|
}
|
|
634
|
-
get
|
|
880
|
+
get test_case_run_id() {
|
|
635
881
|
return pb_14.Message.getFieldWithDefault(this, 3, "");
|
|
636
882
|
}
|
|
637
|
-
set
|
|
883
|
+
set test_case_run_id(value) {
|
|
638
884
|
pb_14.Message.setField(this, 3, value);
|
|
639
885
|
}
|
|
640
|
-
get
|
|
886
|
+
get title() {
|
|
641
887
|
return pb_14.Message.getFieldWithDefault(this, 4, "");
|
|
642
888
|
}
|
|
643
|
-
set
|
|
889
|
+
set title(value) {
|
|
644
890
|
pb_14.Message.setField(this, 4, value);
|
|
645
891
|
}
|
|
646
|
-
get
|
|
892
|
+
get description() {
|
|
647
893
|
return pb_14.Message.getFieldWithDefault(this, 5, "");
|
|
648
894
|
}
|
|
649
|
-
set
|
|
895
|
+
set description(value) {
|
|
650
896
|
pb_14.Message.setField(this, 5, value);
|
|
651
897
|
}
|
|
652
|
-
get status() {
|
|
653
|
-
return pb_14.Message.getFieldWithDefault(this, 6, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
654
|
-
}
|
|
655
|
-
set status(value) {
|
|
656
|
-
pb_14.Message.setField(this, 6, value);
|
|
657
|
-
}
|
|
658
898
|
get start_time() {
|
|
659
|
-
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp,
|
|
899
|
+
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
|
|
660
900
|
}
|
|
661
901
|
set start_time(value) {
|
|
662
|
-
pb_14.Message.setWrapperField(this,
|
|
902
|
+
pb_14.Message.setWrapperField(this, 6, value);
|
|
663
903
|
}
|
|
664
904
|
get has_start_time() {
|
|
905
|
+
return pb_14.Message.getField(this, 6) != null;
|
|
906
|
+
}
|
|
907
|
+
get duration() {
|
|
908
|
+
return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 7);
|
|
909
|
+
}
|
|
910
|
+
set duration(value) {
|
|
911
|
+
pb_14.Message.setWrapperField(this, 7, value);
|
|
912
|
+
}
|
|
913
|
+
get has_duration() {
|
|
665
914
|
return pb_14.Message.getField(this, 7) != null;
|
|
666
915
|
}
|
|
667
|
-
get
|
|
668
|
-
return pb_14.Message.
|
|
916
|
+
get type() {
|
|
917
|
+
return pb_14.Message.getFieldWithDefault(this, 8, "");
|
|
669
918
|
}
|
|
670
|
-
set
|
|
671
|
-
pb_14.Message.
|
|
919
|
+
set type(value) {
|
|
920
|
+
pb_14.Message.setField(this, 8, value);
|
|
672
921
|
}
|
|
673
|
-
get
|
|
674
|
-
return pb_14.Message.
|
|
922
|
+
get metadata() {
|
|
923
|
+
return pb_14.Message.getField(this, 9);
|
|
675
924
|
}
|
|
676
|
-
set
|
|
925
|
+
set metadata(value) {
|
|
677
926
|
pb_14.Message.setField(this, 9, value);
|
|
678
927
|
}
|
|
679
|
-
get
|
|
928
|
+
get parent_step_id() {
|
|
680
929
|
return pb_14.Message.getFieldWithDefault(this, 10, "");
|
|
681
930
|
}
|
|
682
|
-
set
|
|
931
|
+
set parent_step_id(value) {
|
|
683
932
|
pb_14.Message.setField(this, 10, value);
|
|
684
933
|
}
|
|
685
|
-
get
|
|
686
|
-
return pb_14.Message.
|
|
934
|
+
get worker_index() {
|
|
935
|
+
return pb_14.Message.getFieldWithDefault(this, 11, "");
|
|
687
936
|
}
|
|
688
|
-
set
|
|
937
|
+
set worker_index(value) {
|
|
689
938
|
pb_14.Message.setField(this, 11, value);
|
|
690
939
|
}
|
|
691
|
-
get
|
|
692
|
-
return pb_14.Message.getFieldWithDefault(this, 12,
|
|
940
|
+
get status() {
|
|
941
|
+
return pb_14.Message.getFieldWithDefault(this, 12, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
693
942
|
}
|
|
694
|
-
set
|
|
943
|
+
set status(value) {
|
|
695
944
|
pb_14.Message.setField(this, 12, value);
|
|
696
945
|
}
|
|
697
|
-
get
|
|
698
|
-
return pb_14.Message.getFieldWithDefault(this, 13,
|
|
946
|
+
get error() {
|
|
947
|
+
return pb_14.Message.getFieldWithDefault(this, 13, "");
|
|
699
948
|
}
|
|
700
|
-
set
|
|
949
|
+
set error(value) {
|
|
701
950
|
pb_14.Message.setField(this, 13, value);
|
|
702
951
|
}
|
|
703
|
-
get
|
|
704
|
-
return pb_14.Message.
|
|
705
|
-
}
|
|
706
|
-
set duration(value) {
|
|
707
|
-
pb_14.Message.setWrapperField(this, 14, value);
|
|
952
|
+
get errors() {
|
|
953
|
+
return pb_14.Message.getFieldWithDefault(this, 14, []);
|
|
708
954
|
}
|
|
709
|
-
|
|
710
|
-
|
|
955
|
+
set errors(value) {
|
|
956
|
+
pb_14.Message.setField(this, 14, value);
|
|
711
957
|
}
|
|
712
|
-
get
|
|
713
|
-
return pb_14.Message.getFieldWithDefault(this, 15,
|
|
958
|
+
get location() {
|
|
959
|
+
return pb_14.Message.getFieldWithDefault(this, 15, "");
|
|
714
960
|
}
|
|
715
|
-
set
|
|
961
|
+
set location(value) {
|
|
716
962
|
pb_14.Message.setField(this, 15, value);
|
|
717
963
|
}
|
|
718
|
-
get
|
|
719
|
-
return pb_14.Message.getFieldWithDefault(this, 16,
|
|
964
|
+
get category() {
|
|
965
|
+
return pb_14.Message.getFieldWithDefault(this, 16, "");
|
|
720
966
|
}
|
|
721
|
-
set
|
|
967
|
+
set category(value) {
|
|
722
968
|
pb_14.Message.setField(this, 16, value);
|
|
723
969
|
}
|
|
724
|
-
get timeout() {
|
|
725
|
-
return pb_14.Message.getFieldWithDefault(this, 17, 0);
|
|
726
|
-
}
|
|
727
|
-
set timeout(value) {
|
|
728
|
-
pb_14.Message.setField(this, 17, value);
|
|
729
|
-
}
|
|
730
970
|
static fromObject(data) {
|
|
731
|
-
const message = new
|
|
971
|
+
const message = new _StepRun({});
|
|
732
972
|
if (data.id != null) {
|
|
733
973
|
message.id = data.id;
|
|
734
974
|
}
|
|
735
|
-
if (data.test_id != null) {
|
|
736
|
-
message.test_id = data.test_id;
|
|
737
|
-
}
|
|
738
975
|
if (data.run_id != null) {
|
|
739
976
|
message.run_id = data.run_id;
|
|
740
977
|
}
|
|
741
|
-
if (data.
|
|
742
|
-
message.
|
|
978
|
+
if (data.test_case_run_id != null) {
|
|
979
|
+
message.test_case_run_id = data.test_case_run_id;
|
|
743
980
|
}
|
|
744
981
|
if (data.title != null) {
|
|
745
982
|
message.title = data.title;
|
|
746
983
|
}
|
|
747
|
-
if (data.
|
|
748
|
-
message.
|
|
984
|
+
if (data.description != null) {
|
|
985
|
+
message.description = data.description;
|
|
749
986
|
}
|
|
750
987
|
if (data.start_time != null) {
|
|
751
988
|
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
752
989
|
}
|
|
753
|
-
if (data.
|
|
754
|
-
message.
|
|
755
|
-
}
|
|
756
|
-
if (data.error_message != null) {
|
|
757
|
-
message.error_message = data.error_message;
|
|
990
|
+
if (data.duration != null) {
|
|
991
|
+
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
758
992
|
}
|
|
759
|
-
if (data.
|
|
760
|
-
message.
|
|
993
|
+
if (data.type != null) {
|
|
994
|
+
message.type = data.type;
|
|
761
995
|
}
|
|
762
996
|
if (typeof data.metadata == "object") {
|
|
763
997
|
message.metadata = new Map(Object.entries(data.metadata));
|
|
764
998
|
}
|
|
765
|
-
if (data.
|
|
766
|
-
message.
|
|
999
|
+
if (data.parent_step_id != null) {
|
|
1000
|
+
message.parent_step_id = data.parent_step_id;
|
|
767
1001
|
}
|
|
768
|
-
if (data.
|
|
769
|
-
message.
|
|
1002
|
+
if (data.worker_index != null) {
|
|
1003
|
+
message.worker_index = data.worker_index;
|
|
770
1004
|
}
|
|
771
|
-
if (data.
|
|
772
|
-
message.
|
|
1005
|
+
if (data.status != null) {
|
|
1006
|
+
message.status = data.status;
|
|
773
1007
|
}
|
|
774
|
-
if (data.
|
|
775
|
-
message.
|
|
1008
|
+
if (data.error != null) {
|
|
1009
|
+
message.error = data.error;
|
|
776
1010
|
}
|
|
777
|
-
if (data.
|
|
778
|
-
message.
|
|
1011
|
+
if (data.errors != null) {
|
|
1012
|
+
message.errors = data.errors;
|
|
779
1013
|
}
|
|
780
|
-
if (data.
|
|
781
|
-
message.
|
|
1014
|
+
if (data.location != null) {
|
|
1015
|
+
message.location = data.location;
|
|
1016
|
+
}
|
|
1017
|
+
if (data.category != null) {
|
|
1018
|
+
message.category = data.category;
|
|
782
1019
|
}
|
|
783
1020
|
return message;
|
|
784
1021
|
}
|
|
@@ -787,53 +1024,50 @@ var testsystem2;
|
|
|
787
1024
|
if (this.id != null) {
|
|
788
1025
|
data.id = this.id;
|
|
789
1026
|
}
|
|
790
|
-
if (this.test_id != null) {
|
|
791
|
-
data.test_id = this.test_id;
|
|
792
|
-
}
|
|
793
1027
|
if (this.run_id != null) {
|
|
794
1028
|
data.run_id = this.run_id;
|
|
795
1029
|
}
|
|
796
|
-
if (this.
|
|
797
|
-
data.
|
|
1030
|
+
if (this.test_case_run_id != null) {
|
|
1031
|
+
data.test_case_run_id = this.test_case_run_id;
|
|
798
1032
|
}
|
|
799
1033
|
if (this.title != null) {
|
|
800
1034
|
data.title = this.title;
|
|
801
1035
|
}
|
|
802
|
-
if (this.
|
|
803
|
-
data.
|
|
1036
|
+
if (this.description != null) {
|
|
1037
|
+
data.description = this.description;
|
|
804
1038
|
}
|
|
805
1039
|
if (this.start_time != null) {
|
|
806
1040
|
data.start_time = this.start_time.toObject();
|
|
807
1041
|
}
|
|
808
|
-
if (this.
|
|
809
|
-
data.
|
|
810
|
-
}
|
|
811
|
-
if (this.error_message != null) {
|
|
812
|
-
data.error_message = this.error_message;
|
|
1042
|
+
if (this.duration != null) {
|
|
1043
|
+
data.duration = this.duration.toObject();
|
|
813
1044
|
}
|
|
814
|
-
if (this.
|
|
815
|
-
data.
|
|
1045
|
+
if (this.type != null) {
|
|
1046
|
+
data.type = this.type;
|
|
816
1047
|
}
|
|
817
1048
|
if (this.metadata != null) {
|
|
818
1049
|
data.metadata = Object.fromEntries(this.metadata);
|
|
819
1050
|
}
|
|
820
|
-
if (this.
|
|
821
|
-
data.
|
|
1051
|
+
if (this.parent_step_id != null) {
|
|
1052
|
+
data.parent_step_id = this.parent_step_id;
|
|
822
1053
|
}
|
|
823
|
-
if (this.
|
|
824
|
-
data.
|
|
1054
|
+
if (this.worker_index != null) {
|
|
1055
|
+
data.worker_index = this.worker_index;
|
|
825
1056
|
}
|
|
826
|
-
if (this.
|
|
827
|
-
data.
|
|
1057
|
+
if (this.status != null) {
|
|
1058
|
+
data.status = this.status;
|
|
828
1059
|
}
|
|
829
|
-
if (this.
|
|
830
|
-
data.
|
|
1060
|
+
if (this.error != null) {
|
|
1061
|
+
data.error = this.error;
|
|
831
1062
|
}
|
|
832
|
-
if (this.
|
|
833
|
-
data.
|
|
1063
|
+
if (this.errors != null) {
|
|
1064
|
+
data.errors = this.errors;
|
|
834
1065
|
}
|
|
835
|
-
if (this.
|
|
836
|
-
data.
|
|
1066
|
+
if (this.location != null) {
|
|
1067
|
+
data.location = this.location;
|
|
1068
|
+
}
|
|
1069
|
+
if (this.category != null) {
|
|
1070
|
+
data.category = this.category;
|
|
837
1071
|
}
|
|
838
1072
|
return data;
|
|
839
1073
|
}
|
|
@@ -841,47 +1075,45 @@ var testsystem2;
|
|
|
841
1075
|
const writer = w || new pb_14.BinaryWriter();
|
|
842
1076
|
if (this.id.length)
|
|
843
1077
|
writer.writeString(1, this.id);
|
|
844
|
-
if (this.test_id.length)
|
|
845
|
-
writer.writeString(2, this.test_id);
|
|
846
1078
|
if (this.run_id.length)
|
|
847
|
-
writer.writeString(
|
|
848
|
-
if (this.
|
|
849
|
-
writer.writeString(
|
|
1079
|
+
writer.writeString(2, this.run_id);
|
|
1080
|
+
if (this.test_case_run_id.length)
|
|
1081
|
+
writer.writeString(3, this.test_case_run_id);
|
|
850
1082
|
if (this.title.length)
|
|
851
|
-
writer.writeString(
|
|
852
|
-
if (this.
|
|
853
|
-
writer.
|
|
1083
|
+
writer.writeString(4, this.title);
|
|
1084
|
+
if (this.description.length)
|
|
1085
|
+
writer.writeString(5, this.description);
|
|
854
1086
|
if (this.has_start_time)
|
|
855
|
-
writer.writeMessage(
|
|
856
|
-
if (this.
|
|
857
|
-
writer.
|
|
858
|
-
if (this.
|
|
859
|
-
writer.writeString(
|
|
860
|
-
if (this.stack_trace.length)
|
|
861
|
-
writer.writeString(10, this.stack_trace);
|
|
1087
|
+
writer.writeMessage(6, this.start_time, () => this.start_time.serialize(writer));
|
|
1088
|
+
if (this.has_duration)
|
|
1089
|
+
writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
|
|
1090
|
+
if (this.type.length)
|
|
1091
|
+
writer.writeString(8, this.type);
|
|
862
1092
|
for (const [key, value] of this.metadata) {
|
|
863
|
-
writer.writeMessage(
|
|
1093
|
+
writer.writeMessage(9, this.metadata, () => {
|
|
864
1094
|
writer.writeString(1, key);
|
|
865
1095
|
writer.writeString(2, value);
|
|
866
1096
|
});
|
|
867
1097
|
}
|
|
1098
|
+
if (this.parent_step_id.length)
|
|
1099
|
+
writer.writeString(10, this.parent_step_id);
|
|
1100
|
+
if (this.worker_index.length)
|
|
1101
|
+
writer.writeString(11, this.worker_index);
|
|
1102
|
+
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
1103
|
+
writer.writeEnum(12, this.status);
|
|
1104
|
+
if (this.error.length)
|
|
1105
|
+
writer.writeString(13, this.error);
|
|
868
1106
|
if (this.errors.length)
|
|
869
|
-
writer.writeRepeatedString(
|
|
870
|
-
if (this.
|
|
871
|
-
writer.
|
|
872
|
-
if (this.
|
|
873
|
-
writer.
|
|
874
|
-
if (this.retry_count != 0)
|
|
875
|
-
writer.writeInt32(15, this.retry_count);
|
|
876
|
-
if (this.retry_index != 0)
|
|
877
|
-
writer.writeInt32(16, this.retry_index);
|
|
878
|
-
if (this.timeout != 0)
|
|
879
|
-
writer.writeInt32(17, this.timeout);
|
|
1107
|
+
writer.writeRepeatedString(14, this.errors);
|
|
1108
|
+
if (this.location.length)
|
|
1109
|
+
writer.writeString(15, this.location);
|
|
1110
|
+
if (this.category.length)
|
|
1111
|
+
writer.writeString(16, this.category);
|
|
880
1112
|
if (!w)
|
|
881
1113
|
return writer.getResultBuffer();
|
|
882
1114
|
}
|
|
883
1115
|
static deserialize(bytes) {
|
|
884
|
-
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new
|
|
1116
|
+
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _StepRun();
|
|
885
1117
|
while (reader.nextField()) {
|
|
886
1118
|
if (reader.isEndGroup())
|
|
887
1119
|
break;
|
|
@@ -890,724 +1122,49 @@ var testsystem2;
|
|
|
890
1122
|
message.id = reader.readString();
|
|
891
1123
|
break;
|
|
892
1124
|
case 2:
|
|
893
|
-
message.
|
|
1125
|
+
message.run_id = reader.readString();
|
|
894
1126
|
break;
|
|
895
1127
|
case 3:
|
|
896
|
-
message.
|
|
1128
|
+
message.test_case_run_id = reader.readString();
|
|
897
1129
|
break;
|
|
898
1130
|
case 4:
|
|
899
|
-
message.
|
|
1131
|
+
message.title = reader.readString();
|
|
900
1132
|
break;
|
|
901
1133
|
case 5:
|
|
902
|
-
message.
|
|
1134
|
+
message.description = reader.readString();
|
|
903
1135
|
break;
|
|
904
1136
|
case 6:
|
|
905
|
-
message.
|
|
1137
|
+
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
906
1138
|
break;
|
|
907
1139
|
case 7:
|
|
908
|
-
reader.readMessage(message.
|
|
1140
|
+
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
909
1141
|
break;
|
|
910
1142
|
case 8:
|
|
911
|
-
|
|
1143
|
+
message.type = reader.readString();
|
|
912
1144
|
break;
|
|
913
1145
|
case 9:
|
|
914
|
-
message.
|
|
1146
|
+
reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
915
1147
|
break;
|
|
916
1148
|
case 10:
|
|
917
|
-
message.
|
|
1149
|
+
message.parent_step_id = reader.readString();
|
|
918
1150
|
break;
|
|
919
1151
|
case 11:
|
|
920
|
-
|
|
1152
|
+
message.worker_index = reader.readString();
|
|
921
1153
|
break;
|
|
922
1154
|
case 12:
|
|
923
|
-
|
|
1155
|
+
message.status = reader.readEnum();
|
|
924
1156
|
break;
|
|
925
1157
|
case 13:
|
|
926
|
-
|
|
1158
|
+
message.error = reader.readString();
|
|
927
1159
|
break;
|
|
928
1160
|
case 14:
|
|
929
|
-
|
|
1161
|
+
pb_14.Message.addToRepeatedField(message, 14, reader.readString());
|
|
930
1162
|
break;
|
|
931
1163
|
case 15:
|
|
932
|
-
message.
|
|
1164
|
+
message.location = reader.readString();
|
|
933
1165
|
break;
|
|
934
1166
|
case 16:
|
|
935
|
-
message.
|
|
936
|
-
break;
|
|
937
|
-
case 17:
|
|
938
|
-
message.timeout = reader.readInt32();
|
|
939
|
-
break;
|
|
940
|
-
default:
|
|
941
|
-
reader.skipField();
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
return message;
|
|
945
|
-
}
|
|
946
|
-
serializeBinary() {
|
|
947
|
-
return this.serialize();
|
|
948
|
-
}
|
|
949
|
-
static deserializeBinary(bytes) {
|
|
950
|
-
return _TestCaseRun.deserialize(bytes);
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
|
-
_one_of_decls2 = new WeakMap();
|
|
954
|
-
let TestCaseRun = _TestCaseRun;
|
|
955
|
-
entities2.TestCaseRun = _TestCaseRun;
|
|
956
|
-
const _StepRun = class _StepRun extends pb_14.Message {
|
|
957
|
-
constructor(data) {
|
|
958
|
-
super();
|
|
959
|
-
__privateAdd(this, _one_of_decls3, []);
|
|
960
|
-
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], __privateGet(this, _one_of_decls3));
|
|
961
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
962
|
-
if ("id" in data && data.id != void 0) {
|
|
963
|
-
this.id = data.id;
|
|
964
|
-
}
|
|
965
|
-
if ("run_id" in data && data.run_id != void 0) {
|
|
966
|
-
this.run_id = data.run_id;
|
|
967
|
-
}
|
|
968
|
-
if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
|
|
969
|
-
this.test_case_run_id = data.test_case_run_id;
|
|
970
|
-
}
|
|
971
|
-
if ("title" in data && data.title != void 0) {
|
|
972
|
-
this.title = data.title;
|
|
973
|
-
}
|
|
974
|
-
if ("description" in data && data.description != void 0) {
|
|
975
|
-
this.description = data.description;
|
|
976
|
-
}
|
|
977
|
-
if ("start_time" in data && data.start_time != void 0) {
|
|
978
|
-
this.start_time = data.start_time;
|
|
979
|
-
}
|
|
980
|
-
if ("duration" in data && data.duration != void 0) {
|
|
981
|
-
this.duration = data.duration;
|
|
982
|
-
}
|
|
983
|
-
if ("type" in data && data.type != void 0) {
|
|
984
|
-
this.type = data.type;
|
|
985
|
-
}
|
|
986
|
-
if ("metadata" in data && data.metadata != void 0) {
|
|
987
|
-
this.metadata = data.metadata;
|
|
988
|
-
}
|
|
989
|
-
if ("parent_step_id" in data && data.parent_step_id != void 0) {
|
|
990
|
-
this.parent_step_id = data.parent_step_id;
|
|
991
|
-
}
|
|
992
|
-
if ("worker_index" in data && data.worker_index != void 0) {
|
|
993
|
-
this.worker_index = data.worker_index;
|
|
994
|
-
}
|
|
995
|
-
if ("status" in data && data.status != void 0) {
|
|
996
|
-
this.status = data.status;
|
|
997
|
-
}
|
|
998
|
-
if ("error" in data && data.error != void 0) {
|
|
999
|
-
this.error = data.error;
|
|
1000
|
-
}
|
|
1001
|
-
if ("errors" in data && data.errors != void 0) {
|
|
1002
|
-
this.errors = data.errors;
|
|
1003
|
-
}
|
|
1004
|
-
if ("location" in data && data.location != void 0) {
|
|
1005
|
-
this.location = data.location;
|
|
1006
|
-
}
|
|
1007
|
-
if ("category" in data && data.category != void 0) {
|
|
1008
|
-
this.category = data.category;
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
if (!this.metadata)
|
|
1012
|
-
this.metadata = /* @__PURE__ */ new Map();
|
|
1013
|
-
}
|
|
1014
|
-
get id() {
|
|
1015
|
-
return pb_14.Message.getFieldWithDefault(this, 1, "");
|
|
1016
|
-
}
|
|
1017
|
-
set id(value) {
|
|
1018
|
-
pb_14.Message.setField(this, 1, value);
|
|
1019
|
-
}
|
|
1020
|
-
get run_id() {
|
|
1021
|
-
return pb_14.Message.getFieldWithDefault(this, 2, "");
|
|
1022
|
-
}
|
|
1023
|
-
set run_id(value) {
|
|
1024
|
-
pb_14.Message.setField(this, 2, value);
|
|
1025
|
-
}
|
|
1026
|
-
get test_case_run_id() {
|
|
1027
|
-
return pb_14.Message.getFieldWithDefault(this, 3, "");
|
|
1028
|
-
}
|
|
1029
|
-
set test_case_run_id(value) {
|
|
1030
|
-
pb_14.Message.setField(this, 3, value);
|
|
1031
|
-
}
|
|
1032
|
-
get title() {
|
|
1033
|
-
return pb_14.Message.getFieldWithDefault(this, 4, "");
|
|
1034
|
-
}
|
|
1035
|
-
set title(value) {
|
|
1036
|
-
pb_14.Message.setField(this, 4, value);
|
|
1037
|
-
}
|
|
1038
|
-
get description() {
|
|
1039
|
-
return pb_14.Message.getFieldWithDefault(this, 5, "");
|
|
1040
|
-
}
|
|
1041
|
-
set description(value) {
|
|
1042
|
-
pb_14.Message.setField(this, 5, value);
|
|
1043
|
-
}
|
|
1044
|
-
get start_time() {
|
|
1045
|
-
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
|
|
1046
|
-
}
|
|
1047
|
-
set start_time(value) {
|
|
1048
|
-
pb_14.Message.setWrapperField(this, 6, value);
|
|
1049
|
-
}
|
|
1050
|
-
get has_start_time() {
|
|
1051
|
-
return pb_14.Message.getField(this, 6) != null;
|
|
1052
|
-
}
|
|
1053
|
-
get duration() {
|
|
1054
|
-
return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 7);
|
|
1055
|
-
}
|
|
1056
|
-
set duration(value) {
|
|
1057
|
-
pb_14.Message.setWrapperField(this, 7, value);
|
|
1058
|
-
}
|
|
1059
|
-
get has_duration() {
|
|
1060
|
-
return pb_14.Message.getField(this, 7) != null;
|
|
1061
|
-
}
|
|
1062
|
-
get type() {
|
|
1063
|
-
return pb_14.Message.getFieldWithDefault(this, 8, "");
|
|
1064
|
-
}
|
|
1065
|
-
set type(value) {
|
|
1066
|
-
pb_14.Message.setField(this, 8, value);
|
|
1067
|
-
}
|
|
1068
|
-
get metadata() {
|
|
1069
|
-
return pb_14.Message.getField(this, 9);
|
|
1070
|
-
}
|
|
1071
|
-
set metadata(value) {
|
|
1072
|
-
pb_14.Message.setField(this, 9, value);
|
|
1073
|
-
}
|
|
1074
|
-
get parent_step_id() {
|
|
1075
|
-
return pb_14.Message.getFieldWithDefault(this, 10, "");
|
|
1076
|
-
}
|
|
1077
|
-
set parent_step_id(value) {
|
|
1078
|
-
pb_14.Message.setField(this, 10, value);
|
|
1079
|
-
}
|
|
1080
|
-
get worker_index() {
|
|
1081
|
-
return pb_14.Message.getFieldWithDefault(this, 11, "");
|
|
1082
|
-
}
|
|
1083
|
-
set worker_index(value) {
|
|
1084
|
-
pb_14.Message.setField(this, 11, value);
|
|
1085
|
-
}
|
|
1086
|
-
get status() {
|
|
1087
|
-
return pb_14.Message.getFieldWithDefault(this, 12, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
1088
|
-
}
|
|
1089
|
-
set status(value) {
|
|
1090
|
-
pb_14.Message.setField(this, 12, value);
|
|
1091
|
-
}
|
|
1092
|
-
get error() {
|
|
1093
|
-
return pb_14.Message.getFieldWithDefault(this, 13, "");
|
|
1094
|
-
}
|
|
1095
|
-
set error(value) {
|
|
1096
|
-
pb_14.Message.setField(this, 13, value);
|
|
1097
|
-
}
|
|
1098
|
-
get errors() {
|
|
1099
|
-
return pb_14.Message.getFieldWithDefault(this, 14, []);
|
|
1100
|
-
}
|
|
1101
|
-
set errors(value) {
|
|
1102
|
-
pb_14.Message.setField(this, 14, value);
|
|
1103
|
-
}
|
|
1104
|
-
get location() {
|
|
1105
|
-
return pb_14.Message.getFieldWithDefault(this, 15, "");
|
|
1106
|
-
}
|
|
1107
|
-
set location(value) {
|
|
1108
|
-
pb_14.Message.setField(this, 15, value);
|
|
1109
|
-
}
|
|
1110
|
-
get category() {
|
|
1111
|
-
return pb_14.Message.getFieldWithDefault(this, 16, "");
|
|
1112
|
-
}
|
|
1113
|
-
set category(value) {
|
|
1114
|
-
pb_14.Message.setField(this, 16, value);
|
|
1115
|
-
}
|
|
1116
|
-
static fromObject(data) {
|
|
1117
|
-
const message = new _StepRun({});
|
|
1118
|
-
if (data.id != null) {
|
|
1119
|
-
message.id = data.id;
|
|
1120
|
-
}
|
|
1121
|
-
if (data.run_id != null) {
|
|
1122
|
-
message.run_id = data.run_id;
|
|
1123
|
-
}
|
|
1124
|
-
if (data.test_case_run_id != null) {
|
|
1125
|
-
message.test_case_run_id = data.test_case_run_id;
|
|
1126
|
-
}
|
|
1127
|
-
if (data.title != null) {
|
|
1128
|
-
message.title = data.title;
|
|
1129
|
-
}
|
|
1130
|
-
if (data.description != null) {
|
|
1131
|
-
message.description = data.description;
|
|
1132
|
-
}
|
|
1133
|
-
if (data.start_time != null) {
|
|
1134
|
-
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
1135
|
-
}
|
|
1136
|
-
if (data.duration != null) {
|
|
1137
|
-
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
1138
|
-
}
|
|
1139
|
-
if (data.type != null) {
|
|
1140
|
-
message.type = data.type;
|
|
1141
|
-
}
|
|
1142
|
-
if (typeof data.metadata == "object") {
|
|
1143
|
-
message.metadata = new Map(Object.entries(data.metadata));
|
|
1144
|
-
}
|
|
1145
|
-
if (data.parent_step_id != null) {
|
|
1146
|
-
message.parent_step_id = data.parent_step_id;
|
|
1147
|
-
}
|
|
1148
|
-
if (data.worker_index != null) {
|
|
1149
|
-
message.worker_index = data.worker_index;
|
|
1150
|
-
}
|
|
1151
|
-
if (data.status != null) {
|
|
1152
|
-
message.status = data.status;
|
|
1153
|
-
}
|
|
1154
|
-
if (data.error != null) {
|
|
1155
|
-
message.error = data.error;
|
|
1156
|
-
}
|
|
1157
|
-
if (data.errors != null) {
|
|
1158
|
-
message.errors = data.errors;
|
|
1159
|
-
}
|
|
1160
|
-
if (data.location != null) {
|
|
1161
|
-
message.location = data.location;
|
|
1162
|
-
}
|
|
1163
|
-
if (data.category != null) {
|
|
1164
|
-
message.category = data.category;
|
|
1165
|
-
}
|
|
1166
|
-
return message;
|
|
1167
|
-
}
|
|
1168
|
-
toObject() {
|
|
1169
|
-
const data = {};
|
|
1170
|
-
if (this.id != null) {
|
|
1171
|
-
data.id = this.id;
|
|
1172
|
-
}
|
|
1173
|
-
if (this.run_id != null) {
|
|
1174
|
-
data.run_id = this.run_id;
|
|
1175
|
-
}
|
|
1176
|
-
if (this.test_case_run_id != null) {
|
|
1177
|
-
data.test_case_run_id = this.test_case_run_id;
|
|
1178
|
-
}
|
|
1179
|
-
if (this.title != null) {
|
|
1180
|
-
data.title = this.title;
|
|
1181
|
-
}
|
|
1182
|
-
if (this.description != null) {
|
|
1183
|
-
data.description = this.description;
|
|
1184
|
-
}
|
|
1185
|
-
if (this.start_time != null) {
|
|
1186
|
-
data.start_time = this.start_time.toObject();
|
|
1187
|
-
}
|
|
1188
|
-
if (this.duration != null) {
|
|
1189
|
-
data.duration = this.duration.toObject();
|
|
1190
|
-
}
|
|
1191
|
-
if (this.type != null) {
|
|
1192
|
-
data.type = this.type;
|
|
1193
|
-
}
|
|
1194
|
-
if (this.metadata != null) {
|
|
1195
|
-
data.metadata = Object.fromEntries(this.metadata);
|
|
1196
|
-
}
|
|
1197
|
-
if (this.parent_step_id != null) {
|
|
1198
|
-
data.parent_step_id = this.parent_step_id;
|
|
1199
|
-
}
|
|
1200
|
-
if (this.worker_index != null) {
|
|
1201
|
-
data.worker_index = this.worker_index;
|
|
1202
|
-
}
|
|
1203
|
-
if (this.status != null) {
|
|
1204
|
-
data.status = this.status;
|
|
1205
|
-
}
|
|
1206
|
-
if (this.error != null) {
|
|
1207
|
-
data.error = this.error;
|
|
1208
|
-
}
|
|
1209
|
-
if (this.errors != null) {
|
|
1210
|
-
data.errors = this.errors;
|
|
1211
|
-
}
|
|
1212
|
-
if (this.location != null) {
|
|
1213
|
-
data.location = this.location;
|
|
1214
|
-
}
|
|
1215
|
-
if (this.category != null) {
|
|
1216
|
-
data.category = this.category;
|
|
1217
|
-
}
|
|
1218
|
-
return data;
|
|
1219
|
-
}
|
|
1220
|
-
serialize(w) {
|
|
1221
|
-
const writer = w || new pb_14.BinaryWriter();
|
|
1222
|
-
if (this.id.length)
|
|
1223
|
-
writer.writeString(1, this.id);
|
|
1224
|
-
if (this.run_id.length)
|
|
1225
|
-
writer.writeString(2, this.run_id);
|
|
1226
|
-
if (this.test_case_run_id.length)
|
|
1227
|
-
writer.writeString(3, this.test_case_run_id);
|
|
1228
|
-
if (this.title.length)
|
|
1229
|
-
writer.writeString(4, this.title);
|
|
1230
|
-
if (this.description.length)
|
|
1231
|
-
writer.writeString(5, this.description);
|
|
1232
|
-
if (this.has_start_time)
|
|
1233
|
-
writer.writeMessage(6, this.start_time, () => this.start_time.serialize(writer));
|
|
1234
|
-
if (this.has_duration)
|
|
1235
|
-
writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
|
|
1236
|
-
if (this.type.length)
|
|
1237
|
-
writer.writeString(8, this.type);
|
|
1238
|
-
for (const [key, value] of this.metadata) {
|
|
1239
|
-
writer.writeMessage(9, this.metadata, () => {
|
|
1240
|
-
writer.writeString(1, key);
|
|
1241
|
-
writer.writeString(2, value);
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
if (this.parent_step_id.length)
|
|
1245
|
-
writer.writeString(10, this.parent_step_id);
|
|
1246
|
-
if (this.worker_index.length)
|
|
1247
|
-
writer.writeString(11, this.worker_index);
|
|
1248
|
-
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
1249
|
-
writer.writeEnum(12, this.status);
|
|
1250
|
-
if (this.error.length)
|
|
1251
|
-
writer.writeString(13, this.error);
|
|
1252
|
-
if (this.errors.length)
|
|
1253
|
-
writer.writeRepeatedString(14, this.errors);
|
|
1254
|
-
if (this.location.length)
|
|
1255
|
-
writer.writeString(15, this.location);
|
|
1256
|
-
if (this.category.length)
|
|
1257
|
-
writer.writeString(16, this.category);
|
|
1258
|
-
if (!w)
|
|
1259
|
-
return writer.getResultBuffer();
|
|
1260
|
-
}
|
|
1261
|
-
static deserialize(bytes) {
|
|
1262
|
-
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _StepRun();
|
|
1263
|
-
while (reader.nextField()) {
|
|
1264
|
-
if (reader.isEndGroup())
|
|
1265
|
-
break;
|
|
1266
|
-
switch (reader.getFieldNumber()) {
|
|
1267
|
-
case 1:
|
|
1268
|
-
message.id = reader.readString();
|
|
1269
|
-
break;
|
|
1270
|
-
case 2:
|
|
1271
|
-
message.run_id = reader.readString();
|
|
1272
|
-
break;
|
|
1273
|
-
case 3:
|
|
1274
|
-
message.test_case_run_id = reader.readString();
|
|
1275
|
-
break;
|
|
1276
|
-
case 4:
|
|
1277
|
-
message.title = reader.readString();
|
|
1278
|
-
break;
|
|
1279
|
-
case 5:
|
|
1280
|
-
message.description = reader.readString();
|
|
1281
|
-
break;
|
|
1282
|
-
case 6:
|
|
1283
|
-
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
1284
|
-
break;
|
|
1285
|
-
case 7:
|
|
1286
|
-
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
1287
|
-
break;
|
|
1288
|
-
case 8:
|
|
1289
|
-
message.type = reader.readString();
|
|
1290
|
-
break;
|
|
1291
|
-
case 9:
|
|
1292
|
-
reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
1293
|
-
break;
|
|
1294
|
-
case 10:
|
|
1295
|
-
message.parent_step_id = reader.readString();
|
|
1296
|
-
break;
|
|
1297
|
-
case 11:
|
|
1298
|
-
message.worker_index = reader.readString();
|
|
1299
|
-
break;
|
|
1300
|
-
case 12:
|
|
1301
|
-
message.status = reader.readEnum();
|
|
1302
|
-
break;
|
|
1303
|
-
case 13:
|
|
1304
|
-
message.error = reader.readString();
|
|
1305
|
-
break;
|
|
1306
|
-
case 14:
|
|
1307
|
-
pb_14.Message.addToRepeatedField(message, 14, reader.readString());
|
|
1308
|
-
break;
|
|
1309
|
-
case 15:
|
|
1310
|
-
message.location = reader.readString();
|
|
1311
|
-
break;
|
|
1312
|
-
case 16:
|
|
1313
|
-
message.category = reader.readString();
|
|
1314
|
-
break;
|
|
1315
|
-
default:
|
|
1316
|
-
reader.skipField();
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
return message;
|
|
1320
|
-
}
|
|
1321
|
-
serializeBinary() {
|
|
1322
|
-
return this.serialize();
|
|
1323
|
-
}
|
|
1324
|
-
static deserializeBinary(bytes) {
|
|
1325
|
-
return _StepRun.deserialize(bytes);
|
|
1326
|
-
}
|
|
1327
|
-
};
|
|
1328
|
-
_one_of_decls3 = new WeakMap();
|
|
1329
|
-
let StepRun = _StepRun;
|
|
1330
|
-
entities2.StepRun = _StepRun;
|
|
1331
|
-
})(entities = v12.entities || (v12.entities = {}));
|
|
1332
|
-
})(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
|
|
1333
|
-
})(testsystem2 || (testsystem2 = {}));
|
|
1334
|
-
|
|
1335
|
-
// lib/testsystem/v1/entities/test_suite.ts
|
|
1336
|
-
import * as pb_15 from "google-protobuf";
|
|
1337
|
-
var testsystem3;
|
|
1338
|
-
((testsystem7) => {
|
|
1339
|
-
let v1;
|
|
1340
|
-
((v12) => {
|
|
1341
|
-
let entities;
|
|
1342
|
-
((entities2) => {
|
|
1343
|
-
var _one_of_decls, _one_of_decls2;
|
|
1344
|
-
let SuiteType;
|
|
1345
|
-
((SuiteType2) => {
|
|
1346
|
-
SuiteType2[SuiteType2["ROOT"] = 0] = "ROOT";
|
|
1347
|
-
SuiteType2[SuiteType2["PROJECT"] = 1] = "PROJECT";
|
|
1348
|
-
SuiteType2[SuiteType2["SUBSUITE"] = 2] = "SUBSUITE";
|
|
1349
|
-
})(SuiteType = entities2.SuiteType || (entities2.SuiteType = {}));
|
|
1350
|
-
const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
|
|
1351
|
-
constructor(data) {
|
|
1352
|
-
super();
|
|
1353
|
-
__privateAdd(this, _one_of_decls, []);
|
|
1354
|
-
pb_15.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
1355
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1356
|
-
if ("id" in data && data.id != void 0) {
|
|
1357
|
-
this.id = data.id;
|
|
1358
|
-
}
|
|
1359
|
-
if ("name" in data && data.name != void 0) {
|
|
1360
|
-
this.name = data.name;
|
|
1361
|
-
}
|
|
1362
|
-
if ("description" in data && data.description != void 0) {
|
|
1363
|
-
this.description = data.description;
|
|
1364
|
-
}
|
|
1365
|
-
if ("start_time" in data && data.start_time != void 0) {
|
|
1366
|
-
this.start_time = data.start_time;
|
|
1367
|
-
}
|
|
1368
|
-
if ("end_time" in data && data.end_time != void 0) {
|
|
1369
|
-
this.end_time = data.end_time;
|
|
1370
|
-
}
|
|
1371
|
-
if ("duration" in data && data.duration != void 0) {
|
|
1372
|
-
this.duration = data.duration;
|
|
1373
|
-
}
|
|
1374
|
-
if ("status" in data && data.status != void 0) {
|
|
1375
|
-
this.status = data.status;
|
|
1376
|
-
}
|
|
1377
|
-
if ("metadata" in data && data.metadata != void 0) {
|
|
1378
|
-
this.metadata = data.metadata;
|
|
1379
|
-
}
|
|
1380
|
-
if ("test_suite_spec_id" in data && data.test_suite_spec_id != void 0) {
|
|
1381
|
-
this.test_suite_spec_id = data.test_suite_spec_id;
|
|
1382
|
-
}
|
|
1383
|
-
if ("initiated_by" in data && data.initiated_by != void 0) {
|
|
1384
|
-
this.initiated_by = data.initiated_by;
|
|
1385
|
-
}
|
|
1386
|
-
if ("project_name" in data && data.project_name != void 0) {
|
|
1387
|
-
this.project_name = data.project_name;
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
if (!this.metadata)
|
|
1391
|
-
this.metadata = /* @__PURE__ */ new Map();
|
|
1392
|
-
}
|
|
1393
|
-
get id() {
|
|
1394
|
-
return pb_15.Message.getFieldWithDefault(this, 1, "");
|
|
1395
|
-
}
|
|
1396
|
-
set id(value) {
|
|
1397
|
-
pb_15.Message.setField(this, 1, value);
|
|
1398
|
-
}
|
|
1399
|
-
get name() {
|
|
1400
|
-
return pb_15.Message.getFieldWithDefault(this, 2, "");
|
|
1401
|
-
}
|
|
1402
|
-
set name(value) {
|
|
1403
|
-
pb_15.Message.setField(this, 2, value);
|
|
1404
|
-
}
|
|
1405
|
-
get description() {
|
|
1406
|
-
return pb_15.Message.getFieldWithDefault(this, 3, "");
|
|
1407
|
-
}
|
|
1408
|
-
set description(value) {
|
|
1409
|
-
pb_15.Message.setField(this, 3, value);
|
|
1410
|
-
}
|
|
1411
|
-
get start_time() {
|
|
1412
|
-
return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 4);
|
|
1413
|
-
}
|
|
1414
|
-
set start_time(value) {
|
|
1415
|
-
pb_15.Message.setWrapperField(this, 4, value);
|
|
1416
|
-
}
|
|
1417
|
-
get has_start_time() {
|
|
1418
|
-
return pb_15.Message.getField(this, 4) != null;
|
|
1419
|
-
}
|
|
1420
|
-
get end_time() {
|
|
1421
|
-
return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 5);
|
|
1422
|
-
}
|
|
1423
|
-
set end_time(value) {
|
|
1424
|
-
pb_15.Message.setWrapperField(this, 5, value);
|
|
1425
|
-
}
|
|
1426
|
-
get has_end_time() {
|
|
1427
|
-
return pb_15.Message.getField(this, 5) != null;
|
|
1428
|
-
}
|
|
1429
|
-
get duration() {
|
|
1430
|
-
return pb_15.Message.getWrapperField(this, google2.protobuf.Duration, 6);
|
|
1431
|
-
}
|
|
1432
|
-
set duration(value) {
|
|
1433
|
-
pb_15.Message.setWrapperField(this, 6, value);
|
|
1434
|
-
}
|
|
1435
|
-
get has_duration() {
|
|
1436
|
-
return pb_15.Message.getField(this, 6) != null;
|
|
1437
|
-
}
|
|
1438
|
-
get status() {
|
|
1439
|
-
return pb_15.Message.getFieldWithDefault(this, 7, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
1440
|
-
}
|
|
1441
|
-
set status(value) {
|
|
1442
|
-
pb_15.Message.setField(this, 7, value);
|
|
1443
|
-
}
|
|
1444
|
-
get metadata() {
|
|
1445
|
-
return pb_15.Message.getField(this, 8);
|
|
1446
|
-
}
|
|
1447
|
-
set metadata(value) {
|
|
1448
|
-
pb_15.Message.setField(this, 8, value);
|
|
1449
|
-
}
|
|
1450
|
-
get test_suite_spec_id() {
|
|
1451
|
-
return pb_15.Message.getFieldWithDefault(this, 9, "");
|
|
1452
|
-
}
|
|
1453
|
-
set test_suite_spec_id(value) {
|
|
1454
|
-
pb_15.Message.setField(this, 9, value);
|
|
1455
|
-
}
|
|
1456
|
-
get initiated_by() {
|
|
1457
|
-
return pb_15.Message.getFieldWithDefault(this, 10, "");
|
|
1458
|
-
}
|
|
1459
|
-
set initiated_by(value) {
|
|
1460
|
-
pb_15.Message.setField(this, 10, value);
|
|
1461
|
-
}
|
|
1462
|
-
get project_name() {
|
|
1463
|
-
return pb_15.Message.getFieldWithDefault(this, 11, "");
|
|
1464
|
-
}
|
|
1465
|
-
set project_name(value) {
|
|
1466
|
-
pb_15.Message.setField(this, 11, value);
|
|
1467
|
-
}
|
|
1468
|
-
static fromObject(data) {
|
|
1469
|
-
const message = new _TestSuiteRun({});
|
|
1470
|
-
if (data.id != null) {
|
|
1471
|
-
message.id = data.id;
|
|
1472
|
-
}
|
|
1473
|
-
if (data.name != null) {
|
|
1474
|
-
message.name = data.name;
|
|
1475
|
-
}
|
|
1476
|
-
if (data.description != null) {
|
|
1477
|
-
message.description = data.description;
|
|
1478
|
-
}
|
|
1479
|
-
if (data.start_time != null) {
|
|
1480
|
-
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
1481
|
-
}
|
|
1482
|
-
if (data.end_time != null) {
|
|
1483
|
-
message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
|
|
1484
|
-
}
|
|
1485
|
-
if (data.duration != null) {
|
|
1486
|
-
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
1487
|
-
}
|
|
1488
|
-
if (data.status != null) {
|
|
1489
|
-
message.status = data.status;
|
|
1490
|
-
}
|
|
1491
|
-
if (typeof data.metadata == "object") {
|
|
1492
|
-
message.metadata = new Map(Object.entries(data.metadata));
|
|
1493
|
-
}
|
|
1494
|
-
if (data.test_suite_spec_id != null) {
|
|
1495
|
-
message.test_suite_spec_id = data.test_suite_spec_id;
|
|
1496
|
-
}
|
|
1497
|
-
if (data.initiated_by != null) {
|
|
1498
|
-
message.initiated_by = data.initiated_by;
|
|
1499
|
-
}
|
|
1500
|
-
if (data.project_name != null) {
|
|
1501
|
-
message.project_name = data.project_name;
|
|
1502
|
-
}
|
|
1503
|
-
return message;
|
|
1504
|
-
}
|
|
1505
|
-
toObject() {
|
|
1506
|
-
const data = {};
|
|
1507
|
-
if (this.id != null) {
|
|
1508
|
-
data.id = this.id;
|
|
1509
|
-
}
|
|
1510
|
-
if (this.name != null) {
|
|
1511
|
-
data.name = this.name;
|
|
1512
|
-
}
|
|
1513
|
-
if (this.description != null) {
|
|
1514
|
-
data.description = this.description;
|
|
1515
|
-
}
|
|
1516
|
-
if (this.start_time != null) {
|
|
1517
|
-
data.start_time = this.start_time.toObject();
|
|
1518
|
-
}
|
|
1519
|
-
if (this.end_time != null) {
|
|
1520
|
-
data.end_time = this.end_time.toObject();
|
|
1521
|
-
}
|
|
1522
|
-
if (this.duration != null) {
|
|
1523
|
-
data.duration = this.duration.toObject();
|
|
1524
|
-
}
|
|
1525
|
-
if (this.status != null) {
|
|
1526
|
-
data.status = this.status;
|
|
1527
|
-
}
|
|
1528
|
-
if (this.metadata != null) {
|
|
1529
|
-
data.metadata = Object.fromEntries(this.metadata);
|
|
1530
|
-
}
|
|
1531
|
-
if (this.test_suite_spec_id != null) {
|
|
1532
|
-
data.test_suite_spec_id = this.test_suite_spec_id;
|
|
1533
|
-
}
|
|
1534
|
-
if (this.initiated_by != null) {
|
|
1535
|
-
data.initiated_by = this.initiated_by;
|
|
1536
|
-
}
|
|
1537
|
-
if (this.project_name != null) {
|
|
1538
|
-
data.project_name = this.project_name;
|
|
1539
|
-
}
|
|
1540
|
-
return data;
|
|
1541
|
-
}
|
|
1542
|
-
serialize(w) {
|
|
1543
|
-
const writer = w || new pb_15.BinaryWriter();
|
|
1544
|
-
if (this.id.length)
|
|
1545
|
-
writer.writeString(1, this.id);
|
|
1546
|
-
if (this.name.length)
|
|
1547
|
-
writer.writeString(2, this.name);
|
|
1548
|
-
if (this.description.length)
|
|
1549
|
-
writer.writeString(3, this.description);
|
|
1550
|
-
if (this.has_start_time)
|
|
1551
|
-
writer.writeMessage(4, this.start_time, () => this.start_time.serialize(writer));
|
|
1552
|
-
if (this.has_end_time)
|
|
1553
|
-
writer.writeMessage(5, this.end_time, () => this.end_time.serialize(writer));
|
|
1554
|
-
if (this.has_duration)
|
|
1555
|
-
writer.writeMessage(6, this.duration, () => this.duration.serialize(writer));
|
|
1556
|
-
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
1557
|
-
writer.writeEnum(7, this.status);
|
|
1558
|
-
for (const [key, value] of this.metadata) {
|
|
1559
|
-
writer.writeMessage(8, this.metadata, () => {
|
|
1560
|
-
writer.writeString(1, key);
|
|
1561
|
-
writer.writeString(2, value);
|
|
1562
|
-
});
|
|
1563
|
-
}
|
|
1564
|
-
if (this.test_suite_spec_id.length)
|
|
1565
|
-
writer.writeString(9, this.test_suite_spec_id);
|
|
1566
|
-
if (this.initiated_by.length)
|
|
1567
|
-
writer.writeString(10, this.initiated_by);
|
|
1568
|
-
if (this.project_name.length)
|
|
1569
|
-
writer.writeString(11, this.project_name);
|
|
1570
|
-
if (!w)
|
|
1571
|
-
return writer.getResultBuffer();
|
|
1572
|
-
}
|
|
1573
|
-
static deserialize(bytes) {
|
|
1574
|
-
const reader = bytes instanceof pb_15.BinaryReader ? bytes : new pb_15.BinaryReader(bytes), message = new _TestSuiteRun();
|
|
1575
|
-
while (reader.nextField()) {
|
|
1576
|
-
if (reader.isEndGroup())
|
|
1577
|
-
break;
|
|
1578
|
-
switch (reader.getFieldNumber()) {
|
|
1579
|
-
case 1:
|
|
1580
|
-
message.id = reader.readString();
|
|
1581
|
-
break;
|
|
1582
|
-
case 2:
|
|
1583
|
-
message.name = reader.readString();
|
|
1584
|
-
break;
|
|
1585
|
-
case 3:
|
|
1586
|
-
message.description = reader.readString();
|
|
1587
|
-
break;
|
|
1588
|
-
case 4:
|
|
1589
|
-
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
1590
|
-
break;
|
|
1591
|
-
case 5:
|
|
1592
|
-
reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
|
|
1593
|
-
break;
|
|
1594
|
-
case 6:
|
|
1595
|
-
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
1596
|
-
break;
|
|
1597
|
-
case 7:
|
|
1598
|
-
message.status = reader.readEnum();
|
|
1599
|
-
break;
|
|
1600
|
-
case 8:
|
|
1601
|
-
reader.readMessage(message, () => pb_15.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
1602
|
-
break;
|
|
1603
|
-
case 9:
|
|
1604
|
-
message.test_suite_spec_id = reader.readString();
|
|
1605
|
-
break;
|
|
1606
|
-
case 10:
|
|
1607
|
-
message.initiated_by = reader.readString();
|
|
1608
|
-
break;
|
|
1609
|
-
case 11:
|
|
1610
|
-
message.project_name = reader.readString();
|
|
1167
|
+
message.category = reader.readString();
|
|
1611
1168
|
break;
|
|
1612
1169
|
default:
|
|
1613
1170
|
reader.skipField();
|
|
@@ -1619,17 +1176,36 @@ var testsystem3;
|
|
|
1619
1176
|
return this.serialize();
|
|
1620
1177
|
}
|
|
1621
1178
|
static deserializeBinary(bytes) {
|
|
1622
|
-
return
|
|
1179
|
+
return _StepRun.deserialize(bytes);
|
|
1623
1180
|
}
|
|
1624
1181
|
};
|
|
1625
|
-
|
|
1626
|
-
let
|
|
1627
|
-
entities2.
|
|
1628
|
-
|
|
1182
|
+
_one_of_decls2 = new WeakMap();
|
|
1183
|
+
let StepRun = _StepRun;
|
|
1184
|
+
entities2.StepRun = _StepRun;
|
|
1185
|
+
})(entities = v12.entities || (v12.entities = {}));
|
|
1186
|
+
})(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
|
|
1187
|
+
})(testsystem2 || (testsystem2 = {}));
|
|
1188
|
+
|
|
1189
|
+
// lib/testsystem/v1/entities/test_suite.ts
|
|
1190
|
+
import * as pb_15 from "google-protobuf";
|
|
1191
|
+
var testsystem3;
|
|
1192
|
+
((testsystem7) => {
|
|
1193
|
+
let v1;
|
|
1194
|
+
((v12) => {
|
|
1195
|
+
let entities;
|
|
1196
|
+
((entities2) => {
|
|
1197
|
+
var _one_of_decls;
|
|
1198
|
+
let SuiteType;
|
|
1199
|
+
((SuiteType2) => {
|
|
1200
|
+
SuiteType2[SuiteType2["ROOT"] = 0] = "ROOT";
|
|
1201
|
+
SuiteType2[SuiteType2["PROJECT"] = 1] = "PROJECT";
|
|
1202
|
+
SuiteType2[SuiteType2["SUBSUITE"] = 2] = "SUBSUITE";
|
|
1203
|
+
})(SuiteType = entities2.SuiteType || (entities2.SuiteType = {}));
|
|
1204
|
+
const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
|
|
1629
1205
|
constructor(data) {
|
|
1630
1206
|
super();
|
|
1631
|
-
__privateAdd(this,
|
|
1632
|
-
pb_15.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
1207
|
+
__privateAdd(this, _one_of_decls, []);
|
|
1208
|
+
pb_15.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [13, 14, 19, 20], __privateGet(this, _one_of_decls));
|
|
1633
1209
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
1634
1210
|
if ("id" in data && data.id != void 0) {
|
|
1635
1211
|
this.id = data.id;
|
|
@@ -1637,38 +1213,59 @@ var testsystem3;
|
|
|
1637
1213
|
if ("name" in data && data.name != void 0) {
|
|
1638
1214
|
this.name = data.name;
|
|
1639
1215
|
}
|
|
1216
|
+
if ("description" in data && data.description != void 0) {
|
|
1217
|
+
this.description = data.description;
|
|
1218
|
+
}
|
|
1640
1219
|
if ("run_id" in data && data.run_id != void 0) {
|
|
1641
1220
|
this.run_id = data.run_id;
|
|
1642
1221
|
}
|
|
1643
|
-
if ("
|
|
1644
|
-
this.
|
|
1222
|
+
if ("start_time" in data && data.start_time != void 0) {
|
|
1223
|
+
this.start_time = data.start_time;
|
|
1645
1224
|
}
|
|
1646
|
-
if ("
|
|
1647
|
-
this.
|
|
1225
|
+
if ("end_time" in data && data.end_time != void 0) {
|
|
1226
|
+
this.end_time = data.end_time;
|
|
1648
1227
|
}
|
|
1649
|
-
if ("
|
|
1650
|
-
this.
|
|
1228
|
+
if ("duration" in data && data.duration != void 0) {
|
|
1229
|
+
this.duration = data.duration;
|
|
1651
1230
|
}
|
|
1652
|
-
if ("
|
|
1653
|
-
this.
|
|
1231
|
+
if ("status" in data && data.status != void 0) {
|
|
1232
|
+
this.status = data.status;
|
|
1654
1233
|
}
|
|
1655
1234
|
if ("metadata" in data && data.metadata != void 0) {
|
|
1656
1235
|
this.metadata = data.metadata;
|
|
1657
1236
|
}
|
|
1237
|
+
if ("location" in data && data.location != void 0) {
|
|
1238
|
+
this.location = data.location;
|
|
1239
|
+
}
|
|
1658
1240
|
if ("type" in data && data.type != void 0) {
|
|
1659
1241
|
this.type = data.type;
|
|
1660
1242
|
}
|
|
1661
1243
|
if ("parent_suite_id" in data && data.parent_suite_id != void 0) {
|
|
1662
1244
|
this.parent_suite_id = data.parent_suite_id;
|
|
1663
1245
|
}
|
|
1246
|
+
if ("test_case_ids" in data && data.test_case_ids != void 0) {
|
|
1247
|
+
this.test_case_ids = data.test_case_ids;
|
|
1248
|
+
}
|
|
1249
|
+
if ("sub_suite_ids" in data && data.sub_suite_ids != void 0) {
|
|
1250
|
+
this.sub_suite_ids = data.sub_suite_ids;
|
|
1251
|
+
}
|
|
1252
|
+
if ("project" in data && data.project != void 0) {
|
|
1253
|
+
this.project = data.project;
|
|
1254
|
+
}
|
|
1255
|
+
if ("initiated_by" in data && data.initiated_by != void 0) {
|
|
1256
|
+
this.initiated_by = data.initiated_by;
|
|
1257
|
+
}
|
|
1664
1258
|
if ("author" in data && data.author != void 0) {
|
|
1665
1259
|
this.author = data.author;
|
|
1666
1260
|
}
|
|
1667
1261
|
if ("owner" in data && data.owner != void 0) {
|
|
1668
1262
|
this.owner = data.owner;
|
|
1669
1263
|
}
|
|
1670
|
-
if ("
|
|
1671
|
-
this.
|
|
1264
|
+
if ("test_cases" in data && data.test_cases != void 0) {
|
|
1265
|
+
this.test_cases = data.test_cases;
|
|
1266
|
+
}
|
|
1267
|
+
if ("sub_suites" in data && data.sub_suites != void 0) {
|
|
1268
|
+
this.sub_suites = data.sub_suites;
|
|
1672
1269
|
}
|
|
1673
1270
|
}
|
|
1674
1271
|
if (!this.metadata)
|
|
@@ -1686,112 +1283,184 @@ var testsystem3;
|
|
|
1686
1283
|
set name(value) {
|
|
1687
1284
|
pb_15.Message.setField(this, 2, value);
|
|
1688
1285
|
}
|
|
1689
|
-
get
|
|
1286
|
+
get description() {
|
|
1690
1287
|
return pb_15.Message.getFieldWithDefault(this, 3, "");
|
|
1691
1288
|
}
|
|
1692
|
-
set
|
|
1289
|
+
set description(value) {
|
|
1693
1290
|
pb_15.Message.setField(this, 3, value);
|
|
1694
1291
|
}
|
|
1695
|
-
get
|
|
1696
|
-
return pb_15.Message.getFieldWithDefault(this, 4,
|
|
1292
|
+
get run_id() {
|
|
1293
|
+
return pb_15.Message.getFieldWithDefault(this, 4, "");
|
|
1697
1294
|
}
|
|
1698
|
-
set
|
|
1295
|
+
set run_id(value) {
|
|
1699
1296
|
pb_15.Message.setField(this, 4, value);
|
|
1700
1297
|
}
|
|
1701
|
-
get
|
|
1702
|
-
return pb_15.Message.
|
|
1298
|
+
get start_time() {
|
|
1299
|
+
return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 5);
|
|
1703
1300
|
}
|
|
1704
|
-
set
|
|
1705
|
-
pb_15.Message.
|
|
1301
|
+
set start_time(value) {
|
|
1302
|
+
pb_15.Message.setWrapperField(this, 5, value);
|
|
1706
1303
|
}
|
|
1707
|
-
get
|
|
1708
|
-
return pb_15.Message.
|
|
1304
|
+
get has_start_time() {
|
|
1305
|
+
return pb_15.Message.getField(this, 5) != null;
|
|
1709
1306
|
}
|
|
1710
|
-
|
|
1711
|
-
pb_15.Message.
|
|
1307
|
+
get end_time() {
|
|
1308
|
+
return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
|
|
1712
1309
|
}
|
|
1713
|
-
|
|
1714
|
-
|
|
1310
|
+
set end_time(value) {
|
|
1311
|
+
pb_15.Message.setWrapperField(this, 6, value);
|
|
1715
1312
|
}
|
|
1716
|
-
|
|
1717
|
-
pb_15.Message.
|
|
1313
|
+
get has_end_time() {
|
|
1314
|
+
return pb_15.Message.getField(this, 6) != null;
|
|
1315
|
+
}
|
|
1316
|
+
get duration() {
|
|
1317
|
+
return pb_15.Message.getWrapperField(this, google2.protobuf.Duration, 7);
|
|
1318
|
+
}
|
|
1319
|
+
set duration(value) {
|
|
1320
|
+
pb_15.Message.setWrapperField(this, 7, value);
|
|
1321
|
+
}
|
|
1322
|
+
get has_duration() {
|
|
1323
|
+
return pb_15.Message.getField(this, 7) != null;
|
|
1324
|
+
}
|
|
1325
|
+
get status() {
|
|
1326
|
+
return pb_15.Message.getFieldWithDefault(this, 8, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
1327
|
+
}
|
|
1328
|
+
set status(value) {
|
|
1329
|
+
pb_15.Message.setField(this, 8, value);
|
|
1718
1330
|
}
|
|
1719
1331
|
get metadata() {
|
|
1720
|
-
return pb_15.Message.getField(this,
|
|
1332
|
+
return pb_15.Message.getField(this, 9);
|
|
1721
1333
|
}
|
|
1722
1334
|
set metadata(value) {
|
|
1723
|
-
pb_15.Message.setField(this,
|
|
1335
|
+
pb_15.Message.setField(this, 9, value);
|
|
1336
|
+
}
|
|
1337
|
+
get location() {
|
|
1338
|
+
return pb_15.Message.getFieldWithDefault(this, 10, "");
|
|
1339
|
+
}
|
|
1340
|
+
set location(value) {
|
|
1341
|
+
pb_15.Message.setField(this, 10, value);
|
|
1724
1342
|
}
|
|
1725
1343
|
get type() {
|
|
1726
|
-
return pb_15.Message.getFieldWithDefault(this,
|
|
1344
|
+
return pb_15.Message.getFieldWithDefault(this, 11, 0 /* ROOT */);
|
|
1727
1345
|
}
|
|
1728
1346
|
set type(value) {
|
|
1729
|
-
pb_15.Message.setField(this,
|
|
1347
|
+
pb_15.Message.setField(this, 11, value);
|
|
1730
1348
|
}
|
|
1731
1349
|
get parent_suite_id() {
|
|
1732
|
-
return pb_15.Message.getFieldWithDefault(this,
|
|
1350
|
+
return pb_15.Message.getFieldWithDefault(this, 12, "");
|
|
1733
1351
|
}
|
|
1734
1352
|
set parent_suite_id(value) {
|
|
1735
|
-
pb_15.Message.setField(this,
|
|
1353
|
+
pb_15.Message.setField(this, 12, value);
|
|
1354
|
+
}
|
|
1355
|
+
get test_case_ids() {
|
|
1356
|
+
return pb_15.Message.getFieldWithDefault(this, 13, []);
|
|
1357
|
+
}
|
|
1358
|
+
set test_case_ids(value) {
|
|
1359
|
+
pb_15.Message.setField(this, 13, value);
|
|
1360
|
+
}
|
|
1361
|
+
get sub_suite_ids() {
|
|
1362
|
+
return pb_15.Message.getFieldWithDefault(this, 14, []);
|
|
1363
|
+
}
|
|
1364
|
+
set sub_suite_ids(value) {
|
|
1365
|
+
pb_15.Message.setField(this, 14, value);
|
|
1366
|
+
}
|
|
1367
|
+
get project() {
|
|
1368
|
+
return pb_15.Message.getFieldWithDefault(this, 15, "");
|
|
1369
|
+
}
|
|
1370
|
+
set project(value) {
|
|
1371
|
+
pb_15.Message.setField(this, 15, value);
|
|
1372
|
+
}
|
|
1373
|
+
get initiated_by() {
|
|
1374
|
+
return pb_15.Message.getFieldWithDefault(this, 16, "");
|
|
1375
|
+
}
|
|
1376
|
+
set initiated_by(value) {
|
|
1377
|
+
pb_15.Message.setField(this, 16, value);
|
|
1736
1378
|
}
|
|
1737
1379
|
get author() {
|
|
1738
|
-
return pb_15.Message.getFieldWithDefault(this,
|
|
1380
|
+
return pb_15.Message.getFieldWithDefault(this, 17, "");
|
|
1739
1381
|
}
|
|
1740
1382
|
set author(value) {
|
|
1741
|
-
pb_15.Message.setField(this,
|
|
1383
|
+
pb_15.Message.setField(this, 17, value);
|
|
1742
1384
|
}
|
|
1743
1385
|
get owner() {
|
|
1744
|
-
return pb_15.Message.getFieldWithDefault(this,
|
|
1386
|
+
return pb_15.Message.getFieldWithDefault(this, 18, "");
|
|
1745
1387
|
}
|
|
1746
1388
|
set owner(value) {
|
|
1747
|
-
pb_15.Message.setField(this,
|
|
1389
|
+
pb_15.Message.setField(this, 18, value);
|
|
1748
1390
|
}
|
|
1749
|
-
get
|
|
1750
|
-
return pb_15.Message.
|
|
1391
|
+
get test_cases() {
|
|
1392
|
+
return pb_15.Message.getRepeatedWrapperField(this, testsystem2.v1.entities.TestCaseRun, 19);
|
|
1751
1393
|
}
|
|
1752
|
-
set
|
|
1753
|
-
pb_15.Message.
|
|
1394
|
+
set test_cases(value) {
|
|
1395
|
+
pb_15.Message.setRepeatedWrapperField(this, 19, value);
|
|
1396
|
+
}
|
|
1397
|
+
get sub_suites() {
|
|
1398
|
+
return pb_15.Message.getRepeatedWrapperField(this, _TestSuiteRun, 20);
|
|
1399
|
+
}
|
|
1400
|
+
set sub_suites(value) {
|
|
1401
|
+
pb_15.Message.setRepeatedWrapperField(this, 20, value);
|
|
1754
1402
|
}
|
|
1755
1403
|
static fromObject(data) {
|
|
1756
|
-
const message = new
|
|
1404
|
+
const message = new _TestSuiteRun({});
|
|
1757
1405
|
if (data.id != null) {
|
|
1758
1406
|
message.id = data.id;
|
|
1759
1407
|
}
|
|
1760
1408
|
if (data.name != null) {
|
|
1761
1409
|
message.name = data.name;
|
|
1762
1410
|
}
|
|
1411
|
+
if (data.description != null) {
|
|
1412
|
+
message.description = data.description;
|
|
1413
|
+
}
|
|
1763
1414
|
if (data.run_id != null) {
|
|
1764
1415
|
message.run_id = data.run_id;
|
|
1765
1416
|
}
|
|
1766
|
-
if (data.
|
|
1767
|
-
message.
|
|
1417
|
+
if (data.start_time != null) {
|
|
1418
|
+
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
1768
1419
|
}
|
|
1769
|
-
if (data.
|
|
1770
|
-
message.
|
|
1420
|
+
if (data.end_time != null) {
|
|
1421
|
+
message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
|
|
1771
1422
|
}
|
|
1772
|
-
if (data.
|
|
1773
|
-
message.
|
|
1423
|
+
if (data.duration != null) {
|
|
1424
|
+
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
1774
1425
|
}
|
|
1775
|
-
if (data.
|
|
1776
|
-
message.
|
|
1426
|
+
if (data.status != null) {
|
|
1427
|
+
message.status = data.status;
|
|
1777
1428
|
}
|
|
1778
1429
|
if (typeof data.metadata == "object") {
|
|
1779
1430
|
message.metadata = new Map(Object.entries(data.metadata));
|
|
1780
1431
|
}
|
|
1432
|
+
if (data.location != null) {
|
|
1433
|
+
message.location = data.location;
|
|
1434
|
+
}
|
|
1781
1435
|
if (data.type != null) {
|
|
1782
1436
|
message.type = data.type;
|
|
1783
1437
|
}
|
|
1784
1438
|
if (data.parent_suite_id != null) {
|
|
1785
1439
|
message.parent_suite_id = data.parent_suite_id;
|
|
1786
1440
|
}
|
|
1441
|
+
if (data.test_case_ids != null) {
|
|
1442
|
+
message.test_case_ids = data.test_case_ids;
|
|
1443
|
+
}
|
|
1444
|
+
if (data.sub_suite_ids != null) {
|
|
1445
|
+
message.sub_suite_ids = data.sub_suite_ids;
|
|
1446
|
+
}
|
|
1447
|
+
if (data.project != null) {
|
|
1448
|
+
message.project = data.project;
|
|
1449
|
+
}
|
|
1450
|
+
if (data.initiated_by != null) {
|
|
1451
|
+
message.initiated_by = data.initiated_by;
|
|
1452
|
+
}
|
|
1787
1453
|
if (data.author != null) {
|
|
1788
1454
|
message.author = data.author;
|
|
1789
1455
|
}
|
|
1790
1456
|
if (data.owner != null) {
|
|
1791
1457
|
message.owner = data.owner;
|
|
1792
1458
|
}
|
|
1793
|
-
if (data.
|
|
1794
|
-
message.
|
|
1459
|
+
if (data.test_cases != null) {
|
|
1460
|
+
message.test_cases = data.test_cases.map((item) => testsystem2.v1.entities.TestCaseRun.fromObject(item));
|
|
1461
|
+
}
|
|
1462
|
+
if (data.sub_suites != null) {
|
|
1463
|
+
message.sub_suites = data.sub_suites.map((item) => _TestSuiteRun.fromObject(item));
|
|
1795
1464
|
}
|
|
1796
1465
|
return message;
|
|
1797
1466
|
}
|
|
@@ -1803,38 +1472,59 @@ var testsystem3;
|
|
|
1803
1472
|
if (this.name != null) {
|
|
1804
1473
|
data.name = this.name;
|
|
1805
1474
|
}
|
|
1475
|
+
if (this.description != null) {
|
|
1476
|
+
data.description = this.description;
|
|
1477
|
+
}
|
|
1806
1478
|
if (this.run_id != null) {
|
|
1807
1479
|
data.run_id = this.run_id;
|
|
1808
1480
|
}
|
|
1809
|
-
if (this.
|
|
1810
|
-
data.
|
|
1481
|
+
if (this.start_time != null) {
|
|
1482
|
+
data.start_time = this.start_time.toObject();
|
|
1811
1483
|
}
|
|
1812
|
-
if (this.
|
|
1813
|
-
data.
|
|
1484
|
+
if (this.end_time != null) {
|
|
1485
|
+
data.end_time = this.end_time.toObject();
|
|
1814
1486
|
}
|
|
1815
|
-
if (this.
|
|
1816
|
-
data.
|
|
1487
|
+
if (this.duration != null) {
|
|
1488
|
+
data.duration = this.duration.toObject();
|
|
1817
1489
|
}
|
|
1818
|
-
if (this.
|
|
1819
|
-
data.
|
|
1490
|
+
if (this.status != null) {
|
|
1491
|
+
data.status = this.status;
|
|
1820
1492
|
}
|
|
1821
1493
|
if (this.metadata != null) {
|
|
1822
1494
|
data.metadata = Object.fromEntries(this.metadata);
|
|
1823
1495
|
}
|
|
1496
|
+
if (this.location != null) {
|
|
1497
|
+
data.location = this.location;
|
|
1498
|
+
}
|
|
1824
1499
|
if (this.type != null) {
|
|
1825
1500
|
data.type = this.type;
|
|
1826
1501
|
}
|
|
1827
1502
|
if (this.parent_suite_id != null) {
|
|
1828
1503
|
data.parent_suite_id = this.parent_suite_id;
|
|
1829
1504
|
}
|
|
1505
|
+
if (this.test_case_ids != null) {
|
|
1506
|
+
data.test_case_ids = this.test_case_ids;
|
|
1507
|
+
}
|
|
1508
|
+
if (this.sub_suite_ids != null) {
|
|
1509
|
+
data.sub_suite_ids = this.sub_suite_ids;
|
|
1510
|
+
}
|
|
1511
|
+
if (this.project != null) {
|
|
1512
|
+
data.project = this.project;
|
|
1513
|
+
}
|
|
1514
|
+
if (this.initiated_by != null) {
|
|
1515
|
+
data.initiated_by = this.initiated_by;
|
|
1516
|
+
}
|
|
1830
1517
|
if (this.author != null) {
|
|
1831
1518
|
data.author = this.author;
|
|
1832
1519
|
}
|
|
1833
1520
|
if (this.owner != null) {
|
|
1834
1521
|
data.owner = this.owner;
|
|
1835
1522
|
}
|
|
1836
|
-
if (this.
|
|
1837
|
-
data.
|
|
1523
|
+
if (this.test_cases != null) {
|
|
1524
|
+
data.test_cases = this.test_cases.map((item) => item.toObject());
|
|
1525
|
+
}
|
|
1526
|
+
if (this.sub_suites != null) {
|
|
1527
|
+
data.sub_suites = this.sub_suites.map((item) => item.toObject());
|
|
1838
1528
|
}
|
|
1839
1529
|
return data;
|
|
1840
1530
|
}
|
|
@@ -1844,37 +1534,51 @@ var testsystem3;
|
|
|
1844
1534
|
writer.writeString(1, this.id);
|
|
1845
1535
|
if (this.name.length)
|
|
1846
1536
|
writer.writeString(2, this.name);
|
|
1847
|
-
if (this.run_id.length)
|
|
1848
|
-
writer.writeString(3, this.run_id);
|
|
1849
|
-
if (this.test_spec_ids.length)
|
|
1850
|
-
writer.writeRepeatedString(4, this.test_spec_ids);
|
|
1851
|
-
if (this.sub_suite_ids.length)
|
|
1852
|
-
writer.writeRepeatedString(5, this.sub_suite_ids);
|
|
1853
1537
|
if (this.description.length)
|
|
1854
|
-
writer.writeString(
|
|
1855
|
-
if (this.
|
|
1856
|
-
writer.writeString(
|
|
1538
|
+
writer.writeString(3, this.description);
|
|
1539
|
+
if (this.run_id.length)
|
|
1540
|
+
writer.writeString(4, this.run_id);
|
|
1541
|
+
if (this.has_start_time)
|
|
1542
|
+
writer.writeMessage(5, this.start_time, () => this.start_time.serialize(writer));
|
|
1543
|
+
if (this.has_end_time)
|
|
1544
|
+
writer.writeMessage(6, this.end_time, () => this.end_time.serialize(writer));
|
|
1545
|
+
if (this.has_duration)
|
|
1546
|
+
writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
|
|
1547
|
+
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
1548
|
+
writer.writeEnum(8, this.status);
|
|
1857
1549
|
for (const [key, value] of this.metadata) {
|
|
1858
|
-
writer.writeMessage(
|
|
1550
|
+
writer.writeMessage(9, this.metadata, () => {
|
|
1859
1551
|
writer.writeString(1, key);
|
|
1860
1552
|
writer.writeString(2, value);
|
|
1861
1553
|
});
|
|
1862
1554
|
}
|
|
1555
|
+
if (this.location.length)
|
|
1556
|
+
writer.writeString(10, this.location);
|
|
1863
1557
|
if (this.type != 0 /* ROOT */)
|
|
1864
|
-
writer.writeEnum(
|
|
1558
|
+
writer.writeEnum(11, this.type);
|
|
1865
1559
|
if (this.parent_suite_id.length)
|
|
1866
|
-
writer.writeString(
|
|
1560
|
+
writer.writeString(12, this.parent_suite_id);
|
|
1561
|
+
if (this.test_case_ids.length)
|
|
1562
|
+
writer.writeRepeatedString(13, this.test_case_ids);
|
|
1563
|
+
if (this.sub_suite_ids.length)
|
|
1564
|
+
writer.writeRepeatedString(14, this.sub_suite_ids);
|
|
1565
|
+
if (this.project.length)
|
|
1566
|
+
writer.writeString(15, this.project);
|
|
1567
|
+
if (this.initiated_by.length)
|
|
1568
|
+
writer.writeString(16, this.initiated_by);
|
|
1867
1569
|
if (this.author.length)
|
|
1868
|
-
writer.writeString(
|
|
1570
|
+
writer.writeString(17, this.author);
|
|
1869
1571
|
if (this.owner.length)
|
|
1870
|
-
writer.writeString(
|
|
1871
|
-
if (this.
|
|
1872
|
-
writer.
|
|
1572
|
+
writer.writeString(18, this.owner);
|
|
1573
|
+
if (this.test_cases.length)
|
|
1574
|
+
writer.writeRepeatedMessage(19, this.test_cases, (item) => item.serialize(writer));
|
|
1575
|
+
if (this.sub_suites.length)
|
|
1576
|
+
writer.writeRepeatedMessage(20, this.sub_suites, (item) => item.serialize(writer));
|
|
1873
1577
|
if (!w)
|
|
1874
1578
|
return writer.getResultBuffer();
|
|
1875
1579
|
}
|
|
1876
1580
|
static deserialize(bytes) {
|
|
1877
|
-
const reader = bytes instanceof pb_15.BinaryReader ? bytes : new pb_15.BinaryReader(bytes), message = new
|
|
1581
|
+
const reader = bytes instanceof pb_15.BinaryReader ? bytes : new pb_15.BinaryReader(bytes), message = new _TestSuiteRun();
|
|
1878
1582
|
while (reader.nextField()) {
|
|
1879
1583
|
if (reader.isEndGroup())
|
|
1880
1584
|
break;
|
|
@@ -1886,38 +1590,59 @@ var testsystem3;
|
|
|
1886
1590
|
message.name = reader.readString();
|
|
1887
1591
|
break;
|
|
1888
1592
|
case 3:
|
|
1889
|
-
message.
|
|
1593
|
+
message.description = reader.readString();
|
|
1890
1594
|
break;
|
|
1891
1595
|
case 4:
|
|
1892
|
-
|
|
1596
|
+
message.run_id = reader.readString();
|
|
1893
1597
|
break;
|
|
1894
1598
|
case 5:
|
|
1895
|
-
|
|
1599
|
+
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
1896
1600
|
break;
|
|
1897
1601
|
case 6:
|
|
1898
|
-
message.
|
|
1602
|
+
reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
|
|
1899
1603
|
break;
|
|
1900
1604
|
case 7:
|
|
1901
|
-
message.
|
|
1605
|
+
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
1902
1606
|
break;
|
|
1903
1607
|
case 8:
|
|
1904
|
-
|
|
1608
|
+
message.status = reader.readEnum();
|
|
1905
1609
|
break;
|
|
1906
1610
|
case 9:
|
|
1907
|
-
message.
|
|
1611
|
+
reader.readMessage(message, () => pb_15.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
1908
1612
|
break;
|
|
1909
1613
|
case 10:
|
|
1910
|
-
message.
|
|
1614
|
+
message.location = reader.readString();
|
|
1911
1615
|
break;
|
|
1912
1616
|
case 11:
|
|
1913
|
-
message.
|
|
1617
|
+
message.type = reader.readEnum();
|
|
1914
1618
|
break;
|
|
1915
1619
|
case 12:
|
|
1916
|
-
message.
|
|
1620
|
+
message.parent_suite_id = reader.readString();
|
|
1917
1621
|
break;
|
|
1918
1622
|
case 13:
|
|
1623
|
+
pb_15.Message.addToRepeatedField(message, 13, reader.readString());
|
|
1624
|
+
break;
|
|
1625
|
+
case 14:
|
|
1626
|
+
pb_15.Message.addToRepeatedField(message, 14, reader.readString());
|
|
1627
|
+
break;
|
|
1628
|
+
case 15:
|
|
1919
1629
|
message.project = reader.readString();
|
|
1920
1630
|
break;
|
|
1631
|
+
case 16:
|
|
1632
|
+
message.initiated_by = reader.readString();
|
|
1633
|
+
break;
|
|
1634
|
+
case 17:
|
|
1635
|
+
message.author = reader.readString();
|
|
1636
|
+
break;
|
|
1637
|
+
case 18:
|
|
1638
|
+
message.owner = reader.readString();
|
|
1639
|
+
break;
|
|
1640
|
+
case 19:
|
|
1641
|
+
reader.readMessage(message.test_cases, () => pb_15.Message.addToRepeatedWrapperField(message, 19, testsystem2.v1.entities.TestCaseRun.deserialize(reader), testsystem2.v1.entities.TestCaseRun));
|
|
1642
|
+
break;
|
|
1643
|
+
case 20:
|
|
1644
|
+
reader.readMessage(message.sub_suites, () => pb_15.Message.addToRepeatedWrapperField(message, 20, _TestSuiteRun.deserialize(reader), _TestSuiteRun));
|
|
1645
|
+
break;
|
|
1921
1646
|
default:
|
|
1922
1647
|
reader.skipField();
|
|
1923
1648
|
}
|
|
@@ -1928,12 +1653,12 @@ var testsystem3;
|
|
|
1928
1653
|
return this.serialize();
|
|
1929
1654
|
}
|
|
1930
1655
|
static deserializeBinary(bytes) {
|
|
1931
|
-
return
|
|
1656
|
+
return _TestSuiteRun.deserialize(bytes);
|
|
1932
1657
|
}
|
|
1933
1658
|
};
|
|
1934
|
-
|
|
1935
|
-
let
|
|
1936
|
-
entities2.
|
|
1659
|
+
_one_of_decls = new WeakMap();
|
|
1660
|
+
let TestSuiteRun = _TestSuiteRun;
|
|
1661
|
+
entities2.TestSuiteRun = _TestSuiteRun;
|
|
1937
1662
|
})(entities = v12.entities || (v12.entities = {}));
|
|
1938
1663
|
})(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
|
|
1939
1664
|
})(testsystem3 || (testsystem3 = {}));
|