apiVersion: api/v1
kind: Case
name: dm_downstream_version_compatibility
features: [ dm ]
summary: dm downstream version compatibility
steps: |
    1. change TiDB version to 4.0.x, 5.0.x and 5.2.x separately
    2. clean env and execute dm_migrate_basic_001 steps
priority: P1
supportedVersions: [ "nightly" ]
tags: ["dm"]
designer: xujianxu@pingcap.com
automation: AUTOMATED
active: true
framework:
    generic:
        command: [ "/bin/sh", "-c", "/dm_test_infra --workload testcases/dm_downstream_version_compatibility/workload.yaml --path testcases/dm_downstream_version_compatibility/path.yaml" ]
        workingDir: "/"
        env: null
        image: hub-new.pingcap.net/dm/test-infra:dm_downstream_version_compatibility
        imagePullPolicy: Always
parameters:
    -   type: RESOURCE
        name: upstream1
        default: upstream1
    -   type: RESOURCE
        name: downstream
        default: downstream
    -   type: RESOURCE
        name: dm
        default: dm
    -   type: RESOURCE
        name: workload
        default: workload
    -   type: RESOURCE
        name: syncdiff
        default: syncdiff
    -   type: STRING
        name: tidbVersionA
        default: 'release-4.0'
    -   type: STRING
        name: tidbVersionB
        default: 'release-5.0'
    -   type: STRING
        name: tidbVersionC
        default: 'release-5.2'
