build: fix make fmt
, reformat test sources (#234)
This commit is contained in:
@ -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",
|
||||
|
@ -51,7 +51,7 @@ func TestGzipPipe(t *testing.T) {
|
||||
}
|
||||
|
||||
type failingReader struct {
|
||||
n int
|
||||
n int
|
||||
err error
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
})
|
||||
|
Reference in New Issue
Block a user