Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrylisl committed Jan 26, 2022
1 parent 4f9dc36 commit 1e72f7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dm/tests/dmctl_command/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ function run() {
"list-member --name worker1" \
"\"stage\": \"bound\"" 1 \
"\"source\": \"mysql-replica-01\"" 1
dmctl_operate_source create $WORK_DIR/source2.yaml $SOURCE_ID2 -w $WORKER1_NAME
run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \
"operate-source create $WORK_DIR/source2.yaml -w wrong-worker" \
"\"result\": false" 1 \
"not exists" 1
run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \
"operate-source create $WORK_DIR/source2.yaml -w worker1" \
"\"result\": false" 1 \
"not free" 1
dmctl_operate_source create $WORK_DIR/source2.yaml $SOURCE_ID2

# check wrong do-tables
Expand Down

0 comments on commit 1e72f7e

Please sign in to comment.