2525from botocore .exceptions import ClientError
2626
2727from pyiceberg .catalog import Catalog , MetastoreCatalog
28- from pyiceberg .catalog .glue import GlueCatalog
28+ from pyiceberg .catalog .glue import GLUE_CATALOG_ENDPOINT , GlueCatalog
2929from pyiceberg .exceptions import (
3030 NamespaceAlreadyExistsError ,
3131 NamespaceNotEmptyError ,
3636from pyiceberg .io .pyarrow import _dataframe_to_data_files , schema_to_pyarrow
3737from pyiceberg .schema import Schema
3838from 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
4040
4141# The number of tables/databases used in list_table/namespace test
4242LIST_TEST_NUMBER = 2
@@ -51,7 +51,9 @@ def fixture_glue_client() -> boto3.client:
5151@pytest .fixture (name = "test_catalog" , scope = "module" )
5252def fixture_test_catalog () -> Generator [Catalog , None , None ]:
5353 """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+ )
5557 yield test_catalog
5658 clean_up (test_catalog )
5759
0 commit comments