@Stability(value=Stable) @Internal public static final class TestCase.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TestCase
TestCasesoftware.amazon.jsii.JsiiObject.InitializationModeTestCase.Builder, TestCase.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(TestCase.Builder builder)
Constructor that initializes the object based on literal property values passed by the
TestCase.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(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.
|
String |
getAssertionStack()
The node id of the stack that contains assertions.
|
String |
getAssertionStackName()
The name of the stack that contains assertions.
|
CdkCommands |
getCdkCommandOptions()
Additional options to use for each CDK command.
|
Boolean |
getDiffAssets()
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.
|
Hooks |
getHooks()
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 unless `exclusively` is passed.
|
Boolean |
getStackUpdateWorkflow()
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.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(TestCase.Builder builder)
TestCase.Builder.public final List<String> getStacks()
TestCasepublic final String getAssertionStack()
TestCaseThis is the value that can be used to deploy the stack with the CDK CLI
Default: - no assertion stack
getAssertionStack in interface TestCasepublic final String getAssertionStackName()
TestCaseDefault: - no assertion stack
getAssertionStackName in interface TestCasepublic final List<String> getAllowDestroy()
TestOptionsThis 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
getAllowDestroy in interface TestOptionspublic final CdkCommands getCdkCommandOptions()
TestOptionsDefault: - runner default options
getCdkCommandOptions in interface TestOptionspublic final Boolean getDiffAssets()
TestOptionsFor example any tests involving custom resources or bundling
Default: false
getDiffAssets in interface TestOptionspublic final Hooks getHooks()
TestOptionse.g. { postDeploy: ['yarn', 'test'] }
Default: - no hooks
getHooks in interface TestOptionspublic final List<String> getRegions()
TestOptionsDefault: - can run in any region
getRegions in interface TestOptionspublic final Boolean getStackUpdateWorkflow()
TestOptionsDefault: true
getStackUpdateWorkflow in interface TestOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.