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 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
public PulumiTest.API withOptions(TestOptions options)
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:
PulumiTest.API.runTest(Consumer),PulumiTest.API.runTestAsync(Consumer),PulumiTest.API.withMocks(Mocks)
-
withMocks
public PulumiTest.API withMocks(Mocks mocks)
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:
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.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
public java.util.concurrent.CompletableFuture<TestResult> runTestAsync(java.util.function.Consumer<Context> stack)
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
-
-