Package com.pulumi.test.internal
Class PulumiTestInternal.Builder
- java.lang.Object
-
- com.pulumi.test.internal.PulumiTestInternal.Builder
-
- Enclosing class:
- PulumiTestInternal
@InternalUse public static final class PulumiTestInternal.Builder extends java.lang.Object
ThePulumiTestInternal
builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PulumiTestInternal
build()
PulumiTestInternal.Builder
config(java.util.Map<java.lang.String,java.lang.String> allConfig)
Set configuration to use for this testPulumiTestInternal.Builder
config(java.util.Map<java.lang.String,java.lang.String> allConfig, java.util.Set<java.lang.String> configSecretKeys)
Set configuration to use for this testPulumiTestInternal.Builder
deploymentFactory(java.util.function.Function<com.pulumi.deployment.internal.DeploymentImpl.DeploymentState,com.pulumi.deployment.internal.DeploymentInternal> deploymentFactory)
Modify the deployment factory used in the testPulumiTestInternal.Builder
mocks(Mocks mocks)
PulumiTestInternal.Builder
monitorDecorator(java.util.function.Function<MockMonitor,MockMonitor> monitorDecorator)
Decorate theMockMonitor
instance for this test.PulumiTestInternal.Builder
options(TestOptions options)
PulumiTestInternal.Builder
standardLogger(java.util.logging.Logger standardLogger)
-
-
-
Method Detail
-
options
public PulumiTestInternal.Builder options(TestOptions options)
- Parameters:
options
- theTestOptions
to use in the test- Returns:
- this Pulumi test
PulumiTestInternal.Builder
- See Also:
PulumiTest.API.withOptions(TestOptions)
-
mocks
public PulumiTestInternal.Builder mocks(Mocks mocks)
- Parameters:
mocks
- theMonitor
mocks to use- Returns:
- this Pulumi test
PulumiTestInternal.Builder
- See Also:
PulumiTest.API.withMocks(Mocks)
-
standardLogger
public PulumiTestInternal.Builder standardLogger(java.util.logging.Logger standardLogger)
- Parameters:
standardLogger
- the standard logger to use- Returns:
- this Pulumi test
PulumiTestInternal.Builder
-
config
public PulumiTestInternal.Builder config(java.util.Map<java.lang.String,java.lang.String> allConfig, java.util.Set<java.lang.String> configSecretKeys)
Set configuration to use for this test- Parameters:
allConfig
- the configuration key-value mapconfigSecretKeys
- the secret key names- Returns:
- this
PulumiTestInternal.Builder
-
config
public PulumiTestInternal.Builder config(java.util.Map<java.lang.String,java.lang.String> allConfig)
Set configuration to use for this test- Parameters:
allConfig
- the configuration key-value map- Returns:
- this
PulumiTestInternal.Builder
-
deploymentFactory
public PulumiTestInternal.Builder deploymentFactory(java.util.function.Function<com.pulumi.deployment.internal.DeploymentImpl.DeploymentState,com.pulumi.deployment.internal.DeploymentInternal> deploymentFactory)
Modify the deployment factory used in the test- Parameters:
deploymentFactory
- the factory for- Returns:
- this Pulumi test
PulumiTestInternal.Builder
-
monitorDecorator
public PulumiTestInternal.Builder monitorDecorator(java.util.function.Function<MockMonitor,MockMonitor> monitorDecorator)
Decorate theMockMonitor
instance for this test.- Parameters:
monitorDecorator
- the decorator, by defaultFunction.identity()
- Returns:
- this Pulumi test
PulumiTestInternal.Builder
-
build
public PulumiTestInternal build()
- Returns:
- a
PulumiTestInternal
instance created from thisPulumiTestInternal.Builder
-
-