@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
package/package.json
CHANGED
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.
|
|
1
|
+
export declare const version = "3.136.0";
|
package/version.js
CHANGED
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
// See the License for the specific language governing permissions and
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.version = "3.
|
|
16
|
+
exports.version = "3.136.0-alpha.x6315637";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2024, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
// This is where the pulumi program lives.
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../npm/testdata/nested/project/index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,0CAA0C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2022, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
28
|
-
result["default"] = mod;
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
const assert = __importStar(require("assert"));
|
|
33
|
-
const fs = __importStar(require("fs"));
|
|
34
|
-
const semver = __importStar(require("semver"));
|
|
35
|
-
const os = __importStar(require("os"));
|
|
36
|
-
const tmp = __importStar(require("tmp"));
|
|
37
|
-
const upath = __importStar(require("upath"));
|
|
38
|
-
const automation_1 = require("../../automation");
|
|
39
|
-
describe("automation/cmd", () => {
|
|
40
|
-
it("calls onOutput when provided to runPulumiCmd", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
-
let output = "";
|
|
42
|
-
let numCalls = 0;
|
|
43
|
-
const pulumi = yield automation_1.PulumiCommand.get();
|
|
44
|
-
yield pulumi.run(["--help"], ".", {}, (data) => {
|
|
45
|
-
output += data;
|
|
46
|
-
numCalls += 1;
|
|
47
|
-
});
|
|
48
|
-
assert.ok(numCalls > 0, `expected numCalls > 0, got ${numCalls}`);
|
|
49
|
-
assert.match(output, new RegExp("Usage[:]"));
|
|
50
|
-
assert.match(output, new RegExp("[-][-]verbose"));
|
|
51
|
-
}));
|
|
52
|
-
describe("CLI installation", () => {
|
|
53
|
-
it("installs the requested version", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
-
const tmpDir = tmp.dirSync({ prefix: "automation-test-", unsafeCleanup: true });
|
|
55
|
-
try {
|
|
56
|
-
const cmd = yield automation_1.PulumiCommand.install({ root: tmpDir.name, version: new semver.SemVer("3.97.0") });
|
|
57
|
-
assert.doesNotThrow(() => fs.statSync(upath.join(tmpDir.name, "bin", "pulumi")));
|
|
58
|
-
const { stdout } = yield cmd.run(["version"], ".", {});
|
|
59
|
-
assert.strictEqual(stdout.trim(), "3.97.0");
|
|
60
|
-
}
|
|
61
|
-
finally {
|
|
62
|
-
tmpDir.removeCallback();
|
|
63
|
-
}
|
|
64
|
-
}));
|
|
65
|
-
it("does not re-install the version if it already exists", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
66
|
-
const tmpDir = tmp.dirSync({ prefix: "automation-test-", unsafeCleanup: true });
|
|
67
|
-
try {
|
|
68
|
-
yield automation_1.PulumiCommand.install({ root: tmpDir.name, version: new semver.SemVer("3.97.0") });
|
|
69
|
-
const binary1 = fs.statSync(upath.join(tmpDir.name, "bin", "pulumi"));
|
|
70
|
-
yield automation_1.PulumiCommand.install({ root: tmpDir.name, version: new semver.SemVer("3.97.0") });
|
|
71
|
-
const binary2 = fs.statSync(upath.join(tmpDir.name, "bin", "pulumi"));
|
|
72
|
-
assert.strictEqual(binary1.ino, binary2.ino);
|
|
73
|
-
}
|
|
74
|
-
finally {
|
|
75
|
-
tmpDir.removeCallback();
|
|
76
|
-
}
|
|
77
|
-
}));
|
|
78
|
-
it("defaults to $HOME/.pulumi/versions/$VERSION if no root is provided", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
79
|
-
const version = new semver.SemVer("3.97.0");
|
|
80
|
-
const cmd = yield automation_1.PulumiCommand.install({ version });
|
|
81
|
-
assert.doesNotThrow(() => fs.statSync(upath.join(os.homedir(), ".pulumi", "versions", `${version}`, "bin", "pulumi")));
|
|
82
|
-
const { stdout } = yield cmd.run(["version"], ".", {});
|
|
83
|
-
assert.strictEqual(stdout.trim(), `${version}`);
|
|
84
|
-
}));
|
|
85
|
-
it("throws if the found version is not compatible with the requested version", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
86
|
-
const installedVersion = new semver.SemVer("3.97.0");
|
|
87
|
-
yield automation_1.PulumiCommand.install({ version: installedVersion });
|
|
88
|
-
const requestedVersion = new semver.SemVer("3.98.0");
|
|
89
|
-
assert.rejects(automation_1.PulumiCommand.get({ version: requestedVersion }));
|
|
90
|
-
assert.doesNotReject(automation_1.PulumiCommand.get({ version: installedVersion, skipVersionCheck: true }));
|
|
91
|
-
}));
|
|
92
|
-
});
|
|
93
|
-
describe(`checkVersionIsValid`, () => {
|
|
94
|
-
const MAJOR = /Major version mismatch./;
|
|
95
|
-
const MINIMUM = /Minimum version requirement failed./;
|
|
96
|
-
const PARSE = /Failed to parse/;
|
|
97
|
-
const versionTests = [
|
|
98
|
-
{
|
|
99
|
-
name: "higher_major",
|
|
100
|
-
currentVersion: "100.0.0",
|
|
101
|
-
expectError: MAJOR,
|
|
102
|
-
optOut: false,
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "lower_major",
|
|
106
|
-
currentVersion: "1.0.0",
|
|
107
|
-
expectError: MINIMUM,
|
|
108
|
-
optOut: false,
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: "higher_minor",
|
|
112
|
-
currentVersion: "v2.22.0",
|
|
113
|
-
expectError: null,
|
|
114
|
-
optOut: false,
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: "lower_minor",
|
|
118
|
-
currentVersion: "v2.1.0",
|
|
119
|
-
expectError: MINIMUM,
|
|
120
|
-
optOut: false,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: "equal_minor_higher_patch",
|
|
124
|
-
currentVersion: "v2.21.2",
|
|
125
|
-
expectError: null,
|
|
126
|
-
optOut: false,
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: "equal_minor_equal_patch",
|
|
130
|
-
currentVersion: "v2.21.1",
|
|
131
|
-
expectError: null,
|
|
132
|
-
optOut: false,
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: "equal_minor_lower_patch",
|
|
136
|
-
currentVersion: "v2.21.0",
|
|
137
|
-
expectError: MINIMUM,
|
|
138
|
-
optOut: false,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: "equal_minor_equal_patch_prerelease",
|
|
142
|
-
// Note that prerelease < release so this case will error
|
|
143
|
-
currentVersion: "v2.21.1-alpha.1234",
|
|
144
|
-
expectError: MINIMUM,
|
|
145
|
-
optOut: false,
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: "opt_out_of_check_would_fail_otherwise",
|
|
149
|
-
currentVersion: "v2.20.0",
|
|
150
|
-
expectError: null,
|
|
151
|
-
optOut: true,
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
name: "opt_out_of_check_would_succeed_otherwise",
|
|
155
|
-
currentVersion: "v2.22.0",
|
|
156
|
-
expectError: null,
|
|
157
|
-
optOut: true,
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
name: "invalid_version",
|
|
161
|
-
currentVersion: "invalid",
|
|
162
|
-
expectError: PARSE,
|
|
163
|
-
optOut: false,
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
name: "invalid_version_opt_out",
|
|
167
|
-
currentVersion: "invalid",
|
|
168
|
-
expectError: null,
|
|
169
|
-
optOut: true,
|
|
170
|
-
},
|
|
171
|
-
];
|
|
172
|
-
const minVersion = new semver.SemVer("v2.21.1");
|
|
173
|
-
versionTests.forEach((test) => {
|
|
174
|
-
it(`validates ${test.name} (${test.currentVersion})`, () => {
|
|
175
|
-
const validate = () => automation_1.parseAndValidatePulumiVersion(minVersion, test.currentVersion, test.optOut);
|
|
176
|
-
if (test.expectError) {
|
|
177
|
-
assert.throws(validate, test.expectError);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
assert.doesNotThrow(validate);
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
});
|
|
186
|
-
//# sourceMappingURL=cmd.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cmd.spec.js","sourceRoot":"","sources":["../../../tests/automation/cmd.spec.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;;;;;;;;;;AAE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I,IAAI,EAAE,uCAAuC;gBAC7C,cAAc,EAAE,SAAS;gBACzB,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE,IAAI;aACf;YACD;gBACI,IAAI,EAAE,0CAA0C;gBAChD,cAAc,EAAE,SAAS;gBACzB,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE,IAAI;aACf;YACD;gBACI,IAAI,EAAE,iBAAiB;gBACvB,cAAc,EAAE,SAAS;gBACzB,WAAW,EAAE,KAAK;gBAClB,MAAM,EAAE,KAAK;aAChB;YACD;gBACI,IAAI,EAAE,yBAAyB;gBAC/B,cAAc,EAAE,SAAS;gBACzB,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE,IAAI;aACf;SACJ,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAEhD,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC1B,EAAE,CAAC,aAAa,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,cAAc,GAAG,EAAE,GAAG,EAAE;gBACvD,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,0CAA6B,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;gBACnG,IAAI,IAAI,CAAC,WAAW,EAAE;oBAClB,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;iBAC7C;qBAAM;oBACH,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;iBACjC;YACL,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as random from "@pulumi/random";
|
|
3
|
-
|
|
4
|
-
const randomPassword = new random.RandomPassword("randomPassword", {
|
|
5
|
-
length: 11,
|
|
6
|
-
lower: true,
|
|
7
|
-
number: true,
|
|
8
|
-
numeric: true,
|
|
9
|
-
special: true,
|
|
10
|
-
upper: true,
|
|
11
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|