mirror of https://github.com/databricks/cli.git
reduce test size
This commit is contained in:
parent
ce4580ef53
commit
d12852c086
|
@ -1,63 +1,28 @@
|
||||||
{
|
{
|
||||||
"pipeline1": {
|
"pipeline1": {
|
||||||
"catalog": "catalog1",
|
"catalog": "catalog1",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"schema": "${resources.schemas.schema1.name}"
|
"schema": "${resources.schemas.schema1.name}"
|
||||||
},
|
},
|
||||||
"pipeline2": {
|
"pipeline2": {
|
||||||
"catalog": "catalog2",
|
"catalog": "catalog2",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"schema": "${resources.schemas.schema2.name}"
|
"schema": "${resources.schemas.schema2.name}"
|
||||||
},
|
},
|
||||||
"pipeline3": {
|
"pipeline3": {
|
||||||
"catalog": "catalog1",
|
"catalog": "catalog1",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"schema": "${resources.schemas.schema3.name}"
|
"schema": "${resources.schemas.schema3.name}"
|
||||||
},
|
},
|
||||||
"pipeline4": {
|
"pipeline4": {
|
||||||
"catalog": "catalogX",
|
"catalog": "catalogX",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"schema": "foobar"
|
"schema": "foobar"
|
||||||
},
|
},
|
||||||
"pipeline5": {
|
"pipeline5": {
|
||||||
"catalog": "catalog1",
|
"catalog": "catalog1",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"schema": "schemaX"
|
"schema": "schemaX"
|
||||||
},
|
},
|
||||||
"pipeline6": {
|
"pipeline6": {
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"schema": "foobar"
|
"schema": "foobar"
|
||||||
},
|
},
|
||||||
"pipeline7": {
|
"pipeline7": {
|
||||||
"deployment": {
|
"name": "whatever"
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"name": "whatever",
|
|
||||||
"permissions": []
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
$CLI bundle validate -o json | jq .resources.pipelines > out.json
|
$CLI bundle validate -o json | jq .resources.pipelines | jq 'map_values(del(.deployment, .permissions))' > out.json
|
||||||
|
|
|
@ -1,63 +1,28 @@
|
||||||
{
|
{
|
||||||
"pipeline1": {
|
"pipeline1": {
|
||||||
"catalog": "catalog1",
|
"catalog": "catalog1",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"target": "${resources.schemas.schema1.name}"
|
"target": "${resources.schemas.schema1.name}"
|
||||||
},
|
},
|
||||||
"pipeline2": {
|
"pipeline2": {
|
||||||
"catalog": "catalog2",
|
"catalog": "catalog2",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"target": "${resources.schemas.schema2.name}"
|
"target": "${resources.schemas.schema2.name}"
|
||||||
},
|
},
|
||||||
"pipeline3": {
|
"pipeline3": {
|
||||||
"catalog": "catalog1",
|
"catalog": "catalog1",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"target": "${resources.schemas.schema3.name}"
|
"target": "${resources.schemas.schema3.name}"
|
||||||
},
|
},
|
||||||
"pipeline4": {
|
"pipeline4": {
|
||||||
"catalog": "catalogX",
|
"catalog": "catalogX",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"target": "foobar"
|
"target": "foobar"
|
||||||
},
|
},
|
||||||
"pipeline5": {
|
"pipeline5": {
|
||||||
"catalog": "catalog1",
|
"catalog": "catalog1",
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"target": "schemaX"
|
"target": "schemaX"
|
||||||
},
|
},
|
||||||
"pipeline6": {
|
"pipeline6": {
|
||||||
"deployment": {
|
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"permissions": [],
|
|
||||||
"target": "foobar"
|
"target": "foobar"
|
||||||
},
|
},
|
||||||
"pipeline7": {
|
"pipeline7": {
|
||||||
"deployment": {
|
"name": "whatever"
|
||||||
"kind": "BUNDLE",
|
|
||||||
"metadata_file_path": "/Workspace/Users/$USERNAME/.bundle/dlt-schema-field-dep-on-uc-schema/default/state/metadata.json"
|
|
||||||
},
|
|
||||||
"name": "whatever",
|
|
||||||
"permissions": []
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
$CLI bundle validate -o json | jq .resources.pipelines > out.json
|
$CLI bundle validate -o json | jq .resources.pipelines | jq 'map_values(del(.deployment, .permissions))' > out.json
|
||||||
|
|
Loading…
Reference in New Issue