Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions tests/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ def _build_databricks_cluster_target(
profile["schema"] = schema
if session_properties is not None:
profile["session_properties"] = session_properties
if os.getenv("DBT_DATABRICKS_PORT"):
profile["connection_parameters"] = {
"_port": os.getenv("DBT_DATABRICKS_PORT"),
# If you are specifying a port for running tests, assume Docker
# is being used and disable TLS verification
"_tls_no_verify": True,
}
# Test runs gain nothing from connector telemetry, and when its background
# POSTs fail in CI they spam ERROR logs on otherwise-green runs. Turn it off
# here so the connector uses its NoopTelemetryClient.
connection_parameters: dict[str, Any] = {"enable_telemetry": False}
port = os.getenv("DBT_DATABRICKS_PORT")
if port:
connection_parameters["_port"] = port
# If you are specifying a port for running tests, assume Docker
# is being used and disable TLS verification
connection_parameters["_tls_no_verify"] = True
profile["connection_parameters"] = connection_parameters
return profile


Expand Down
Loading