-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an automated cherry-pick of #5473
Signed-off-by: ti-chi-bot <[email protected]>
- Loading branch information
1 parent
3c0641c
commit 0d11b63
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ function run() { | |
return | ||
fi | ||
|
||
sudo pip install -U requests==2.26.0 | ||
sudo python3 -m pip install -U requests==2.26.0 | ||
|
||
rm -rf $WORK_DIR && mkdir -p $WORK_DIR | ||
|
||
|
@@ -59,12 +59,24 @@ function run() { | |
|
||
SINK_URI="mysql://normal:[email protected]:3306/" | ||
|
||
python $CUR/util/test_case.py check_health $TLS_DIR | ||
python $CUR/util/test_case.py get_status $TLS_DIR | ||
python3 $CUR/util/test_case.py check_health $TLS_DIR | ||
python3 $CUR/util/test_case.py get_status $TLS_DIR | ||
|
||
<<<<<<< HEAD | ||
python $CUR/util/test_case.py create_changefeed $TLS_DIR "$SINK_URI" | ||
# wait for changefeed created | ||
sleep 2 | ||
======= | ||
python3 $CUR/util/test_case.py create_changefeed $TLS_DIR "$SINK_URI" | ||
# wait for all changefeed created | ||
ensure $MAX_RETRIES check_changefeed_state "https://${TLS_PD_HOST}:${TLS_PD_PORT}" "changefeed-test1" "normal" "null" ${TLS_DIR} | ||
ensure $MAX_RETRIES check_changefeed_state "https://${TLS_PD_HOST}:${TLS_PD_PORT}" "changefeed-test2" "normal" "null" ${TLS_DIR} | ||
ensure $MAX_RETRIES check_changefeed_state "https://${TLS_PD_HOST}:${TLS_PD_PORT}" "changefeed-test3" "normal" "null" ${TLS_DIR} | ||
|
||
# test processor query with no attached tables | ||
#TODO: comment this test temporary | ||
#python $CUR/util/test_case.py get_processor $TLS_DIR | ||
>>>>>>> 7473aebbb (tests: use python3 to run http_api test to fix failed integration_tests (#5473)) | ||
|
||
run_sql "CREATE table test.simple0(id int primary key, val int);" | ||
run_sql "CREATE table test.\`simple-dash\`(id int primary key, val int);" | ||
|
@@ -105,7 +117,7 @@ function run() { | |
) | ||
|
||
for case in ${sequential_cases[@]}; do | ||
python $CUR/util/test_case.py "$case" $TLS_DIR | ||
python3 $CUR/util/test_case.py "$case" $TLS_DIR | ||
done | ||
|
||
cleanup_process $CDC_BINARY | ||
|