|
|
|
@ -32,6 +32,7 @@ func TestShow(t *testing.T) {
|
|
|
|
|
{Name: "crds/ignoreme.txt", Data: []byte("error")},
|
|
|
|
|
{Name: "crds/foo.yaml", Data: []byte("---\nfoo\n")},
|
|
|
|
|
{Name: "crds/bar.json", Data: []byte("---\nbar\n")},
|
|
|
|
|
{Name: "crds/baz.yaml", Data: []byte("baz\n")},
|
|
|
|
|
},
|
|
|
|
|
Raw: []*chart.File{
|
|
|
|
|
{Name: "values.yaml", Data: []byte("VALUES\n")},
|
|
|
|
@ -58,6 +59,9 @@ foo
|
|
|
|
|
---
|
|
|
|
|
bar
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
baz
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
if output != expect {
|
|
|
|
|
t.Errorf("Expected\n%q\nGot\n%q\n", expect, output)
|
|
|
|
@ -105,6 +109,7 @@ func TestShowCRDs(t *testing.T) {
|
|
|
|
|
{Name: "crds/ignoreme.txt", Data: []byte("error")},
|
|
|
|
|
{Name: "crds/foo.yaml", Data: []byte("---\nfoo\n")},
|
|
|
|
|
{Name: "crds/bar.json", Data: []byte("---\nbar\n")},
|
|
|
|
|
{Name: "crds/baz.yaml", Data: []byte("baz\n")},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -119,6 +124,9 @@ foo
|
|
|
|
|
---
|
|
|
|
|
bar
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
baz
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
if output != expect {
|
|
|
|
|
t.Errorf("Expected\n%q\nGot\n%q\n", expect, output)
|
|
|
|
|