Package com.pulumi.test.internal
Class PulumiTestInternal
java.lang.Object
com.pulumi.internal.PulumiInternal
com.pulumi.test.internal.PulumiTestInternal
- All Implemented Interfaces:
Pulumi,Pulumi.API,PulumiTest
@InternalUse
public class PulumiTestInternal
extends com.pulumi.internal.PulumiInternal
implements PulumiTest
Provides an internal test Pulumi entrypoint and exposes various internals for the testing purposes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classThePulumiTestInternalbuilder.Nested classes/interfaces inherited from interface com.pulumi.Pulumi
Pulumi.APINested classes/interfaces inherited from interface com.pulumi.test.PulumiTest
PulumiTest.API -
Field Summary
Fields inherited from class com.pulumi.internal.PulumiInternal
runner, stackContext -
Constructor Summary
ConstructorsConstructorDescriptionPulumiTestInternal(TestOptions options, com.pulumi.deployment.internal.Runner runner, MockEngine engine, MockMonitor monitor, Log log, com.pulumi.deployment.internal.ReadOrRegisterResource readOrRegisterResource, com.pulumi.deployment.internal.RegisterResourceOutputs registerResourceOutputs, com.pulumi.context.internal.ContextInternal stackContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic PulumiTestInternal.Builderbuilder()static voidcleanup()Cleanup internal test state.static com.pulumi.deployment.internal.DeploymentImpl.Configconfig(com.google.common.collect.ImmutableMap<String, String> allConfig, com.google.common.collect.ImmutableSet<String> configSecretKeys) static Loggerengine()static <T> com.pulumi.core.internal.OutputData<T>extractOutputData(Output<T> output) log()static Loggerstatic LogmockLog()static Logstatic Logmonitor()options()parseConfig(String configJson) static com.google.common.collect.ImmutableSet<String>parseConfigSecretKeys(String secretKeysJson) com.pulumi.deployment.internal.ReadOrRegisterResourcecom.pulumi.deployment.internal.RegisterResourceOutputscom.pulumi.deployment.internal.Runnerrunner()runTestAsync(Consumer<Context> stackCallback) Methods inherited from class com.pulumi.internal.PulumiInternal
fromEnvironment, fromInline, run, runAsync, runAsyncResult, runInlineAsync
-
Constructor Details
-
PulumiTestInternal
@InternalUse public PulumiTestInternal(TestOptions options, com.pulumi.deployment.internal.Runner runner, MockEngine engine, MockMonitor monitor, Log log, com.pulumi.deployment.internal.ReadOrRegisterResource readOrRegisterResource, com.pulumi.deployment.internal.RegisterResourceOutputs registerResourceOutputs, com.pulumi.context.internal.ContextInternal stackContext)
-
-
Method Details
-
options
- Returns:
- the
TestOptionsfor this test
-
runner
@InternalUse public com.pulumi.deployment.internal.Runner runner()- Returns:
- the
Runnerused by the test
-
engine
- Returns:
- the
Engineused by the test
-
monitor
- Returns:
- return the
Monitorused by the test
-
readOrRegisterResource
public com.pulumi.deployment.internal.ReadOrRegisterResource readOrRegisterResource()- Returns:
- return the
ReadOrRegisterResourceused by the test
-
registerResourceOutputs
public com.pulumi.deployment.internal.RegisterResourceOutputs registerResourceOutputs()- Returns:
- return the
RegisterResourceOutputsused by the test
-
log
- Returns:
- return the
Logused by the test
-
runTest
-
runTestAsync
-
cleanup
public static void cleanup()Description copied from interface:PulumiTestCleanup internal test state. Must be called after every run of a Pulumi test program.- See Also:
-
extractOutputData
@InternalUse @CanIgnoreReturnValue public static <T> com.pulumi.core.internal.OutputData<T> extractOutputData(Output<T> output) -
builder
- Returns:
- a new
PulumiTestInternal.BuilderforPulumiTestInternal
-
logger
-
defaultLogger
-
mockLog
-
mockLog
-
mockLog
-
config
-
parseConfig
-
parseConfigSecretKeys
-