status command retrieves release status

This commit is contained in:
Cedric Meury
2018-04-27 10:31:29 +02:00
parent efe5a2e56b
commit 579fa4c765
7 changed files with 152 additions and 2 deletions
+10
View File
@@ -155,6 +155,16 @@ func Test_DeleteRelease(t *testing.T) {
}
}
func Test_ReleaseStatus(t *testing.T) {
var buffer bytes.Buffer
helm := MockExecer(&buffer, "dev")
helm.ReleaseStatus("myRelease")
expected := "exec: helm status myRelease --kube-context dev\n"
if buffer.String() != expected {
t.Errorf("helmexec.ReleaseStatus()\nactual = %v\nexpect = %v", buffer.String(), expected)
}
}
func Test_exec(t *testing.T) {
var buffer bytes.Buffer
helm := MockExecer(&buffer, "")