Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update source file format #655

Merged
merged 1 commit into from
Aug 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/tiup-dm/script/task/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ctl="tiup dmctl:nightly"
wd=$(pwd)

$ctl --master-addr n1:8261 operate-source create $wd/source1.toml
$ctl --master-addr n1:8261 operate-source create $wd/source2.toml
$ctl --master-addr n1:8261 operate-source create $wd/source1.yml
$ctl --master-addr n1:8261 operate-source create $wd/source2.yml

cat $wd/db1.prepare.sql | mysql -h mysql1
cat $wd/db2.prepare.sql | mysql -h mysql2
Expand Down
11 changes: 0 additions & 11 deletions tests/tiup-dm/script/task/source1.toml

This file was deleted.

12 changes: 12 additions & 0 deletions tests/tiup-dm/script/task/source1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# MySQL1 Configuration.
---

source-id: "mysql1"

enable-gtid: true

from:
host: "mysql1"
user: "root"
password: ""
port: 3306
11 changes: 0 additions & 11 deletions tests/tiup-dm/script/task/source2.toml

This file was deleted.

12 changes: 12 additions & 0 deletions tests/tiup-dm/script/task/source2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# MySQL2 Configuration.
---

source-id: "mysql2"

enable-gtid: true

from:
host: "mysql2"
user: "root"
password: ""
port: 3306