From f8829a4e6b3c4d42306cce1b1b11f1378d838cb5 Mon Sep 17 00:00:00 2001 From: JmPotato Date: Wed, 20 Dec 2023 15:48:00 +0800 Subject: [PATCH] Rename the test from realtiup to realcluster Signed-off-by: JmPotato --- Makefile | 2 +- pd.code-workspace | 2 +- tests/integrations/{realtiup => realcluster}/Makefile | 0 tests/integrations/{realtiup => realcluster}/deploy.sh | 0 tests/integrations/{realtiup => realcluster}/go.mod | 2 +- tests/integrations/{realtiup => realcluster}/go.sum | 0 tests/integrations/{realtiup => realcluster}/mock_db.go | 2 +- .../integrations/{realtiup => realcluster}/reboot_pd_test.go | 2 +- .../{realtiup => realcluster}/transfer_leader_test.go | 2 +- tests/integrations/{realtiup => realcluster}/ts_test.go | 2 +- tests/integrations/{realtiup => realcluster}/util.go | 4 ++-- tests/integrations/{realtiup => realcluster}/wait_tiup.sh | 0 12 files changed, 9 insertions(+), 9 deletions(-) rename tests/integrations/{realtiup => realcluster}/Makefile (100%) rename tests/integrations/{realtiup => realcluster}/deploy.sh (100%) rename tests/integrations/{realtiup => realcluster}/go.mod (96%) rename tests/integrations/{realtiup => realcluster}/go.sum (100%) rename tests/integrations/{realtiup => realcluster}/mock_db.go (99%) rename tests/integrations/{realtiup => realcluster}/reboot_pd_test.go (98%) rename tests/integrations/{realtiup => realcluster}/transfer_leader_test.go (99%) rename tests/integrations/{realtiup => realcluster}/ts_test.go (98%) rename tests/integrations/{realtiup => realcluster}/util.go (92%) rename tests/integrations/{realtiup => realcluster}/wait_tiup.sh (100%) diff --git a/Makefile b/Makefile index 8e2353691b8..b94de374a81 100644 --- a/Makefile +++ b/Makefile @@ -261,7 +261,7 @@ test-tso-consistency: install-tools CGO_ENABLED=1 go test -race -tags without_dashboard,tso_consistency_test,deadlock $(TSO_INTEGRATION_TEST_PKGS) || { $(FAILPOINT_DISABLE); exit 1; } @$(FAILPOINT_DISABLE) -REAL_CLUSTER_TEST_PATH := $(ROOT_PATH)/tests/integrations/realtiup +REAL_CLUSTER_TEST_PATH := $(ROOT_PATH)/tests/integrations/realcluster test-real-cluster: # testing with the real cluster... diff --git a/pd.code-workspace b/pd.code-workspace index 54a8ea324aa..8cdb8d4d043 100644 --- a/pd.code-workspace +++ b/pd.code-workspace @@ -22,7 +22,7 @@ }, { "name": "real-cluster-tests", - "path": "tests/integrations/realtiup" + "path": "tests/integrations/realcluster" }, { "name": "pd-tso-bench", diff --git a/tests/integrations/realtiup/Makefile b/tests/integrations/realcluster/Makefile similarity index 100% rename from tests/integrations/realtiup/Makefile rename to tests/integrations/realcluster/Makefile diff --git a/tests/integrations/realtiup/deploy.sh b/tests/integrations/realcluster/deploy.sh similarity index 100% rename from tests/integrations/realtiup/deploy.sh rename to tests/integrations/realcluster/deploy.sh diff --git a/tests/integrations/realtiup/go.mod b/tests/integrations/realcluster/go.mod similarity index 96% rename from tests/integrations/realtiup/go.mod rename to tests/integrations/realcluster/go.mod index ccb23548f3e..66f40012863 100644 --- a/tests/integrations/realtiup/go.mod +++ b/tests/integrations/realcluster/go.mod @@ -1,4 +1,4 @@ -module github.com/tikv/pd/tests/integrations/realtiup +module github.com/tikv/pd/tests/integrations/realcluster go 1.21 diff --git a/tests/integrations/realtiup/go.sum b/tests/integrations/realcluster/go.sum similarity index 100% rename from tests/integrations/realtiup/go.sum rename to tests/integrations/realcluster/go.sum diff --git a/tests/integrations/realtiup/mock_db.go b/tests/integrations/realcluster/mock_db.go similarity index 99% rename from tests/integrations/realtiup/mock_db.go rename to tests/integrations/realcluster/mock_db.go index 95f3af8a06c..255ff6c0057 100644 --- a/tests/integrations/realtiup/mock_db.go +++ b/tests/integrations/realcluster/mock_db.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package realtiup +package realcluster import ( "testing" diff --git a/tests/integrations/realtiup/reboot_pd_test.go b/tests/integrations/realcluster/reboot_pd_test.go similarity index 98% rename from tests/integrations/realtiup/reboot_pd_test.go rename to tests/integrations/realcluster/reboot_pd_test.go index bccf465bde0..59747912897 100644 --- a/tests/integrations/realtiup/reboot_pd_test.go +++ b/tests/integrations/realcluster/reboot_pd_test.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package realtiup +package realcluster import ( "context" diff --git a/tests/integrations/realtiup/transfer_leader_test.go b/tests/integrations/realcluster/transfer_leader_test.go similarity index 99% rename from tests/integrations/realtiup/transfer_leader_test.go rename to tests/integrations/realcluster/transfer_leader_test.go index 51142be03f9..6a8f2e8a732 100644 --- a/tests/integrations/realtiup/transfer_leader_test.go +++ b/tests/integrations/realcluster/transfer_leader_test.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package realtiup +package realcluster import ( "context" diff --git a/tests/integrations/realtiup/ts_test.go b/tests/integrations/realcluster/ts_test.go similarity index 98% rename from tests/integrations/realtiup/ts_test.go rename to tests/integrations/realcluster/ts_test.go index 9bf8aee2d49..5d970556fbc 100644 --- a/tests/integrations/realtiup/ts_test.go +++ b/tests/integrations/realcluster/ts_test.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package realtiup +package realcluster import ( "testing" diff --git a/tests/integrations/realtiup/util.go b/tests/integrations/realcluster/util.go similarity index 92% rename from tests/integrations/realtiup/util.go rename to tests/integrations/realcluster/util.go index 8f0c71038d6..412df51894b 100644 --- a/tests/integrations/realtiup/util.go +++ b/tests/integrations/realcluster/util.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package realtiup +package realcluster import ( "time" @@ -24,7 +24,7 @@ const physicalShiftBits = 18 var ( pdAddrs = []string{"127.0.0.1:2379"} - pdHTTPCli = http.NewClient("pd-realtiup-test", pdAddrs) + pdHTTPCli = http.NewClient("pd-real-cluster-test", pdAddrs) ) // GetTimeFromTS extracts time.Time from a timestamp. diff --git a/tests/integrations/realtiup/wait_tiup.sh b/tests/integrations/realcluster/wait_tiup.sh similarity index 100% rename from tests/integrations/realtiup/wait_tiup.sh rename to tests/integrations/realcluster/wait_tiup.sh