github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/tests/dmctl_basic/check_list/operate_source.sh (about) 1 #!/bin/bash 2 3 function operate_source_empty_arg() { 4 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 5 "operate-source" \ 6 "operate-source <operate-type> \[config-file ...\] \[-w worker\] \[--print-sample-config\] \[flags\]" 1 7 } 8 9 function operate_source_wrong_config_file() { 10 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 11 "operate-source create not_exists_config_file" \ 12 "error in get file content" 1 13 } 14 15 function operate_source_stop_not_created_config() { 16 source_conf=$1 17 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 18 "operate-source stop $source_conf" \ 19 "source config with ID mysql-replica-01 not exists" 1 20 } 21 22 function operate_source_invalid_op() { 23 source_conf=$1 24 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 25 "operate-source invalid $source_conf" \ 26 "invalid operate" 1 27 }