|
|
|
|
@ -19,7 +19,6 @@ package action
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"errors"
|
|
|
|
|
"fmt"
|
|
|
|
|
"io"
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
@ -115,7 +114,7 @@ func TestUninstallRelease_Wait(t *testing.T) {
|
|
|
|
|
}`
|
|
|
|
|
require.NoError(t, unAction.cfg.Releases.Create(rel))
|
|
|
|
|
failer := unAction.cfg.KubeClient.(*kubefake.FailingKubeClient)
|
|
|
|
|
failer.WaitForDeleteError = fmt.Errorf("U timed out")
|
|
|
|
|
failer.WaitForDeleteError = errors.New("U timed out")
|
|
|
|
|
unAction.cfg.KubeClient = failer
|
|
|
|
|
resi, err := unAction.Run(rel.Name)
|
|
|
|
|
is.Error(err)
|
|
|
|
|
@ -149,7 +148,7 @@ func TestUninstallRelease_Cascade(t *testing.T) {
|
|
|
|
|
}`
|
|
|
|
|
require.NoError(t, unAction.cfg.Releases.Create(rel))
|
|
|
|
|
failer := unAction.cfg.KubeClient.(*kubefake.FailingKubeClient)
|
|
|
|
|
failer.DeleteError = fmt.Errorf("Uninstall with cascade failed")
|
|
|
|
|
failer.DeleteError = errors.New("Uninstall with cascade failed")
|
|
|
|
|
failer.BuildDummy = true
|
|
|
|
|
unAction.cfg.KubeClient = failer
|
|
|
|
|
_, err := unAction.Run(rel.Name)
|
|
|
|
|
|