MCPcopy
hub / github.com/kubernetes/test-infra / kubemarkGinkgoTest

Function kubemarkGinkgoTest

kubetest/e2e.go:746–768  ·  view source on GitHub ↗
(testArgs []string, dump string)

Source from the content-addressed store, hash-verified

744}
745
746func 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.
771func kubemarkDown(provider, dump, logexporterGCSPath string) error {

Callers 1

runFunction · 0.85

Calls 3

SetFieldDefaultFunction · 0.92
XMLWrapMethod · 0.80
FinishRunningMethod · 0.80

Tested by

no test coverage detected