Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add yml and tpl to supported file extensions
write a warning when files are ignored

Signed-off-by: Richard Lavey <richard.lavey@calastone.com>
  • Loading branch information
rlaveycal committed Jan 7, 2022
1 parent a12ec70 commit 004623e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/unittest/test_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,17 @@ func (t *TestJob) parseManifestsFromOutputOfFiles(outputOfFiles map[string]strin
for file, rendered := range outputOfFiles {

switch filepath.Ext(file) {
case ".yaml":
case ".tpl", ".yaml", ".yml":
manifest, err := parseYamlFile(rendered)
if err != nil {
return nil, err
}
manifestsOfFiles[file] = manifest
case ".txt":
manifestsOfFiles[file] = parseTextFile(rendered)
default:
fmt.Printf("Extension %s is not supported. File %s is ignored.", filepath.Ext(file), file)
fmt.Println()
}

}
Expand Down

0 comments on commit 004623e

Please sign in to comment.