mirror of https://github.com/databricks/cli.git
Add a couple of tests for bundle init with custom template (#2293)
These test custom template and what happens if helper function returns an error.
This commit is contained in:
parent
65ac9a336a
commit
ecc05689ca
|
@ -0,0 +1 @@
|
||||||
|
{}
|
|
@ -0,0 +1,3 @@
|
||||||
|
Error: failed to compute file content for helpers.txt.tmpl. template: :1:14: executing "" at <user_name>: error calling user_name:
|
||||||
|
|
||||||
|
Exit code: 1
|
|
@ -0,0 +1 @@
|
||||||
|
$CLI bundle init .
|
|
@ -0,0 +1 @@
|
||||||
|
user_name: {{ user_name }}
|
|
@ -0,0 +1,7 @@
|
||||||
|
Badness = '''(minor) error message is not great: executing "" at <user_name>: error calling user_name:'''
|
||||||
|
LocalOnly = true
|
||||||
|
|
||||||
|
[[Server]]
|
||||||
|
Pattern = "GET /api/2.0/preview/scim/v2/Me"
|
||||||
|
Response.Body = '{}'
|
||||||
|
Response.StatusCode = 500
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
|
@ -0,0 +1,2 @@
|
||||||
|
✨ Successfully initialized template
|
||||||
|
user_name: [USERNAME]
|
|
@ -0,0 +1,3 @@
|
||||||
|
$CLI bundle init .
|
||||||
|
cat helpers.txt
|
||||||
|
rm helpers.txt
|
|
@ -0,0 +1 @@
|
||||||
|
user_name: {{ user_name }}
|
|
@ -0,0 +1 @@
|
||||||
|
LocalOnly = true
|
Loading…
Reference in New Issue