|
|
@ -10,6 +10,7 @@ import (
|
|
|
|
"path/filepath"
|
|
|
|
"path/filepath"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
const (
|
|
|
@ -18,15 +19,17 @@ const (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type HelmContext struct {
|
|
|
|
type HelmContext struct {
|
|
|
|
t *testing.T
|
|
|
|
t *testing.T
|
|
|
|
Path string
|
|
|
|
Path string
|
|
|
|
Host string
|
|
|
|
Host string
|
|
|
|
|
|
|
|
Timeout time.Duration
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func NewHelmContext(t *testing.T) *HelmContext {
|
|
|
|
func NewHelmContext(t *testing.T) *HelmContext {
|
|
|
|
return &HelmContext{
|
|
|
|
return &HelmContext{
|
|
|
|
t: t,
|
|
|
|
t: t,
|
|
|
|
Path: RepoRoot() + "/bin/helm",
|
|
|
|
Path: RepoRoot() + "/bin/helm",
|
|
|
|
|
|
|
|
Timeout: time.Second * 20,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|