-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
acceptance/bundle/variables/prepend-workspace-var/databricks.yml
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,24 @@ | ||
workspace: | ||
profile: profile_name | ||
root_path: ${var.workspace_root}/path/to/root | ||
|
||
variables: | ||
workspace_root: | ||
description: "root directory in the Databricks workspace to store the asset bundle and associated artifacts" | ||
default: /Users/${workspace.current_user.userName} | ||
|
||
targets: | ||
dev: | ||
default: true | ||
prod: | ||
variables: | ||
workspace_root: /Shared | ||
|
||
resources: | ||
jobs: | ||
my_job: | ||
tasks: | ||
- existing_cluster_id: 500 | ||
python_wheel_task: | ||
named_parameters: | ||
conf-file: "${workspace.file_path}/path/to/config.yaml" |
67 changes: 67 additions & 0 deletions
67
acceptance/bundle/variables/prepend-workspace-var/output.txt
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,67 @@ | ||
/Workspace should be prepended on all paths, but it is not the case: | ||
{ | ||
"bundle": { | ||
"environment": "dev", | ||
"git": { | ||
"bundle_root_path": ".", | ||
"inferred": true | ||
}, | ||
"target": "dev", | ||
"terraform": { | ||
"exec_path": "$TMPHOME" | ||
} | ||
}, | ||
"resources": { | ||
"jobs": { | ||
"my_job": { | ||
"deployment": { | ||
"kind": "BUNDLE", | ||
"metadata_file_path": "/Users/$USERNAME/path/to/root/state/metadata.json" | ||
}, | ||
"edit_mode": "UI_LOCKED", | ||
"format": "MULTI_TASK", | ||
"permissions": [], | ||
"queue": { | ||
"enabled": true | ||
}, | ||
"tags": {}, | ||
"tasks": [ | ||
{ | ||
"existing_cluster_id": "500", | ||
"python_wheel_task": { | ||
"named_parameters": { | ||
"conf-file": "/Users/$USERNAME/path/to/root/files/path/to/config.yaml" | ||
} | ||
}, | ||
"task_key": "" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"sync": { | ||
"paths": [ | ||
"." | ||
] | ||
}, | ||
"targets": null, | ||
"variables": { | ||
"workspace_root": { | ||
"default": "/Users/$USERNAME", | ||
"description": "root directory in the Databricks workspace to store the asset bundle and associated artifacts", | ||
"value": "/Users/$USERNAME" | ||
} | ||
}, | ||
"workspace": { | ||
"artifact_path": "/Users/$USERNAME/path/to/root/artifacts", | ||
"current_user": { | ||
"short_name": "$USERNAME", | ||
"userName": "$USERNAME" | ||
}, | ||
"file_path": "/Users/$USERNAME/path/to/root/files", | ||
"profile": "profile_name", | ||
"resource_path": "/Users/$USERNAME/path/to/root/resources", | ||
"root_path": "/Users/$USERNAME/path/to/root", | ||
"state_path": "/Users/$USERNAME/path/to/root/state" | ||
} | ||
} |
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 @@ | ||
echo /Workspace should be prepended on all paths, but it is not the case: #2181 | ||
$CLI bundle validate -o json |