|
|
@ -60,10 +60,10 @@ func TestCreateCmd(t *testing.T) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func TestCreateStarterCmd(t *testing.T) {
|
|
|
|
func TestCreateStarterCmd(t *testing.T) {
|
|
|
|
|
|
|
|
t.Chdir(t.TempDir())
|
|
|
|
ensure.HelmHome(t)
|
|
|
|
ensure.HelmHome(t)
|
|
|
|
cname := "testchart"
|
|
|
|
cname := "testchart"
|
|
|
|
defer resetEnv()()
|
|
|
|
defer resetEnv()()
|
|
|
|
t.Chdir(t.TempDir())
|
|
|
|
|
|
|
|
// Create a starter.
|
|
|
|
// Create a starter.
|
|
|
|
starterchart := helmpath.DataPath("starters")
|
|
|
|
starterchart := helmpath.DataPath("starters")
|
|
|
|
os.MkdirAll(starterchart, 0o755)
|
|
|
|
os.MkdirAll(starterchart, 0o755)
|
|
|
@ -140,9 +140,6 @@ func TestCreateStarterAbsoluteCmd(t *testing.T) {
|
|
|
|
t.Fatalf("Could not write template: %s", err)
|
|
|
|
t.Fatalf("Could not write template: %s", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
os.MkdirAll(helmpath.CachePath(), 0o755)
|
|
|
|
|
|
|
|
defer t.Chdir(helmpath.CachePath())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
starterChartPath := filepath.Join(starterchart, "starterchart")
|
|
|
|
starterChartPath := filepath.Join(starterchart, "starterchart")
|
|
|
|
|
|
|
|
|
|
|
|
// Run a create
|
|
|
|
// Run a create
|
|
|
|