apiVersion: api/v1
kind: Case
name: dm_lightning_pause_and_resume
features: [dm]
summary: dm test basic mysql data migration with maria db upstream
steps: |
    1. add source to dm by `operate-create source.yaml` 
    2. use lightning for load process in task file.
    3. start-task task.yaml, then pause and resume task in load process
    4. check sync diff
priority: P1
supportedVersions: [">6.0.0"]
tags: ["dm"]
designer: xujianxu@pingcap.com
automation: AUTOMATED
active: true
framework:
    generic:
        command:
            [
                "/bin/sh",
                "-c",
                "/dm_test_infra --workload testcases/dm_lightning_pause_and_resume/workload.yaml --path testcases/dm_lightning_pause_and_resume/path.yaml",
            ]
        workingDir: "/"
        env: null
        image: hub-new.pingcap.net/dm/test-infra:dm_lightning_pause_and_resume
        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
