Skip to content

Commit 983571e

Browse files
committed
Fix another pipeline recreate test
1 parent f513764 commit 983571e

12 files changed

+152
-38
lines changed

acceptance/bundle/resource_deps/pipelines_recreate/databricks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ resources:
22
pipelines:
33
foo:
44
name: pipeline foo
5-
catalog: mycatalog
5+
storage: dbfs:/my-storage
66
jobs:
77
bar:
88
name: job bar

acceptance/bundle/resource_deps/pipelines_recreate/out.create.requests.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"method": "POST",
33
"path": "/api/2.0/pipelines",
44
"body": {
5-
"catalog": "mycatalog",
65
"channel": "CURRENT",
76
"deployment": {
87
"kind": "BUNDLE",
98
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
109
},
1110
"edition": "ADVANCED",
12-
"name": "pipeline foo"
11+
"name": "pipeline foo",
12+
"storage": "dbfs:/my-storage"
1313
}
1414
}
1515
{

acceptance/bundle/resource_deps/pipelines_recreate/out.plan_create.direct.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
"action": "create",
3333
"new_state": {
3434
"value": {
35-
"catalog": "mycatalog",
3635
"channel": "CURRENT",
3736
"deployment": {
3837
"kind": "BUNDLE",
3938
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
4039
},
4140
"edition": "ADVANCED",
42-
"name": "pipeline foo"
41+
"name": "pipeline foo",
42+
"storage": "dbfs:/my-storage"
4343
}
4444
}
4545
}

acceptance/bundle/resource_deps/pipelines_recreate/out.plan_noop.direct.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@
5757
"pipeline_id": "[UUID]",
5858
"run_as_user_name": "[USERNAME]",
5959
"spec": {
60-
"catalog": "mynewcatalog",
6160
"channel": "CURRENT",
6261
"deployment": {
6362
"kind": "BUNDLE",
6463
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
6564
},
6665
"edition": "ADVANCED",
6766
"id": "[UUID]",
68-
"name": "pipeline foo"
67+
"name": "pipeline foo",
68+
"storage": "dbfs:/my-new-storage"
6969
},
7070
"state": "IDLE"
7171
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"plan": {
3+
"resources.jobs.bar": {
4+
"action": "skip"
5+
},
6+
"resources.pipelines.foo": {
7+
"action": "skip"
8+
}
9+
}
10+
}

acceptance/bundle/resource_deps/pipelines_recreate/out.plan_update.direct.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,22 @@
7878
"action": "recreate",
7979
"new_state": {
8080
"value": {
81-
"catalog": "mynewcatalog",
8281
"channel": "CURRENT",
8382
"deployment": {
8483
"kind": "BUNDLE",
8584
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
8685
},
8786
"edition": "ADVANCED",
88-
"name": "pipeline foo"
87+
"name": "pipeline foo",
88+
"storage": "dbfs:/my-new-storage"
8989
}
9090
},
9191
"changes": {
9292
"local": {
93-
"catalog": {
93+
"storage": {
9494
"action": "recreate",
95-
"old": "mycatalog",
96-
"new": "mynewcatalog"
95+
"old": "dbfs:/my-storage",
96+
"new": "dbfs:/my-new-storage"
9797
}
9898
}
9999
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"plan": {
33
"resources.jobs.bar": {
4-
"action": "skip"
4+
"action": "update"
55
},
66
"resources.pipelines.foo": {
7-
"action": "update"
7+
"action": "recreate"
88
}
99
}
1010
}

acceptance/bundle/resource_deps/pipelines_recreate/out.requests.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

acceptance/bundle/resource_deps/pipelines_recreate/out.update.requests.direct.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"method": "POST",
77
"path": "/api/2.0/pipelines",
88
"body": {
9-
"catalog": "mynewcatalog",
109
"channel": "CURRENT",
1110
"deployment": {
1211
"kind": "BUNDLE",
1312
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
1413
},
1514
"edition": "ADVANCED",
16-
"name": "pipeline foo"
15+
"name": "pipeline foo",
16+
"storage": "dbfs:/my-new-storage"
1717
}
1818
}
1919
{
Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,44 @@
11
{
2-
"method": "PUT",
3-
"path": "/api/2.0/pipelines/[FOO_ID]",
2+
"method": "DELETE",
3+
"path": "/api/2.0/pipelines/[FOO_ID]"
4+
}
5+
{
6+
"method": "POST",
7+
"path": "/api/2.0/pipelines",
48
"body": {
5-
"catalog": "mynewcatalog",
69
"channel": "CURRENT",
710
"deployment": {
811
"kind": "BUNDLE",
912
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
1013
},
1114
"edition": "ADVANCED",
12-
"id": "[FOO_ID]",
13-
"name": "pipeline foo"
15+
"name": "pipeline foo",
16+
"storage": "dbfs:/my-new-storage"
17+
}
18+
}
19+
{
20+
"method": "POST",
21+
"path": "/api/2.2/jobs/reset",
22+
"body": {
23+
"job_id": [BAR_ID],
24+
"new_settings": {
25+
"deployment": {
26+
"kind": "BUNDLE",
27+
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
28+
},
29+
"description": "depends on foo id [UUID]",
30+
"edit_mode": "UI_LOCKED",
31+
"email_notifications": {},
32+
"format": "MULTI_TASK",
33+
"max_concurrent_runs": 1,
34+
"name": "job bar",
35+
"queue": {
36+
"enabled": true
37+
},
38+
"run_as": {
39+
"user_name": "[USERNAME]"
40+
},
41+
"webhook_notifications": {}
42+
}
1443
}
1544
}

0 commit comments

Comments
 (0)