Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions acceptance/bundle/resources/pipelines/photon-false/databricks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bundle:
name: photon-false

resources:
pipelines:
my:
name: test-pipeline
photon: false
libraries:
- file:
path: "./foo.py"
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"method": "POST",
"path": "/api/2.0/pipelines",
"body": {
"channel": "CURRENT",
"deployment": {
"kind": "BUNDLE",
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/photon-false/default/state/metadata.json"
},
"edition": "ADVANCED",
"libraries": [
{
"file": {
"path": "/Workspace/Users/[USERNAME]/.bundle/photon-false/default/files/foo.py"
}
}
],
"name": "test-pipeline",
"photon": false
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"method": "POST",
"path": "/api/2.0/pipelines",
"body": {
"channel": "CURRENT",
"deployment": {
"kind": "BUNDLE",
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/photon-false/default/state/metadata.json"
},
"edition": "ADVANCED",
"libraries": [
{
"file": {
"path": "/Workspace/Users/[USERNAME]/.bundle/photon-false/default/files/foo.py"
}
}
],
"name": "test-pipeline"
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions acceptance/bundle/resources/pipelines/photon-false/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

>>> [CLI] bundle deploy
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/photon-false/default/files...
Deploying resources...
Updating deployment state...
Deployment complete!
2 changes: 2 additions & 0 deletions acceptance/bundle/resources/pipelines/photon-false/script
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trace $CLI bundle deploy
print_requests.py //api/2.0/pipelines > out.requests.$DATABRICKS_BUNDLE_ENGINE.txt 2>&1
7 changes: 7 additions & 0 deletions acceptance/bundle/resources/pipelines/photon-false/test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Badness = "photon: false is not sent in the terraform deployment"
Local = true
Cloud = false
RecordRequests = true

[EnvMatrix]
DATABRICKS_BUNDLE_ENGINE = ["terraform", "direct"]
11 changes: 11 additions & 0 deletions acceptance/bundle/resources/pipelines/photon-true/databricks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bundle:
name: photon-true

resources:
pipelines:
my:
name: test-pipeline
photon: true
libraries:
- file:
path: "./foo.py"
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions acceptance/bundle/resources/pipelines/photon-true/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

>>> [CLI] bundle deploy
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/photon-true/default/files...
Deploying resources...
Updating deployment state...
Deployment complete!
{
"method": "POST",
"path": "/api/2.0/pipelines",
"body": {
"channel": "CURRENT",
"deployment": {
"kind": "BUNDLE",
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/photon-true/default/state/metadata.json"
},
"edition": "ADVANCED",
"libraries": [
{
"file": {
"path": "/Workspace/Users/[USERNAME]/.bundle/photon-true/default/files/foo.py"
}
}
],
"name": "test-pipeline",
"photon": true
}
}
2 changes: 2 additions & 0 deletions acceptance/bundle/resources/pipelines/photon-true/script
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trace $CLI bundle deploy
print_requests.py //api/2.0/pipelines
6 changes: 6 additions & 0 deletions acceptance/bundle/resources/pipelines/photon-true/test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Local = true
Cloud = false
RecordRequests = true

[EnvMatrix]
DATABRICKS_BUNDLE_ENGINE = ["terraform", "direct"]
Loading