Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0beaea0a
Commit
0beaea0a
authored
Nov 23, 2015
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ResizeNodes test wait for the number of system Pods equal to the one observed before the test
parent
07664a61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
resize_nodes.go
test/e2e/resize_nodes.go
+5
-3
No files found.
test/e2e/resize_nodes.go
View file @
0beaea0a
...
@@ -388,12 +388,16 @@ func performTemporaryNetworkFailure(c *client.Client, ns, rcName string, replica
...
@@ -388,12 +388,16 @@ func performTemporaryNetworkFailure(c *client.Client, ns, rcName string, replica
var
_
=
Describe
(
"Nodes"
,
func
()
{
var
_
=
Describe
(
"Nodes"
,
func
()
{
framework
:=
NewFramework
(
"resize-nodes"
)
framework
:=
NewFramework
(
"resize-nodes"
)
var
systemPodsNo
int
var
c
*
client
.
Client
var
c
*
client
.
Client
var
ns
string
var
ns
string
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
c
=
framework
.
Client
c
=
framework
.
Client
ns
=
framework
.
Namespace
.
Name
ns
=
framework
.
Namespace
.
Name
systemPods
,
err
:=
c
.
Pods
(
api
.
NamespaceSystem
)
.
List
(
labels
.
Everything
(),
fields
.
Everything
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
systemPodsNo
=
len
(
systemPods
.
Items
)
})
})
Describe
(
"Resize"
,
func
()
{
Describe
(
"Resize"
,
func
()
{
...
@@ -424,10 +428,8 @@ var _ = Describe("Nodes", func() {
...
@@ -424,10 +428,8 @@ var _ = Describe("Nodes", func() {
// Many e2e tests assume that the cluster is fully healthy before they start. Wait until
// Many e2e tests assume that the cluster is fully healthy before they start. Wait until
// the cluster is restored to health.
// the cluster is restored to health.
By
(
"waiting for system pods to successfully restart"
)
By
(
"waiting for system pods to successfully restart"
)
pods
,
err
:=
framework
.
Client
.
Pods
(
api
.
NamespaceSystem
)
.
List
(
labels
.
Everything
(),
fields
.
Everything
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
err
=
waitForPodsRunningReady
(
api
.
NamespaceSystem
,
len
(
pods
.
Items
)
,
podReadyBeforeTimeout
)
err
:=
waitForPodsRunningReady
(
api
.
NamespaceSystem
,
systemPodsNo
,
podReadyBeforeTimeout
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment