mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +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() {
|
||||
framework := Framework{BaseName: "resize-nodes"}
|
||||
var c *client.Client
|
||||
var ns string
|
||||
|
||||
BeforeEach(func() {
|
||||
var err error
|
||||
c, err = loadClient()
|
||||
expectNoError(err)
|
||||
testingNs, err := createTestingNS("resize-nodes", c)
|
||||
ns = testingNs.Name
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
framework.beforeEach()
|
||||
c = framework.Client
|
||||
ns = framework.Namespace.Name
|
||||
})
|
||||
|
||||
AfterEach(func() {
|
||||
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)
|
||||
}
|
||||
})
|
||||
AfterEach(framework.afterEach)
|
||||
|
||||
Describe("Resize", func() {
|
||||
var skipped bool
|
||||
|
Loading…
Reference in New Issue
Block a user