diff --git a/acceptance/bundle/templates/default-python/classic/output/my_default_python/README.md b/acceptance/bundle/templates/default-python/classic/output/my_default_python/README.md index 97d7d7949..10f570bf4 100644 --- a/acceptance/bundle/templates/default-python/classic/output/my_default_python/README.md +++ b/acceptance/bundle/templates/default-python/classic/output/my_default_python/README.md @@ -37,10 +37,12 @@ The 'my_default_python' project was generated by using the default-python templa ``` $ 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 for this project, and for CI/CD configuration, see diff --git a/acceptance/bundle/templates/default-python/classic/output/my_default_python/databricks.yml b/acceptance/bundle/templates/default-python/classic/output/my_default_python/databricks.yml index 6df75c209..6080a368f 100644 --- a/acceptance/bundle/templates/default-python/classic/output/my_default_python/databricks.yml +++ b/acceptance/bundle/templates/default-python/classic/output/my_default_python/databricks.yml @@ -22,10 +22,8 @@ targets: mode: production 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] diff --git a/acceptance/bundle/templates/default-python/serverless-auto-disabled/output.txt b/acceptance/bundle/templates/default-python/serverless-auto-disabled/output.txt index 060963ac8..25bf8974c 100644 --- a/acceptance/bundle/templates/default-python/serverless-auto-disabled/output.txt +++ b/acceptance/bundle/templates/default-python/serverless-auto-disabled/output.txt @@ -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. 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] diff --git a/acceptance/bundle/templates/default-python/serverless-auto-error/output.txt b/acceptance/bundle/templates/default-python/serverless-auto-error/output.txt index 08991d199..f9cc6b220 100644 --- a/acceptance/bundle/templates/default-python/serverless-auto-error/output.txt +++ b/acceptance/bundle/templates/default-python/serverless-auto-error/output.txt @@ -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. 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]