|
|
|
@ -78,3 +78,21 @@ func TestSaveChartNoRawData(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
is.Equal([]*File(nil), res.Raw)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func TestMetadata(t *testing.T) {
|
|
|
|
|
chrt := Chart{
|
|
|
|
|
Metadata: &Metadata{
|
|
|
|
|
Name: "foo.yaml",
|
|
|
|
|
AppVersion: "1.0.0",
|
|
|
|
|
APIVersion: "v2",
|
|
|
|
|
Version: "1.0.0",
|
|
|
|
|
Type: "application",
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
is := assert.New(t)
|
|
|
|
|
|
|
|
|
|
is.Equal("foo.yaml", chrt.Name())
|
|
|
|
|
is.Equal("1.0.0", chrt.AppVersion())
|
|
|
|
|
is.Equal(nil, chrt.Validate())
|
|
|
|
|
}
|
|
|
|
|