TestFormatInfo: add extra test-case
This case was in a test in the engine repository, where it is being removed, so add it to the list of existing tests here. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
5d85cdacd2
commit
79aa6cce19
@ -377,6 +377,11 @@ func TestFormatInfo(t *testing.T) {
|
|||||||
template: "{{}",
|
template: "{{}",
|
||||||
expectedError: `Status: Template parsing error: template: :1: unexpected "}" in command, Code: 64`,
|
expectedError: `Status: Template parsing error: template: :1: unexpected "}" in command, Code: 64`,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
doc: "syntax",
|
||||||
|
template: "{{.badString}}",
|
||||||
|
expectedError: `template: :1:2: executing "" at <.badString>: can't evaluate field badString in type system.info`,
|
||||||
|
},
|
||||||
} {
|
} {
|
||||||
t.Run(tc.doc, func(t *testing.T) {
|
t.Run(tc.doc, func(t *testing.T) {
|
||||||
cli := test.NewFakeCli(&fakeClient{})
|
cli := test.NewFakeCli(&fakeClient{})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user