Skip to content

Commit

Permalink
Add a test re using variable in host
Browse files Browse the repository at this point in the history
  • Loading branch information
denik committed Jan 10, 2025
1 parent dc3a157 commit 090932d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
10 changes: 10 additions & 0 deletions acceptance/bundle/variables/host/databricks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
bundle:
name: host

variables:
host:
default: https://nonexistent123.staging.cloud.databricks.com

workspace:
# This is currently not supported
host: ${var.host}
38 changes: 38 additions & 0 deletions acceptance/bundle/variables/host/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

>>> errcode $CLI bundle validate -o json
Error: failed during request visitor: parse "https://${var.host}": invalid character "{" in host name

{
"bundle": {
"environment": "default",
"name": "host",
"target": "default"
},
"sync": {
"paths": [
"."
]
},
"targets": null,
"variables": {
"host": {
"default": "https://nonexistent123.staging.cloud.databricks.com"
}
},
"workspace": {
"host": "${var.host}"
}
}
Exit code: 1

>>> errcode $CLI bundle validate
Error: failed during request visitor: parse "https://${var.host}": invalid character "{" in host name

Name: host
Target: default
Workspace:
Host: ${var.host}

Found 1 error

Exit code: 1
2 changes: 2 additions & 0 deletions acceptance/bundle/variables/host/script
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trace errcode $CLI bundle validate -o json
trace errcode $CLI bundle validate

0 comments on commit 090932d

Please sign in to comment.