mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Add unit test for this specific case of loading from V1 archive
Added a tgz "frobnitz.v1.tgz" of the testdata folder frobnitz.v1 Verified that without the fix the unit test fails and re-produces the issue. Signed-off-by: Sidharth Surana <ssurana@vmware.com>
This commit is contained in:
parent
8f833fed25
commit
31d41d3fd1
2 changed files with 13 additions and 0 deletions
|
|
@ -58,6 +58,19 @@ func TestLoadV1(t *testing.T) {
|
|||
verifyDependenciesLock(t, c)
|
||||
}
|
||||
|
||||
func TestLoadFileV1(t *testing.T) {
|
||||
l, err := Loader("testdata/frobnitz.v1.tgz")
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to load testdata: %s", err)
|
||||
}
|
||||
c, err := l.Load()
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to load testdata: %s", err)
|
||||
}
|
||||
verifyDependencies(t, c)
|
||||
verifyDependenciesLock(t, c)
|
||||
}
|
||||
|
||||
func TestLoadFile(t *testing.T) {
|
||||
l, err := Loader("testdata/frobnitz-1.2.3.tgz")
|
||||
if err != nil {
|
||||
|
|
|
|||
BIN
pkg/chart/loader/testdata/frobnitz.v1.tgz
vendored
Normal file
BIN
pkg/chart/loader/testdata/frobnitz.v1.tgz
vendored
Normal file
Binary file not shown.
Loading…
Reference in a new issue