Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#5473
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
zhangyangyu authored and ti-chi-bot committed May 19, 2022
1 parent dae2d71 commit 4098660
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/integration_tests/http_api/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -59,12 +59,20 @@ 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}
>>>>>>> 7473aebbb (tests: use python3 to run http_api test to fix failed integration_tests (#5473))

# test processor query with no attached tables
python $CUR/util/test_case.py get_processor $TLS_DIR
Expand Down Expand Up @@ -108,7 +116,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
Expand Down

0 comments on commit 4098660

Please sign in to comment.