pulumi/pkg
Pat Gavlin eaac9280f5
Refactor lifecycle tests. (#5575)
Move these tests to a new package, `lifecycletest`, that also exposes
APIs that allow consumers to implement their own lifecycle tests. This
is intended to ease the burden of testing plugin implementations and to
set the stage for cleaning up the lifecycle tests themselves.

This involves two changes to the public API, only one of which is
strictly necessary:

- The `host` field of `UpdateOptions` is now exported
- The `Journal` type has been moved from test-only code to the package
  proper

The former change is necessary, as it is the mechanism by which package
consumers may inject their own plugin loaders. I was reluctant to expose
this field originally because I wanted to ensure that the behavior of
packages that embed Pulumi is consistent with that of the Pulumi CLI
with respect to plugin loading. I now believe that the risk of consumers
changing this behavior outside of test scenarios is low enough that we
can expose this field. This may also be useful for future scenarios,
e.g. statically linking providers and Pulumi programs.

The latter change is not necessary, but fleshes out the engine package
into a more complete toolkit. Downstream consumers may use the Journal
type to conveniently implement snapshotting.
2020-10-15 10:35:09 -07:00
..
backend [cli] Add an import command. (#4765) 2020-10-14 12:51:53 +01:00
cmd/pulumi [cli] Add an import command. (#4765) 2020-10-14 12:51:53 +01:00
codegen [cli] Add an import command. (#4765) 2020-10-14 12:51:53 +01:00
engine Refactor lifecycle tests. (#5575) 2020-10-15 10:35:09 -07:00
graph Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
operations Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
resource [cli] Add an import command. (#4765) 2020-10-14 12:51:53 +01:00
secrets Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
testing/integration Support remote components in Python (#5375) 2020-09-30 14:09:20 -07:00
util Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
go.mod [cli] Add an import command. (#4765) 2020-10-14 12:51:53 +01:00
go.sum [cli] Add an import command. (#4765) 2020-10-14 12:51:53 +01:00