build: fix make fmt, reformat test sources (#234)

This commit is contained in:
Daniel Moran
2021-08-20 15:26:00 -04:00
committed by GitHub
parent 3a6dfe7102
commit c0103e7b1b
5 changed files with 39 additions and 36 deletions

View File

@ -24,9 +24,9 @@ func TestNormalize(t *testing.T) {
},
{
name: "github URL with extensions",
in: url.URL{Host: "github.com", Path: "/influxdata/community-templates/blob/master/github/github.yml"},
in: url.URL{Host: "github.com", Path: "/influxdata/community-templates/blob/master/github/github.yml"},
exts: []string{".yaml", ".yml", ".jsonnet", ".json"},
out: url.URL{Host: "raw.githubusercontent.com", Path: "/influxdata/community-templates/master/github/github.yml"},
out: url.URL{Host: "raw.githubusercontent.com", Path: "/influxdata/community-templates/master/github/github.yml"},
},
{
name: "other URL",

View File

@ -51,7 +51,7 @@ func TestGzipPipe(t *testing.T) {
}
type failingReader struct {
n int
n int
err error
}

View File

@ -427,8 +427,8 @@ spec:
tmpl, err := source.Read(context.Background())
require.NoError(t, err)
expected := api.TemplateApplyTemplate{
Sources: []string{source.Name},
Contents: parsed,
Sources: []string{source.Name},
Contents: parsed,
}
require.Equal(t, expected, tmpl)
})