Skip to content

Commit

Permalink
test(cdc): Add defaultvalue integration test (#4224)
Browse files Browse the repository at this point in the history
close #4223
  • Loading branch information
maxshuang authored and overvenus committed Feb 8, 2022
1 parent 1f90933 commit d9af323
Show file tree
Hide file tree
Showing 4 changed files with 810 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/integration_tests/default_value/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Source DB config
log-level = "info"

worker-count = 10
job-count = 1000
batch = 10

pd = "127.0.0.1:2379"

[[source-db]]
host = "127.0.0.1"
user = "root"
password = ""
port = 4000

[[source-db]]
host = "127.0.0.1"
user = "root"
password = ""
port = 4001
29 changes: 29 additions & 0 deletions tests/integration_tests/default_value/diff_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# diff Configuration.

check-thread-count = 4

export-fix-sql = true

check-struct-only = false

[task]
output-dir = "/tmp/tidb_cdc_test/default_value/sync_diff/output"

source-instances = ["tidb0"]

target-instance = "mysql1"

target-check-tables = ["test.?*"]

[data-sources]
[data-sources.tidb0]
host = "127.0.0.1"
port = 4000
user = "root"
password = ""

[data-sources.mysql1]
host = "127.0.0.1"
port = 3306
user = "root"
password = ""
Loading

0 comments on commit d9af323

Please sign in to comment.