Skip to content

Commit

Permalink
random metalake name
Browse files Browse the repository at this point in the history
  • Loading branch information
xunliu committed Apr 18, 2024
1 parent d71aeb4 commit b60755f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def setUpClass(cls):
GravitinoHome = os.environ.get('GRAVITINO_HOME')
if GravitinoHome is None:
logger.error('Gravitino Python client integration test must configure `GRAVITINO_HOME`')
quit(0)

cls.gravitino_startup_script = os.path.join(GravitinoHome, 'bin/gravitino.sh')
if not os.path.exists(cls.gravitino_startup_script):
Expand Down
11 changes: 6 additions & 5 deletions clients/client-python/tests/integration/test_fileset_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This software is licensed under the Apache License version 2.
"""
import logging
from random import random, randint

from gravitino.api.catalog import Catalog
from gravitino.api.fileset import Fileset
Expand All @@ -20,11 +21,11 @@
class TestFilesetCatalog(IntegrationTestEnv):
catalog: Catalog = None
metalake: GravitinoMetalake = None
metalake_name: str = "testMetalake"
catalog_name: str = "testCatalog"
schema_name: str = "testSchema"
fileset_name: str = "testFileset1"
fileset_alter_name: str = "testFilesetAlter"
metalake_name: str = "testMetalake" + str(randint(1, 100))
catalog_name: str = "testCatalog" + str(randint(1, 100))
schema_name: str = "testSchema" + str(randint(1, 100))
fileset_name: str = "testFileset1" + str(randint(1, 100))
fileset_alter_name: str = "testFilesetAlter" + str(randint(1, 100))
provider: str = "hadoop"

metalake_ident: NameIdentifier = NameIdentifier.of(metalake_name)
Expand Down

0 comments on commit b60755f

Please sign in to comment.