@pulumi/pulumi 3.111.1 → 3.111.2-alpha.x024ff02

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.
Files changed (50) hide show
  1. package/automation/cmd.d.ts +7 -4
  2. package/automation/cmd.js +0 -4
  3. package/automation/cmd.js.map +1 -1
  4. package/automation/index.d.ts +1 -0
  5. package/automation/localWorkspace.d.ts +0 -1
  6. package/automation/localWorkspace.js +0 -1
  7. package/automation/localWorkspace.js.map +1 -1
  8. package/automation/stack.js +5 -5
  9. package/automation/stack.js.map +1 -1
  10. package/automation/workspace.d.ts +2 -2
  11. package/package.json +1 -1
  12. package/proto/language_pb.d.ts +5 -3
  13. package/proto/language_pb.js +39 -36
  14. package/proto/testing/language_pb.d.ts +36 -0
  15. package/proto/testing/language_pb.js +304 -2
  16. package/resource.d.ts +1 -1
  17. package/resource.js +1 -1
  18. package/runtime/mocks.d.ts +7 -7
  19. package/runtime/mocks.js +5 -5
  20. package/runtime/stack.d.ts +1 -1
  21. package/runtime/stack.js +1 -1
  22. package/stackReference.d.ts +1 -1
  23. package/stackReference.js +1 -1
  24. package/tests/automation/localWorkspace.spec.js +5 -2
  25. package/tests/automation/localWorkspace.spec.js.map +1 -1
  26. package/tests/runtime/closure-integreation-tests.js +129 -0
  27. package/tests/runtime/closure-integreation-tests.js.map +1 -0
  28. package/version.d.ts +1 -1
  29. package/version.js +1 -1
  30. package/version.js.map +1 -1
  31. package/tests/runtime/closureLoader.spec.js +0 -36
  32. package/tests/runtime/closureLoader.spec.js.map +0 -1
  33. package/tests/runtime/deploymentOnlyModule/config.d.ts +0 -28
  34. package/tests/runtime/deploymentOnlyModule/config.js +0 -56
  35. package/tests/runtime/deploymentOnlyModule/config.js.map +0 -1
  36. package/tests/runtime/deploymentOnlyModule/index.d.ts +0 -3
  37. package/tests/runtime/deploymentOnlyModule/index.js +0 -26
  38. package/tests/runtime/deploymentOnlyModule/index.js.map +0 -1
  39. package/tests/runtime/deploymentOnlyModule/runtimeConfig.d.ts +0 -14
  40. package/tests/runtime/deploymentOnlyModule/runtimeConfig.js +0 -57
  41. package/tests/runtime/deploymentOnlyModule/runtimeConfig.js.map +0 -1
  42. package/tests/runtime/jsClosureCases_10_4.js +0 -31
  43. package/tests/runtime/jsClosureCases_8.js +0 -91
  44. package/tests/runtime/package.spec.d.ts +0 -1
  45. package/tests/runtime/package.spec.js +0 -156
  46. package/tests/runtime/package.spec.js.map +0 -1
  47. package/tests/runtime/tsClosureCases.d.ts +0 -1
  48. package/tests/runtime/tsClosureCases.js +0 -6550
  49. package/tests/runtime/tsClosureCases.js.map +0 -1
  50. /package/tests/runtime/{closureLoader.spec.d.ts → closure-integreation-tests.d.ts} +0 -0
@@ -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, null, null);
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
 
package/resource.d.ts CHANGED
@@ -409,7 +409,7 @@ export declare class ComponentResource<TData = any> extends Resource {
409
409
  * list of other resources that this resource depends on, controlling the order in which we
410
410
  * perform resource operations.
411
411
  *
412
- * @param t The type of the resource.
412
+ * @param type The type of the resource.
413
413
  * @param name The _unique_ name of the resource.
414
414
  * @param args Information passed to [initialize] method.
415
415
  * @param opts A bag of options that control this resource's behavior.
package/resource.js CHANGED
@@ -460,7 +460,7 @@ class ComponentResource extends Resource {
460
460
  * list of other resources that this resource depends on, controlling the order in which we
461
461
  * perform resource operations.
462
462
  *
463
- * @param t The type of the resource.
463
+ * @param type The type of the resource.
464
464
  * @param name The _unique_ name of the resource.
465
465
  * @param args Information passed to [initialize] method.
466
466
  * @param opts A bag of options that control this resource's behavior.
@@ -65,14 +65,14 @@ export interface Mocks {
65
65
  /**
66
66
  * Mocks provider-implemented function calls (e.g. aws.get_availability_zones).
67
67
  *
68
- * @param args: MockCallArgs
68
+ * @param args MockCallArgs
69
69
  */
70
70
  call(args: MockCallArgs): MockCallResult | Promise<MockCallResult>;
71
71
  /**
72
72
  * Mocks resource construction calls. This function should return the physical identifier and the output properties
73
73
  * for the resource being constructed.
74
74
  *
75
- * @param args: MockResourceArgs
75
+ * @param args MockResourceArgs
76
76
  */
77
77
  newResource(args: MockResourceArgs): MockResourceResult | Promise<MockResourceResult>;
78
78
  }
@@ -94,10 +94,10 @@ export declare class MockMonitor {
94
94
  /**
95
95
  * setMocks configures the Pulumi runtime to use the given mocks for testing.
96
96
  *
97
- * @param mocks: The mocks to use for calls to provider functions and resource construction.
98
- * @param project: If provided, the name of the Pulumi project. Defaults to "project".
99
- * @param stack: If provided, the name of the Pulumi stack. Defaults to "stack".
100
- * @param preview: If provided, indicates whether or not the program is running a preview. Defaults to false.
101
- * @param organization: If provided, the name of the Pulumi organization. Defaults to nothing.
97
+ * @param mocks The mocks to use for calls to provider functions and resource construction.
98
+ * @param project If provided, the name of the Pulumi project. Defaults to "project".
99
+ * @param stack If provided, the name of the Pulumi stack. Defaults to "stack".
100
+ * @param preview If provided, indicates whether or not the program is running a preview. Defaults to false.
101
+ * @param organization If provided, the name of the Pulumi organization. Defaults to nothing.
102
102
  */
103
103
  export declare function setMocks(mocks: Mocks, project?: string, stack?: string, preview?: boolean, organization?: string): Promise<void>;
package/runtime/mocks.js CHANGED
@@ -159,11 +159,11 @@ exports.MockMonitor = MockMonitor;
159
159
  /**
160
160
  * setMocks configures the Pulumi runtime to use the given mocks for testing.
161
161
  *
162
- * @param mocks: The mocks to use for calls to provider functions and resource construction.
163
- * @param project: If provided, the name of the Pulumi project. Defaults to "project".
164
- * @param stack: If provided, the name of the Pulumi stack. Defaults to "stack".
165
- * @param preview: If provided, indicates whether or not the program is running a preview. Defaults to false.
166
- * @param organization: If provided, the name of the Pulumi organization. Defaults to nothing.
162
+ * @param mocks The mocks to use for calls to provider functions and resource construction.
163
+ * @param project If provided, the name of the Pulumi project. Defaults to "project".
164
+ * @param stack If provided, the name of the Pulumi stack. Defaults to "stack".
165
+ * @param preview If provided, indicates whether or not the program is running a preview. Defaults to false.
166
+ * @param organization If provided, the name of the Pulumi organization. Defaults to nothing.
167
167
  */
168
168
  function setMocks(mocks, project, stack, preview, organization) {
169
169
  return __awaiter(this, void 0, void 0, function* () {
@@ -25,7 +25,7 @@ export declare class Stack extends ComponentResource<Inputs> {
25
25
  * runInit invokes the given init callback with this resource set as the root resource. The return value of init is
26
26
  * used as the stack's output properties.
27
27
  *
28
- * @param init The callback to run in the context of this Pulumi stack
28
+ * @param args.init The callback to run in the context of this Pulumi stack
29
29
  */
30
30
  initialize(args: {
31
31
  init: () => Promise<Inputs>;
package/runtime/stack.js CHANGED
@@ -74,7 +74,7 @@ class Stack extends resource_1.ComponentResource {
74
74
  * runInit invokes the given init callback with this resource set as the root resource. The return value of init is
75
75
  * used as the stack's output properties.
76
76
  *
77
- * @param init The callback to run in the context of this Pulumi stack
77
+ * @param args.init The callback to run in the context of this Pulumi stack
78
78
  */
79
79
  initialize(args) {
80
80
  const _super = Object.create(null, {
@@ -26,7 +26,7 @@ export declare class StackReference extends CustomResource {
26
26
  *
27
27
  * @param name The _unique_ name of the stack reference.
28
28
  * @param args The arguments to use to populate this resource's properties.
29
- * @Param opts A bag of options that control this resource's behavior.
29
+ * @param opts A bag of options that control this resource's behavior.
30
30
  */
31
31
  constructor(name: string, args?: StackReferenceArgs, opts?: CustomResourceOptions);
32
32
  /**
package/stackReference.js CHANGED
@@ -36,7 +36,7 @@ class StackReference extends resource_1.CustomResource {
36
36
  *
37
37
  * @param name The _unique_ name of the stack reference.
38
38
  * @param args The arguments to use to populate this resource's properties.
39
- * @Param opts A bag of options that control this resource's behavior.
39
+ * @param opts A bag of options that control this resource's behavior.
40
40
  */
41
41
  constructor(name, args, opts) {
42
42
  args = args || {};
@@ -564,7 +564,7 @@ describe("LocalWorkspace", () => {
564
564
  };
565
565
  });
566
566
  const projectName = "inline_node";
567
- const stackNames = Array.from(Array(10).keys()).map((_) => automation_1.fullyQualifiedStackName(util_1.getTestOrg(), projectName, `int_test${util_1.getTestSuffix()}`));
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
- yield Promise.all(stackNames.map((stackName) => __awaiter(void 0, void 0, void 0, function* () { return yield testStackLifetime(stackName); })));
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* () {