25
25
from botocore .exceptions import ClientError
26
26
27
27
from pyiceberg .catalog import Catalog , MetastoreCatalog
28
- from pyiceberg .catalog .glue import GlueCatalog
28
+ from pyiceberg .catalog .glue import GLUE_CATALOG_ENDPOINT , GlueCatalog
29
29
from pyiceberg .exceptions import (
30
30
NamespaceAlreadyExistsError ,
31
31
NamespaceNotEmptyError ,
36
36
from pyiceberg .io .pyarrow import _dataframe_to_data_files , schema_to_pyarrow
37
37
from pyiceberg .schema import Schema
38
38
from pyiceberg .types import IntegerType
39
- from tests .conftest import clean_up , get_bucket_name , get_s3_path
39
+ from tests .conftest import clean_up , get_bucket_name , get_glue_endpoint , get_s3_path
40
40
41
41
# The number of tables/databases used in list_table/namespace test
42
42
LIST_TEST_NUMBER = 2
@@ -51,7 +51,9 @@ def fixture_glue_client() -> boto3.client:
51
51
@pytest .fixture (name = "test_catalog" , scope = "module" )
52
52
def fixture_test_catalog () -> Generator [Catalog , None , None ]:
53
53
"""Configure the pre- and post-setting of aws integration test."""
54
- test_catalog = GlueCatalog (CATALOG_NAME , warehouse = get_s3_path (get_bucket_name ()))
54
+ test_catalog = GlueCatalog (
55
+ CATALOG_NAME , ** {"warehouse" : get_s3_path (get_bucket_name ()), GLUE_CATALOG_ENDPOINT : get_glue_endpoint ()}
56
+ )
55
57
yield test_catalog
56
58
clean_up (test_catalog )
57
59
0 commit comments