Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update tidb version #1847

Merged
merged 15 commits into from
May 12, 2022
2 changes: 1 addition & 1 deletion tests/tiup-cluster/test_cmd_tls_native_ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ source script/cmd_subtest.sh
export GO_FAILPOINTS='github.com/pingcap/tiup/pkg/cluster/executor/assertNativeSSH=return(true)'

echo "test cluster for version v4.0.12 w/ TLS, via native ssh"
cmd_subtest 4.0.12 true true
cmd_subtest 6.0.0 true true

unset GO_FAILPOINTS
2 changes: 1 addition & 1 deletion tests/tiup-cluster/test_scale_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -eu
source script/scale_core.sh

echo "test scaling of core components in cluster for version v4.0.12 wo/ TLS, via easy ssh"
scale_core v4.0.12 false false
scale_core v6.0.0 false false
2 changes: 1 addition & 1 deletion tests/tiup-cluster/test_scale_core_tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -eu
source script/scale_core.sh

echo "test scaling of core components in cluster for version v5.3.0 w/ TLS, via easy ssh"
scale_core v5.3.0 true false
scale_core v4.0.12 true false
2 changes: 1 addition & 1 deletion tests/tiup-cluster/test_scale_tools_tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -eu
source script/scale_tools.sh

echo "test scaling of tools components in cluster for version v5.3.0 w/ TLS, via easy ssh"
scale_tools v5.3.0 true false
scale_tools v6.0.0 true false
2 changes: 1 addition & 1 deletion tests/tiup-cluster/test_upgrade_tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eu

old_version=${old_version-v4.0.15}
version=${version-v5.3.0}
version=${version-v6.0.0}

source script/upgrade.sh

Expand Down
5 changes: 3 additions & 2 deletions tests/tiup-playground/test_playground.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ function kill_all() {
killall -9 grafana-server || true
killall -9 tiup-playground || true
killall -9 prometheus || true
killall -9 ng-monitoring-server || true
cat $outfile
}

outfile=/tmp/tiup-playground-test.out
tiup-playground v5.0.1 > $outfile 2>&1 &
tiup-playground v6.0.0 > $outfile 2>&1 &

# wait $outfile generated
sleep 3
Expand Down Expand Up @@ -101,7 +102,7 @@ killall -2 tiup-playground.test || killall -2 tiup-playground
sleep 60

# test restart with same data
tiup-playground v5.0.1 > $outfile 2>&1 &
tiup-playground v6.0.0 > $outfile 2>&1 &

# wait $outfile generated
sleep 3
Expand Down