Skip to content

Commit

Permalink
make secret persistent if running on md
Browse files Browse the repository at this point in the history
  • Loading branch information
guenp committed Feb 10, 2025
1 parent 6e2e4d1 commit 912e287
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/adapter/test_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def extroot(self, tmp_path_factory, dest):
return extroot

@pytest.fixture(scope="class")
def dbt_profile_target(self, dbt_profile_target, extroot):
def dbt_profile_target(self, profile_type, dbt_profile_target, extroot):
dbt_profile_target["external_root"] = extroot
dbt_profile_target["secrets"] = [
{
Expand All @@ -92,6 +92,8 @@ def dbt_profile_target(self, dbt_profile_target, extroot):
"secret": os.getenv("S3_MD_ORG_SECRET"),
}
]
if profile_type == "md":
dbt_profile_target["secrets"][0]["persistent"] = True
return dbt_profile_target

@pytest.fixture(scope="class")
Expand Down

0 comments on commit 912e287

Please sign in to comment.