github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/tests/dmctl_advance/check_list/source_table_schema.sh (about) 1 #!/bin/bash 2 3 function source_table_schema_empty_arg() { 4 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 5 "binlog-schema" \ 6 "Available Commands" 1 7 } 8 9 function source_table_schema_lack_arguments() { 10 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 11 "binlog-schema test" \ 12 "Available Commands" 1 13 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 14 "binlog-schema list test" \ 15 "dmctl binlog-schema list <task-name> <database> <table>" 1 16 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 17 "binlog-schema update test" \ 18 "dmctl binlog-schema update <task-name> <database> <table> \[schema-file\] \[flags\]" 1 19 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 20 "binlog-schema update test test_db test_table --from-source" \ 21 "must specify at least one source" 1 22 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 23 "binlog-schema update test test_db test_table --from-source --from-target" \ 24 "from-source and from-target can not be used together" 1 25 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 26 "binlog-schema update test test_db test_table schema.sql --from-source" \ 27 "can not set schema-file when use from-source or from-target" 1 28 run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ 29 "binlog-schema delete test" \ 30 "delete <task-name> <database> <table> \[flags\]" 1 31 }