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