(testArgs []string, dump string)
| 744 | } |
| 745 | |
| 746 | func kubemarkGinkgoTest(testArgs []string, dump string) error { |
| 747 | if os.Getenv("ENABLE_KUBEMARK_CLUSTER_AUTOSCALER") == "true" { |
| 748 | testArgs = append(testArgs, "--kubemark-external-kubeconfig="+os.Getenv("DEFAULT_KUBECONFIG")) |
| 749 | } |
| 750 | |
| 751 | // Run tests on the kubemark cluster. |
| 752 | return control.XMLWrap(&suite, "Kubemark Test", func() error { |
| 753 | testArgs = util.SetFieldDefault(testArgs, "--ginkgo.focus", "starting\\s30\\spods") |
| 754 | // TODO(krzyzacy): unsure if the envs in kubemark/util.sh makes a difference to e2e tests |
| 755 | // will verify and remove (or uncomment) next |
| 756 | //util := os.Getenv("WORKSPACE") + "/kubernetes/cluster/kubemark/util.sh" |
| 757 | //testArgs = append([]string{"-c", "source", util, " ; ./hack/ginkgo-e2e.sh"}, testArgs...) |
| 758 | cmd := exec.Command("./hack/ginkgo-e2e.sh", testArgs...) |
| 759 | cmd.Env = append( |
| 760 | os.Environ(), |
| 761 | "KUBERNETES_PROVIDER=kubemark", |
| 762 | "KUBE_CONFIG_FILE=config-default.sh", |
| 763 | "KUBE_MASTER_URL=https://"+os.Getenv("KUBE_MASTER_IP"), |
| 764 | ) |
| 765 | |
| 766 | return control.FinishRunning(cmd) |
| 767 | }) |
| 768 | } |
| 769 | |
| 770 | // Brings down the kubemark cluster. |
| 771 | func kubemarkDown(provider, dump, logexporterGCSPath string) error { |
no test coverage detected