@intentius/chant-lexicon-pulumi 0.124.98 → 0.124.99
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/adopt.d.ts +0 -1
- package/dist/capability-plugin.d.ts +0 -1
- package/dist/change-set.d.ts +0 -1
- package/dist/changed-units.d.ts +0 -1
- package/dist/check-step.d.ts +0 -1
- package/dist/ci-setup.d.ts +0 -1
- package/dist/codegen/docs-cli.d.ts +0 -1
- package/dist/codegen/docs.d.ts +0 -1
- package/dist/codegen/package.d.ts +0 -1
- package/dist/composites/pulumi-adopt-op.d.ts +0 -1
- package/dist/composites/pulumi-watch-op.d.ts +0 -1
- package/dist/config.d.ts +0 -1
- package/dist/describe-resources.d.ts +0 -1
- package/dist/drift-read.d.ts +0 -1
- package/dist/drift-record.d.ts +0 -1
- package/dist/engine-events.d.ts +0 -1
- package/dist/engine-graph.d.ts +0 -1
- package/dist/exit-codes.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/init-templates.d.ts +0 -1
- package/dist/integrity.json +2 -2
- package/dist/lint/audit-catalog.d.ts +0 -1
- package/dist/lint/post-synth/index.d.ts +0 -1
- package/dist/lint/post-synth/member-read-helpers.d.ts +0 -1
- package/dist/lint/post-synth/pul001.d.ts +0 -1
- package/dist/lint/post-synth/pul002.d.ts +0 -1
- package/dist/lint/post-synth/pul003.d.ts +0 -1
- package/dist/lint/post-synth/pul004.d.ts +0 -1
- package/dist/lint/post-synth/pul005.d.ts +0 -1
- package/dist/lint/post-synth/pul006.d.ts +0 -1
- package/dist/lint/post-synth/pul007.d.ts +0 -1
- package/dist/lint/post-synth/pul008.d.ts +0 -1
- package/dist/lint/post-synth/pul009.d.ts +0 -1
- package/dist/lint/post-synth/pul010.d.ts +0 -1
- package/dist/lint/post-synth/pul011.d.ts +0 -1
- package/dist/lint/post-synth/pul012.d.ts +0 -1
- package/dist/lint/post-synth/pul013.d.ts +0 -1
- package/dist/lint/post-synth/pul014.d.ts +0 -1
- package/dist/lint/post-synth/pul015.d.ts +0 -1
- package/dist/lint/rules/index.d.ts +0 -1
- package/dist/lint/rules/member-dir-absolute.d.ts +0 -1
- package/dist/lock-rows.d.ts +0 -1
- package/dist/lsp/completions.d.ts +0 -1
- package/dist/lsp/documents.d.ts +0 -1
- package/dist/lsp/hover.d.ts +0 -1
- package/dist/lsp/keys.d.ts +0 -1
- package/dist/lsp/object-path.d.ts +0 -1
- package/dist/lsp/yaml-cursor.d.ts +0 -1
- package/dist/manifest.json +1 -1
- package/dist/member-engine.d.ts +0 -1
- package/dist/member-outputs.d.ts +0 -1
- package/dist/op/activities/index.d.ts +0 -1
- package/dist/op/activities/pulumi-adopt.d.ts +0 -1
- package/dist/op/activities/pulumi.d.ts +0 -1
- package/dist/op/activity-contracts.d.ts +0 -1
- package/dist/op/builders.d.ts +0 -1
- package/dist/package-cli.d.ts +0 -1
- package/dist/plan-shape.d.ts +0 -1
- package/dist/planned-output-changes.d.ts +0 -1
- package/dist/plugin.d.ts +0 -1
- package/dist/plunge-timings.d.ts +0 -1
- package/dist/preview-tips.d.ts +0 -1
- package/dist/pulumi-up.d.ts +0 -1
- package/dist/release-copy.d.ts +0 -1
- package/dist/review-stack.d.ts +0 -1
- package/dist/run.d.ts +0 -1
- package/dist/serializer.d.ts +0 -1
- package/dist/stack-export-snapshot.d.ts +0 -1
- package/dist/stack-ops.d.ts +0 -1
- package/dist/stack-outputs.d.ts +0 -1
- package/dist/stack-references.d.ts +0 -1
- package/dist/trace-facts.d.ts +0 -1
- package/dist/values.d.ts +0 -1
- package/dist/workspace-member.d.ts +0 -1
- package/package.json +3 -4
- package/dist/adopt.d.ts.map +0 -1
- package/dist/capability-plugin.d.ts.map +0 -1
- package/dist/change-set.d.ts.map +0 -1
- package/dist/changed-units.d.ts.map +0 -1
- package/dist/check-step.d.ts.map +0 -1
- package/dist/ci-setup.d.ts.map +0 -1
- package/dist/codegen/docs-cli.d.ts.map +0 -1
- package/dist/codegen/docs.d.ts.map +0 -1
- package/dist/codegen/package.d.ts.map +0 -1
- package/dist/composites/pulumi-adopt-op.d.ts.map +0 -1
- package/dist/composites/pulumi-watch-op.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/describe-resources.d.ts.map +0 -1
- package/dist/drift-read.d.ts.map +0 -1
- package/dist/drift-record.d.ts.map +0 -1
- package/dist/engine-events.d.ts.map +0 -1
- package/dist/engine-graph.d.ts.map +0 -1
- package/dist/exit-codes.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/init-templates.d.ts.map +0 -1
- package/dist/lint/audit-catalog.d.ts.map +0 -1
- package/dist/lint/post-synth/index.d.ts.map +0 -1
- package/dist/lint/post-synth/member-read-helpers.d.ts.map +0 -1
- package/dist/lint/post-synth/pul001.d.ts.map +0 -1
- package/dist/lint/post-synth/pul002.d.ts.map +0 -1
- package/dist/lint/post-synth/pul003.d.ts.map +0 -1
- package/dist/lint/post-synth/pul004.d.ts.map +0 -1
- package/dist/lint/post-synth/pul005.d.ts.map +0 -1
- package/dist/lint/post-synth/pul006.d.ts.map +0 -1
- package/dist/lint/post-synth/pul007.d.ts.map +0 -1
- package/dist/lint/post-synth/pul008.d.ts.map +0 -1
- package/dist/lint/post-synth/pul009.d.ts.map +0 -1
- package/dist/lint/post-synth/pul010.d.ts.map +0 -1
- package/dist/lint/post-synth/pul011.d.ts.map +0 -1
- package/dist/lint/post-synth/pul012.d.ts.map +0 -1
- package/dist/lint/post-synth/pul013.d.ts.map +0 -1
- package/dist/lint/post-synth/pul014.d.ts.map +0 -1
- package/dist/lint/post-synth/pul015.d.ts.map +0 -1
- package/dist/lint/rules/index.d.ts.map +0 -1
- package/dist/lint/rules/member-dir-absolute.d.ts.map +0 -1
- package/dist/lock-rows.d.ts.map +0 -1
- package/dist/lsp/completions.d.ts.map +0 -1
- package/dist/lsp/documents.d.ts.map +0 -1
- package/dist/lsp/hover.d.ts.map +0 -1
- package/dist/lsp/keys.d.ts.map +0 -1
- package/dist/lsp/object-path.d.ts.map +0 -1
- package/dist/lsp/yaml-cursor.d.ts.map +0 -1
- package/dist/member-engine.d.ts.map +0 -1
- package/dist/member-outputs.d.ts.map +0 -1
- package/dist/op/activities/index.d.ts.map +0 -1
- package/dist/op/activities/pulumi-adopt.d.ts.map +0 -1
- package/dist/op/activities/pulumi.d.ts.map +0 -1
- package/dist/op/activity-contracts.d.ts.map +0 -1
- package/dist/op/builders.d.ts.map +0 -1
- package/dist/package-cli.d.ts.map +0 -1
- package/dist/plan-shape.d.ts.map +0 -1
- package/dist/planned-output-changes.d.ts.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/plunge-timings.d.ts.map +0 -1
- package/dist/preview-tips.d.ts.map +0 -1
- package/dist/pulumi-up.d.ts.map +0 -1
- package/dist/release-copy.d.ts.map +0 -1
- package/dist/review-stack.d.ts.map +0 -1
- package/dist/run.d.ts.map +0 -1
- package/dist/serializer.d.ts.map +0 -1
- package/dist/stack-export-snapshot.d.ts.map +0 -1
- package/dist/stack-ops.d.ts.map +0 -1
- package/dist/stack-outputs.d.ts.map +0 -1
- package/dist/stack-references.d.ts.map +0 -1
- package/dist/trace-facts.d.ts.map +0 -1
- package/dist/values.d.ts.map +0 -1
- package/dist/workspace-member.d.ts.map +0 -1
- package/src/adopt.ts +0 -202
- package/src/capability-plugin.ts +0 -34
- package/src/change-set.test.ts +0 -245
- package/src/change-set.ts +0 -508
- package/src/changed-units.test.ts +0 -87
- package/src/changed-units.ts +0 -96
- package/src/check-step.test.ts +0 -191
- package/src/check-step.ts +0 -316
- package/src/ci-setup.test.ts +0 -234
- package/src/ci-setup.ts +0 -224
- package/src/codegen/docs-cli.ts +0 -4
- package/src/codegen/docs.ts +0 -58
- package/src/codegen/package.ts +0 -63
- package/src/composites/pulumi-adopt-op.test.ts +0 -258
- package/src/composites/pulumi-adopt-op.ts +0 -193
- package/src/composites/pulumi-watch-op.test.ts +0 -42
- package/src/composites/pulumi-watch-op.ts +0 -85
- package/src/config.ts +0 -43
- package/src/describe-resources.test.ts +0 -112
- package/src/describe-resources.ts +0 -118
- package/src/drift-read.test.ts +0 -178
- package/src/drift-read.ts +0 -94
- package/src/drift-record.test.ts +0 -197
- package/src/drift-record.ts +0 -326
- package/src/engine-events.test.ts +0 -160
- package/src/engine-events.ts +0 -395
- package/src/engine-graph.test.ts +0 -141
- package/src/engine-graph.ts +0 -149
- package/src/exit-codes.test.ts +0 -21
- package/src/exit-codes.ts +0 -71
- package/src/index.ts +0 -139
- package/src/init-templates.ts +0 -85
- package/src/lint/audit-catalog.test.ts +0 -33
- package/src/lint/audit-catalog.ts +0 -174
- package/src/lint/post-synth/index.ts +0 -35
- package/src/lint/post-synth/member-read-helpers.ts +0 -122
- package/src/lint/post-synth/post-synth.test.ts +0 -245
- package/src/lint/post-synth/pul001.ts +0 -38
- package/src/lint/post-synth/pul002.ts +0 -38
- package/src/lint/post-synth/pul003.ts +0 -43
- package/src/lint/post-synth/pul004.ts +0 -32
- package/src/lint/post-synth/pul005.ts +0 -31
- package/src/lint/post-synth/pul006.ts +0 -31
- package/src/lint/post-synth/pul007.ts +0 -35
- package/src/lint/post-synth/pul008.ts +0 -35
- package/src/lint/post-synth/pul009.ts +0 -32
- package/src/lint/post-synth/pul010.ts +0 -42
- package/src/lint/post-synth/pul011.ts +0 -38
- package/src/lint/post-synth/pul012.ts +0 -35
- package/src/lint/post-synth/pul013.ts +0 -35
- package/src/lint/post-synth/pul014.ts +0 -32
- package/src/lint/post-synth/pul015.ts +0 -39
- package/src/lint/rules/index.ts +0 -7
- package/src/lint/rules/member-dir-absolute.test.ts +0 -37
- package/src/lint/rules/member-dir-absolute.ts +0 -83
- package/src/lock-rows.test.ts +0 -60
- package/src/lock-rows.ts +0 -56
- package/src/lsp/completions.test.ts +0 -69
- package/src/lsp/completions.ts +0 -119
- package/src/lsp/documents.ts +0 -48
- package/src/lsp/hover.test.ts +0 -56
- package/src/lsp/hover.ts +0 -83
- package/src/lsp/keys.ts +0 -169
- package/src/lsp/object-path.ts +0 -71
- package/src/lsp/yaml-cursor.ts +0 -85
- package/src/member-engine.test.ts +0 -112
- package/src/member-engine.ts +0 -97
- package/src/member-outputs.test.ts +0 -339
- package/src/member-outputs.ts +0 -157
- package/src/op/activities/index.ts +0 -36
- package/src/op/activities/pulumi-adopt.ts +0 -345
- package/src/op/activities/pulumi.ts +0 -136
- package/src/op/activity-contracts.ts +0 -129
- package/src/op/builders.ts +0 -67
- package/src/package-cli.ts +0 -14
- package/src/plan-shape.test.ts +0 -91
- package/src/plan-shape.ts +0 -105
- package/src/planned-output-changes.test.ts +0 -85
- package/src/planned-output-changes.ts +0 -141
- package/src/plugin.test.ts +0 -96
- package/src/plugin.ts +0 -272
- package/src/plunge-timings.test.ts +0 -241
- package/src/plunge-timings.ts +0 -115
- package/src/plunge-up-failed.test.ts +0 -54
- package/src/pr-note.test.ts +0 -87
- package/src/preview-generated.test.ts +0 -124
- package/src/preview-tips.test.ts +0 -134
- package/src/preview-tips.ts +0 -128
- package/src/pulumi-up.test.ts +0 -581
- package/src/pulumi-up.ts +0 -1102
- package/src/pulumi-urn-node.test.ts +0 -94
- package/src/release-copy.test.ts +0 -162
- package/src/release-copy.ts +0 -223
- package/src/review-stack.test.ts +0 -254
- package/src/review-stack.ts +0 -266
- package/src/run-plan-flags.test.ts +0 -53
- package/src/run.test.ts +0 -540
- package/src/run.ts +0 -1129
- package/src/serializer.test.ts +0 -9
- package/src/serializer.ts +0 -15
- package/src/skills/chant-pulumi-plunge.md +0 -51
- package/src/skills/chant-pulumi-stack-export.md +0 -54
- package/src/skills/chant-pulumi.md +0 -83
- package/src/stack-export-snapshot.test.ts +0 -192
- package/src/stack-export-snapshot.ts +0 -312
- package/src/stack-ops.fake-binary.test.ts +0 -323
- package/src/stack-ops.test.ts +0 -511
- package/src/stack-ops.ts +0 -1082
- package/src/stack-outputs.ts +0 -66
- package/src/stack-references.test.ts +0 -96
- package/src/stack-references.ts +0 -110
- package/src/testdata/plunge-drift/README.md +0 -10
- package/src/testdata/plunge-drift/assets-drifted.ndjson +0 -3
- package/src/testdata/plunge-drift/component-unsupported.ndjson +0 -3
- package/src/testdata/plunge-drift/role-in-sync.ndjson +0 -3
- package/src/testdata/plunge-drift/settled-empty.ndjson +0 -2
- package/src/testdata/plunge-graph/Pulumi.yaml +0 -4
- package/src/testdata/plunge-graph/README.md +0 -12
- package/src/testdata/plunge-graph/engine-graph.json +0 -158
- package/src/testdata/plunge-graph/stack-export.json +0 -49
- package/src/testdata/plunge-member/Pulumi.yaml +0 -4
- package/src/testdata/plunge-member/README.md +0 -3
- package/src/testdata/plunge-member/stack-export.json +0 -480
- package/src/testdata/plunge-outputs/Pulumi.yaml +0 -9
- package/src/testdata/plunge-outputs/README.md +0 -7
- package/src/testdata/plunge-outputs/stack-export.json +0 -2003
- package/src/testdata/plunge-outputs/stack-output.json +0 -19
- package/src/testdata/pulumi-member/Pulumi.yaml +0 -2
- package/src/testdata/pulumi-member/README.md +0 -50
- package/src/testdata/pulumi-member/recording/Pulumi.dev.yaml +0 -19
- package/src/testdata/pulumi-member/recording/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-member/recording/index.js +0 -47
- package/src/testdata/pulumi-member/recording/package-lock.json +0 -2707
- package/src/testdata/pulumi-member/recording/package.json +0 -9
- package/src/testdata/pulumi-member/stack-export.json +0 -746
- package/src/testdata/pulumi-outputs/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-outputs/README.md +0 -9
- package/src/testdata/pulumi-outputs/preview-replaced.json +0 -2894
- package/src/testdata/pulumi-outputs/preview-settled.json +0 -2894
- package/src/testdata/pulumi-outputs/stack-export.json +0 -1919
- package/src/testdata/pulumi-outputs/stack-output.json +0 -19
- package/src/testdata/pulumi-preview/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-preview/README.md +0 -9
- package/src/testdata/pulumi-preview/preview-create.json +0 -992
- package/src/testdata/pulumi-preview/preview.json +0 -2894
- package/src/testdata/pulumi-preview/stack-export.json +0 -1919
- package/src/testdata/pulumi-refresh/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-refresh/README.md +0 -14
- package/src/testdata/pulumi-refresh/all.json +0 -3742
- package/src/testdata/pulumi-refresh/bucket-edited.json +0 -468
- package/src/testdata/pulumi-refresh/policy-deleted.json +0 -95
- package/src/testdata/pulumi-refresh/queue-edited.json +0 -250
- package/src/testdata/pulumi-refresh/role-same.json +0 -242
- package/src/testdata/pulumi-refresh/secret-edited.json +0 -247
- package/src/testdata/pulumi-refresh/stack-export.json +0 -1907
- package/src/testdata/pulumi-stream/README.md +0 -16
- package/src/testdata/pulumi-stream/preview-stream.ndjson +0 -42
- package/src/testdata/pulumi-stream/up-failed-plunge.ndjson +0 -5
- package/src/testdata/pulumi-unexported/Pulumi.yaml +0 -2
- package/src/testdata/pulumi-urn-node/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-urn-node/README.md +0 -9
- package/src/testdata/pulumi-urn-node/preview.json +0 -2894
- package/src/testdata/pulumi-urn-node/stack-export.json +0 -1919
- package/src/trace-facts.test.ts +0 -38
- package/src/trace-facts.ts +0 -83
- package/src/values.ts +0 -147
- package/src/workspace-kinds.test.ts +0 -47
- package/src/workspace-member.test.ts +0 -127
- package/src/workspace-member.ts +0 -304
package/src/trace-facts.test.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `pulumi-up`'s engine facts (INTENTIUS/chant#4555): the stack, the member,
|
|
3
|
-
* the engine and the summary's counts, for the step's span and run record.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { describe, expect, test } from "vitest";
|
|
7
|
-
import { pulumiSummaryAttributes, pulumiTraceFacts } from "./trace-facts";
|
|
8
|
-
import { PulumiAppliedShapeError, type PulumiUpStepOutput } from "./pulumi-up";
|
|
9
|
-
|
|
10
|
-
const output: PulumiUpStepOutput = {
|
|
11
|
-
member: "web/dev",
|
|
12
|
-
stack: "dev",
|
|
13
|
-
engine: "plunge",
|
|
14
|
-
planDigest: `sha256:${"1".repeat(64)}`,
|
|
15
|
-
fromWavePlan: true,
|
|
16
|
-
outputs: {},
|
|
17
|
-
summary: { resourceChanges: { create: 2, same: 5 }, durationSeconds: 12, result: "succeeded" },
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
describe("pulumi-up's trace facts (#4555)", () => {
|
|
21
|
-
test("an up that applied gives the stack, the engine and the summary's counts", () => {
|
|
22
|
-
expect(pulumiTraceFacts({ dir: "web", stack: "dev" }, { output })).toEqual({
|
|
23
|
-
attributes: { stack: "dev", member: "web/dev", engine: "plunge", "up.from_wave_plan": true, "up.create": 2, "up.same": 5, "up.duration_s": 12, "up.result": "succeeded" },
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
test("an up that ran steps the plan did not hold keeps its summary from the error", () => {
|
|
28
|
-
const err = new PulumiAppliedShapeError("web/dev", ["a step"], { resourceChanges: { update: 1 }, result: "succeeded" });
|
|
29
|
-
expect(pulumiTraceFacts({ dir: "web", stack: "dev", engine: "pulumi" }, { error: err })).toEqual({
|
|
30
|
-
attributes: { stack: "dev", member: "web/dev", engine: "pulumi", "up.update": 1, "up.result": "succeeded" },
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
test("a stock up with no summary gives no counts, and an error that says nothing gives the stack alone", () => {
|
|
35
|
-
expect(pulumiSummaryAttributes(undefined)).toEqual({});
|
|
36
|
-
expect(pulumiTraceFacts({ dir: "web", stack: "dev" }, { error: new Error("boom") })).toEqual({ attributes: { stack: "dev" } });
|
|
37
|
-
});
|
|
38
|
-
});
|
package/src/trace-facts.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `pulumi-up`'s engine facts for its span and op-wave run record
|
|
3
|
-
* (INTENTIUS/chant#4555): the stack, the member, the engine that ran it, and
|
|
4
|
-
* what `up --json`'s summary counted. Core writes every key under the CI
|
|
5
|
-
* product's prefix (`plywood.stack`, `plywood.up.create`).
|
|
6
|
-
*
|
|
7
|
-
* The keys:
|
|
8
|
-
*
|
|
9
|
-
* stack, member, engine the stack, `<project>/<stack>`, `pulumi` or `plunge`
|
|
10
|
-
* up.<op> the summary's count for each op (`create`, `update`, `same`, ...)
|
|
11
|
-
* up.duration_s, up.result the summary's duration and result, when it gives them
|
|
12
|
-
* up.maybe_corrupt set when the engine said the update may have left state corrupt
|
|
13
|
-
* up.from_wave_plan whether `run` applied the plan the wave decided
|
|
14
|
-
* plunge.* on plunge, the totals of its per-resource timings (./plunge-timings.ts)
|
|
15
|
-
*
|
|
16
|
-
* On plunge the facts also carry a span per resource it timed, with a child
|
|
17
|
-
* per provider call and record write (INTENTIUS/plunge#55, chant#4579), and
|
|
18
|
-
* a progress line per resource, which core puts on the stack's `step-settle`
|
|
19
|
-
* event and prints in the job's log (chant#4615).
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
import type { CapabilityTraceFacts } from "@intentius/chant/otlp";
|
|
23
|
-
import type { PulumiApplySummary } from "./engine-events";
|
|
24
|
-
import { plungeResourceProgress, plungeTimingSpans, plungeTimingTotals } from "./plunge-timings";
|
|
25
|
-
import type { PulumiUpStepInput, PulumiUpStepOutput } from "./pulumi-up";
|
|
26
|
-
|
|
27
|
-
type Attrs = NonNullable<CapabilityTraceFacts["attributes"]>;
|
|
28
|
-
|
|
29
|
-
/** A summary's counts and verdict as attributes. */
|
|
30
|
-
export function pulumiSummaryAttributes(summary: PulumiApplySummary | undefined): Attrs {
|
|
31
|
-
if (!summary) return {};
|
|
32
|
-
const out: Attrs = {};
|
|
33
|
-
for (const [op, n] of Object.entries(summary.resourceChanges)) if (typeof n === "number" && Number.isFinite(n)) out[`up.${op}`] = n;
|
|
34
|
-
if (summary.durationSeconds !== undefined) out["up.duration_s"] = summary.durationSeconds;
|
|
35
|
-
if (summary.result) out["up.result"] = summary.result;
|
|
36
|
-
if (summary.maybeCorrupt) out["up.maybe_corrupt"] = true;
|
|
37
|
-
return out;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** What an error `run` threw says about the update: its member and summary, when it carries them. */
|
|
41
|
-
function fromError(error: unknown): { member?: string; summary?: PulumiApplySummary } {
|
|
42
|
-
if (typeof error !== "object" || error === null) return {};
|
|
43
|
-
const e = error as { member?: unknown; summary?: unknown };
|
|
44
|
-
return {
|
|
45
|
-
...(typeof e.member === "string" ? { member: e.member } : {}),
|
|
46
|
-
...(typeof e.summary === "object" && e.summary !== null ? { summary: e.summary as PulumiApplySummary } : {}),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/** `traceFacts` for `pulumi-up` (#4555). */
|
|
51
|
-
export function pulumiTraceFacts(input: PulumiUpStepInput, outcome: { output: PulumiUpStepOutput } | { error: unknown }): CapabilityTraceFacts {
|
|
52
|
-
if ("output" in outcome && outcome.output) {
|
|
53
|
-
const o = outcome.output;
|
|
54
|
-
const spans = plungeTimingSpans(o.summary?.timings);
|
|
55
|
-
const resources = plungeResourceProgress(o.summary?.timings);
|
|
56
|
-
return {
|
|
57
|
-
attributes: {
|
|
58
|
-
stack: o.stack,
|
|
59
|
-
member: o.member,
|
|
60
|
-
engine: o.engine,
|
|
61
|
-
"up.from_wave_plan": o.fromWavePlan,
|
|
62
|
-
...pulumiSummaryAttributes(o.summary),
|
|
63
|
-
...plungeTimingTotals(o.summary?.timings),
|
|
64
|
-
},
|
|
65
|
-
...(spans.length > 0 ? { spans } : {}),
|
|
66
|
-
...(resources.length > 0 ? { resources } : {}),
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
const e = fromError("error" in outcome ? outcome.error : undefined);
|
|
70
|
-
const spans = plungeTimingSpans(e.summary?.timings);
|
|
71
|
-
const resources = plungeResourceProgress(e.summary?.timings);
|
|
72
|
-
return {
|
|
73
|
-
attributes: {
|
|
74
|
-
...(typeof input?.stack === "string" ? { stack: input.stack } : {}),
|
|
75
|
-
...(e.member ? { member: e.member } : {}),
|
|
76
|
-
...(input?.engine ? { engine: input.engine } : {}),
|
|
77
|
-
...pulumiSummaryAttributes(e.summary),
|
|
78
|
-
...plungeTimingTotals(e.summary?.timings),
|
|
79
|
-
},
|
|
80
|
-
...(spans.length > 0 ? { spans } : {}),
|
|
81
|
-
...(resources.length > 0 ? { resources } : {}),
|
|
82
|
-
};
|
|
83
|
-
}
|
package/src/values.ts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reading property values out of Pulumi's JSON (#4453), shared by the
|
|
3
|
-
* change-set and drift adapters.
|
|
4
|
-
*
|
|
5
|
-
* `pulumi preview --json` and `pulumi refresh --preview-only --json` print
|
|
6
|
-
* each step's `oldState` and `newState` as `apitype.ResourceV3`, whose
|
|
7
|
-
* `inputs` and `outputs` are serialized property maps. Two values in them are
|
|
8
|
-
* not plain JSON:
|
|
9
|
-
*
|
|
10
|
-
* - An unknown, a value known only after apply, is the string
|
|
11
|
-
* {@link PULUMI_UNKNOWN} (`resource.UnknownStringValue` in Pulumi's SDK).
|
|
12
|
-
* - A secret is an object holding the signature key {@link PULUMI_SIG_KEY}
|
|
13
|
-
* with the value {@link PULUMI_SECRET_SIG}, and the value under
|
|
14
|
-
* `plaintext`, `ciphertext` or `value`. Without `--show-secrets` the
|
|
15
|
-
* display blinds it to `"[secret]"`, so that string counts as a secret too.
|
|
16
|
-
*
|
|
17
|
-
* Recorded from pulumi 3.272.0 against the plunge corpus on floci (#4475,
|
|
18
|
-
* `testdata/pulumi-preview` and `testdata/pulumi-refresh`): previews and
|
|
19
|
-
* refreshes print the unknown sentinel for a value known only after apply,
|
|
20
|
-
* and a secret, in inputs and outputs alike, as the blinded `"[secret]"`;
|
|
21
|
-
* a `pulumi stack export` holds the signature object with its ciphertext.
|
|
22
|
-
*
|
|
23
|
-
* Imports nothing, so the adapters bundle small (#3421).
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/** Pulumi's unknown sentinel, `resource.UnknownStringValue`. */
|
|
27
|
-
export const PULUMI_UNKNOWN = "04da6b54-80e4-46f7-96ec-b56ff0331ba9";
|
|
28
|
-
|
|
29
|
-
/** The key a secret envelope carries, `sig.Key`. */
|
|
30
|
-
export const PULUMI_SIG_KEY = "4dabf18193072939515e22adb298388d";
|
|
31
|
-
|
|
32
|
-
/** The value under {@link PULUMI_SIG_KEY} that marks a secret, `sig.Secret`. */
|
|
33
|
-
export const PULUMI_SECRET_SIG = "1b47061264138c4ac30d75fd1eb44270";
|
|
34
|
-
|
|
35
|
-
/** What the display prints for a secret it does not show. */
|
|
36
|
-
export const PULUMI_BLINDED_SECRET = "[secret]";
|
|
37
|
-
|
|
38
|
-
export type Json = Record<string, unknown>;
|
|
39
|
-
|
|
40
|
-
export const isObject = (v: unknown): v is Json => v !== null && typeof v === "object" && !Array.isArray(v);
|
|
41
|
-
|
|
42
|
-
/** True for the unknown sentinel itself. */
|
|
43
|
-
export function isUnknown(v: unknown): boolean {
|
|
44
|
-
return v === PULUMI_UNKNOWN;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** True for a secret envelope, or the display's blinded secret. */
|
|
48
|
-
export function isSecret(v: unknown): boolean {
|
|
49
|
-
if (v === PULUMI_BLINDED_SECRET) return true;
|
|
50
|
-
return isObject(v) && v[PULUMI_SIG_KEY] === PULUMI_SECRET_SIG;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/** Whether a value is, or holds anywhere under it, an unknown. A secret's inside is not looked at. */
|
|
54
|
-
export function holdsUnknown(v: unknown): boolean {
|
|
55
|
-
if (isUnknown(v)) return true;
|
|
56
|
-
if (isSecret(v)) return false;
|
|
57
|
-
if (Array.isArray(v)) return v.some(holdsUnknown);
|
|
58
|
-
if (isObject(v)) return Object.values(v).some(holdsUnknown);
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/** Whether a value is, or holds anywhere under it, a secret. */
|
|
63
|
-
export function holdsSecret(v: unknown): boolean {
|
|
64
|
-
if (isSecret(v)) return true;
|
|
65
|
-
if (Array.isArray(v)) return v.some(holdsSecret);
|
|
66
|
-
if (isObject(v)) return Object.values(v).some(holdsSecret);
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function sameJson(a: unknown, b: unknown): boolean {
|
|
71
|
-
if (a === b) return true;
|
|
72
|
-
if (Array.isArray(a) && Array.isArray(b)) return a.length === b.length && a.every((x, i) => sameJson(x, b[i]));
|
|
73
|
-
if (isObject(a) && isObject(b)) {
|
|
74
|
-
const ka = Object.keys(a);
|
|
75
|
-
return ka.length === Object.keys(b).length && ka.every((k) => k in b && sameJson(a[k], b[k]));
|
|
76
|
-
}
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* The segments of a Pulumi property path, the keys of `detailedDiff`:
|
|
82
|
-
* keys joined with `.`, indexes in brackets, and keys that are not
|
|
83
|
-
* identifiers quoted in brackets (`tags["kubernetes.io/role"]`,
|
|
84
|
-
* `ingress[0].cidrBlocks[1]`). The same grammar as chant's plan-observation
|
|
85
|
-
* paths, so a drift attribute's path is the key as Pulumi prints it.
|
|
86
|
-
*/
|
|
87
|
-
export function propertyPathSegments(path: string): (string | number)[] {
|
|
88
|
-
const out: (string | number)[] = [];
|
|
89
|
-
let current = "";
|
|
90
|
-
for (let i = 0; i < path.length; i++) {
|
|
91
|
-
const c = path[i];
|
|
92
|
-
if (c === ".") {
|
|
93
|
-
if (current) out.push(current);
|
|
94
|
-
current = "";
|
|
95
|
-
} else if (c === "[") {
|
|
96
|
-
if (current) out.push(current);
|
|
97
|
-
current = "";
|
|
98
|
-
if (path[i + 1] === '"') {
|
|
99
|
-
let key = "";
|
|
100
|
-
let j = i + 2;
|
|
101
|
-
for (; j < path.length && path[j] !== '"'; j++) {
|
|
102
|
-
if (path[j] === "\\" && j + 1 < path.length) j++;
|
|
103
|
-
key += path[j];
|
|
104
|
-
}
|
|
105
|
-
out.push(key);
|
|
106
|
-
const close = path.indexOf("]", j);
|
|
107
|
-
if (close < 0) break;
|
|
108
|
-
i = close;
|
|
109
|
-
} else {
|
|
110
|
-
const close = path.indexOf("]", i);
|
|
111
|
-
if (close < 0) break;
|
|
112
|
-
const raw = path.slice(i + 1, close);
|
|
113
|
-
out.push(/^\d+$/.test(raw) ? Number(raw) : raw);
|
|
114
|
-
i = close;
|
|
115
|
-
}
|
|
116
|
-
} else current += c;
|
|
117
|
-
}
|
|
118
|
-
if (current) out.push(current);
|
|
119
|
-
return out;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/** The top-level property a path is under. */
|
|
123
|
-
export function topLevelKey(path: string): string {
|
|
124
|
-
const first = propertyPathSegments(path)[0];
|
|
125
|
-
return first === undefined ? path : String(first);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/** The value at a property path, or undefined when nothing is there. A secret on the way is returned as it is. */
|
|
129
|
-
export function valueAtPath(root: unknown, path: string): unknown {
|
|
130
|
-
let v: unknown = root;
|
|
131
|
-
for (const seg of propertyPathSegments(path)) {
|
|
132
|
-
if (isSecret(v)) return v;
|
|
133
|
-
if (typeof seg === "number") {
|
|
134
|
-
if (!Array.isArray(v)) return undefined;
|
|
135
|
-
v = v[seg];
|
|
136
|
-
} else {
|
|
137
|
-
if (!isObject(v)) return undefined;
|
|
138
|
-
v = v[seg];
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return v;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/** A property map's keys, without the `__defaults` bookkeeping Pulumi keeps beside the inputs. */
|
|
145
|
-
export function propertyKeys(map: unknown): string[] {
|
|
146
|
-
return isObject(map) ? Object.keys(map).filter((k) => !k.startsWith("__")) : [];
|
|
147
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The pulumi member kind this lexicon supplies to a chant workspace (#3179,
|
|
3
|
-
* moved here from the terraform lexicon by #4453). It is data in
|
|
4
|
-
* `workspace-kinds.json` at the package root, exported at
|
|
5
|
-
* `./workspace-kinds`; chant reads it without importing the lexicon. The
|
|
6
|
-
* kind keeps its name, `pulumi`, which behold keys on.
|
|
7
|
-
*/
|
|
8
|
-
import { join } from "node:path";
|
|
9
|
-
import { describe, expect, it } from "vitest";
|
|
10
|
-
import { describeWorkspaceKindConformance } from "@intentius/chant-test-utils";
|
|
11
|
-
import { checkMemberFile, loadMemberFileSchema, readPackageKinds } from "../../../packages/core/src/workspace/kinds";
|
|
12
|
-
|
|
13
|
-
const packageDir = join(import.meta.dirname, "..");
|
|
14
|
-
|
|
15
|
-
describeWorkspaceKindConformance({
|
|
16
|
-
packageDir,
|
|
17
|
-
scenarios: [
|
|
18
|
-
// The kind is a probe and a check of Pulumi.yaml.
|
|
19
|
-
{ name: "a Pulumi program", kind: "pulumi", files: { "Pulumi.yaml": "name: app\nruntime: nodejs\n", "index.ts": "" }, claims: true },
|
|
20
|
-
{ name: "a Pulumi program one level down", kind: "pulumi", files: { "infra/Pulumi.yaml": "name: app\nruntime: nodejs\n" }, claims: false },
|
|
21
|
-
{ name: "a stack file alone", kind: "pulumi", files: { "Pulumi.dev.yaml": "config: {}\n" }, claims: false },
|
|
22
|
-
],
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
describe("the pulumi kind", () => {
|
|
26
|
-
const kinds = readPackageKinds(packageDir);
|
|
27
|
-
it("is named pulumi and reads its members with this lexicon", () => {
|
|
28
|
-
expect(kinds.problems ?? []).toEqual([]);
|
|
29
|
-
const kind = kinds.kinds.find((k) => k.name === "pulumi")!;
|
|
30
|
-
expect(kind.graph?.lexicon).toBe("pulumi");
|
|
31
|
-
expect(kind.graph?.config).toEqual({ member: { dir: "{dir}", label: "{member}" } });
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
describe("pulumi member file", () => {
|
|
36
|
-
const memberFile = readPackageKinds(packageDir).kinds.find((k) => k.name === "pulumi")!.memberFile!;
|
|
37
|
-
it("names a schema that loads", () => {
|
|
38
|
-
expect(loadMemberFileSchema(memberFile, packageDir)).toBeUndefined();
|
|
39
|
-
});
|
|
40
|
-
it("passes a program with a runtime, named or in an object", () => {
|
|
41
|
-
expect(checkMemberFile(memberFile, "Pulumi.yaml", "name: app\nruntime: nodejs\n")).toEqual([]);
|
|
42
|
-
expect(checkMemberFile(memberFile, "Pulumi.yaml", "name: app\nruntime:\n name: python\n")).toEqual([]);
|
|
43
|
-
});
|
|
44
|
-
it("fails one with no runtime", () => {
|
|
45
|
-
expect(checkMemberFile(memberFile, "Pulumi.yaml", "name: app\n").length).toBeGreaterThan(0);
|
|
46
|
-
});
|
|
47
|
-
});
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The pulumi member kind's graph block (#3179): the reader project the kind's
|
|
3
|
-
* graph config describes, run through chant graph over a checked-in
|
|
4
|
-
* `pulumi stack export`. The kind moved here from the terraform lexicon
|
|
5
|
-
* (#4453); the node ids are the ones it gave there. Nothing here runs Pulumi.
|
|
6
|
-
*/
|
|
7
|
-
import { afterEach, describe, expect, test, vi } from "vitest";
|
|
8
|
-
import { dirname, join } from "node:path";
|
|
9
|
-
import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
10
|
-
import { tmpdir } from "node:os";
|
|
11
|
-
import type { GraphIR } from "@intentius/chant/graph-ir";
|
|
12
|
-
import { runGraph } from "@intentius/chant/cli/handlers/graph";
|
|
13
|
-
import { readPackageKinds, substituteGraphConfig } from "../../../packages/core/src/workspace/kinds";
|
|
14
|
-
import { pulumiPlugin } from "./plugin";
|
|
15
|
-
import { readPulumiMember } from "./workspace-member";
|
|
16
|
-
|
|
17
|
-
const packageDir = join(import.meta.dirname, "..");
|
|
18
|
-
const member = join(import.meta.dirname, "testdata", "pulumi-member");
|
|
19
|
-
|
|
20
|
-
const scratch: string[] = [];
|
|
21
|
-
afterEach(async () => {
|
|
22
|
-
vi.restoreAllMocks();
|
|
23
|
-
await Promise.all(scratch.splice(0).map((d) => rm(d, { recursive: true, force: true })));
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
async function graphOf(dir: string): Promise<{ ir: GraphIR; err: string[]; exit: number }> {
|
|
27
|
-
const graph = readPackageKinds(packageDir).kinds.find((k) => k.name === "pulumi")!.graph!;
|
|
28
|
-
expect(graph.lexicon).toBe("pulumi");
|
|
29
|
-
const config = substituteGraphConfig(graph.config, { member: "infra", dir, workspace: dirname(dir) });
|
|
30
|
-
const project = await mkdtemp(join(tmpdir(), "chant-pulumi-member-"));
|
|
31
|
-
scratch.push(project);
|
|
32
|
-
await writeFile(join(project, "chant.config.json"), JSON.stringify({ lexicons: ["pulumi"], pulumi: config, graph: { lint: "report" } }));
|
|
33
|
-
const out: string[] = [];
|
|
34
|
-
const err: string[] = [];
|
|
35
|
-
vi.spyOn(console, "log").mockImplementation((line: unknown) => void out.push(String(line)));
|
|
36
|
-
vi.spyOn(console, "error").mockImplementation((line: unknown) => void err.push(String(line)));
|
|
37
|
-
const cwd = process.cwd();
|
|
38
|
-
process.chdir(project);
|
|
39
|
-
try {
|
|
40
|
-
const exit = await runGraph({ args: { command: "graph", path: ".", format: "ir" } as never, plugins: [pulumiPlugin], serializers: [] });
|
|
41
|
-
return { ir: exit === 0 ? (JSON.parse(out.join("\n")) as GraphIR) : { nodes: [], edges: [], groups: {} }, err, exit };
|
|
42
|
-
} finally {
|
|
43
|
-
process.chdir(cwd);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
describe("pulumi member graph block (#3179)", () => {
|
|
48
|
-
test("the export's resources are nodes; provider resources and the root stack are left out", async () => {
|
|
49
|
-
const { ir, err, exit } = await graphOf(member);
|
|
50
|
-
expect(exit, err.join("\n")).toBe(0);
|
|
51
|
-
expect(ir.nodes.map((n) => [n.id, n.kind]).sort()).toEqual([
|
|
52
|
-
["infra/aws:iam/role:Role::web", "aws:iam/role:Role"],
|
|
53
|
-
["infra/aws:iam/rolePolicy:RolePolicy::webReadsAssets", "aws:iam/rolePolicy:RolePolicy"],
|
|
54
|
-
["infra/aws:s3/bucket:Bucket::assets", "aws:s3/bucket:Bucket"],
|
|
55
|
-
["infra/my:mod:Web$aws:lambda/function:Function::handler", "aws:lambda/function:Function"],
|
|
56
|
-
["infra/my:mod:Web::web-app", "my:mod:Web"],
|
|
57
|
-
]);
|
|
58
|
-
expect(ir.meta?.pulumiMember).toEqual({ export: "stack-export.json", exportSource: "file", objects: 5, exported: true });
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
const recordedEdges = [
|
|
62
|
-
"aws:iam/rolePolicy:RolePolicy::webReadsAssets -> aws:iam/role:Role::web via dependencies",
|
|
63
|
-
"aws:iam/rolePolicy:RolePolicy::webReadsAssets -> aws:s3/bucket:Bucket::assets via dependencies",
|
|
64
|
-
"my:mod:Web$aws:lambda/function:Function::handler -> aws:iam/role:Role::web via dependencies",
|
|
65
|
-
"my:mod:Web$aws:lambda/function:Function::handler -> my:mod:Web::web-app via parent",
|
|
66
|
-
];
|
|
67
|
-
const edgesOf = (ir: GraphIR) => ir.edges.map((e) => `${e.from.slice(6)} -> ${e.to.slice(6)} via ${e.viaAttr}`).sort();
|
|
68
|
-
|
|
69
|
-
test("dependencies and parent are edges; the root stack is not", async () => {
|
|
70
|
-
const { ir } = await graphOf(member);
|
|
71
|
-
expect(edgesOf(ir)).toEqual(recordedEdges);
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
test("a dependency outside the export is not an edge", async () => {
|
|
75
|
-
// A real export never names a dependency it does not hold, so the case is
|
|
76
|
-
// built from a copy of the recorded one (#4507).
|
|
77
|
-
const doc = JSON.parse(await readFile(join(member, "stack-export.json"), "utf-8")) as {
|
|
78
|
-
deployment: { resources: { urn: string; dependencies?: string[] }[] };
|
|
79
|
-
};
|
|
80
|
-
const policy = doc.deployment.resources.find((r) => r.urn.endsWith("::webReadsAssets"))!;
|
|
81
|
-
policy.dependencies = [...(policy.dependencies ?? []), "urn:pulumi:dev::app::aws:s3/bucket:Bucket::elsewhere"];
|
|
82
|
-
const dir = await mkdtemp(join(tmpdir(), "chant-pulumi-dangling-"));
|
|
83
|
-
scratch.push(dir);
|
|
84
|
-
await writeFile(join(dir, "stack-export.json"), JSON.stringify(doc));
|
|
85
|
-
const { ir, err, exit } = await graphOf(dir);
|
|
86
|
-
expect(exit, err.join("\n")).toBe(0);
|
|
87
|
-
expect(edgesOf(ir)).toEqual(recordedEdges);
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
test("inputs are not copied into the graph", async () => {
|
|
91
|
-
const { ir } = await graphOf(member);
|
|
92
|
-
expect(JSON.stringify(ir)).not.toContain("ciphertext");
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
test("a program with no export has no nodes, and the member says why", async () => {
|
|
96
|
-
const { ir, err, exit } = await graphOf(join(import.meta.dirname, "testdata", "pulumi-unexported"));
|
|
97
|
-
expect(exit, err.join("\n")).toBe(0);
|
|
98
|
-
expect(ir.nodes).toEqual([]);
|
|
99
|
-
const report = ir.meta?.pulumiMember as { exported: boolean; reason: string };
|
|
100
|
-
expect(report.exported).toBe(false);
|
|
101
|
-
expect(report.reason).toMatch(/pulumi stack export/);
|
|
102
|
-
expect(err.join("\n")).toMatch(/was not read/);
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
test("an export with pending operations says how many, and one without leaves the count out (#4468)", async () => {
|
|
106
|
-
const dir = await mkdtemp(join(tmpdir(), "chant-pulumi-pending-"));
|
|
107
|
-
scratch.push(dir);
|
|
108
|
-
await writeFile(
|
|
109
|
-
join(dir, "stack-export.json"),
|
|
110
|
-
JSON.stringify({
|
|
111
|
-
version: 3,
|
|
112
|
-
deployment: {
|
|
113
|
-
resources: [{ urn: "urn:pulumi:dev::app::aws:s3/bucket:Bucket::assets", type: "aws:s3/bucket:Bucket" }],
|
|
114
|
-
pending_operations: [{ type: "creating", resource: { urn: "urn:pulumi:dev::app::aws:s3/bucket:Bucket::logs" } }],
|
|
115
|
-
},
|
|
116
|
-
}),
|
|
117
|
-
);
|
|
118
|
-
expect(readPulumiMember({ member: { dir, label: "infra" } }).report).toEqual({
|
|
119
|
-
export: "stack-export.json",
|
|
120
|
-
exportSource: "file",
|
|
121
|
-
objects: 1,
|
|
122
|
-
exported: true,
|
|
123
|
-
pendingOperations: 1,
|
|
124
|
-
});
|
|
125
|
-
expect(readPulumiMember({ member: { dir: member, label: "infra" } }).report.pendingOperations).toBeUndefined();
|
|
126
|
-
});
|
|
127
|
-
});
|