Package com.pulumi.test
Class TestOptions
- java.lang.Object
-
- com.pulumi.test.TestOptions
-
public class TestOptions extends java.lang.Object
Optional settings for tests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestOptions.Builder
The builder forTestOptions
-
Field Summary
Fields Modifier and Type Field Description static TestOptions
Empty
-
Constructor Summary
Constructors Constructor Description TestOptions(java.lang.String projectName, java.lang.String stackName, boolean preview, java.util.List<ResourceTransformation> resourceTransformations)
TestOptions(java.lang.String projectName, java.lang.String stackName, boolean preview, java.util.List<ResourceTransformation> resourceTransformations, java.lang.String organizationName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestOptions.Builder
builder()
java.lang.String
organizationName()
boolean
preview()
Whether the test runs in Preview mode.java.lang.String
projectName()
java.util.List<ResourceTransformation>
resourceTransformations()
java.lang.String
stackName()
-
-
-
Field Detail
-
Empty
public static final TestOptions Empty
-
-
Constructor Detail
-
TestOptions
public TestOptions(java.lang.String projectName, java.lang.String stackName, boolean preview, java.util.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(java.lang.String projectName, java.lang.String stackName, boolean preview, java.util.List<ResourceTransformation> resourceTransformations, java.lang.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
-
-
Method Detail
-
organizationName
public java.lang.String organizationName()
- Returns:
- the test organization name
-
projectName
public java.lang.String projectName()
- Returns:
- the test project name
-
stackName
public java.lang.String stackName()
- Returns:
- the test stack name
-
preview
public boolean preview()
Whether the test runs in Preview mode. Defaults to true if not specified.
-
resourceTransformations
public java.util.List<ResourceTransformation> resourceTransformations()
- Returns:
- the stack resource transformations
- See Also:
StackOptions.resourceTransformations()
-
builder
public static TestOptions.Builder builder()
- Returns:
- a new
TestOptions.Builder
forTestOptions
-
-