mirror of https://github.com/databricks/cli.git
Add a test re using variable in host (#2117)
Related issue: https://github.com/databricks/cli/issues/2095
This commit is contained in:
parent
3e40a0c2f1
commit
cae21b36de
|
@ -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}
|
|
@ -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
|
|
@ -0,0 +1,2 @@
|
|||
trace errcode $CLI bundle validate -o json
|
||||
trace errcode $CLI bundle validate
|
Loading…
Reference in New Issue