Package com.pulumi.test.internal
Class PulumiTestInternal.Builder
java.lang.Object
com.pulumi.test.internal.PulumiTestInternal.Builder
- Enclosing class:
- PulumiTestInternal
The
PulumiTestInternal builder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Set configuration to use for this testSet configuration to use for this testdeploymentFactory(Function<com.pulumi.deployment.internal.DeploymentImpl.DeploymentState, com.pulumi.deployment.internal.DeploymentInternal> deploymentFactory) Modify the deployment factory used in the testmonitorDecorator(Function<MockMonitor, MockMonitor> monitorDecorator) Decorate theMockMonitorinstance for this test.options(TestOptions options) standardLogger(Logger standardLogger)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
options
- Parameters:
options- theTestOptionsto use in the test- Returns:
- this Pulumi test
PulumiTestInternal.Builder - See Also:
-
mocks
- Parameters:
mocks- theMonitormocks to use- Returns:
- this Pulumi test
PulumiTestInternal.Builder - See Also:
-
standardLogger
- Parameters:
standardLogger- the standard logger to use- Returns:
- this Pulumi test
PulumiTestInternal.Builder
-
config
public PulumiTestInternal.Builder config(Map<String, String> allConfig, Set<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
Set configuration to use for this test- Parameters:
allConfig- the configuration key-value map- Returns:
- this
PulumiTestInternal.Builder
-
deploymentFactory
public PulumiTestInternal.Builder deploymentFactory(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(Function<MockMonitor, MockMonitor> monitorDecorator) Decorate theMockMonitorinstance for this test.- Parameters:
monitorDecorator- the decorator, by defaultFunction.identity()- Returns:
- this Pulumi test
PulumiTestInternal.Builder
-
build
- Returns:
- a
PulumiTestInternalinstance created from thisPulumiTestInternal.Builder
-