Skip to content

Commit

Permalink
Update source file format (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
july2993 authored Aug 5, 2020
1 parent f2461a3 commit 80da63c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 24 deletions.
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

0 comments on commit 80da63c

Please sign in to comment.