Skip to content

Commit 3b5f273

Browse files
committed
ci: set up validation test
1 parent 3961ad0 commit 3b5f273

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/generate.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
# limitations under the License.
1414

1515
driver = "databricks"
16+
environment = "azure-prod"
1617

1718
[lang]
1819
go = true
20+
21+
[secrets]
22+
DATABRICKS_HOST = { secret = "DATABRICKS_HOST", contexts = ["validate"] }
23+
DATABRICKS_ACCESSTOKEN = { secret = "DATABRICKS_TOKEN", contexts = ["validate"] }
24+
DATABRICKS_HTTPPATH = { secret = "TEST_PECO_WAREHOUSE_HTTP_PATH", contexts = ["validate"] }

go/validation/tests/databricks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ class DatabricksQuirks(model.DriverQuirks):
4949
)
5050
setup = model.DriverSetup(
5151
database={
52-
"uri": model.FromEnv("DATABRICKS_URI"),
52+
"DATABRICKS_HOST": model.FromEnv("DATABRICKS_HOST"),
53+
"DATABRICKS_ACCESSTOKEN": model.FromEnv("DATABRICKS_ACCESSTOKEN"),
54+
"DATABRICKS_HTTPPATH": model.FromEnv("DATABRICKS_HTTPPATH"),
55+
"DATABRICKS_CATALOG": "main",
56+
"DATABRICKS_SCHEMA": "adbc_testing",
5357
},
5458
connection={},
5559
statement={},

0 commit comments

Comments
 (0)