Package com.pulumi.test
Interface PulumiTest.API
- All Known Implementing Classes:
PulumiTestInternal.APIInternal
- Enclosing interface:
- PulumiTest
public static interface PulumiTest.API
Pulumi test entrypoint operations.
-
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.
-
Method Details
-
withOptions
UseTestOptionsin this test.- Parameters:
options- theTestOptionsto use- Returns:
- a Pulumi test program entrypoint with given
TestOptions - See Also:
-
withMocks
UseMocksin this test.- Parameters:
mocks- theMonitormocks to use- Returns:
- a Pulumi test program entrypoint with given
TestOptions - See Also:
-
runTest
Run a Pulumi test stack callback, wait for result and returnTestResult.- Parameters:
stack- the stack to run in Pulumi test runtime- Returns:
- a
TestResultfrom Pulumi test runtime after running the stack
-
runTestAsync
Run a Pulumi test stack callback asynchronously and returnTestResult.- Parameters:
stack- the stack to run in Pulumi test runtime- Returns:
- a future
TestResultfrom Pulumi test runtime after running the stack
-