mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #15037 from quinton-hoole/2015-10-02-port-node-resize-e2e-to-framework
Port Node Resize e2e tests to e2e Framework
This commit is contained in:
commit
bcc154d7bd
@ -384,28 +384,17 @@ func performTemporaryNetworkFailure(c *client.Client, ns, rcName string, replica
|
|||||||
}
|
}
|
||||||
|
|
||||||
var _ = Describe("Nodes", func() {
|
var _ = Describe("Nodes", func() {
|
||||||
|
framework := Framework{BaseName: "resize-nodes"}
|
||||||
var c *client.Client
|
var c *client.Client
|
||||||
var ns string
|
var ns string
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
var err error
|
framework.beforeEach()
|
||||||
c, err = loadClient()
|
c = framework.Client
|
||||||
expectNoError(err)
|
ns = framework.Namespace.Name
|
||||||
testingNs, err := createTestingNS("resize-nodes", c)
|
|
||||||
ns = testingNs.Name
|
|
||||||
Expect(err).NotTo(HaveOccurred())
|
|
||||||
})
|
})
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(framework.afterEach)
|
||||||
By("checking whether all nodes are healthy")
|
|
||||||
if err := allNodesReady(c, time.Minute); err != nil {
|
|
||||||
Failf("Not all nodes are ready: %v", err)
|
|
||||||
}
|
|
||||||
By(fmt.Sprintf("destroying namespace for this suite %s", ns))
|
|
||||||
if err := deleteNS(c, ns, 5*time.Minute /* namespace deletion timeout */); err != nil {
|
|
||||||
Failf("Couldn't delete namespace '%s', %v", ns, err)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
Describe("Resize", func() {
|
Describe("Resize", func() {
|
||||||
var skipped bool
|
var skipped bool
|
||||||
|
Loading…
Reference in New Issue
Block a user