@pulumi/pulumi 3.135.2-alpha.xaa9ca8a → 3.136.0-alpha.x6315637
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/version.d.ts +1 -1
- package/version.js +1 -1
- package/npm/testdata/nested/project/index.d.ts +0 -0
- package/npm/testdata/nested/project/index.js +0 -16
- package/npm/testdata/nested/project/index.js.map +0 -1
- package/tests/automation/cmd.spec.d.ts +0 -1
- package/tests/automation/cmd.spec.js +0 -186
- package/tests/automation/cmd.spec.js.map +0 -1
- package/tests/automation/data/correct_project/Pulumi.yaml +0 -3
- package/tests/automation/data/import/Pulumi.yaml +0 -2
- package/tests/automation/data/import/expected_generated_code.txt +0 -11
- package/tests/automation/data/json/Pulumi.dev.json +0 -9
- package/tests/automation/data/json/Pulumi.json +0 -5
- package/tests/automation/data/nested_config/Pulumi.dev.yaml +0 -11
- package/tests/automation/data/nested_config/Pulumi.yaml +0 -3
- package/tests/automation/data/tcfg/Pulumi.yaml +0 -4
- package/tests/automation/data/tcfg/index.ts +0 -1
- package/tests/automation/data/tcfg/package-lock.json +0 -3062
- package/tests/automation/data/tcfg/package.json +0 -9
- package/tests/automation/data/tcfg/tsconfig.json +0 -16
- package/tests/automation/data/testproj/Pulumi.yaml +0 -3
- package/tests/automation/data/testproj/go.mod +0 -71
- package/tests/automation/data/testproj/go.sum +0 -299
- package/tests/automation/data/testproj/main.go +0 -19
- package/tests/automation/data/testproj_dotnet/Program.cs +0 -12
- package/tests/automation/data/testproj_dotnet/Pulumi.yaml +0 -3
- package/tests/automation/data/testproj_dotnet/TestProj.csproj +0 -12
- package/tests/automation/data/yaml/Pulumi.dev.yaml +0 -5
- package/tests/automation/data/yaml/Pulumi.yaml +0 -3
- package/tests/automation/data/yml/Pulumi.dev.yml +0 -5
- package/tests/automation/data/yml/Pulumi.yml +0 -3
- package/tests/automation/localWorkspace.spec.d.ts +0 -1
- package/tests/automation/localWorkspace.spec.js +0 -1325
- package/tests/automation/localWorkspace.spec.js.map +0 -1
- package/tests/automation/remoteWorkspace.spec.d.ts +0 -1
- package/tests/automation/remoteWorkspace.spec.js +0 -460
- package/tests/automation/remoteWorkspace.spec.js.map +0 -1
- package/tests/automation/util.d.ts +0 -1
- package/tests/automation/util.js +0 -31
- package/tests/automation/util.js.map +0 -1
- package/tests/config.spec.d.ts +0 -1
- package/tests/config.spec.js +0 -177
- package/tests/config.spec.js.map +0 -1
- package/tests/constants.d.ts +0 -1
- package/tests/constants.js +0 -18
- package/tests/constants.js.map +0 -1
- package/tests/init.spec.d.ts +0 -1
- package/tests/init.spec.js +0 -18
- package/tests/init.spec.js.map +0 -1
- package/tests/iterable.spec.d.ts +0 -1
- package/tests/iterable.spec.js +0 -60
- package/tests/iterable.spec.js.map +0 -1
- package/tests/options.spec.d.ts +0 -1
- package/tests/options.spec.js +0 -233
- package/tests/options.spec.js.map +0 -1
- package/tests/output.spec.d.ts +0 -1
- package/tests/output.spec.js +0 -809
- package/tests/output.spec.js.map +0 -1
- package/tests/provider.spec.d.ts +0 -1
- package/tests/provider.spec.js +0 -524
- package/tests/provider.spec.js.map +0 -1
- package/tests/resource.spec.d.ts +0 -1
- package/tests/resource.spec.js +0 -275
- package/tests/resource.spec.js.map +0 -1
- package/tests/runtime/asyncIterableUtil.spec.d.ts +0 -1
- package/tests/runtime/asyncIterableUtil.spec.js +0 -115
- package/tests/runtime/asyncIterableUtil.spec.js.map +0 -1
- package/tests/runtime/closure-integration-tests.d.ts +0 -1
- package/tests/runtime/closure-integration-tests.js +0 -120
- package/tests/runtime/closure-integration-tests.js.map +0 -1
- package/tests/runtime/findWorkspaceRoot.spec.d.ts +0 -1
- package/tests/runtime/findWorkspaceRoot.spec.js +0 -62
- package/tests/runtime/findWorkspaceRoot.spec.js.map +0 -1
- package/tests/runtime/install-package-tests.d.ts +0 -1
- package/tests/runtime/install-package-tests.js +0 -230
- package/tests/runtime/install-package-tests.js.map +0 -1
- package/tests/runtime/langhost/cases/000.empty/index.js +0 -1
- package/tests/runtime/langhost/cases/001.one_resource/index.js +0 -11
- package/tests/runtime/langhost/cases/002.ten_resources/index.js +0 -13
- package/tests/runtime/langhost/cases/003.one_complex_resource/index.js +0 -77
- package/tests/runtime/langhost/cases/004.ten_complex_resources/index.js +0 -38
- package/tests/runtime/langhost/cases/004.ten_complex_resources/resource.js +0 -30
- package/tests/runtime/langhost/cases/005.resource_thens/index.js +0 -72
- package/tests/runtime/langhost/cases/006.asset/index.js +0 -13
- package/tests/runtime/langhost/cases/006.asset/testdata.txt +0 -4
- package/tests/runtime/langhost/cases/007.promises_io/index.js +0 -25
- package/tests/runtime/langhost/cases/007.promises_io/testdata.txt +0 -4
- package/tests/runtime/langhost/cases/008.ten_depends_on_resources/index.js +0 -46
- package/tests/runtime/langhost/cases/009.invoke/index.js +0 -25
- package/tests/runtime/langhost/cases/010.runtime_settings/index.js +0 -22
- package/tests/runtime/langhost/cases/011.unhandled_error/index.js +0 -1
- package/tests/runtime/langhost/cases/012.assets_archive/index.js +0 -25
- package/tests/runtime/langhost/cases/013.unhandled_promise_rejection/index.js +0 -3
- package/tests/runtime/langhost/cases/014.read_resource/index.js +0 -19
- package/tests/runtime/langhost/cases/015.runtime_sxs/index.js +0 -100
- package/tests/runtime/langhost/cases/016.promise_leak/index.js +0 -3
- package/tests/runtime/langhost/cases/017.parent_defaults/index.js +0 -89
- package/tests/runtime/langhost/cases/018.logging/index.js +0 -15
- package/tests/runtime/langhost/cases/019.stack_exports/index.js +0 -15
- package/tests/runtime/langhost/cases/020.property_dependencies/index.js +0 -39
- package/tests/runtime/langhost/cases/021.parent_child_dependencies/index.js +0 -15
- package/tests/runtime/langhost/cases/022.parent_child_dependencies_2/index.js +0 -16
- package/tests/runtime/langhost/cases/023.parent_child_dependencies_3/index.js +0 -28
- package/tests/runtime/langhost/cases/024.parent_child_dependencies_4/index.js +0 -22
- package/tests/runtime/langhost/cases/025.parent_child_dependencies_5/index.js +0 -24
- package/tests/runtime/langhost/cases/026.parent_child_dependencies_6/index.js +0 -29
- package/tests/runtime/langhost/cases/027.parent_child_dependencies_7/index.js +0 -36
- package/tests/runtime/langhost/cases/028.parent_child_dependencies_8/index.js +0 -28
- package/tests/runtime/langhost/cases/029.parent_child_dependencies_9/index.js +0 -23
- package/tests/runtime/langhost/cases/030.import_resource/index.js +0 -11
- package/tests/runtime/langhost/cases/040.run_error/index.js +0 -3
- package/tests/runtime/langhost/cases/041.component_opt_single_provider/index.js +0 -89
- package/tests/runtime/langhost/cases/042.component_opt_providers_array/index.js +0 -89
- package/tests/runtime/langhost/cases/043.depends_on_non_resource/index.js +0 -11
- package/tests/runtime/langhost/cases/044.versions/index.js +0 -22
- package/tests/runtime/langhost/cases/045.ignore_changes/index.js +0 -11
- package/tests/runtime/langhost/cases/046.recursive_stack_exports/index.js +0 -19
- package/tests/runtime/langhost/cases/047.exported_function/index.js +0 -13
- package/tests/runtime/langhost/cases/048.exported_promise_function/index.js +0 -13
- package/tests/runtime/langhost/cases/049.exported_async_function/index.js +0 -13
- package/tests/runtime/langhost/cases/050.resource_creation_in_function/index.js +0 -11
- package/tests/runtime/langhost/cases/051.resource_creation_in_function_with_result/index.js +0 -12
- package/tests/runtime/langhost/cases/052.resource_creation_in_async_function_with_result/index.js +0 -12
- package/tests/runtime/langhost/cases/060.provider_invokes/index.js +0 -26
- package/tests/runtime/langhost/cases/061.provider_in_parent_invokes/index.js +0 -33
- package/tests/runtime/langhost/cases/062.providerref_invokes/index.js +0 -33
- package/tests/runtime/langhost/cases/063.providerref_in_parent_invokes/index.js +0 -41
- package/tests/runtime/langhost/cases/064.async_components/index.js +0 -44
- package/tests/runtime/langhost/cases/065.large_resource/index.js +0 -17
- package/tests/runtime/langhost/cases/066.replace_on_changes/index.js +0 -11
- package/tests/runtime/langhost/cases/067.native_es_module/index.js +0 -11
- package/tests/runtime/langhost/cases/067.native_es_module/package.json +0 -1
- package/tests/runtime/langhost/cases/068.remote_component_providers/index.js +0 -34
- package/tests/runtime/langhost/cases/068.remote_component_providers/package.json +0 -3
- package/tests/runtime/langhost/cases/069.ambiguous_entrypoints/index.d.ts +0 -1
- package/tests/runtime/langhost/cases/069.ambiguous_entrypoints/index.js +0 -11
- package/tests/runtime/langhost/cases/069.ambiguous_entrypoints/index.js.map +0 -1
- package/tests/runtime/langhost/cases/069.ambiguous_entrypoints/index.ts +0 -23
- package/tests/runtime/langhost/cases/070.unusual_alias_names/index.js +0 -26
- package/tests/runtime/langhost/cases/071.large_alias_counts/index.js +0 -22
- package/tests/runtime/langhost/cases/072.large_alias_lineage_chains/index.js +0 -55
- package/tests/runtime/langhost/cases/073.component_dependencies/index.js +0 -28
- package/tests/runtime/langhost/cases/074.source_position/index.js +0 -17
- package/tests/runtime/langhost/run.spec.d.ts +0 -1
- package/tests/runtime/langhost/run.spec.js +0 -1685
- package/tests/runtime/langhost/run.spec.js.map +0 -1
- package/tests/runtime/pack.d.ts +0 -1
- package/tests/runtime/pack.js +0 -56
- package/tests/runtime/pack.js.map +0 -1
- package/tests/runtime/props.spec.d.ts +0 -1
- package/tests/runtime/props.spec.js +0 -387
- package/tests/runtime/props.spec.js.map +0 -1
- package/tests/runtime/registrations.spec.d.ts +0 -1
- package/tests/runtime/registrations.spec.js +0 -139
- package/tests/runtime/registrations.spec.js.map +0 -1
- package/tests/runtime/rpc.spec.d.ts +0 -1
- package/tests/runtime/rpc.spec.js +0 -79
- package/tests/runtime/rpc.spec.js.map +0 -1
- package/tests/runtime/settings.spec.d.ts +0 -1
- package/tests/runtime/settings.spec.js +0 -57
- package/tests/runtime/settings.spec.js.map +0 -1
- package/tests/runtime/testdata/nested/project/index.d.ts +0 -0
- package/tests/runtime/testdata/nested/project/index.js +0 -16
- package/tests/runtime/testdata/nested/project/index.js.map +0 -1
- package/tests/stackReference.spec.d.ts +0 -1
- package/tests/stackReference.spec.js +0 -86
- package/tests/stackReference.spec.js.map +0 -1
- package/tests/unwrap.spec.d.ts +0 -1
- package/tests/unwrap.spec.js +0 -254
- package/tests/unwrap.spec.js.map +0 -1
- package/tests/util.d.ts +0 -1
- package/tests/util.js +0 -71
- package/tests/util.js.map +0 -1
- package/tests_with_mocks/mocks.spec.d.ts +0 -1
- package/tests_with_mocks/mocks.spec.js +0 -182
- package/tests_with_mocks/mocks.spec.js.map +0 -1
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// This test creates a resource with many aliases
|
|
2
|
-
|
|
3
|
-
let pulumi = require("../../../../..");
|
|
4
|
-
let assert = require("assert");
|
|
5
|
-
|
|
6
|
-
class MyResource extends pulumi.CustomResource {
|
|
7
|
-
constructor(name, aliases, parent) {
|
|
8
|
-
super(
|
|
9
|
-
"test:index:MyResource",
|
|
10
|
-
name,
|
|
11
|
-
{},
|
|
12
|
-
{
|
|
13
|
-
aliases: aliases,
|
|
14
|
-
parent,
|
|
15
|
-
},
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const resource1Aliases = Array.from(new Array(10000).keys()).map((key) => `my-alias-name-${key}`);
|
|
21
|
-
const resource1 = new MyResource("testResource1", resource1Aliases);
|
|
22
|
-
resource1.__aliases.map((alias) => alias.apply((aliasName) => assert(resource1Aliases.includes(aliasName))));
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// This test creates two resources - the first a parent of the second, both of which have many aliases
|
|
2
|
-
|
|
3
|
-
let pulumi = require("../../../../..");
|
|
4
|
-
let assert = require("assert");
|
|
5
|
-
|
|
6
|
-
class MyResource extends pulumi.CustomResource {
|
|
7
|
-
constructor(name, aliases, parent) {
|
|
8
|
-
super(
|
|
9
|
-
"test:index:MyResource",
|
|
10
|
-
name,
|
|
11
|
-
{},
|
|
12
|
-
{
|
|
13
|
-
aliases,
|
|
14
|
-
parent,
|
|
15
|
-
},
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
class MyOtherResource extends pulumi.CustomResource {
|
|
21
|
-
constructor(name, aliases, parent) {
|
|
22
|
-
super(
|
|
23
|
-
"test:index:MyOtherResource",
|
|
24
|
-
name,
|
|
25
|
-
{},
|
|
26
|
-
{
|
|
27
|
-
aliases,
|
|
28
|
-
parent,
|
|
29
|
-
},
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const resource1Aliases = Array.from(new Array(1000).keys()).map((key) => `my-alias-name-${key}`);
|
|
35
|
-
const resource1 = new MyResource("testResource1", resource1Aliases);
|
|
36
|
-
resource1.__aliases.map((alias) => alias.apply((aliasName) => assert(resource1Aliases.includes(aliasName))));
|
|
37
|
-
assert.equal(resource1.__aliases.length, 1000);
|
|
38
|
-
|
|
39
|
-
const resource2Aliases = Array.from(new Array(1000).keys()).map((key) => `my-other-alias-name-${key}`);
|
|
40
|
-
const resource2 = new MyResource("testResource2", resource2Aliases, resource1);
|
|
41
|
-
resource2.__aliases.map((alias) => alias.apply((aliasName) => assert(resource2Aliases.includes(aliasName))));
|
|
42
|
-
assert.equal(resource2.__aliases.length, 1000);
|
|
43
|
-
|
|
44
|
-
const resource3Aliases = Array.from(new Array(1000).keys()).map((key) => {
|
|
45
|
-
return {
|
|
46
|
-
name: `my-alias-${key}`,
|
|
47
|
-
stack: "my-stack",
|
|
48
|
-
project: "my-project",
|
|
49
|
-
type: "test:index:MyOtherResource",
|
|
50
|
-
};
|
|
51
|
-
});
|
|
52
|
-
const resource3 = new MyOtherResource("testResource2", resource3Aliases, resource2);
|
|
53
|
-
assert.equal(resource3.__aliases.length, 1000);
|
|
54
|
-
// We want to ensure that the parent's type is included in computed aliases from the engine
|
|
55
|
-
resource3.__aliases[0].apply((aliasName) => assert(aliasName.includes("test:index:MyResource")));
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
let assert = require("assert");
|
|
2
|
-
let pulumi = require("../../../../../");
|
|
3
|
-
|
|
4
|
-
class MyCustomResource extends pulumi.CustomResource {
|
|
5
|
-
constructor(name, opts) {
|
|
6
|
-
super("test:index:MyCustomResource", name, {}, opts);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
class MyComponentResource extends pulumi.ComponentResource {
|
|
11
|
-
constructor(name, opts) {
|
|
12
|
-
super("test:index:MyComponentResource", name, {}, opts);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
let first = new MyComponentResource("first");
|
|
17
|
-
// The test checks that "second" depends on "firstChild".
|
|
18
|
-
let firstChild = new MyCustomResource("firstChild", {
|
|
19
|
-
parent: first,
|
|
20
|
-
});
|
|
21
|
-
// The test looks for this resource named "second".
|
|
22
|
-
let second = new MyComponentResource("second", {
|
|
23
|
-
parent: first,
|
|
24
|
-
dependsOn: first,
|
|
25
|
-
});
|
|
26
|
-
let myresource = new MyCustomResource("myresource", {
|
|
27
|
-
parent: second,
|
|
28
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
let assert = require("assert");
|
|
2
|
-
let pulumi = require("../../../../../");
|
|
3
|
-
|
|
4
|
-
class MyCustomResource extends pulumi.CustomResource {
|
|
5
|
-
constructor(name, opts) {
|
|
6
|
-
super("test:index:MyCustomResource", name, {}, opts);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
class MyComponentResource extends pulumi.ComponentResource {
|
|
11
|
-
constructor(name, opts) {
|
|
12
|
-
super("test:index:MyComponentResource", name, {}, opts);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const custom = new MyCustomResource("custom");
|
|
17
|
-
const component = new MyComponentResource("component");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|