-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test re using variable in host
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |