EqualsAssertionProps
- class aws_cdk.integ_tests_alpha.EqualsAssertionProps(*, actual, expected, fail_deployment=None)
Bases:
object
(experimental) Options for an EqualsAssertion.
- Parameters:
actual (
ActualResult
) – (experimental) The actual results to compare.expected (
ExpectedResult
) – (experimental) The expected result 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_result: integ_tests_alpha.ActualResult # expected_result: integ_tests_alpha.ExpectedResult equals_assertion_props = integ_tests_alpha.EqualsAssertionProps( actual=actual_result, expected=expected_result, # the properties below are optional fail_deployment=False )
Attributes
- actual
(experimental) The actual results to compare.
- Stability:
experimental
- expected
(experimental) The expected result 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