apiVersion: api/v1
kind: Case
name: dm_disable_relay_then_enable
features: [dm]
summary: dm enable relay and gtid basic
steps: |
    1. add source to dm by `operate-create source.yaml` 
    2. stop relay with gtid open
    3. start-task task.yaml
    4. check sync diff
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_disable_relay_then_enable/workload.yaml --path testcases/dm_disable_relay_then_enable/path.yaml",
            ]
        workingDir: "/"
        env: null
        image: hub-new.pingcap.net/dm/test-infra:dm_disable_relay_then_enable
        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
