apiVersion: api/v1
kind: Case
name: dm_upgrade_with_relay_530
features: [dm]
summary: dm test upgrade to specified version
steps: |
    1. add source to dm by `operate-create source.yaml`, start-relay for one source.
    2. start-task task.yaml
    3. upgrade dm to specified version
    3. 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_upgrade_with_relay/workload.yaml --path testcases/dm_upgrade_with_relay/path.yaml",
            ]
        workingDir: "/"
        env: null
        image: hub-new.pingcap.net/dm/test-infra:dm_upgrade_with_relay
        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: targetversion
      default: |
          'v6.0.0-pre'
