AssertionRequest
- class aws_cdk.integ_tests_alpha.AssertionRequest(*, actual, expected, fail_deployment=None)
Bases:
object
(experimental) A request to make an assertion that the actual value matches the expected.
- Parameters:
actual (
Any
) – (experimental) The actual value received.expected (
Any
) – (experimental) The expected value to assert.fail_deployment (
Optional
[bool
]) – (experimental) Set this to true if a failed assertion should result in a CloudFormation deployment failure. This is only necessary if assertions are being executed outside ofinteg-runner
. Default: false
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.integ_tests_alpha as integ_tests_alpha # actual: Any # expected: Any assertion_request = integ_tests_alpha.AssertionRequest( actual=actual, expected=expected, # the properties below are optional fail_deployment=False )
Attributes
- actual
(experimental) The actual value received.
- Stability:
experimental
- expected
(experimental) The expected value to assert.
- Stability:
experimental
- fail_deployment
(experimental) Set this to true if a failed assertion should result in a CloudFormation deployment failure.
This is only necessary if assertions are being executed outside of
integ-runner
.- Default:
false
- Stability:
experimental