apiVersion: api/v1
kind: Case
name: dm_tolerance_unsupport_ddl
features: [dm]
summary: 测试DM error handle 不支持的DDL
steps: |
    1. 使用dmctl operate create source.yaml添加source
    2. 使用dmctl task-start task.yaml 创建任务
    3. alter table test.t1 add column d int unique;
    4. 尝试dmctl error-handle, resume 这个task
expectedResult: |
    步骤1. 创建source成功
    步骤2. 创建任务成功
    步骤3. 上游数据库修改成功，dmctl query-status dm-task 显示正确
    步骤4. 解决问题，task能重新resume
priority: P1
supportedVersions: [">2.0.0"]
tags: [dm]
designer: xujianxu@pingcap.com
automation: AUTOMATED
active: true
framework:
    generic:
        command:
            [
                "/bin/sh",
                "-c",
                "/dm_test_infra --workload testcases/dm_tolerance_unsupport_ddl/workload.yaml --path testcases/dm_tolerance_unsupport_ddl/path.yaml",
            ]
        workingDir: "/"
        env: null
        image: hub-new.pingcap.net/dm/test-infra:dm_tolerance_unsupport_ddl
        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
