Merge pull request #2142 from thaJeztah/info_test

TestFormatInfo: add extra test-case
This commit is contained in:
Tibor Vass 2019-10-21 18:25:53 -07:00 committed by GitHub
commit 3afe327a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -377,6 +377,11 @@ func TestFormatInfo(t *testing.T) {
template: "{{}",
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) {
cli := test.NewFakeCli(&fakeClient{})