apiVersion: api/v1
kind: Case
name: binlog_clustered_index
features: [binlog]
summary: binlog sync clustered_index to tidb
steps: |
  1. setup binlog environment
  2. add clustered index workload 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_clustered_index/workload.yaml",
      ]
    workingDir: "/"
    env: null
    image: hub-new.pingcap.net/jianxu/binlog-test:binlog_basic
    imagePullPolicy: Always
parameters:
  - type: RESOURCE
    name: upstream
    default: upstream
  - type: RESOURCE
    name: downstream
    default: downstream
  - type: RESOURCE
    name: workload
    default: workload
  - type: RESOURCE
    name: workload
    default: workload
  - type: RESOURCE
    name: upstreamdrainer
    default: upstreamdrainer
  - type: STRING
    name: createSql
    default: CREATE TABLE binlog_clustered_index.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_clustered_index.test1 value (1,"3");
