|
|
@ -17,6 +17,7 @@ limitations under the License.
|
|
|
|
package main
|
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"io"
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
|
@ -31,7 +32,7 @@ func TestGetHooks(t *testing.T) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: "get hooks with release",
|
|
|
|
name: "get hooks with release",
|
|
|
|
args: []string{"aeneas"},
|
|
|
|
args: []string{"aeneas"},
|
|
|
|
expected: helm.MockHookTemplate,
|
|
|
|
expected: fmt.Sprintf("---\n# %s\n%s\n", "pre-install-hook", helm.MockHookTemplate),
|
|
|
|
resp: helm.ReleaseMock(&helm.MockReleaseOptions{Name: "aeneas"}),
|
|
|
|
resp: helm.ReleaseMock(&helm.MockReleaseOptions{Name: "aeneas"}),
|
|
|
|
rels: []*release.Release{helm.ReleaseMock(&helm.MockReleaseOptions{Name: "aeneas"})},
|
|
|
|
rels: []*release.Release{helm.ReleaseMock(&helm.MockReleaseOptions{Name: "aeneas"})},
|
|
|
|
},
|
|
|
|
},
|
|
|
|