Configurable extensions for template parser

This commit is contained in:
Katrina Verey
2022-04-21 18:28:13 -04:00
parent 9d5491c2e2
commit bcae65770a
5 changed files with 42 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ func TestSchemaFiles(t *testing.T) {
{
name: "rejects non-.template.yaml files",
paths: []string{"testdata/ignore.yaml"},
wantErr: "file testdata/ignore.yaml did not have required extension .json",
wantErr: "file testdata/ignore.yaml does not have any of permitted extensions [.json]",
},
}
for _, tt := range tests {