We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0cc1f4 commit a051188Copy full SHA for a051188
2 files changed
tests/profiles/generate_profiles.py
@@ -4,6 +4,7 @@
4
from __future__ import annotations
5
6
import base64
7
+import binascii
8
import json
9
import os
10
from pathlib import Path
@@ -83,7 +84,7 @@ def main(
83
84
if secrets_b64:
85
try:
86
decoded: dict = json.loads(base64.b64decode(secrets_b64))
- except (ValueError, json.JSONDecodeError) as e:
87
+ except (binascii.Error, json.JSONDecodeError) as e:
88
raise click.ClickException(
89
f"Failed to decode ${secrets_json_env}: {e}"
90
) from e
tests/profiles/profiles.yml.j2
@@ -60,6 +60,7 @@ elementary_tests:
60
http_path: {{ databricks_http_path }}
61
catalog: {{ databricks_catalog }}
62
schema: {{ schema_name }}
63
+ auth_type: oauth
64
client_id: {{ databricks_client_id }}
65
client_secret: {{ databricks_client_secret }}
66
threads: 4
0 commit comments