Skip to content

Commit

Permalink
add catalog config to manifest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Oct 2, 2024
1 parent b5bf57b commit 706ff32
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions tests/functional/test_external_catalog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import pytest
import yaml

from dbt.tests.util import run_dbt, write_file
from tests.fixtures.jaffle_shop import JaffleShopProject


@pytest.fixture(scope="class", autouse=True)
def dbt_catalog_config(project_root):
config = {
"name": "my_project",
"version": "0.1",
"config-version": 2,
"external-catalog": {
"name": "my_external_catalog",
"type": "iceberg",
"configuration": {
"table_format": "parquet",
"namespace": "dbt",
"external_location": "s3://my-bucket/my-path",
},
"management": {
"enabled": True,
"create_if_not_exists": False,
"alter_if_different": False,
"read_only": True,
"refresh": "on_change",
},
},
}
write_file(yaml.safe_dump(config), project_root, "catalog.yml")


class TestCatalogConfig(JaffleShopProject):

def test_supplying_external_catalog(self, project):
run_dbt(["build"])

0 comments on commit 706ff32

Please sign in to comment.