CfnTestCaseProps

class aws_cdk.aws_apptest.CfnTestCaseProps(*, name, steps, description=None, tags=None)

Bases: object

Properties for defining a CfnTestCase.

Parameters:
  • name (str) – The name of the test case.

  • steps (Union[IResolvable, Sequence[Union[IResolvable, StepProperty, Dict[str, Any]]]]) – The steps in the test case.

  • description (Optional[str]) – The description of the test case.

  • tags (Optional[Mapping[str, str]]) – The specified tags of the test case.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apptest as apptest

cfn_test_case_props = apptest.CfnTestCaseProps(
    name="name",
    steps=[apptest.CfnTestCase.StepProperty(
        action=apptest.CfnTestCase.StepActionProperty(
            compare_action=apptest.CfnTestCase.CompareActionProperty(
                input=apptest.CfnTestCase.InputProperty(
                    file=apptest.CfnTestCase.InputFileProperty(
                        file_metadata=apptest.CfnTestCase.FileMetadataProperty(
                            database_cdc=apptest.CfnTestCase.DatabaseCDCProperty(
                                source_metadata=apptest.CfnTestCase.SourceDatabaseMetadataProperty(
                                    capture_tool="captureTool",
                                    type="type"
                                ),
                                target_metadata=apptest.CfnTestCase.TargetDatabaseMetadataProperty(
                                    capture_tool="captureTool",
                                    type="type"
                                )
                            ),
                            data_sets=[apptest.CfnTestCase.DataSetProperty(
                                ccsid="ccsid",
                                format="format",
                                length=123,
                                name="name",
                                type="type"
                            )]
                        ),
                        source_location="sourceLocation",
                        target_location="targetLocation"
                    )
                ),

                # the properties below are optional
                output=apptest.CfnTestCase.OutputProperty(
                    file=apptest.CfnTestCase.OutputFileProperty(
                        file_location="fileLocation"
                    )
                )
            ),
            mainframe_action=apptest.CfnTestCase.MainframeActionProperty(
                action_type=apptest.CfnTestCase.MainframeActionTypeProperty(
                    batch=apptest.CfnTestCase.BatchProperty(
                        batch_job_name="batchJobName",

                        # the properties below are optional
                        batch_job_parameters={
                            "batch_job_parameters_key": "batchJobParameters"
                        },
                        export_data_set_names=["exportDataSetNames"]
                    ),
                    tn3270=apptest.CfnTestCase.TN3270Property(
                        script=apptest.CfnTestCase.ScriptProperty(
                            script_location="scriptLocation",
                            type="type"
                        ),

                        # the properties below are optional
                        export_data_set_names=["exportDataSetNames"]
                    )
                ),
                resource="resource",

                # the properties below are optional
                properties=apptest.CfnTestCase.MainframeActionPropertiesProperty(
                    dms_task_arn="dmsTaskArn"
                )
            ),
            resource_action=apptest.CfnTestCase.ResourceActionProperty(
                cloud_formation_action=apptest.CfnTestCase.CloudFormationActionProperty(
                    resource="resource",

                    # the properties below are optional
                    action_type="actionType"
                ),
                m2_managed_application_action=apptest.CfnTestCase.M2ManagedApplicationActionProperty(
                    action_type="actionType",
                    resource="resource",

                    # the properties below are optional
                    properties=apptest.CfnTestCase.M2ManagedActionPropertiesProperty(
                        force_stop=False,
                        import_data_set_location="importDataSetLocation"
                    )
                ),
                m2_non_managed_application_action=apptest.CfnTestCase.M2NonManagedApplicationActionProperty(
                    action_type="actionType",
                    resource="resource"
                )
            )
        ),
        name="name",

        # the properties below are optional
        description="description"
    )],

    # the properties below are optional
    description="description",
    tags={
        "tags_key": "tags"
    }
)

Attributes

description

The description of the test case.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-description

name

The name of the test case.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-name

steps

The steps in the test case.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-steps

tags

The specified tags of the test case.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-tags