Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dm/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

1. The following executables must be copied or generated or linked into these locations.

* `bin/tidb-server` can be downloaded from [tidb-master-linux-amd64](https://download.pingcap.org/tidb-master-linux-amd64.tar.gz) or installed by [tiup](https://github.com/pingcap/tiup), you can use the command `find ~/.tiup -name tidb-server` to locate `tidb-server` binary file and copy it
* `bin/sync_diff_inspector` # can be downloaded from [tidb-enterprise-tools-latest-linux-amd64](http://download.pingcap.org/tidb-enterprise-tools-latest-linux-amd64.tar.gz) or build from [source code](https://github.com/pingcap/tidb-tools)
* `bin/tidb-server` can be downloaded from [tidb-master-linux-amd64](https://download.pingcap.com/tidb-master-linux-amd64.tar.gz) or installed by [tiup](https://github.com/pingcap/tiup), you can use the command `find ~/.tiup -name tidb-server` to locate `tidb-server` binary file and copy it
* `bin/sync_diff_inspector` # can be downloaded from [tidb-enterprise-tools-latest-linux-amd64](http://download.pingcap.com/tidb-enterprise-tools-latest-linux-amd64.tar.gz) or build from [source code](https://github.com/pingcap/tidb-tools)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-medium medium

The URL for sync_diff_inspector uses http while the tidb-server URL in the line above uses https. It is recommended to use https for consistency and security.

* `bin/minio` can be build from (https://github.com/minio/minio)
* `bin/dm-master.test` # generated by `make dm_integration_test_build`
* `bin/dm-worker.test` # generated by `make dm_integration_test_build`
Expand Down
4 changes: 2 additions & 2 deletions dm/tests/download-compatibility-test-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ tidb_sha1=$(curl "${file_server_url}/download/refs/pingcap/tidb/${branch}/sha1")

# All download links.
tidb_download_url="${file_server_url}/download/builds/pingcap/tidb/${tidb_sha1}/centos7/tidb-server.tar.gz"
sync_diff_inspector_download_url="http://download.pingcap.org/tidb-enterprise-tools-nightly-linux-amd64.tar.gz"
mydumper_download_url="http://download.pingcap.org/tidb-enterprise-tools-latest-linux-amd64.tar.gz"
sync_diff_inspector_download_url="http://download.pingcap.com/tidb-enterprise-tools-nightly-linux-amd64.tar.gz"
mydumper_download_url="http://download.pingcap.com/tidb-enterprise-tools-latest-linux-amd64.tar.gz"
Comment on lines +55 to +56
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-medium medium

These download URLs use http. It is recommended to use https to ensure the security and integrity of the downloaded binaries.

Suggested change
sync_diff_inspector_download_url="http://download.pingcap.com/tidb-enterprise-tools-nightly-linux-amd64.tar.gz"
mydumper_download_url="http://download.pingcap.com/tidb-enterprise-tools-latest-linux-amd64.tar.gz"
sync_diff_inspector_download_url="https://download.pingcap.com/tidb-enterprise-tools-nightly-linux-amd64.tar.gz"
mydumper_download_url="https://download.pingcap.com/tidb-enterprise-tools-latest-linux-amd64.tar.gz"


gh_os_download_url="https://github.com/github/gh-ost/releases/download/v1.1.0/gh-ost-binary-linux-20200828140552.tar.gz"
minio_download_url="${file_server_url}/download/minio.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion dm/tests/mariadb_master_down_and_up/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function exec_tidb() {
}

function install_sync_diff() {
curl https://download.pingcap.org/tidb-enterprise-tools-nightly-linux-amd64.tar.gz | tar xz
curl https://download.pingcap.com/tidb-enterprise-tools-nightly-linux-amd64.tar.gz | tar xz
mkdir -p bin
mv tidb-enterprise-tools-nightly-linux-amd64/bin/sync_diff_inspector bin/
}
Expand Down
2 changes: 1 addition & 1 deletion dm/tests/tiup/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function run_sql_tidb_with_retry() {
}

function install_sync_diff() {
curl https://download.pingcap.org/tidb-enterprise-tools-nightly-linux-amd64.tar.gz | tar xz
curl https://download.pingcap.com/tidb-enterprise-tools-nightly-linux-amd64.tar.gz | tar xz
mkdir -p bin
mv tidb-enterprise-tools-nightly-linux-amd64/bin/sync_diff_inspector bin/
}
Expand Down
2 changes: 1 addition & 1 deletion dm/tests/tiup/upgrade-from-v1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function deploy_v1_by_ansible() {
# step 3
su tidb <<EOF
cd /home/tidb
wget https://download.pingcap.org/dm-ansible-v1.0.7.tar.gz
wget https://download.pingcap.com/dm-ansible-v1.0.7.tar.gz
EOF

# step 4
Expand Down
2 changes: 1 addition & 1 deletion dm/tests/upstream_switch/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function exec_tidb() {
}

function install_sync_diff() {
curl https://download.pingcap.org/tidb-enterprise-tools-nightly-linux-amd64.tar.gz | tar xz
curl https://download.pingcap.com/tidb-enterprise-tools-nightly-linux-amd64.tar.gz | tar xz
mkdir -p bin
mv tidb-enterprise-tools-nightly-linux-amd64/bin/sync_diff_inspector bin/
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/download-integration-test-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ function download_community_binaries() {
local dist="${ver}-${os}-${arch}"
local tidb_file_name="tidb-community-server-$dist"
local tidb_tar_name="${tidb_file_name}.tar.gz"
local tidb_url="https://download.pingcap.org/$tidb_tar_name"
local tidb_url="https://download.pingcap.com/$tidb_tar_name"
local toolkit_file_name="tidb-community-toolkit-$dist"
local toolkit_tar_name="${toolkit_file_name}.tar.gz"
local toolkit_url="https://download.pingcap.org/$toolkit_tar_name"
local toolkit_url="https://download.pingcap.com/$toolkit_tar_name"

color-green "Download community binaries..."
download "$tidb_url" "$tidb_tar_name" "tmp/$tidb_tar_name"
Expand Down
2 changes: 1 addition & 1 deletion scripts/download-sync-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
set -eu

echo "will download tidb-tools v6.1.0 to get sync_diff_inspector"
curl -C - --retry 3 -o /tmp/tidb-tools.tar.gz https://download.pingcap.org/tidb-community-toolkit-v6.1.0-linux-amd64.tar.gz
curl -C - --retry 3 -o /tmp/tidb-tools.tar.gz https://download.pingcap.com/tidb-community-toolkit-v6.1.0-linux-amd64.tar.gz
mkdir -p /tmp/tidb-tools
tar -zxf /tmp/tidb-tools.tar.gz -C /tmp/tidb-tools
mv /tmp/tidb-tools/tidb-community-toolkit-v6.1.0-linux-amd64/sync_diff_inspector ./bin/sync_diff_inspector
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can specify version and arch, for example: `make prepare_test_binaries commu
* [jq](https://stedolan.github.io/jq/)
* [minio](https://github.com/minio/minio)

> You could download these binaries by yourself from [tidb-community-toolkit](https://download.pingcap.org/tidb-community-toolkit-v6.0.0-linux-amd64.tar.gz) and [tidb-community-server](https://download.pingcap.org/tidb-community-server-v6.0.0-linux-amd64.tar.gz).
> You could download these binaries by yourself from [tidb-community-toolkit](https://download.pingcap.com/tidb-community-toolkit-v6.0.0-linux-amd64.tar.gz) and [tidb-community-server](https://download.pingcap.com/tidb-community-server-v6.0.0-linux-amd64.tar.gz).

2. These are programs/packages need be installed.
* [mysql](https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/) (the MySQL cli client,
Expand Down
Loading