|
|
@ -46,7 +46,7 @@ func TestCreateCmd(t *testing.T) {
|
|
|
|
defer os.Chdir(pwd)
|
|
|
|
defer os.Chdir(pwd)
|
|
|
|
|
|
|
|
|
|
|
|
// Run a create
|
|
|
|
// Run a create
|
|
|
|
cmd := newCreateCmd(os.Stdout)
|
|
|
|
cmd := newCreateCmd(ioutil.Discard)
|
|
|
|
if err := cmd.RunE(cmd, []string{cname}); err != nil {
|
|
|
|
if err := cmd.RunE(cmd, []string{cname}); err != nil {
|
|
|
|
t.Errorf("Failed to run create: %s", err)
|
|
|
|
t.Errorf("Failed to run create: %s", err)
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -117,7 +117,7 @@ func TestCreateStarterCmd(t *testing.T) {
|
|
|
|
defer os.Chdir(pwd)
|
|
|
|
defer os.Chdir(pwd)
|
|
|
|
|
|
|
|
|
|
|
|
// Run a create
|
|
|
|
// Run a create
|
|
|
|
cmd := newCreateCmd(os.Stdout)
|
|
|
|
cmd := newCreateCmd(ioutil.Discard)
|
|
|
|
cmd.ParseFlags([]string{"--starter", "starterchart"})
|
|
|
|
cmd.ParseFlags([]string{"--starter", "starterchart"})
|
|
|
|
if err := cmd.RunE(cmd, []string{cname}); err != nil {
|
|
|
|
if err := cmd.RunE(cmd, []string{cname}); err != nil {
|
|
|
|
t.Errorf("Failed to run create: %s", err)
|
|
|
|
t.Errorf("Failed to run create: %s", err)
|
|
|
|