Package com.pulumi.test
Interface PulumiTest.API
-
- All Known Implementing Classes:
PulumiTestInternal.APIInternal
- Enclosing interface:
- PulumiTest
public static interface PulumiTest.APIPulumi test entrypoint operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TestResultrunTest(java.util.function.Consumer<Context> stack)Run a Pulumi test stack callback, wait for result and returnTestResult.java.util.concurrent.CompletableFuture<TestResult>runTestAsync(java.util.function.Consumer<Context> stack)Run a Pulumi test stack callback asynchronously and returnTestResult.PulumiTest.APIwithMocks(Mocks mocks)UseMocksin this test.PulumiTest.APIwithOptions(TestOptions options)UseTestOptionsin this test.
-
-
-
Method Detail
-
withOptions
PulumiTest.API withOptions(TestOptions options)
UseTestOptionsin this test.- Parameters:
options- theTestOptionsto use- Returns:
- a Pulumi test program entrypoint with given
TestOptions - See Also:
runTest(Consumer),runTestAsync(Consumer),withMocks(Mocks)
-
withMocks
PulumiTest.API withMocks(Mocks mocks)
UseMocksin this test.- Parameters:
mocks- theMonitormocks to use- Returns:
- a Pulumi test program entrypoint with given
TestOptions - See Also:
runTest(Consumer),runTestAsync(Consumer),withOptions(TestOptions)
-
runTest
TestResult runTest(java.util.function.Consumer<Context> stack)
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
java.util.concurrent.CompletableFuture<TestResult> runTestAsync(java.util.function.Consumer<Context> stack)
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
-
-