databricks-cli/libs/template/testdata
shreyas-goenka e86a949d99
Add the `bundle_uuid` helper function for templates (#1947)
## Changes
This PR adds the `bundle_uuid` helper function that'll return a stable
identifier for the bundle for the duration of the `bundle init` command.

This is also the UUID that'll be set in the telemetry event sent during
`databricks bundle init` and would be used to correlate revenue from
bundle init with resource deployments.

Template authors should add the uuid field to their `databricks.yml`
file they generate:
```
bundle:
  # A stable identified for your DAB project. We use this UUID in the Databricks backend 
  # to correlate and identify multiple deployments of the same DAB project. 
  uuid: {{ bundle_uuid }}
```

## Tests
Unit test
2024-12-02 10:29:29 +00:00
..
bundle-uuid Add the `bundle_uuid` helper function for templates (#1947) 2024-12-02 10:29:29 +00:00
config-assign-from-default-value Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
config-assign-from-file Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
config-assign-from-file-invalid-int Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
config-assign-from-file-unknown-property Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
config-assign-from-templated-default-value Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
config-test-schema Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
copy-file-walk/template Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
email Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
empty Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
executable-bit-read/template Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
fail/template Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
file-tree-rendering/template/{{.dir_name}} Add unit test for file name execution during rendering (#640) 2023-08-07 12:44:01 +00:00
map-pair Add map and pair helper functions for bundle templates (#665) 2023-08-15 16:07:22 +00:00
print-without-processing/template Add unit test that raw strings are printed as is (#599) 2023-07-25 17:18:43 +02:00
random-int/template Add randIntn function (#1475) 2024-06-06 07:11:23 +00:00
regexp-compile/template Add regexp compile helper function for templates (#601) 2023-07-25 16:42:53 +02:00
skip/template Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
skip-all-files-in-cwd/template Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
skip-dir-eagerly/template Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
skip-is-relative/template Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
template-in-path Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
urlparse-function/template Add url parse helper function for templates (#600) 2023-07-27 09:51:31 +00:00
uuid/template Add UUID function to bundle template functions (#1612) 2024-07-19 11:38:20 +00:00
walk/template Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
workspace-host/template Add a foundation for built-in templates (#685) 2023-08-25 09:03:42 +00:00