apiVersion: api/v1
kind: Case
name: binlog_ddl_compatibility
features: [binlog]
summary: binlog sync clustered_index to tidb
steps: |
    1. setup binlog environment
    2. add ddl statements to upstream
    3. check data consistency
priority: P1
supportedVersions: [">=5.1"]
designer: xujianxu@pingcap.com
automation: AUTOMATED
active: true
framework:
    generic:
        command: ["/bin/sh", "-c", "/binlog-test --workload testcases/binlog_ddl_compatibility/workload.yaml"]
        workingDir: "/"
        env: null
        image: hub-new.pingcap.net/qa/binlog-test:binlog_ddl_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: createSql
      default: CREATE TABLE binlog_ddl_compatibility.test1 (id int NOT NULL, name varchar(220) DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY some_index (id)) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    - type: STRING
      name: insertSql
      default: insert into binlog_ddl_compatibility.test1 value (1,"3");
    - type: STRING
      name: global_variable
      default: '[{"name": "tidb_enable_clustered_index", "value": "on"}, {"name": "tidb_row_format_version", "value": "1"}]'
