Commit bad00592 authored by Michelle Noorali's avatar Michelle Noorali

ref(helm): display repo remove confirmation text

parent 30036834
......@@ -29,7 +29,7 @@ import (
"k8s.io/helm/pkg/repo"
)
var testName string = "test-name"
var testName = "test-name"
func TestRepoAddCmd(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
......
......@@ -28,9 +28,14 @@ import (
func TestRepoIndexCmd(t *testing.T) {
dir, _ := ioutil.TempDir("", "charts")
dir, err := ioutil.TempDir("", "helm-")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(dir)
os.Link("testdata/testcharts/compressedChart-0.1.0.tgz", filepath.Join(dir, "compressedChart-0.1.0.tgz"))
if err := os.Link("testdata/testcharts/compressedchart-0.1.0.tgz", filepath.Join(dir, "compressedchart-0.1.0.tgz")); err != nil {
t.Fatal(err)
}
buf := bytes.NewBuffer(nil)
c := newRepoIndexCmd(buf)
......@@ -45,7 +50,7 @@ func TestRepoIndexCmd(t *testing.T) {
}
if len(index.Entries) != 1 {
t.Errorf("expected 1 entires, got %v", len(index.Entries))
t.Errorf("expected 1 entry, got %v: %#v", len(index.Entries), index.Entries)
}
}
......@@ -83,6 +83,8 @@ func removeRepoLine(name string) error {
return fmt.Errorf("The repository, %s, does not exist in your repositories list", name)
}
fmt.Println(name + " has been removed from your repositories")
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment