apiVersion: api/v1
kind: Case
name: binlog_compatibility
features: [binlog]
summary: binlog sync to tidb
steps: |
    1. setup binlog environment
    2. change downstream cluster to other version
    2. add workload to upstream
    3. check data consistency
priority: P1
supportedVersions: [">=4.0"]
designer: dong.xie@pingcap.com
automation: AUTOMATED
active: true
framework:
    generic:
        command: ["/bin/sh", "-c", "/binlog-test --workload testcases/binlog_compatibility/workload.yaml"]
        workingDir: "/"
        env: null
        image: hub-new.pingcap.net/qa/binlog-test:binlog_compatibility
        imagePullPolicy: Always
parameters:
    - type: RESOURCE
      name: upstream
      default: upstream
    - type: RESOURCE
      name: downstream
      default: downstream
    - type: RESOURCE
      name: workload
      default: workload
    - type: RESOURCE
      name: upstreamdrainer
      default: upstreamdrainer
    - type: STRING
      name: VersionNo1
      default: release-5.0
    - type: STRING
      name: VersionNo2
      default: release-5.1
    - type: STRING
      name: VersionNo3
      default: release-5.2
    - type: STRING
      name: VersionNo4
      default: release-5.3
