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 java.lang.Object implements PulumiTest.API
-
-
Constructor Summary
Constructors Constructor Description APIInternal()
-
Method Summary
All Methods Instance Methods Concrete 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
public PulumiTest.API withOptions(TestOptions options)
Description copied from interface:PulumiTest.API
UseTestOptions
in this test.- Specified by:
withOptions
in interfacePulumiTest.API
- Parameters:
options
- theTestOptions
to use- Returns:
- a Pulumi test program entrypoint with given
TestOptions
- See Also:
PulumiTest.API.runTest(Consumer)
,PulumiTest.API.runTestAsync(Consumer)
,PulumiTest.API.withMocks(Mocks)
-
withMocks
public PulumiTest.API withMocks(Mocks mocks)
Description copied from interface:PulumiTest.API
UseMocks
in this test.- Specified by:
withMocks
in interfacePulumiTest.API
- Parameters:
mocks
- theMonitor
mocks to use- Returns:
- a Pulumi test program entrypoint with given
TestOptions
- See Also:
PulumiTest.API.runTest(Consumer)
,PulumiTest.API.runTestAsync(Consumer)
,PulumiTest.API.withOptions(TestOptions)
-
runTest
public TestResult runTest(java.util.function.Consumer<Context> stack)
Description copied from interface:PulumiTest.API
Run a Pulumi test stack callback, wait for result and returnTestResult
.- Specified by:
runTest
in interfacePulumiTest.API
- Parameters:
stack
- the stack to run in Pulumi test runtime- Returns:
- a
TestResult
from Pulumi test runtime after running the stack
-
runTestAsync
public java.util.concurrent.CompletableFuture<TestResult> runTestAsync(java.util.function.Consumer<Context> stack)
Description copied from interface:PulumiTest.API
Run a Pulumi test stack callback asynchronously and returnTestResult
.- Specified by:
runTestAsync
in interfacePulumiTest.API
- Parameters:
stack
- the stack to run in Pulumi test runtime- Returns:
- a future
TestResult
from Pulumi test runtime after running the stack
-
-