|
|
@@ -293,6 +293,14 @@ func TestExecute(t *testing.T) {
|
|
|
data: map[string][]byte{},
|
|
|
expErr: "unable to parse template",
|
|
|
},
|
|
|
+ {
|
|
|
+ name: "unknown key error",
|
|
|
+ tpl: map[string][]byte{
|
|
|
+ "key": []byte(`{{ .unknown }}`),
|
|
|
+ },
|
|
|
+ data: map[string][]byte{},
|
|
|
+ expErr: "unable to execute template at key key",
|
|
|
+ },
|
|
|
{
|
|
|
name: "jwk rsa pub pem",
|
|
|
tpl: map[string][]byte{
|