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.95.0 (build f1ff514)",
date="2024-04-15T08:11:32.093Z")
@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 App
app()
(experimental) Returns an app for testing with the following properties: - Output directory is a temp dir.static App
app
(TestingAppConfig options) (experimental) Returns an app for testing with the following properties: - Output directory is a temp dir.static App
enableFutureFlags
(App app) static App
fakeCdktfJsonPath
(App app) static String
fullSynth
(TerraformStack stack) static String
renderConstructTree
(software.constructs.IConstruct construct) static void
static App
stubVersion
(App app) static String
synth
(TerraformStack stack) (experimental) Returns the Terraform synthesized JSON.static String
synth
(TerraformStack stack, Boolean runValidations) (experimental) Returns the Terraform synthesized JSON.static Object
synthHcl
(TerraformStack stack) (experimental) Returns the Terraform synthesized JSON.static Object
synthHcl
(TerraformStack stack, Boolean runValidations) (experimental) Returns the Terraform synthesized JSON.static Object
synthHcl
(TerraformStack stack, Boolean runValidations, Boolean returnMetadata) (experimental) Returns the Terraform synthesized JSON.static String
static Boolean
toBeValidTerraform
(String received) static Boolean
toHaveDataSource
(String received, String resourceType) static Boolean
toHaveDataSourceWithProperties
(String received, String resourceType) static Boolean
toHaveDataSourceWithProperties
(String received, String resourceType, Map<String, ? extends Object> properties) static Boolean
toHaveProvider
(String received, String resourceType) static Boolean
toHaveProviderWithProperties
(String received, String resourceType) static Boolean
toHaveProviderWithProperties
(String received, String resourceType, Map<String, ? extends Object> properties) static Boolean
toHaveResource
(String received, String resourceType) static Boolean
toHaveResourceWithProperties
(String received, String resourceType) static Boolean
toHaveResourceWithProperties
(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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.
-