Package com.pulumi.test.internal
Class PulumiTestInternal.APIInternal
java.lang.Object
com.pulumi.test.internal.PulumiTestInternal.APIInternal
- All Implemented Interfaces:
PulumiTest.API
- Enclosing class:
- PulumiTestInternal
@InternalUse
public static final class PulumiTestInternal.APIInternal
extends Object
implements PulumiTest.API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRun a Pulumi test stack callback, wait for result and returnTestResult.runTestAsync(Consumer<Context> stack) Run a Pulumi test stack callback asynchronously and returnTestResult.UseMocksin this test.withOptions(TestOptions options) UseTestOptionsin this test.
-
Constructor Details
-
APIInternal
public APIInternal()
-
-
Method Details
-
withOptions
Description copied from interface:PulumiTest.APIUseTestOptionsin this test.- Specified by:
withOptionsin interfacePulumiTest.API- Parameters:
options- theTestOptionsto use- Returns:
- a Pulumi test program entrypoint with given
TestOptions - See Also:
-
withMocks
Description copied from interface:PulumiTest.APIUseMocksin this test.- Specified by:
withMocksin interfacePulumiTest.API- Parameters:
mocks- theMonitormocks to use- Returns:
- a Pulumi test program entrypoint with given
TestOptions - See Also:
-
runTest
Description copied from interface:PulumiTest.APIRun a Pulumi test stack callback, wait for result and returnTestResult.- Specified by:
runTestin interfacePulumiTest.API- Parameters:
stack- the stack to run in Pulumi test runtime- Returns:
- a
TestResultfrom Pulumi test runtime after running the stack
-
runTestAsync
Description copied from interface:PulumiTest.APIRun a Pulumi test stack callback asynchronously and returnTestResult.- Specified by:
runTestAsyncin interfacePulumiTest.API- Parameters:
stack- the stack to run in Pulumi test runtime- Returns:
- a future
TestResultfrom Pulumi test runtime after running the stack
-