EqualsAssertionProps

class aws_cdk.integ_tests_alpha.EqualsAssertionProps(*, provider_log_level=None, actual, expected, fail_deployment=None)

Bases: ProviderOptions

(experimental) Options for an EqualsAssertion.

Parameters:
  • provider_log_level (Optional[ApplicationLogLevel]) – (experimental) The log level of the provider lambda function. Default: ApplicationLogLevel.FATAL

  • 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 of integ-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
from aws_cdk import aws_lambda as lambda_

# 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,
    provider_log_level=lambda_.ApplicationLogLevel.INFO
)

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

provider_log_level

(experimental) The log level of the provider lambda function.

Default:

ApplicationLogLevel.FATAL

Stability:

experimental