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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TestResult
runTest(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.API
withMocks(Mocks mocks)
UseMocks
in this test.PulumiTest.API
withOptions(TestOptions options)
UseTestOptions
in this test.
-
-
-
Method Detail
-
withOptions
PulumiTest.API withOptions(TestOptions options)
UseTestOptions
in this test.- Parameters:
options
- theTestOptions
to use- Returns:
- a Pulumi test program entrypoint with given
TestOptions
- See Also:
runTest(Consumer)
,runTestAsync(Consumer)
,withMocks(Mocks)
-
withMocks
PulumiTest.API withMocks(Mocks mocks)
UseMocks
in this test.- Parameters:
mocks
- theMonitor
mocks 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
TestResult
from 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
TestResult
from Pulumi test runtime after running the stack
-
-