|
|
@ -3,6 +3,7 @@
|
|
|
|
package e2e
|
|
|
|
package e2e
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
|
|
|
|
"flag"
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"math/rand"
|
|
|
|
"math/rand"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
@ -14,7 +15,11 @@ func init() {
|
|
|
|
rand.Seed(time.Now().Unix())
|
|
|
|
rand.Seed(time.Now().Unix())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var chart = "gs://areese-charts/replicatedservice-3.tgz"
|
|
|
|
var (
|
|
|
|
|
|
|
|
repoURL = flag.String("repo-url", "gs://areese-charts", "Repository URL")
|
|
|
|
|
|
|
|
repoName = flag.String("repo-name", "areese-charts", "Repository name")
|
|
|
|
|
|
|
|
chart = flag.String("chart", "gs://areese-charts/replicatedservice-3.tgz", "Chart to deploy")
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func TestHelm(t *testing.T) {
|
|
|
|
func TestHelm(t *testing.T) {
|
|
|
|
kube := NewKubeContext()
|
|
|
|
kube := NewKubeContext()
|
|
|
@ -38,10 +43,13 @@ func TestHelm(t *testing.T) {
|
|
|
|
t.Log("Executing deployment list")
|
|
|
|
t.Log("Executing deployment list")
|
|
|
|
helm.Run("deployment", "list")
|
|
|
|
helm.Run("deployment", "list")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
t.Logf("Adding repo %s %s", *repoName, *repoURL)
|
|
|
|
|
|
|
|
helm.Run("repo", "add", *repoName, *repoURL)
|
|
|
|
|
|
|
|
|
|
|
|
deploymentName := genName()
|
|
|
|
deploymentName := genName()
|
|
|
|
|
|
|
|
|
|
|
|
t.Log("Executing deploy")
|
|
|
|
t.Log("Executing deploy")
|
|
|
|
helm.Run("deploy", "--name", deploymentName, chart)
|
|
|
|
helm.Run("deploy", "--name", deploymentName, *chart)
|
|
|
|
|
|
|
|
|
|
|
|
t.Log("Executing deployment list")
|
|
|
|
t.Log("Executing deployment list")
|
|
|
|
helm.Run("deployment", "list")
|
|
|
|
helm.Run("deployment", "list")
|
|
|
|