From 79aa6cce1929cb9e40b24da0782d45e20d9c6d82 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 18 Oct 2019 18:04:45 +0200 Subject: [PATCH] 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 --- cli/command/system/info_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/command/system/info_test.go b/cli/command/system/info_test.go index 3e71bab06c..f9301c86dd 100644 --- a/cli/command/system/info_test.go +++ b/cli/command/system/info_test.go @@ -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{})