Skip to content

Commit 5c12faf

Browse files
committed
acc: plain field selection in the scripts of the recorded edge cases
1 parent 4bf7811 commit 5c12faf

8 files changed

Lines changed: 12 additions & 25 deletions

File tree

‎acceptance/bundle/override/cluster_id_clears_new_cluster_reference/output.txt‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@
22
>>> [CLI] bundle validate -o json
33
[
44
{
5-
"task_key": "resource_ref",
65
"existing_cluster_id": "existing-cluster",
7-
"new_cluster": null
6+
"task_key": "resource_ref"
87
},
98
{
10-
"task_key": "scalar_ref",
119
"existing_cluster_id": "existing-cluster",
12-
"new_cluster": null
10+
"task_key": "scalar_ref"
1311
},
1412
{
15-
"task_key": "variable_ref",
1613
"existing_cluster_id": "existing-cluster",
17-
"new_cluster": null
14+
"task_key": "variable_ref"
1815
}
1916
]
2017

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# bundle.cluster_id replaces new_cluster on every task, also when new_cluster holds a reference.
2-
trace $CLI bundle validate -o json | jq '[.resources.jobs.job.tasks[] | {task_key, existing_cluster_id, new_cluster}]'
2+
trace $CLI bundle validate -o json | jq .resources.jobs.job.tasks
33
trace $CLI bundle deploy

‎acceptance/bundle/override/preset_clears_forced_schedule_reference/output.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
88

99
>>> print_requests.py //tables/main.default.dst/monitor
1010
{
11-
"has_schedule": false,
12-
"schedule": null
11+
"assets_dir": "/Workspace/monitors/dst",
12+
"output_schema_name": "main.default"
1313
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# trigger_pause_status: PAUSED removes the schedules. The target override replaces the null schedule of dst
22
# with a reference to the schedule of src, which is removed too: the request carries no schedule.
33
trace $CLI bundle deploy
4-
trace print_requests.py //tables/main.default.dst/monitor | jq '.body | {has_schedule: has("schedule"), schedule}'
4+
trace print_requests.py //tables/main.default.dst/monitor | jq .body
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11

22
>>> [CLI] bundle plan -o json
3-
{
4-
"resources.jobs.viaref": "pre-pre-base"
5-
}
3+
"pre-pre-base"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# name_prefix is added to a name that is a reference to the name of another job, which has the prefix too.
2-
trace $CLI bundle plan -o json | jq '.plan | del(.["resources.jobs.base"]) | map_values(.new_state.value.name)'
2+
trace $CLI bundle plan -o json | jq '.plan["resources.jobs.viaref"].new_state.value.name'
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11

22
>>> [CLI] bundle plan -o json
33
{
4-
"tags": {
5-
"owner": "fixed"
6-
},
7-
"depends_on": [
8-
{
9-
"node": "resources.schemas.s",
10-
"label": "${resources.schemas.s.properties}"
11-
}
12-
]
4+
"owner": "fixed"
135
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The preset tag is not applied to a job whose tags is a reference to a whole map: the job gets the
2-
# tags of the referenced schema only, and depends on the schema.
2+
# tags of the referenced schema only.
33
# The preset value references the job itself. If the preset tag were applied, this plan would fail
44
# with a cycle error.
5-
trace $CLI bundle plan -o json | jq '.plan["resources.jobs.j"] | {tags: .new_state.value.tags, depends_on}'
5+
trace $CLI bundle plan -o json | jq '.plan["resources.jobs.j"].new_state.value.tags'

0 commit comments

Comments
 (0)