Skip to content

Commit 3728188

Browse files
authored
Enable volumes/set-storage-location test on direct (#3802)
1 parent 278c940 commit 3728188

File tree

6 files changed

+33
-20
lines changed

6 files changed

+33
-20
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
>>> musterr [CLI] bundle deploy
3+
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default/files...
4+
Deploying resources...
5+
Error: cannot create resources.volumes.volume1: CreateVolume storage_location can not be provided. (400 INVALID_PARAMETER_VALUE)
6+
7+
Endpoint: POST [DATABRICKS_URL]/api/2.1/unity-catalog/volumes
8+
HTTP Status: 400 Bad Request
9+
API error_code: INVALID_PARAMETER_VALUE
10+
API message: CreateVolume storage_location can not be provided.
11+
12+
Updating deployment state...
13+
14+
Exit code (musterr): 1
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
>>> musterr [CLI] bundle deploy
3+
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default/files...
4+
Deploying resources...
5+
Error: terraform apply: exit status 1
6+
7+
Error: cannot create volume: CreateVolume storage_location can not be provided.
8+
9+
with databricks_volume.volume1,
10+
on bundle.tf.json line 29, in resource.databricks_volume.volume1:
11+
29: }
12+
13+
14+
15+
Updating deployment state...
16+
17+
Exit code (musterr): 1

acceptance/bundle/resources/volumes/set-storage-location/out.test.toml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acceptance/bundle/resources/volumes/set-storage-location/output.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,6 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged
77

88
>>> print_requests
99

10-
>>> musterr [CLI] bundle deploy
11-
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default/files...
12-
Deploying resources...
13-
Error: terraform apply: exit status 1
14-
15-
Error: cannot create volume: CreateVolume storage_location can not be provided.
16-
17-
with databricks_volume.volume1,
18-
on bundle.tf.json line 29, in resource.databricks_volume.volume1:
19-
29: }
20-
21-
22-
23-
Updating deployment state...
24-
25-
Exit code (musterr): 1
26-
2710
>>> print_requests
2811
{
2912
"method": "POST",

acceptance/bundle/resources/volumes/set-storage-location/script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ trace print_requests
1515

1616
trap cleanup EXIT
1717

18-
trace musterr $CLI bundle deploy
18+
trace musterr $CLI bundle deploy &> out.deploy.$DATABRICKS_BUNDLE_ENGINE.txt
1919
trace print_requests

acceptance/bundle/resources/volumes/set-storage-location/test.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ CloudEnvs.azure = false
66
Ignore = [
77
".databricks",
88
]
9-
EnvMatrix.DATABRICKS_BUNDLE_ENGINE = ["terraform"]

0 commit comments

Comments
 (0)