Skip to content

Commit 0e8d63d

Browse files
denikIsaac
andcommitted
Skip get-status before exporting bundle state files
stateFiler.Read stat'ed every state file before exporting it. Export already reports a missing file with 404, so map that to fs.ErrNotExist and drop the extra round trip from every remote state read. Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 869db6a commit 0e8d63d

11 files changed

Lines changed: 111 additions & 119 deletions

File tree

‎acceptance/bundle/resources/jobs/request-summary/output.txt‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged
77
>>> print_requests
88
GET /.well-known/databricks-config
99
GET /api/2.0/preview/scim/v2/Me
10-
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deployment.json return_export_info=true
11-
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/resources.json return_export_info=true
12-
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/terraform.tfstate return_export_info=true
10+
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deployment.json
11+
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/resources.json
12+
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/terraform.tfstate
1313

1414
>>> [CLI] bundle deploy
1515
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/request-summary/default/files...
@@ -20,14 +20,14 @@ Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
2020
>>> print_requests
2121
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deploy.lock
2222
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deploy.lock
23+
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deployment.json
24+
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/resources.json
25+
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/terraform.tfstate
2326
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/files
2427
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/files
2528
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deploy.lock return_export_info=true
2629
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deploy.lock return_export_info=true
2730
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deploy.lock return_export_info=true
28-
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deployment.json return_export_info=true
29-
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/resources.json return_export_info=true
30-
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/terraform.tfstate return_export_info=true
3131
POST /api/2.0/workspace/delete
3232
POST /api/2.0/workspace/delete
3333
POST /api/2.0/workspace/import
@@ -52,11 +52,10 @@ Destroy: 1 deleted
5252
>>> print_requests
5353
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deploy.lock
5454
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/resources.json
55+
GET /api/2.0/workspace/export direct_download=true path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/terraform.tfstate
5556
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default
5657
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deploy.lock return_export_info=true
5758
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/deploy.lock return_export_info=true
58-
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/resources.json return_export_info=true
59-
GET /api/2.0/workspace/get-status path=/Workspace/Users/[USERNAME]/.bundle/request-summary/default/state/terraform.tfstate return_export_info=true
6059
GET /api/2.2/jobs/get job_id=[FOO_ID]
6160
POST /api/2.0/workspace/delete
6261
POST /api/2.0/workspace/delete

‎acceptance/bundle/state/basic/out.state.txt‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,38 @@
66
"path": "/Workspace/Users/[USERNAME]/.bundle/state/default/state/STATE_FILENAME"
77
}
88
}
9+
{
10+
"method": "GET",
11+
"path": "/api/2.0/workspace/export",
12+
"q": {
13+
"direct_download": "true",
14+
"path": "/Workspace/Users/[USERNAME]/.bundle/state/default/state/STATE_FILENAME"
15+
}
16+
}
17+
{
18+
"method": "GET",
19+
"path": "/api/2.0/workspace/export",
20+
"q": {
21+
"direct_download": "true",
22+
"path": "/Workspace/Users/[USERNAME]/.bundle/state/default/state/deployment.json"
23+
}
24+
}
25+
{
26+
"method": "GET",
27+
"path": "/api/2.0/workspace/export",
28+
"q": {
29+
"direct_download": "true",
30+
"path": "/Workspace/Users/[USERNAME]/.bundle/state/default/state/STATE_FILENAME"
31+
}
32+
}
33+
{
34+
"method": "GET",
35+
"path": "/api/2.0/workspace/export",
36+
"q": {
37+
"direct_download": "true",
38+
"path": "/Workspace/Users/[USERNAME]/.bundle/state/default/state/STATE_FILENAME"
39+
}
40+
}
941
{
1042
"method": "GET",
1143
"path": "/api/2.0/workspace/export",

‎acceptance/bundle/state/force_pull_commands/output.txt‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
2121
"path": "/Workspace/Users/[USERNAME]/.bundle/force-pull-commands/default/state/STATE_FILENAME"
2222
}
2323
}
24+
{
25+
"method": "GET",
26+
"path": "/api/2.0/workspace/export",
27+
"q": {
28+
"direct_download": "true",
29+
"path": "/Workspace/Users/[USERNAME]/.bundle/force-pull-commands/default/state/STATE_FILENAME"
30+
}
31+
}
2432

2533
=== bundle open without --force-pull: no remote state read
2634

@@ -39,3 +47,11 @@ Opening browser at [DATABRICKS_URL]/jobs/[FOO_ID]?w=[WORKSPACE_ID]
3947
"path": "/Workspace/Users/[USERNAME]/.bundle/force-pull-commands/default/state/STATE_FILENAME"
4048
}
4149
}
50+
{
51+
"method": "GET",
52+
"path": "/api/2.0/workspace/export",
53+
"q": {
54+
"direct_download": "true",
55+
"path": "/Workspace/Users/[USERNAME]/.bundle/force-pull-commands/default/state/STATE_FILENAME"
56+
}
57+
}

‎acceptance/bundle/user_agent/output.txt‎

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
MISS deploy /api/2.0/preview/scim/v2/Me 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat'
2-
MISS deploy /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat'
3-
MISS deploy /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat'
2+
MISS deploy /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat'
3+
MISS deploy /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat'
4+
OK deploy /api/2.0/workspace/export engine/direct
45
OK deploy /api/2.0/workspace/export engine/direct
56
OK deploy /api/2.0/workspace/export engine/direct
6-
OK deploy /api/2.0/workspace/get-status engine/direct
77
OK deploy /api/2.0/workspace/get-status engine/direct
88
OK deploy /api/2.0/workspace/get-status engine/direct
99
OK deploy /api/2.0/workspace/get-status engine/direct
@@ -22,8 +22,7 @@ OK deploy /api/2.1/unity-catalog/schemas engine/direct
2222
MISS deploy /.well-known/databricks-config 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
2323
MISS destroy /api/2.0/preview/scim/v2/Me 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat'
2424
MISS destroy /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat'
25-
MISS destroy /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat'
26-
MISS destroy /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat'
25+
MISS destroy /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat'
2726
OK destroy /api/2.1/unity-catalog/schemas/mycatalog.myschema engine/direct
2827
OK destroy /api/2.0/workspace/export engine/direct
2928
OK destroy /api/2.0/workspace/get-status engine/direct
@@ -35,26 +34,23 @@ OK destroy /api/2.0/workspace/delete engine/direct
3534
OK destroy /api/2.0/workspace/import engine/direct
3635
MISS destroy /.well-known/databricks-config 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
3736
MISS plan /api/2.0/preview/scim/v2/Me 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
38-
MISS plan /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
39-
MISS plan /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
40-
OK plan /api/2.0/workspace/get-status engine/direct
37+
MISS plan /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
38+
MISS plan /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
39+
OK plan /api/2.0/workspace/export engine/direct
4140
MISS plan /.well-known/databricks-config 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
4241
MISS plan2 /api/2.0/preview/scim/v2/Me 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
4342
MISS plan2 /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
44-
MISS plan2 /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
45-
MISS plan2 /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
43+
MISS plan2 /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
4644
OK plan2 /api/2.0/workspace/export engine/direct
47-
OK plan2 /api/2.0/workspace/get-status engine/direct
4845
OK plan2 /api/2.1/unity-catalog/schemas/mycatalog.myschema engine/direct
4946
MISS plan2 /.well-known/databricks-config 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
5047
MISS run /api/2.0/preview/scim/v2/Me 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat'
5148
MISS run /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat'
52-
MISS run /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat'
53-
MISS run /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat'
49+
MISS run /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat'
5450
MISS run /.well-known/databricks-config 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
5551
MISS summary /api/2.0/preview/scim/v2/Me 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat'
56-
MISS summary /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat'
57-
MISS summary /api/2.0/workspace/get-status 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat'
52+
MISS summary /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat'
53+
MISS summary /api/2.0/workspace/export 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat'
5854
OK summary /api/2.0/preview/scim/v2/Me engine/direct
5955
MISS summary /.well-known/databricks-config 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
6056
MISS validate /api/2.0/preview/scim/v2/Me 'cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat'

‎acceptance/bundle/user_agent/simple/out.requests.deploy.json‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
]
1515
},
1616
"method": "GET",
17-
"path": "/api/2.0/workspace/get-status",
17+
"path": "/api/2.0/workspace/export",
1818
"q": {
19-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json",
20-
"return_export_info": "true"
19+
"direct_download": "true",
20+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json"
2121
}
2222
}
2323
{
@@ -27,10 +27,10 @@
2727
]
2828
},
2929
"method": "GET",
30-
"path": "/api/2.0/workspace/get-status",
30+
"path": "/api/2.0/workspace/export",
3131
"q": {
32-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate",
33-
"return_export_info": "true"
32+
"direct_download": "true",
33+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate"
3434
}
3535
}
3636
{
@@ -66,9 +66,10 @@
6666
]
6767
},
6868
"method": "GET",
69-
"path": "/api/2.0/workspace/get-status",
69+
"path": "/api/2.0/workspace/export",
7070
"q": {
71-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
71+
"direct_download": "true",
72+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json"
7273
}
7374
}
7475
{
@@ -80,8 +81,7 @@
8081
"method": "GET",
8182
"path": "/api/2.0/workspace/get-status",
8283
"q": {
83-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock",
84-
"return_export_info": "true"
84+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
8585
}
8686
}
8787
{
@@ -119,7 +119,7 @@
119119
"method": "GET",
120120
"path": "/api/2.0/workspace/get-status",
121121
"q": {
122-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json",
122+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock",
123123
"return_export_info": "true"
124124
}
125125
}

‎acceptance/bundle/user_agent/simple/out.requests.destroy.json‎

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,10 @@
2727
]
2828
},
2929
"method": "GET",
30-
"path": "/api/2.0/workspace/get-status",
31-
"q": {
32-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json",
33-
"return_export_info": "true"
34-
}
35-
}
36-
{
37-
"headers": {
38-
"User-Agent": [
39-
"cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat"
40-
]
41-
},
42-
"method": "GET",
43-
"path": "/api/2.0/workspace/get-status",
30+
"path": "/api/2.0/workspace/export",
4431
"q": {
45-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate",
46-
"return_export_info": "true"
32+
"direct_download": "true",
33+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate"
4734
}
4835
}
4936
{

‎acceptance/bundle/user_agent/simple/out.requests.plan.json‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
]
1515
},
1616
"method": "GET",
17-
"path": "/api/2.0/workspace/get-status",
17+
"path": "/api/2.0/workspace/export",
1818
"q": {
19-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json",
20-
"return_export_info": "true"
19+
"direct_download": "true",
20+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json"
2121
}
2222
}
2323
{
@@ -27,10 +27,10 @@
2727
]
2828
},
2929
"method": "GET",
30-
"path": "/api/2.0/workspace/get-status",
30+
"path": "/api/2.0/workspace/export",
3131
"q": {
32-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate",
33-
"return_export_info": "true"
32+
"direct_download": "true",
33+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate"
3434
}
3535
}
3636
{
@@ -40,10 +40,10 @@
4040
]
4141
},
4242
"method": "GET",
43-
"path": "/api/2.0/workspace/get-status",
43+
"path": "/api/2.0/workspace/export",
4444
"q": {
45-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json",
46-
"return_export_info": "true"
45+
"direct_download": "true",
46+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json"
4747
}
4848
}
4949
{

‎acceptance/bundle/user_agent/simple/out.requests.plan2.json‎

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,10 @@
2727
]
2828
},
2929
"method": "GET",
30-
"path": "/api/2.0/workspace/get-status",
31-
"q": {
32-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json",
33-
"return_export_info": "true"
34-
}
35-
}
36-
{
37-
"headers": {
38-
"User-Agent": [
39-
"cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat"
40-
]
41-
},
42-
"method": "GET",
43-
"path": "/api/2.0/workspace/get-status",
30+
"path": "/api/2.0/workspace/export",
4431
"q": {
45-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate",
46-
"return_export_info": "true"
32+
"direct_download": "true",
33+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate"
4734
}
4835
}
4936
{
@@ -59,19 +46,6 @@
5946
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json"
6047
}
6148
}
62-
{
63-
"headers": {
64-
"User-Agent": [
65-
"cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct lineage/[LINEAGE_HASH] auth/pat"
66-
]
67-
},
68-
"method": "GET",
69-
"path": "/api/2.0/workspace/get-status",
70-
"q": {
71-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json",
72-
"return_export_info": "true"
73-
}
74-
}
7549
{
7650
"headers": {
7751
"User-Agent": [

‎acceptance/bundle/user_agent/simple/out.requests.run.json‎

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,10 @@
2727
]
2828
},
2929
"method": "GET",
30-
"path": "/api/2.0/workspace/get-status",
31-
"q": {
32-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json",
33-
"return_export_info": "true"
34-
}
35-
}
36-
{
37-
"headers": {
38-
"User-Agent": [
39-
"cli/[CLI_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat"
40-
]
41-
},
42-
"method": "GET",
43-
"path": "/api/2.0/workspace/get-status",
30+
"path": "/api/2.0/workspace/export",
4431
"q": {
45-
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate",
46-
"return_export_info": "true"
32+
"direct_download": "true",
33+
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate"
4734
}
4835
}
4936
{

0 commit comments

Comments
 (0)