Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Set the default `data_security_mode` to `DATA_SECURITY_MODE_AUTO` in bundle templates ([#5452](https://github.com/databricks/cli/pull/5452)).
* Mark vector search index index_subtype as backend_default to prevent drift after deployment ([#5454](https://github.com/databricks/cli/pull/5454)).
* `bundle deployment migrate`: handle resources added to or removed from `databricks.yml` since the last Terraform deploy ([#5463](https://github.com/databricks/cli/pull/5463)).
* Fixed `bundle validate` creating the remote file path if it did not exist; validation no longer performs any write operations ([#5528](https://github.com/databricks/cli/pull/5528)).

### Dependency updates

Expand Down
1 change: 1 addition & 0 deletions acceptance/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# uploading the file's content to a workspace.
*.txt text eol=lf
*.lvdash.json text eol=lf
*.py text eol=lf

# The out.test.toml file is autogenerated based on the merged test.toml view.
out.test.toml linguist-generated=true
Expand Down
14 changes: 7 additions & 7 deletions acceptance/bundle/resource_deps/remote_app_url/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ create pipelines.mypipeline
Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged

>>> print_requests.py ^//import-file/
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
}
}

>>> [CLI] bundle deploy
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
Expand All @@ -45,6 +38,13 @@ Deployment complete!
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
}
}
{
"method": "POST",
"path": "/api/2.0/apps",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,3 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/pat/files"
}
}
{
"headers": {
"Authorization": [
"Bearer [DATABRICKS_TOKEN]"
]
},
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/pat/files"
}
}
{
"headers": {
"Authorization": [
"Bearer [DATABRICKS_TOKEN]"
]
},
"method": "GET",
"path": "/api/2.0/workspace/get-status",
"q": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/pat/files"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,3 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/oauth/files"
}
}
{
"headers": {
"Authorization": [
"Bearer oauth-token"
]
},
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/oauth/files"
}
}
{
"headers": {
"Authorization": [
"Bearer oauth-token"
]
},
"method": "GET",
"path": "/api/2.0/workspace/get-status",
"q": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/oauth/files"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,3 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/foobar/pat/files"
}
}
{
"headers": {
"Authorization": [
"Bearer [DATABRICKS_TOKEN]"
]
},
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/foobar/pat/files"
}
}
{
"headers": {
"Authorization": [
"Bearer [DATABRICKS_TOKEN]"
]
},
"method": "GET",
"path": "/api/2.0/workspace/get-status",
"q": {
"path": "/Workspace/Users/[USERNAME]/.bundle/foobar/pat/files"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,3 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/foobar/oauth/files"
}
}
{
"headers": {
"Authorization": [
"Bearer oauth-token"
]
},
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/foobar/oauth/files"
}
}
{
"headers": {
"Authorization": [
"Bearer oauth-token"
]
},
"method": "GET",
"path": "/api/2.0/workspace/get-status",
"q": {
"path": "/Workspace/Users/[USERNAME]/.bundle/foobar/oauth/files"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/artifacts/.internal"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/files"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/artifacts/.internal"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/files"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/artifacts/.internal"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/files"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/artifacts/.internal"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/files"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/artifacts/.internal"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/files"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/artifacts/.internal"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/files"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/artifacts/.internal"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/files"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/artifacts/.internal"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/files"
}
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
Expand Down
8 changes: 4 additions & 4 deletions acceptance/bundle/user_agent/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ OK deploy.direct /api/2.0/workspace/get-status engine/direct
OK deploy.direct /api/2.0/workspace/get-status engine/direct
OK deploy.direct /api/2.0/workspace/get-status engine/direct
OK deploy.direct /api/2.0/workspace/get-status engine/direct
OK deploy.direct /api/2.0/workspace/get-status engine/direct
OK deploy.direct /api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/empty.py engine/direct
OK deploy.direct /api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock engine/direct
OK deploy.direct /api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json engine/direct
Expand All @@ -16,6 +17,7 @@ OK deploy.direct /api/2.0/workspace-files/import-file/Workspace/Users/[USERNAM
OK deploy.direct /api/2.0/workspace/delete engine/direct
OK deploy.direct /api/2.0/workspace/delete engine/direct
OK deploy.direct /api/2.0/workspace/mkdirs engine/direct
OK deploy.direct /api/2.0/workspace/mkdirs engine/direct
OK deploy.direct /api/2.1/unity-catalog/schemas engine/direct
MISS deploy.direct /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
MISS deploy.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat'
Expand All @@ -28,6 +30,7 @@ OK deploy.terraform /api/2.0/workspace/get-status engine/terraform
OK deploy.terraform /api/2.0/workspace/get-status engine/terraform
OK deploy.terraform /api/2.0/workspace/get-status engine/terraform
OK deploy.terraform /api/2.0/workspace/get-status engine/terraform
OK deploy.terraform /api/2.0/workspace/get-status engine/terraform
OK deploy.terraform /api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/empty.py engine/terraform
OK deploy.terraform /api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock engine/terraform
OK deploy.terraform /api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json engine/terraform
Expand All @@ -36,6 +39,7 @@ OK deploy.terraform /api/2.0/workspace-files/import-file/Workspace/Users/[USER
OK deploy.terraform /api/2.0/workspace/delete engine/terraform
OK deploy.terraform /api/2.0/workspace/delete engine/terraform
OK deploy.terraform /api/2.0/workspace/mkdirs engine/terraform
OK deploy.terraform /api/2.0/workspace/mkdirs engine/terraform
MISS deploy.terraform /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
MISS deploy.terraform /api/2.0/preview/scim/v2/Me 'databricks-tf-provider/1.117.0 databricks-sdk-go/[SDK_VERSION] go/1.25.8 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 auth/pat'
MISS deploy.terraform /api/2.0/preview/scim/v2/Me 'databricks-tf-provider/1.117.0 databricks-sdk-go/[SDK_VERSION] go/1.25.8 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 auth/pat'
Expand Down Expand Up @@ -132,11 +136,7 @@ MISS summary.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databric
MISS summary.terraform /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
MISS validate.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat'
MISS validate.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat'
MISS validate.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat'
MISS validate.direct /api/2.0/workspace/mkdirs 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat'
MISS validate.direct /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
MISS validate.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat'
MISS validate.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat'
MISS validate.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat'
MISS validate.terraform /api/2.0/workspace/mkdirs 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat'
MISS validate.terraform /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
}
}
{
"headers": {
"User-Agent": [
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat"
]
},
"method": "GET",
"path": "/api/2.0/workspace/get-status",
"q": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
}
}
{
"headers": {
"User-Agent": [
Expand Down Expand Up @@ -274,6 +286,18 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal"
}
}
{
"headers": {
"User-Agent": [
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat"
]
},
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
}
}
{
"headers": {
"User-Agent": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
}
}
{
"headers": {
"User-Agent": [
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat"
]
},
"method": "GET",
"path": "/api/2.0/workspace/get-status",
"q": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
}
}
{
"headers": {
"User-Agent": [
Expand Down Expand Up @@ -300,6 +312,18 @@
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal"
}
}
{
"headers": {
"User-Agent": [
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat"
]
},
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
"body": {
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
}
}
{
"headers": {
"User-Agent": [
Expand Down
Loading
Loading