Merge pull request #7814 from hs0210/work

Add unit test for pkg/chart/chart.go
pull/7852/head
Martin Hickey 5 years ago committed by GitHub
commit c20d06d930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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())
}

Loading…
Cancel
Save