Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[CI] Fix Test gvfs with clould storage ran error (#9037)

Danhua Wang3c7ede78688c
diff --git a/clients/client-python/tests/integration/test_gvfs_with_gcs.py b/clients/client-python/tests/integration/test_gvfs_with_gcs.py
index e2d1bfa0d8..3f7b353e40 100644
--- a/clients/client-python/tests/integration/test_gvfs_with_gcs.py
+++ b/clients/client-python/tests/integration/test_gvfs_with_gcs.py
@@ -52,6 +52,7 @@ class TestGvfsWithGCS(TestGvfsWithHDFS):
key_file = os.environ.get("GCS_SERVICE_ACCOUNT_JSON_PATH")
bucket_name = os.environ.get("GCS_BUCKET_NAME")
metalake_name: str = "TestGvfsWithGCS_metalake" + str(randint(1, 10000))
+ catalog_name: str = "test_gvfs_catalog" + str(randint(1, 10000))
def setUp(self):
self.options = {
diff --git a/clients/client-python/tests/integration/test_gvfs_with_gcs_credential.py b/clients/client-python/tests/integration/test_gvfs_with_gcs_credential.py
index ca60b1a72a..046dc5fe8c 100644
--- a/clients/client-python/tests/integration/test_gvfs_with_gcs_credential.py
+++ b/clients/client-python/tests/integration/test_gvfs_with_gcs_credential.py
@@ -46,6 +46,7 @@ class TestGvfsWithGCSCredential(TestGvfsWithGCS):
key_file = os.environ.get("GCS_SERVICE_ACCOUNT_JSON_PATH_FOR_CREDENTIAL")
bucket_name = os.environ.get("GCS_BUCKET_NAME_FOR_CREDENTIAL")
metalake_name: str = "TestGvfsWithGCSCredential_metalake" + str(randint(1, 10000))
+ catalog_name: str = "test_gvfs_catalog" + str(randint(1, 10000))
def setUp(self):
self.options = {
diff --git a/clients/client-python/tests/integration/test_gvfs_with_s3.py b/clients/client-python/tests/integration/test_gvfs_with_s3.py
index 3cc97bd344..91bce125c7 100644
--- a/clients/client-python/tests/integration/test_gvfs_with_s3.py
+++ b/clients/client-python/tests/integration/test_gvfs_with_s3.py
@@ -56,6 +56,7 @@ class TestGvfsWithS3(TestGvfsWithHDFS):
bucket_name = os.environ.get("S3_BUCKET_NAME")
metalake_name: str = "TestGvfsWithS3_metalake" + str(randint(1, 10000))
+ catalog_name: str = "test_gvfs_catalog" + str(randint(1, 10000))
def setUp(self):
self.options = {
diff --git a/clients/client-python/tests/integration/test_gvfs_with_s3_credential.py b/clients/client-python/tests/integration/test_gvfs_with_s3_credential.py
index 2eb86ef8ad..6841493d83 100644
--- a/clients/client-python/tests/integration/test_gvfs_with_s3_credential.py
+++ b/clients/client-python/tests/integration/test_gvfs_with_s3_credential.py
@@ -59,6 +59,7 @@ class TestGvfsWithS3Credential(TestGvfsWithS3):
s3_role_arn = os.environ.get("S3_STS_ROLE_ARN")
metalake_name: str = "TestGvfsWithS3Credential_metalake" + str(randint(1, 10000))
+ catalog_name: str = "test_gvfs_catalog" + str(randint(1, 10000))
def setUp(self):
self.options = {
diff --git a/clients/filesystem-hadoop3/src/test/java/org/apache/gravitino/filesystem/hadoop/integration/test/GravitinoVirtualFileSystemGCSCredentialIT.java b/clients/filesystem-hadoop3/src/test/java/org/apache/gravitino/filesystem/hadoop/integration/test/GravitinoVirtualFileSystemGCSCredentialIT.java
index 0e8cced875..fcf523feae 100644
--- a/clients/filesystem-hadoop3/src/test/java/org/apache/gravitino/filesystem/hadoop/integration/test/GravitinoVirtualFileSystemGCSCredentialIT.java
+++ b/clients/filesystem-hadoop3/src/test/java/org/apache/gravitino/filesystem/hadoop/integration/test/GravitinoVirtualFileSystemGCSCredentialIT.java
@@ -136,7 +136,7 @@ public class GravitinoVirtualFileSystemGCSCredentialIT extends GravitinoVirtualF
}
protected String genStorageLocation(String fileset) {
- return String.format("gs://%s/dir1/dir2/%s/", BUCKET_NAME, fileset);
+ return String.format("gs://%s/dir1/dir2/%s", BUCKET_NAME, fileset);
}
@Disabled(