Skip to content

Commit

Permalink
add test users to env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Feb 17, 2024
1 parent 3c40630 commit 026f136
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ template = "unit-tests"
extra-dependencies = [
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git@setup-shared-tests#subdirectory=dbt-tests-adapter",
]
[tool.hatch.envs.integration-tests.env-vars]
DBT_TEST_USER_1 = "dbt_test_role_1"
DBT_TEST_USER_2 = "dbt_test_role_2"
DBT_TEST_USER_3 = "dbt_test_role_3"
[tool.hatch.envs.integration-tests.scripts]
all = "python -m pytest {args:tests/functional}"

Expand Down
4 changes: 4 additions & 0 deletions test.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ POSTGRES_TEST_USER=
POSTGRES_TEST_PASS=
POSTGRES_TEST_DATABASE=
POSTGRES_TEST_THREADS=

DBT_TEST_USER_1=dbt_test_role_1
DBT_TEST_USER_2=dbt_test_role_2
DBT_TEST_USER_3=dbt_test_role_3

0 comments on commit 026f136

Please sign in to comment.