mirror of https://github.com/databricks/cli.git
rebase and update acceptance tests
This commit is contained in:
parent
654832ea1f
commit
06f0c52ce9
|
@ -37,10 +37,12 @@ The 'my_default_python' project was generated by using the default-python templa
|
||||||
```
|
```
|
||||||
$ databricks bundle run
|
$ databricks bundle run
|
||||||
```
|
```
|
||||||
|
6. Optionally, install the Databricks extension for Visual Studio code for local development from
|
||||||
6. Optionally, install developer tools such as the Databricks extension for Visual Studio Code from
|
https://docs.databricks.com/dev-tools/vscode-ext.html. It can configure your
|
||||||
https://docs.databricks.com/dev-tools/vscode-ext.html. Or read the "getting started" documentation for
|
virtual environment and setup Databricks Connect for running unit tests locally.
|
||||||
**Databricks Connect** for instructions on running the included Python code from a different IDE.
|
When not using these tools, consult your development environment's documentation
|
||||||
|
and/or the documentation for Databricks Connect for manually setting up your environment
|
||||||
|
(https://docs.databricks.com/en/dev-tools/databricks-connect/python/index.html).
|
||||||
|
|
||||||
7. For documentation on the Databricks asset bundles format used
|
7. For documentation on the Databricks asset bundles format used
|
||||||
for this project, and for CI/CD configuration, see
|
for this project, and for CI/CD configuration, see
|
||||||
|
|
|
@ -22,10 +22,8 @@ targets:
|
||||||
mode: production
|
mode: production
|
||||||
workspace:
|
workspace:
|
||||||
host: [DATABRICKS_URL]
|
host: [DATABRICKS_URL]
|
||||||
# We explicitly specify /Workspace/Users/[USERNAME] to make sure we only have a single copy.
|
# We explicitly deploy to /Workspace/Users/[USERNAME] to make sure we only have a single copy.
|
||||||
root_path: /Workspace/Users/[USERNAME]/.bundle/${bundle.name}/${bundle.target}
|
root_path: /Workspace/Users/[USERNAME]/.bundle/${bundle.name}/${bundle.target}
|
||||||
permissions:
|
permissions:
|
||||||
- user_name: [USERNAME]
|
- user_name: [USERNAME]
|
||||||
level: CAN_MANAGE
|
level: CAN_MANAGE
|
||||||
run_as:
|
|
||||||
user_name: [USERNAME]
|
|
||||||
|
|
|
@ -9,3 +9,33 @@ Workspace to use (auto-detected, edit in 'my_default_python/databricks.yml'): [D
|
||||||
|
|
||||||
Please refer to the README.md file for "getting started" instructions.
|
Please refer to the README.md file for "getting started" instructions.
|
||||||
See also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html.
|
See also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html.
|
||||||
|
--- [TESTROOT]/bundle/templates/default-python/serverless-auto-disabled/../classic/output/my_default_python/README.md
|
||||||
|
+++ output/my_default_python/README.md
|
||||||
|
@@ -38,8 +38,10 @@
|
||||||
|
$ databricks bundle run
|
||||||
|
```
|
||||||
|
-
|
||||||
|
-6. Optionally, install developer tools such as the Databricks extension for Visual Studio Code from
|
||||||
|
- https://docs.databricks.com/dev-tools/vscode-ext.html. Or read the "getting started" documentation for
|
||||||
|
- **Databricks Connect** for instructions on running the included Python code from a different IDE.
|
||||||
|
+6. Optionally, install the Databricks extension for Visual Studio code for local development from
|
||||||
|
+ https://docs.databricks.com/dev-tools/vscode-ext.html. It can configure your
|
||||||
|
+ virtual environment and setup Databricks Connect for running unit tests locally.
|
||||||
|
+ When not using these tools, consult your development environment's documentation
|
||||||
|
+ and/or the documentation for Databricks Connect for manually setting up your environment
|
||||||
|
+ (https://docs.databricks.com/en/dev-tools/databricks-connect/python/index.html).
|
||||||
|
|
||||||
|
7. For documentation on the Databricks asset bundles format used
|
||||||
|
--- [TESTROOT]/bundle/templates/default-python/serverless-auto-disabled/../classic/output/my_default_python/databricks.yml
|
||||||
|
+++ output/my_default_python/databricks.yml
|
||||||
|
@@ -23,9 +23,7 @@
|
||||||
|
workspace:
|
||||||
|
host: [DATABRICKS_URL]
|
||||||
|
- # We explicitly specify /Workspace/Users/[USERNAME] to make sure we only have a single copy.
|
||||||
|
+ # We explicitly deploy to /Workspace/Users/[USERNAME] to make sure we only have a single copy.
|
||||||
|
root_path: /Workspace/Users/[USERNAME]/.bundle/${bundle.name}/${bundle.target}
|
||||||
|
permissions:
|
||||||
|
- user_name: [USERNAME]
|
||||||
|
level: CAN_MANAGE
|
||||||
|
- run_as:
|
||||||
|
- user_name: [USERNAME]
|
||||||
|
|
|
@ -9,3 +9,33 @@ Workspace to use (auto-detected, edit in 'my_default_python/databricks.yml'): [D
|
||||||
|
|
||||||
Please refer to the README.md file for "getting started" instructions.
|
Please refer to the README.md file for "getting started" instructions.
|
||||||
See also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html.
|
See also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html.
|
||||||
|
--- [TESTROOT]/bundle/templates/default-python/serverless-auto-error/../classic/output/my_default_python/README.md
|
||||||
|
+++ output/my_default_python/README.md
|
||||||
|
@@ -38,8 +38,10 @@
|
||||||
|
$ databricks bundle run
|
||||||
|
```
|
||||||
|
-
|
||||||
|
-6. Optionally, install developer tools such as the Databricks extension for Visual Studio Code from
|
||||||
|
- https://docs.databricks.com/dev-tools/vscode-ext.html. Or read the "getting started" documentation for
|
||||||
|
- **Databricks Connect** for instructions on running the included Python code from a different IDE.
|
||||||
|
+6. Optionally, install the Databricks extension for Visual Studio code for local development from
|
||||||
|
+ https://docs.databricks.com/dev-tools/vscode-ext.html. It can configure your
|
||||||
|
+ virtual environment and setup Databricks Connect for running unit tests locally.
|
||||||
|
+ When not using these tools, consult your development environment's documentation
|
||||||
|
+ and/or the documentation for Databricks Connect for manually setting up your environment
|
||||||
|
+ (https://docs.databricks.com/en/dev-tools/databricks-connect/python/index.html).
|
||||||
|
|
||||||
|
7. For documentation on the Databricks asset bundles format used
|
||||||
|
--- [TESTROOT]/bundle/templates/default-python/serverless-auto-error/../classic/output/my_default_python/databricks.yml
|
||||||
|
+++ output/my_default_python/databricks.yml
|
||||||
|
@@ -23,9 +23,7 @@
|
||||||
|
workspace:
|
||||||
|
host: [DATABRICKS_URL]
|
||||||
|
- # We explicitly specify /Workspace/Users/[USERNAME] to make sure we only have a single copy.
|
||||||
|
+ # We explicitly deploy to /Workspace/Users/[USERNAME] to make sure we only have a single copy.
|
||||||
|
root_path: /Workspace/Users/[USERNAME]/.bundle/${bundle.name}/${bundle.target}
|
||||||
|
permissions:
|
||||||
|
- user_name: [USERNAME]
|
||||||
|
level: CAN_MANAGE
|
||||||
|
- run_as:
|
||||||
|
- user_name: [USERNAME]
|
||||||
|
|
Loading…
Reference in New Issue