Class TestCase.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.amazon.awscdk.cloudassembly.schema.TestCase.Jsii$Proxy
-
- All Implemented Interfaces:
TestCase,TestOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- TestCase
@Stability(Stable) @Internal public static final class TestCase.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TestCase
An implementation forTestCase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface software.amazon.awscdk.cloudassembly.schema.TestCase
TestCase.Builder, TestCase.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(TestCase.Builder builder)Constructor that initializes the object based on literal property values passed by theTestCase.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)List<String>getAllowDestroy()List of CloudFormation resource types in this stack that can be destroyed as part of an update without failing the test.StringgetAssertionStack()The node id of the stack that contains assertions.StringgetAssertionStackName()The name of the stack that contains assertions.CdkCommandsgetCdkCommandOptions()Additional options to use for each CDK command.BooleangetDiffAssets()Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes should be included.HooksgetHooks()Additional commands to run at predefined points in the test workflow.List<String>getRegions()Limit deployment to these regions.List<String>getStacks()Stacks that should be tested as part of this test case The stackNames will be passed as args to the cdk commands so dependent stacks will be automatically deployed unlessexclusivelyis passed.BooleangetStackUpdateWorkflow()Run update workflow on this test case This should only be set to false to test scenarios that are not possible to test as part of the update workflow.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(TestCase.Builder builder)
Constructor that initializes the object based on literal property values passed by theTestCase.Builder.
-
-
Method Detail
-
getStacks
public final List<String> getStacks()
Description copied from interface:TestCaseStacks that should be tested as part of this test case The stackNames will be passed as args to the cdk commands so dependent stacks will be automatically deployed unlessexclusivelyis passed.
-
getAssertionStack
public final String getAssertionStack()
Description copied from interface:TestCaseThe node id of the stack that contains assertions.This is the value that can be used to deploy the stack with the CDK CLI
Default: - no assertion stack
- Specified by:
getAssertionStackin interfaceTestCase
-
getAssertionStackName
public final String getAssertionStackName()
Description copied from interface:TestCaseThe name of the stack that contains assertions.Default: - no assertion stack
- Specified by:
getAssertionStackNamein interfaceTestCase
-
getAllowDestroy
public final List<String> getAllowDestroy()
Description copied from interface:TestOptionsList of CloudFormation resource types in this stack that can be destroyed as part of an update without failing the test.This list should only include resources that for this specific integration test we are sure will not cause errors or an outage if destroyed. For example, maybe we know that a new resource will be created first before the old resource is destroyed which prevents any outage.
e.g. ['AWS::IAM::Role']
Default: - do not allow destruction of any resources on update
- Specified by:
getAllowDestroyin interfaceTestOptions
-
getCdkCommandOptions
public final CdkCommands getCdkCommandOptions()
Description copied from interface:TestOptionsAdditional options to use for each CDK command.Default: - runner default options
- Specified by:
getCdkCommandOptionsin interfaceTestOptions
-
getDiffAssets
public final Boolean getDiffAssets()
Description copied from interface:TestOptionsWhether or not to include asset hashes in the diff Asset hashes can introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes should be included.For example any tests involving custom resources or bundling
Default: false
- Specified by:
getDiffAssetsin interfaceTestOptions
-
getHooks
public final Hooks getHooks()
Description copied from interface:TestOptionsAdditional commands to run at predefined points in the test workflow.e.g. { postDeploy: ['yarn', 'test'] }
Default: - no hooks
- Specified by:
getHooksin interfaceTestOptions
-
getRegions
public final List<String> getRegions()
Description copied from interface:TestOptionsLimit deployment to these regions.Default: - can run in any region
- Specified by:
getRegionsin interfaceTestOptions
-
getStackUpdateWorkflow
public final Boolean getStackUpdateWorkflow()
Description copied from interface:TestOptionsRun update workflow on this test case This should only be set to false to test scenarios that are not possible to test as part of the update workflow.Default: true
- Specified by:
getStackUpdateWorkflowin interfaceTestOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-