Skip to content

Commit

Permalink
Set UCX catalog in MockRuntimeContext
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Sep 23, 2024
1 parent fcca40f commit 1523ad3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ def installation(self):
def inventory_database(self) -> str:
return self._make_schema(catalog_name="hive_metastore").name

@cached_property
def ucx_catalog(self) -> str:
return self._make_catalog(name=f"ucx-{self._make_random()}").name

@cached_property
def workspace_client(self) -> WorkspaceClient:
return self._ws
Expand Down Expand Up @@ -545,6 +549,7 @@ def config(self) -> WorkspaceConfig:
return WorkspaceConfig(
warehouse_id=self._env_or_skip("TEST_DEFAULT_WAREHOUSE_ID"),
inventory_database=self.inventory_database,
ucx_catalog=self.ucx_catalog,
connect=self.workspace_client.config,
renamed_group_prefix=f'tmp-{self.inventory_database}-',
include_group_names=self.created_groups,
Expand Down

0 comments on commit 1523ad3

Please sign in to comment.