Package com.pulumi.test
Class TestOptions
java.lang.Object
com.pulumi.test.TestOptions
Optional settings for tests.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTestOptions(String projectName, String stackName, boolean preview, List<ResourceTransformation> resourceTransformations) TestOptions(String projectName, String stackName, boolean preview, List<ResourceTransformation> resourceTransformations, String organizationName) TestOptions(String projectName, String stackName, boolean preview, List<ResourceTransformation> resourceTransformations, String organizationName, String rootDirectory) -
Method Summary
Modifier and TypeMethodDescriptionstatic TestOptions.Builderbuilder()booleanpreview()Whether the test runs in Preview mode.
-
Field Details
-
Empty
-
-
Constructor Details
-
TestOptions
public TestOptions(String projectName, String stackName, boolean preview, List<ResourceTransformation> resourceTransformations) - Parameters:
projectName- the test project name to usestackName- the test stack name to usepreview- is the test a preview or a normal executionresourceTransformations- the test stack resource transformations
-
TestOptions
public TestOptions(String projectName, String stackName, boolean preview, List<ResourceTransformation> resourceTransformations, String organizationName) - Parameters:
projectName- the test project name to usestackName- the test stack name to usepreview- is the test a preview or a normal executionresourceTransformations- the test stack resource transformationsorganizationName- the test organization name to use
-
TestOptions
public TestOptions(String projectName, String stackName, boolean preview, List<ResourceTransformation> resourceTransformations, String organizationName, String rootDirectory) - Parameters:
projectName- the test project name to usestackName- the test stack name to usepreview- is the test a preview or a normal executionresourceTransformations- the test stack resource transformationsorganizationName- the test organization name to userootDirectory- the test project root directory to use
-
-
Method Details
-
organizationName
- Returns:
- the test organization name
-
projectName
- Returns:
- the test project name
-
stackName
- Returns:
- the test stack name
-
rootDirectory
- Returns:
- the test project root directory
-
preview
public boolean preview()Whether the test runs in Preview mode. Defaults to true if not specified. -
resourceTransformations
- Returns:
- the stack resource transformations
- See Also:
-
builder
- Returns:
- a new
TestOptions.BuilderforTestOptions
-