Class TestOptions

java.lang.Object
com.pulumi.test.TestOptions

public class TestOptions extends Object
Optional settings for tests.
  • Field Details

  • Constructor Details

    • TestOptions

      public TestOptions(String projectName, String stackName, boolean preview, List<ResourceTransformation> resourceTransformations)
      Parameters:
      projectName - the test project name to use
      stackName - the test stack name to use
      preview - is the test a preview or a normal execution
      resourceTransformations - 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 use
      stackName - the test stack name to use
      preview - is the test a preview or a normal execution
      resourceTransformations - the test stack resource transformations
      organizationName - 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 use
      stackName - the test stack name to use
      preview - is the test a preview or a normal execution
      resourceTransformations - the test stack resource transformations
      organizationName - the test organization name to use
      rootDirectory - the test project root directory to use
  • Method Details

    • organizationName

      public String organizationName()
      Returns:
      the test organization name
    • projectName

      public String projectName()
      Returns:
      the test project name
    • stackName

      public String stackName()
      Returns:
      the test stack name
    • rootDirectory

      public String 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

      public List<ResourceTransformation> resourceTransformations()
      Returns:
      the stack resource transformations
      See Also:
    • builder

      public static TestOptions.Builder builder()
      Returns:
      a new TestOptions.Builder for TestOptions