Package com.hashicorp.cdktf
Class Testing
java.lang.Object
software.amazon.jsii.JsiiObject
com.hashicorp.cdktf.Testing
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-15T15:38:01.187Z")
@Stability(Experimental)
public class Testing
extends software.amazon.jsii.JsiiObject
(experimental) Testing utilities for cdktf applications.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Appapp()(experimental) Returns an app for testing with the following properties: - Output directory is a temp dir.static Appapp(TestingAppConfig options) (experimental) Returns an app for testing with the following properties: - Output directory is a temp dir.static AppenableFutureFlags(App app) static AppfakeCdktfJsonPath(App app) static StringfullSynth(TerraformStack stack) static StringrenderConstructTree(software.constructs.IConstruct construct) static voidstatic AppstubVersion(App app) static Stringsynth(TerraformStack stack) (experimental) Returns the Terraform synthesized JSON.static Stringsynth(TerraformStack stack, Boolean runValidations) (experimental) Returns the Terraform synthesized JSON.static ObjectsynthHcl(TerraformStack stack) (experimental) Returns the Terraform synthesized JSON.static ObjectsynthHcl(TerraformStack stack, Boolean runValidations) (experimental) Returns the Terraform synthesized JSON.static ObjectsynthHcl(TerraformStack stack, Boolean runValidations, Boolean returnMetadata) (experimental) Returns the Terraform synthesized JSON.static Stringstatic BooleantoBeValidTerraform(String received) static BooleantoHaveDataSource(String received, String resourceType) static BooleantoHaveDataSourceWithProperties(String received, String resourceType) static BooleantoHaveDataSourceWithProperties(String received, String resourceType, Map<String, ? extends Object> properties) static BooleantoHaveProvider(String received, String resourceType) static BooleantoHaveProviderWithProperties(String received, String resourceType) static BooleantoHaveProviderWithProperties(String received, String resourceType, Map<String, ? extends Object> properties) static BooleantoHaveResource(String received, String resourceType) static BooleantoHaveResourceWithProperties(String received, String resourceType) static BooleantoHaveResourceWithProperties(String received, String resourceType, Map<String, ? extends Object> properties) Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Testing
protected Testing(software.amazon.jsii.JsiiObjectRef objRef) -
Testing
protected Testing(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Testing
@Stability(Experimental) public Testing()
-
-
Method Details
-
app
(experimental) Returns an app for testing with the following properties: - Output directory is a temp dir.- Parameters:
options-
-
app
(experimental) Returns an app for testing with the following properties: - Output directory is a temp dir. -
enableFutureFlags
- Parameters:
app- This parameter is required.
-
fakeCdktfJsonPath
- Parameters:
app- This parameter is required.
-
fullSynth
- Parameters:
stack- This parameter is required.
-
renderConstructTree
@Stability(Experimental) @NotNull public static String renderConstructTree(@NotNull software.constructs.IConstruct construct) - Parameters:
construct- This parameter is required.
-
setupJest
@Stability(Experimental) public static void setupJest() -
stubVersion
- Parameters:
app- This parameter is required.
-
synth
@Stability(Experimental) @NotNull public static String synth(@NotNull TerraformStack stack, @Nullable Boolean runValidations) (experimental) Returns the Terraform synthesized JSON.- Parameters:
stack- This parameter is required.runValidations-
-
synth
(experimental) Returns the Terraform synthesized JSON.- Parameters:
stack- This parameter is required.
-
synthHcl
@Stability(Experimental) @NotNull public static Object synthHcl(@NotNull TerraformStack stack, @Nullable Boolean runValidations, @Nullable Boolean returnMetadata) (experimental) Returns the Terraform synthesized JSON.- Parameters:
stack- This parameter is required.runValidations-returnMetadata-
-
synthHcl
@Stability(Experimental) @NotNull public static Object synthHcl(@NotNull TerraformStack stack, @Nullable Boolean runValidations) (experimental) Returns the Terraform synthesized JSON.- Parameters:
stack- This parameter is required.runValidations-
-
synthHcl
(experimental) Returns the Terraform synthesized JSON.- Parameters:
stack- This parameter is required.
-
synthScope
- Parameters:
fn- This parameter is required.
-
toBeValidTerraform
@Stability(Experimental) @NotNull public static Boolean toBeValidTerraform(@NotNull String received) - Parameters:
received- This parameter is required.
-
toHaveDataSource
@Stability(Experimental) @NotNull public static Boolean toHaveDataSource(@NotNull String received, @NotNull String resourceType) - Parameters:
received- This parameter is required.resourceType- This parameter is required.
-
toHaveDataSourceWithProperties
@Stability(Experimental) @NotNull public static Boolean toHaveDataSourceWithProperties(@NotNull String received, @NotNull String resourceType, @Nullable Map<String, ? extends Object> properties) - Parameters:
received- This parameter is required.resourceType- This parameter is required.properties-
-
toHaveDataSourceWithProperties
@Stability(Experimental) @NotNull public static Boolean toHaveDataSourceWithProperties(@NotNull String received, @NotNull String resourceType) - Parameters:
received- This parameter is required.resourceType- This parameter is required.
-
toHaveProvider
@Stability(Experimental) @NotNull public static Boolean toHaveProvider(@NotNull String received, @NotNull String resourceType) - Parameters:
received- This parameter is required.resourceType- This parameter is required.
-
toHaveProviderWithProperties
@Stability(Experimental) @NotNull public static Boolean toHaveProviderWithProperties(@NotNull String received, @NotNull String resourceType, @Nullable Map<String, ? extends Object> properties) - Parameters:
received- This parameter is required.resourceType- This parameter is required.properties-
-
toHaveProviderWithProperties
@Stability(Experimental) @NotNull public static Boolean toHaveProviderWithProperties(@NotNull String received, @NotNull String resourceType) - Parameters:
received- This parameter is required.resourceType- This parameter is required.
-
toHaveResource
@Stability(Experimental) @NotNull public static Boolean toHaveResource(@NotNull String received, @NotNull String resourceType) - Parameters:
received- This parameter is required.resourceType- This parameter is required.
-
toHaveResourceWithProperties
@Stability(Experimental) @NotNull public static Boolean toHaveResourceWithProperties(@NotNull String received, @NotNull String resourceType, @Nullable Map<String, ? extends Object> properties) - Parameters:
received- This parameter is required.resourceType- This parameter is required.properties-
-
toHaveResourceWithProperties
@Stability(Experimental) @NotNull public static Boolean toHaveResourceWithProperties(@NotNull String received, @NotNull String resourceType) - Parameters:
received- This parameter is required.resourceType- This parameter is required.
-