Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace KubeDescribe with ginkgo.Describe in e2e/kubectl #79910

Merged
merged 1 commit into from
Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
58 changes: 29 additions & 29 deletions test/e2e/kubectl/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var _ = SIGDescribe("Kubectl alpha client", func() {
ns = f.Namespace.Name
})

framework.KubeDescribe("Kubectl run CronJob", func() {
ginkgo.Describe("Kubectl run CronJob", func() {
var nsFlag string
var cjName string

Expand Down Expand Up @@ -269,7 +269,7 @@ var _ = SIGDescribe("Kubectl client", func() {
e2elog.Logf("scanned %s for discovery docs: %v", home, err)
}

framework.KubeDescribe("Update Demo", func() {
ginkgo.Describe("Update Demo", func() {
var nautilus, kitten string
ginkgo.BeforeEach(func() {
updateDemoRoot := "test/fixtures/doc-yaml/user-guide/update-demo"
Expand Down Expand Up @@ -327,7 +327,7 @@ var _ = SIGDescribe("Kubectl client", func() {
})
})

framework.KubeDescribe("Guestbook application", func() {
ginkgo.Describe("Guestbook application", func() {
forEachGBFile := func(run func(s string)) {
guestbookRoot := "test/e2e/testing-manifests/guestbook"
for _, gbAppFile := range []string{
Expand Down Expand Up @@ -363,7 +363,7 @@ var _ = SIGDescribe("Kubectl client", func() {
})
})

framework.KubeDescribe("Simple pod", func() {
ginkgo.Describe("Simple pod", func() {
var podYaml string
ginkgo.BeforeEach(func() {
ginkgo.By(fmt.Sprintf("creating the pod from %v", podYaml))
Expand Down Expand Up @@ -744,7 +744,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl api-versions", func() {
ginkgo.Describe("Kubectl api-versions", func() {
/*
Release : v1.9
Testname: Kubectl, check version v1
Expand All @@ -759,7 +759,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl get componentstatuses", func() {
ginkgo.Describe("Kubectl get componentstatuses", func() {
ginkgo.It("should get componentstatuses", func() {
ginkgo.By("getting list of componentstatuses")
output := framework.RunKubectlOrDie("get", "componentstatuses", "-o", "jsonpath={.items[*].metadata.name}")
Expand All @@ -772,7 +772,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl apply", func() {
ginkgo.Describe("Kubectl apply", func() {
ginkgo.It("should apply a new configuration to an existing RC", func() {
controllerJSON := commonutils.SubstituteImageName(string(readTestFileOrDie(redisControllerFilename)))

Expand Down Expand Up @@ -904,7 +904,7 @@ metadata:
return nil
}

framework.KubeDescribe("Kubectl client-side validation", func() {
ginkgo.Describe("Kubectl client-side validation", func() {
ginkgo.It("should create/apply a CR with unknown fields for CRD with no validation schema", func() {
ginkgo.By("create CRD with no validation schema")
crd, err := crd.CreateTestCRD(f)
Expand Down Expand Up @@ -991,7 +991,7 @@ metadata:

})

framework.KubeDescribe("Kubectl cluster-info", func() {
ginkgo.Describe("Kubectl cluster-info", func() {
/*
Release : v1.9
Testname: Kubectl, cluster info
Expand All @@ -1010,14 +1010,14 @@ metadata:
})
})

framework.KubeDescribe("Kubectl cluster-info dump", func() {
ginkgo.Describe("Kubectl cluster-info dump", func() {
ginkgo.It("should check if cluster-info dump succeeds", func() {
ginkgo.By("running cluster-info dump")
framework.RunKubectlOrDie("cluster-info", "dump")
})
})

framework.KubeDescribe("Kubectl describe", func() {
ginkgo.Describe("Kubectl describe", func() {
/*
Release : v1.9
Testname: Kubectl, describe pod or rc
Expand Down Expand Up @@ -1122,7 +1122,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl expose", func() {
ginkgo.Describe("Kubectl expose", func() {
/*
Release : v1.9
Testname: Kubectl, create service, replication controller
Expand Down Expand Up @@ -1206,7 +1206,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl label", func() {
ginkgo.Describe("Kubectl label", func() {
var podYaml string
var nsFlag string
ginkgo.BeforeEach(func() {
Expand Down Expand Up @@ -1247,7 +1247,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl copy", func() {
ginkgo.Describe("Kubectl copy", func() {
var podYaml string
var nsFlag string
ginkgo.BeforeEach(func() {
Expand Down Expand Up @@ -1287,7 +1287,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl logs", func() {
ginkgo.Describe("Kubectl logs", func() {
var nsFlag string
var rc string
containerName := "redis-master"
Expand Down Expand Up @@ -1362,7 +1362,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl patch", func() {
ginkgo.Describe("Kubectl patch", func() {
/*
Release : v1.9
Testname: Kubectl, patch to annotate
Expand Down Expand Up @@ -1396,7 +1396,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl version", func() {
ginkgo.Describe("Kubectl version", func() {
/*
Release : v1.9
Testname: Kubectl, version
Expand All @@ -1413,7 +1413,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl run default", func() {
ginkgo.Describe("Kubectl run default", func() {
var nsFlag string
var name string

Expand Down Expand Up @@ -1451,7 +1451,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl run rc", func() {
ginkgo.Describe("Kubectl run rc", func() {
var nsFlag string
var rcName string

Expand Down Expand Up @@ -1510,7 +1510,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl rolling-update", func() {
ginkgo.Describe("Kubectl rolling-update", func() {
var nsFlag string
var rcName string
var c clientset.Interface
Expand Down Expand Up @@ -1552,7 +1552,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl run deployment", func() {
ginkgo.Describe("Kubectl run deployment", func() {
var nsFlag string
var dName string

Expand Down Expand Up @@ -1607,7 +1607,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl run job", func() {
ginkgo.Describe("Kubectl run job", func() {
var nsFlag string
var jobName string

Expand Down Expand Up @@ -1643,7 +1643,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl run CronJob", func() {
ginkgo.Describe("Kubectl run CronJob", func() {
var nsFlag string
var cjName string

Expand Down Expand Up @@ -1680,7 +1680,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl run pod", func() {
ginkgo.Describe("Kubectl run pod", func() {
var nsFlag string
var podName string

Expand Down Expand Up @@ -1716,7 +1716,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl replace", func() {
ginkgo.Describe("Kubectl replace", func() {
var nsFlag string
var podName string

Expand Down Expand Up @@ -1767,7 +1767,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl run --rm job", func() {
ginkgo.Describe("Kubectl run --rm job", func() {
jobName := "e2e-test-rm-busybox-job"

/*
Expand Down Expand Up @@ -1798,7 +1798,7 @@ metadata:
})
})

framework.KubeDescribe("Proxy server", func() {
ginkgo.Describe("Proxy server", func() {
// TODO: test proxy options (static, prefix, etc)
/*
Release : v1.9
Expand Down Expand Up @@ -1861,7 +1861,7 @@ metadata:

// This test must run [Serial] because it modifies the node so it doesn't allow pods to execute on
// it, which will affect anything else running in parallel.
framework.KubeDescribe("Kubectl taint [Serial]", func() {
ginkgo.Describe("Kubectl taint [Serial]", func() {
ginkgo.It("should update the taint on a node", func() {
testTaint := v1.Taint{
Key: fmt.Sprintf("kubernetes.io/e2e-taint-key-001-%s", string(uuid.NewUUID())),
Expand Down Expand Up @@ -1961,7 +1961,7 @@ metadata:
})
})

framework.KubeDescribe("Kubectl create quota", func() {
ginkgo.Describe("Kubectl create quota", func() {
ginkgo.It("should create a quota without scopes", func() {
nsFlag := fmt.Sprintf("--namespace=%v", ns)
quotaName := "million"
Expand Down
12 changes: 6 additions & 6 deletions test/e2e/kubectl/portforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ func doTestOverWebSockets(bindAddress string, f *framework.Framework) {
var _ = SIGDescribe("Kubectl Port forwarding", func() {
f := framework.NewDefaultFramework("port-forwarding")

framework.KubeDescribe("With a server listening on 0.0.0.0", func() {
framework.KubeDescribe("that expects a client request", func() {
ginkgo.Describe("With a server listening on 0.0.0.0", func() {
ginkgo.Describe("that expects a client request", func() {
ginkgo.It("should support a client that connects, sends NO DATA, and disconnects", func() {
doTestMustConnectSendNothing("0.0.0.0", f)
})
Expand All @@ -448,7 +448,7 @@ var _ = SIGDescribe("Kubectl Port forwarding", func() {
})
})

framework.KubeDescribe("that expects NO client request", func() {
ginkgo.Describe("that expects NO client request", func() {
ginkgo.It("should support a client that connects, sends DATA, and disconnects", func() {
doTestConnectSendDisconnect("0.0.0.0", f)
})
Expand All @@ -460,8 +460,8 @@ var _ = SIGDescribe("Kubectl Port forwarding", func() {
})

// kubectl port-forward may need elevated privileges to do its job.
framework.KubeDescribe("With a server listening on localhost", func() {
framework.KubeDescribe("that expects a client request", func() {
ginkgo.Describe("With a server listening on localhost", func() {
ginkgo.Describe("that expects a client request", func() {
ginkgo.It("should support a client that connects, sends NO DATA, and disconnects", func() {
doTestMustConnectSendNothing("localhost", f)
})
Expand All @@ -470,7 +470,7 @@ var _ = SIGDescribe("Kubectl Port forwarding", func() {
})
})

framework.KubeDescribe("that expects NO client request", func() {
ginkgo.Describe("that expects NO client request", func() {
ginkgo.It("should support a client that connects, sends DATA, and disconnects", func() {
doTestConnectSendDisconnect("localhost", f)
})
Expand Down