|
|
@ -20,18 +20,18 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func TestHelmHome(t *testing.T) {
|
|
|
|
func TestHelmHome(t *testing.T) {
|
|
|
|
hh := Home("r:\\")
|
|
|
|
hh := Home("r:\\users\\helmtest")
|
|
|
|
isEq := func(t *testing.T, a, b string) {
|
|
|
|
isEq := func(t *testing.T, a, b string) {
|
|
|
|
if a != b {
|
|
|
|
if a != b {
|
|
|
|
t.Errorf("Expected %q, got %q", b, a)
|
|
|
|
t.Errorf("Expected %q, got %q", b, a)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
isEq(t, hh.String(), "r:\\")
|
|
|
|
isEq(t, hh.String(), "r:\\users\\helmtest")
|
|
|
|
isEq(t, hh.Repository(), "r:\\repository")
|
|
|
|
isEq(t, hh.Repository(), "r:\\users\\helmtestrepository")
|
|
|
|
isEq(t, hh.RepositoryFile(), "r:\\repository\\repositories.yaml")
|
|
|
|
isEq(t, hh.RepositoryFile(), "r:\\users\\helmtestrepository\\repositories.yaml")
|
|
|
|
isEq(t, hh.Cache(), "r:\\repository\\cache")
|
|
|
|
isEq(t, hh.Cache(), "r:\\users\\helmtestrepository\\cache")
|
|
|
|
isEq(t, hh.CacheIndex("t"), "r:\\repository\\cache\\t-index.yaml")
|
|
|
|
isEq(t, hh.CacheIndex("t"), "r:\\users\\helmtestrepository\\cache\\t-index.yaml")
|
|
|
|
isEq(t, hh.Starters(), "r:\\starters")
|
|
|
|
isEq(t, hh.Starters(), "r:\\users\\helmteststarters")
|
|
|
|
isEq(t, hh.Archive(), "r:\\cache\\archive")
|
|
|
|
isEq(t, hh.Archive(), "r:\\users\\helmtestcache\\archive")
|
|
|
|
}
|
|
|
|
}
|
|
|
|