Skip to content

Commit

Permalink
[BACKPORT] adding allowlist_externals for bash script to tox tests, c…
Browse files Browse the repository at this point in the history
…hanging passenv (#544)

* adding allowlist_externals for bash script to tox tests, changing passenv spacing

* add changie
  • Loading branch information
McKnight-42 authored Dec 9, 2022
1 parent 7584f98 commit d12c332
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .changes/unreleased/Under the Hood-20221209-143903.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Under the Hood
body: fix post new release tox issues around passenv and allowlist_externals
time: 2022-12-09T14:39:03.41702-06:00
custom:
Author: McKnight-42
Issue: "544"
PR: "544"
33 changes: 28 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,75 @@ envlist = unit, flake8, integration-spark-thrift
allowlist_externals =
/bin/bash
commands = /bin/bash -c '{envpython} -m pytest -v {posargs} tests/unit'
passenv = DBT_* PYTEST_ADDOPTS
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt

[testenv:integration-spark-databricks-http]
allowlist_externals =
/bin/bash
basepython = python3.8
commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_http_cluster {posargs} -n4 tests/functional/adapter/*'
passenv = DBT_* PYTEST_ADDOPTS
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
-e.

[testenv:integration-spark-databricks-odbc-cluster]
allowlist_externals =
/bin/bash
basepython = python3.8
commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_cluster {posargs} -n4 tests/functional/adapter/*'
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_cluster {posargs} -n4 tests/integration/*'
passenv = DBT_* PYTEST_ADDOPTS ODBC_DRIVER
passenv =
DBT_*
PYTEST_ADDOPTS
ODBC_DRIVER
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
-e.

[testenv:integration-spark-databricks-odbc-sql-endpoint]
allowlist_externals =
/bin/bash
basepython = python3.8
commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_sql_endpoint {posargs} -n4 tests/functional/adapter/*'
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_sql_endpoint {posargs} -n4 tests/integration/*'
passenv = DBT_* PYTEST_ADDOPTS ODBC_DRIVER
passenv =
DBT_*
PYTEST_ADDOPTS
ODBC_DRIVER
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
-e.



[testenv:integration-spark-thrift]
allowlist_externals =
/bin/bash
basepython = python3.8
commands = /bin/bash -c '{envpython} -m pytest -v --profile apache_spark {posargs} -n4 tests/functional/adapter/*'
/bin/bash -c '{envpython} -m pytest -v -m profile_apache_spark {posargs} -n4 tests/integration/*'
passenv = DBT_* PYTEST_ADDOPTS
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
-e.

[testenv:integration-spark-session]
allowlist_externals =
/bin/bash
basepython = python3
commands = /bin/bash -c '{envpython} -m pytest -v --profile spark_session {posargs} -n4 tests/functional/adapter/*'
passenv =
Expand Down

0 comments on commit d12c332

Please sign in to comment.