@pulumi/pulumi 3.111.2-alpha.xdb8e097 → 3.111.2-alpha.xe3d0dec
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/package.json +1 -1
- package/proto/language_pb.d.ts +0 -3
- package/proto/language_pb.js +5 -35
- package/proto/testing/language_pb.d.ts +36 -0
- package/proto/testing/language_pb.js +304 -2
- package/tests/automation/localWorkspace.spec.js +5 -2
- package/tests/automation/localWorkspace.spec.js.map +1 -1
- package/tests/runtime/closure-integreation-tests.js +129 -0
- package/tests/runtime/closure-integreation-tests.js.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/tests/runtime/closureLoader.spec.js +0 -36
- package/tests/runtime/closureLoader.spec.js.map +0 -1
- package/tests/runtime/deploymentOnlyModule/config.d.ts +0 -28
- package/tests/runtime/deploymentOnlyModule/config.js +0 -56
- package/tests/runtime/deploymentOnlyModule/config.js.map +0 -1
- package/tests/runtime/deploymentOnlyModule/index.d.ts +0 -3
- package/tests/runtime/deploymentOnlyModule/index.js +0 -26
- package/tests/runtime/deploymentOnlyModule/index.js.map +0 -1
- package/tests/runtime/deploymentOnlyModule/runtimeConfig.d.ts +0 -14
- package/tests/runtime/deploymentOnlyModule/runtimeConfig.js +0 -57
- package/tests/runtime/deploymentOnlyModule/runtimeConfig.js.map +0 -1
- package/tests/runtime/jsClosureCases_10_4.js +0 -31
- package/tests/runtime/jsClosureCases_8.js +0 -91
- package/tests/runtime/tsClosureCases.d.ts +0 -1
- package/tests/runtime/tsClosureCases.js +0 -6550
- package/tests/runtime/tsClosureCases.js.map +0 -1
- /package/tests/runtime/{closureLoader.spec.d.ts → closure-integreation-tests.d.ts} +0 -0
package/package.json
CHANGED
package/proto/language_pb.d.ts
CHANGED
|
@@ -609,8 +609,6 @@ export namespace GeneratePackageResponse {
|
|
|
609
609
|
export class PackRequest extends jspb.Message {
|
|
610
610
|
getPackageDirectory(): string;
|
|
611
611
|
setPackageDirectory(value: string): PackRequest;
|
|
612
|
-
getVersion(): string;
|
|
613
|
-
setVersion(value: string): PackRequest;
|
|
614
612
|
getDestinationDirectory(): string;
|
|
615
613
|
setDestinationDirectory(value: string): PackRequest;
|
|
616
614
|
|
|
@@ -627,7 +625,6 @@ export class PackRequest extends jspb.Message {
|
|
|
627
625
|
export namespace PackRequest {
|
|
628
626
|
export type AsObject = {
|
|
629
627
|
packageDirectory: string,
|
|
630
|
-
version: string,
|
|
631
628
|
destinationDirectory: string,
|
|
632
629
|
}
|
|
633
630
|
}
|
package/proto/language_pb.js
CHANGED
|
@@ -4951,8 +4951,7 @@ proto.pulumirpc.PackRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
4951
4951
|
proto.pulumirpc.PackRequest.toObject = function(includeInstance, msg) {
|
|
4952
4952
|
var f, obj = {
|
|
4953
4953
|
packageDirectory: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4954
|
-
|
|
4955
|
-
destinationDirectory: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
4954
|
+
destinationDirectory: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
4956
4955
|
};
|
|
4957
4956
|
|
|
4958
4957
|
if (includeInstance) {
|
|
@@ -4994,10 +4993,6 @@ proto.pulumirpc.PackRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
|
4994
4993
|
msg.setPackageDirectory(value);
|
|
4995
4994
|
break;
|
|
4996
4995
|
case 2:
|
|
4997
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4998
|
-
msg.setVersion(value);
|
|
4999
|
-
break;
|
|
5000
|
-
case 3:
|
|
5001
4996
|
var value = /** @type {string} */ (reader.readString());
|
|
5002
4997
|
msg.setDestinationDirectory(value);
|
|
5003
4998
|
break;
|
|
@@ -5037,17 +5032,10 @@ proto.pulumirpc.PackRequest.serializeBinaryToWriter = function(message, writer)
|
|
|
5037
5032
|
f
|
|
5038
5033
|
);
|
|
5039
5034
|
}
|
|
5040
|
-
f = message.getVersion();
|
|
5041
|
-
if (f.length > 0) {
|
|
5042
|
-
writer.writeString(
|
|
5043
|
-
2,
|
|
5044
|
-
f
|
|
5045
|
-
);
|
|
5046
|
-
}
|
|
5047
5035
|
f = message.getDestinationDirectory();
|
|
5048
5036
|
if (f.length > 0) {
|
|
5049
5037
|
writer.writeString(
|
|
5050
|
-
|
|
5038
|
+
2,
|
|
5051
5039
|
f
|
|
5052
5040
|
);
|
|
5053
5041
|
}
|
|
@@ -5073,29 +5061,11 @@ proto.pulumirpc.PackRequest.prototype.setPackageDirectory = function(value) {
|
|
|
5073
5061
|
|
|
5074
5062
|
|
|
5075
5063
|
/**
|
|
5076
|
-
* optional string
|
|
5077
|
-
* @return {string}
|
|
5078
|
-
*/
|
|
5079
|
-
proto.pulumirpc.PackRequest.prototype.getVersion = function() {
|
|
5080
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5081
|
-
};
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
/**
|
|
5085
|
-
* @param {string} value
|
|
5086
|
-
* @return {!proto.pulumirpc.PackRequest} returns this
|
|
5087
|
-
*/
|
|
5088
|
-
proto.pulumirpc.PackRequest.prototype.setVersion = function(value) {
|
|
5089
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5090
|
-
};
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
/**
|
|
5094
|
-
* optional string destination_directory = 3;
|
|
5064
|
+
* optional string destination_directory = 2;
|
|
5095
5065
|
* @return {string}
|
|
5096
5066
|
*/
|
|
5097
5067
|
proto.pulumirpc.PackRequest.prototype.getDestinationDirectory = function() {
|
|
5098
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
5068
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5099
5069
|
};
|
|
5100
5070
|
|
|
5101
5071
|
|
|
@@ -5104,7 +5074,7 @@ proto.pulumirpc.PackRequest.prototype.getDestinationDirectory = function() {
|
|
|
5104
5074
|
* @return {!proto.pulumirpc.PackRequest} returns this
|
|
5105
5075
|
*/
|
|
5106
5076
|
proto.pulumirpc.PackRequest.prototype.setDestinationDirectory = function(value) {
|
|
5107
|
-
return jspb.Message.setProto3StringField(this,
|
|
5077
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5108
5078
|
};
|
|
5109
5079
|
|
|
5110
5080
|
|
|
@@ -56,6 +56,12 @@ export class PrepareLanguageTestsRequest extends jspb.Message {
|
|
|
56
56
|
setTemporaryDirectory(value: string): PrepareLanguageTestsRequest;
|
|
57
57
|
getCoreSdkDirectory(): string;
|
|
58
58
|
setCoreSdkDirectory(value: string): PrepareLanguageTestsRequest;
|
|
59
|
+
getCoreSdkVersion(): string;
|
|
60
|
+
setCoreSdkVersion(value: string): PrepareLanguageTestsRequest;
|
|
61
|
+
clearSnapshotEditsList(): void;
|
|
62
|
+
getSnapshotEditsList(): Array<PrepareLanguageTestsRequest.Replacement>;
|
|
63
|
+
setSnapshotEditsList(value: Array<PrepareLanguageTestsRequest.Replacement>): PrepareLanguageTestsRequest;
|
|
64
|
+
addSnapshotEdits(value?: PrepareLanguageTestsRequest.Replacement, index?: number): PrepareLanguageTestsRequest.Replacement;
|
|
59
65
|
|
|
60
66
|
serializeBinary(): Uint8Array;
|
|
61
67
|
toObject(includeInstance?: boolean): PrepareLanguageTestsRequest.AsObject;
|
|
@@ -74,7 +80,37 @@ export namespace PrepareLanguageTestsRequest {
|
|
|
74
80
|
snapshotDirectory: string,
|
|
75
81
|
temporaryDirectory: string,
|
|
76
82
|
coreSdkDirectory: string,
|
|
83
|
+
coreSdkVersion: string,
|
|
84
|
+
snapshotEditsList: Array<PrepareLanguageTestsRequest.Replacement.AsObject>,
|
|
77
85
|
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
export class Replacement extends jspb.Message {
|
|
89
|
+
getPath(): string;
|
|
90
|
+
setPath(value: string): Replacement;
|
|
91
|
+
getPattern(): string;
|
|
92
|
+
setPattern(value: string): Replacement;
|
|
93
|
+
getReplacement(): string;
|
|
94
|
+
setReplacement(value: string): Replacement;
|
|
95
|
+
|
|
96
|
+
serializeBinary(): Uint8Array;
|
|
97
|
+
toObject(includeInstance?: boolean): Replacement.AsObject;
|
|
98
|
+
static toObject(includeInstance: boolean, msg: Replacement): Replacement.AsObject;
|
|
99
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
100
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
101
|
+
static serializeBinaryToWriter(message: Replacement, writer: jspb.BinaryWriter): void;
|
|
102
|
+
static deserializeBinary(bytes: Uint8Array): Replacement;
|
|
103
|
+
static deserializeBinaryFromReader(message: Replacement, reader: jspb.BinaryReader): Replacement;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export namespace Replacement {
|
|
107
|
+
export type AsObject = {
|
|
108
|
+
path: string,
|
|
109
|
+
pattern: string,
|
|
110
|
+
replacement: string,
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
78
114
|
}
|
|
79
115
|
|
|
80
116
|
export class PrepareLanguageTestsResponse extends jspb.Message {
|
|
@@ -18,6 +18,7 @@ var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
|
18
18
|
goog.exportSymbol('proto.pulumirpc.testing.GetLanguageTestsRequest', null, global);
|
|
19
19
|
goog.exportSymbol('proto.pulumirpc.testing.GetLanguageTestsResponse', null, global);
|
|
20
20
|
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsRequest', null, global);
|
|
21
|
+
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement', null, global);
|
|
21
22
|
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsResponse', null, global);
|
|
22
23
|
goog.exportSymbol('proto.pulumirpc.testing.RunLanguageTestRequest', null, global);
|
|
23
24
|
goog.exportSymbol('proto.pulumirpc.testing.RunLanguageTestResponse', null, global);
|
|
@@ -74,7 +75,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
74
75
|
* @constructor
|
|
75
76
|
*/
|
|
76
77
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest = function(opt_data) {
|
|
77
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
78
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.testing.PrepareLanguageTestsRequest.repeatedFields_, null);
|
|
78
79
|
};
|
|
79
80
|
goog.inherits(proto.pulumirpc.testing.PrepareLanguageTestsRequest, jspb.Message);
|
|
80
81
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -84,6 +85,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
84
85
|
*/
|
|
85
86
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.displayName = 'proto.pulumirpc.testing.PrepareLanguageTestsRequest';
|
|
86
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Generated by JsPbCodeGenerator.
|
|
90
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
91
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
92
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
93
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
94
|
+
* valid.
|
|
95
|
+
* @extends {jspb.Message}
|
|
96
|
+
* @constructor
|
|
97
|
+
*/
|
|
98
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement = function(opt_data) {
|
|
99
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
100
|
+
};
|
|
101
|
+
goog.inherits(proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement, jspb.Message);
|
|
102
|
+
if (goog.DEBUG && !COMPILED) {
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
* @override
|
|
106
|
+
*/
|
|
107
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.displayName = 'proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement';
|
|
108
|
+
}
|
|
87
109
|
/**
|
|
88
110
|
* Generated by JsPbCodeGenerator.
|
|
89
111
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -405,6 +427,13 @@ proto.pulumirpc.testing.GetLanguageTestsResponse.prototype.clearTestsList = func
|
|
|
405
427
|
|
|
406
428
|
|
|
407
429
|
|
|
430
|
+
/**
|
|
431
|
+
* List of repeated fields within this message type.
|
|
432
|
+
* @private {!Array<number>}
|
|
433
|
+
* @const
|
|
434
|
+
*/
|
|
435
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.repeatedFields_ = [7];
|
|
436
|
+
|
|
408
437
|
|
|
409
438
|
|
|
410
439
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -440,7 +469,10 @@ proto.pulumirpc.testing.PrepareLanguageTestsRequest.toObject = function(includeI
|
|
|
440
469
|
languagePluginTarget: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
441
470
|
snapshotDirectory: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
442
471
|
temporaryDirectory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
443
|
-
coreSdkDirectory: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
472
|
+
coreSdkDirectory: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
473
|
+
coreSdkVersion: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
474
|
+
snapshotEditsList: jspb.Message.toObjectList(msg.getSnapshotEditsList(),
|
|
475
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.toObject, includeInstance)
|
|
444
476
|
};
|
|
445
477
|
|
|
446
478
|
if (includeInstance) {
|
|
@@ -497,6 +529,15 @@ proto.pulumirpc.testing.PrepareLanguageTestsRequest.deserializeBinaryFromReader
|
|
|
497
529
|
var value = /** @type {string} */ (reader.readString());
|
|
498
530
|
msg.setCoreSdkDirectory(value);
|
|
499
531
|
break;
|
|
532
|
+
case 6:
|
|
533
|
+
var value = /** @type {string} */ (reader.readString());
|
|
534
|
+
msg.setCoreSdkVersion(value);
|
|
535
|
+
break;
|
|
536
|
+
case 7:
|
|
537
|
+
var value = new proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement;
|
|
538
|
+
reader.readMessage(value,proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.deserializeBinaryFromReader);
|
|
539
|
+
msg.addSnapshotEdits(value);
|
|
540
|
+
break;
|
|
500
541
|
default:
|
|
501
542
|
reader.skipField();
|
|
502
543
|
break;
|
|
@@ -561,6 +602,211 @@ proto.pulumirpc.testing.PrepareLanguageTestsRequest.serializeBinaryToWriter = fu
|
|
|
561
602
|
f
|
|
562
603
|
);
|
|
563
604
|
}
|
|
605
|
+
f = message.getCoreSdkVersion();
|
|
606
|
+
if (f.length > 0) {
|
|
607
|
+
writer.writeString(
|
|
608
|
+
6,
|
|
609
|
+
f
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
f = message.getSnapshotEditsList();
|
|
613
|
+
if (f.length > 0) {
|
|
614
|
+
writer.writeRepeatedMessage(
|
|
615
|
+
7,
|
|
616
|
+
f,
|
|
617
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.serializeBinaryToWriter
|
|
618
|
+
);
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
627
|
+
/**
|
|
628
|
+
* Creates an object representation of this proto.
|
|
629
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
630
|
+
* Optional fields that are not set will be set to undefined.
|
|
631
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
632
|
+
* For the list of reserved names please see:
|
|
633
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
634
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
635
|
+
* JSPB instance for transitional soy proto support:
|
|
636
|
+
* http://goto/soy-param-migration
|
|
637
|
+
* @return {!Object}
|
|
638
|
+
*/
|
|
639
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.toObject = function(opt_includeInstance) {
|
|
640
|
+
return proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.toObject(opt_includeInstance, this);
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Static version of the {@see toObject} method.
|
|
646
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
647
|
+
* the JSPB instance for transitional soy proto support:
|
|
648
|
+
* http://goto/soy-param-migration
|
|
649
|
+
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} msg The msg instance to transform.
|
|
650
|
+
* @return {!Object}
|
|
651
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
652
|
+
*/
|
|
653
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.toObject = function(includeInstance, msg) {
|
|
654
|
+
var f, obj = {
|
|
655
|
+
path: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
656
|
+
pattern: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
657
|
+
replacement: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
if (includeInstance) {
|
|
661
|
+
obj.$jspbMessageInstance = msg;
|
|
662
|
+
}
|
|
663
|
+
return obj;
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Deserializes binary data (in protobuf wire format).
|
|
670
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
671
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement}
|
|
672
|
+
*/
|
|
673
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.deserializeBinary = function(bytes) {
|
|
674
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
675
|
+
var msg = new proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement;
|
|
676
|
+
return proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.deserializeBinaryFromReader(msg, reader);
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
682
|
+
* given reader into the given message object.
|
|
683
|
+
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} msg The message object to deserialize into.
|
|
684
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
685
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement}
|
|
686
|
+
*/
|
|
687
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.deserializeBinaryFromReader = function(msg, reader) {
|
|
688
|
+
while (reader.nextField()) {
|
|
689
|
+
if (reader.isEndGroup()) {
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
692
|
+
var field = reader.getFieldNumber();
|
|
693
|
+
switch (field) {
|
|
694
|
+
case 1:
|
|
695
|
+
var value = /** @type {string} */ (reader.readString());
|
|
696
|
+
msg.setPath(value);
|
|
697
|
+
break;
|
|
698
|
+
case 2:
|
|
699
|
+
var value = /** @type {string} */ (reader.readString());
|
|
700
|
+
msg.setPattern(value);
|
|
701
|
+
break;
|
|
702
|
+
case 3:
|
|
703
|
+
var value = /** @type {string} */ (reader.readString());
|
|
704
|
+
msg.setReplacement(value);
|
|
705
|
+
break;
|
|
706
|
+
default:
|
|
707
|
+
reader.skipField();
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
return msg;
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
717
|
+
* @return {!Uint8Array}
|
|
718
|
+
*/
|
|
719
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.serializeBinary = function() {
|
|
720
|
+
var writer = new jspb.BinaryWriter();
|
|
721
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.serializeBinaryToWriter(this, writer);
|
|
722
|
+
return writer.getResultBuffer();
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
728
|
+
* format), writing to the given BinaryWriter.
|
|
729
|
+
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} message
|
|
730
|
+
* @param {!jspb.BinaryWriter} writer
|
|
731
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
732
|
+
*/
|
|
733
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.serializeBinaryToWriter = function(message, writer) {
|
|
734
|
+
var f = undefined;
|
|
735
|
+
f = message.getPath();
|
|
736
|
+
if (f.length > 0) {
|
|
737
|
+
writer.writeString(
|
|
738
|
+
1,
|
|
739
|
+
f
|
|
740
|
+
);
|
|
741
|
+
}
|
|
742
|
+
f = message.getPattern();
|
|
743
|
+
if (f.length > 0) {
|
|
744
|
+
writer.writeString(
|
|
745
|
+
2,
|
|
746
|
+
f
|
|
747
|
+
);
|
|
748
|
+
}
|
|
749
|
+
f = message.getReplacement();
|
|
750
|
+
if (f.length > 0) {
|
|
751
|
+
writer.writeString(
|
|
752
|
+
3,
|
|
753
|
+
f
|
|
754
|
+
);
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* optional string path = 1;
|
|
761
|
+
* @return {string}
|
|
762
|
+
*/
|
|
763
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.getPath = function() {
|
|
764
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* @param {string} value
|
|
770
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} returns this
|
|
771
|
+
*/
|
|
772
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.setPath = function(value) {
|
|
773
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* optional string pattern = 2;
|
|
779
|
+
* @return {string}
|
|
780
|
+
*/
|
|
781
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.getPattern = function() {
|
|
782
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* @param {string} value
|
|
788
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} returns this
|
|
789
|
+
*/
|
|
790
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.setPattern = function(value) {
|
|
791
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* optional string replacement = 3;
|
|
797
|
+
* @return {string}
|
|
798
|
+
*/
|
|
799
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.getReplacement = function() {
|
|
800
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* @param {string} value
|
|
806
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} returns this
|
|
807
|
+
*/
|
|
808
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.setReplacement = function(value) {
|
|
809
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
564
810
|
};
|
|
565
811
|
|
|
566
812
|
|
|
@@ -654,6 +900,62 @@ proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setCoreSdkDirector
|
|
|
654
900
|
};
|
|
655
901
|
|
|
656
902
|
|
|
903
|
+
/**
|
|
904
|
+
* optional string core_sdk_version = 6;
|
|
905
|
+
* @return {string}
|
|
906
|
+
*/
|
|
907
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getCoreSdkVersion = function() {
|
|
908
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* @param {string} value
|
|
914
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
915
|
+
*/
|
|
916
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setCoreSdkVersion = function(value) {
|
|
917
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* repeated Replacement snapshot_edits = 7;
|
|
923
|
+
* @return {!Array<!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement>}
|
|
924
|
+
*/
|
|
925
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getSnapshotEditsList = function() {
|
|
926
|
+
return /** @type{!Array<!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement>} */ (
|
|
927
|
+
jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement, 7));
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* @param {!Array<!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement>} value
|
|
933
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
934
|
+
*/
|
|
935
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setSnapshotEditsList = function(value) {
|
|
936
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement=} opt_value
|
|
942
|
+
* @param {number=} opt_index
|
|
943
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement}
|
|
944
|
+
*/
|
|
945
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.addSnapshotEdits = function(opt_value, opt_index) {
|
|
946
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement, opt_index);
|
|
947
|
+
};
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Clears the list making it empty but non-null.
|
|
952
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
953
|
+
*/
|
|
954
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.clearSnapshotEditsList = function() {
|
|
955
|
+
return this.setSnapshotEditsList([]);
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
|
|
657
959
|
|
|
658
960
|
|
|
659
961
|
|
|
@@ -564,7 +564,7 @@ describe("LocalWorkspace", () => {
|
|
|
564
564
|
};
|
|
565
565
|
});
|
|
566
566
|
const projectName = "inline_node";
|
|
567
|
-
const stackNames = Array.from(Array(
|
|
567
|
+
const stackNames = Array.from(Array(30).keys()).map((_) => automation_1.fullyQualifiedStackName(util_1.getTestOrg(), projectName, `int_test${util_1.getTestSuffix()}`));
|
|
568
568
|
const testStackLifetime = (stackName) => __awaiter(void 0, void 0, void 0, function* () {
|
|
569
569
|
const stack = yield automation_1.LocalWorkspace.createStack({ stackName, projectName, program });
|
|
570
570
|
const stackConfig = {
|
|
@@ -596,7 +596,10 @@ describe("LocalWorkspace", () => {
|
|
|
596
596
|
assert_1.default.strictEqual(destroyRes.summary.result, "succeeded");
|
|
597
597
|
yield stack.workspace.removeStack(stack.name);
|
|
598
598
|
});
|
|
599
|
-
|
|
599
|
+
for (let i = 0; i < stackNames.length; i += 10) {
|
|
600
|
+
const chunk = stackNames.slice(i, i + 10);
|
|
601
|
+
yield Promise.all(chunk.map((stackName) => __awaiter(void 0, void 0, void 0, function* () { return yield testStackLifetime(stackName); })));
|
|
602
|
+
}
|
|
600
603
|
}));
|
|
601
604
|
it(`handles events`, () => __awaiter(void 0, void 0, void 0, function* () {
|
|
602
605
|
const program = () => __awaiter(void 0, void 0, void 0, function* () {
|