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
0e2b0a6f
Commit
0e2b0a6f
authored
Nov 22, 2016
by
Janet Kuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename pet to stateful pods in statefulset e2e tests logs
parent
f7e36688
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
network_partition.go
test/e2e/network_partition.go
+6
-6
petset.go
test/e2e/petset.go
+0
-0
No files found.
test/e2e/network_partition.go
View file @
0e2b0a6f
...
...
@@ -361,7 +361,7 @@ var _ = framework.KubeDescribe("Network Partition [Disruptive] [Slow]", func() {
})
framework
.
KubeDescribe
(
"[StatefulSet]"
,
func
()
{
psName
:=
"
pet
"
psName
:=
"
ss
"
labels
:=
map
[
string
]
string
{
"foo"
:
"bar"
,
}
...
...
@@ -381,7 +381,7 @@ var _ = framework.KubeDescribe("Network Partition [Disruptive] [Slow]", func() {
if
CurrentGinkgoTestDescription
()
.
Failed
{
dumpDebugInfo
(
c
,
ns
)
}
framework
.
Logf
(
"Deleting all
pet
set in ns %v"
,
ns
)
framework
.
Logf
(
"Deleting all
stateful
set in ns %v"
,
ns
)
deleteAllStatefulSets
(
c
,
ns
)
})
...
...
@@ -403,7 +403,7 @@ var _ = framework.KubeDescribe("Network Partition [Disruptive] [Slow]", func() {
pst
.
waitForRunningAndReady
(
*
ps
.
Spec
.
Replicas
,
ps
)
})
It
(
"should not reschedule
pet
s if there is a network partition [Slow] [Disruptive]"
,
func
()
{
It
(
"should not reschedule
stateful pod
s if there is a network partition [Slow] [Disruptive]"
,
func
()
{
ps
:=
newStatefulSet
(
psName
,
ns
,
headlessSvcName
,
3
,
[]
v1
.
VolumeMount
{},
[]
v1
.
VolumeMount
{},
labels
)
_
,
err
:=
c
.
Apps
()
.
StatefulSets
(
ns
)
.
Create
(
ps
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
...
...
@@ -416,10 +416,10 @@ var _ = framework.KubeDescribe("Network Partition [Disruptive] [Slow]", func() {
framework
.
ExpectNoError
(
err
)
// Blocks outgoing network traffic on 'node'. Then verifies that 'podNameToDisappear',
// that belongs to StatefulSet '
pet
SetName', **does not** disappear due to forced deletion from the apiserver.
// The grace period on the
petset
pods is set to a value > 0.
// that belongs to StatefulSet '
stateful
SetName', **does not** disappear due to forced deletion from the apiserver.
// The grace period on the
stateful
pods is set to a value > 0.
testUnderTemporaryNetworkFailure
(
c
,
ns
,
node
,
func
()
{
framework
.
Logf
(
"Checking that the NodeController does not force delete
pet
%v"
,
pod
.
Name
)
framework
.
Logf
(
"Checking that the NodeController does not force delete
stateful pods
%v"
,
pod
.
Name
)
err
:=
framework
.
WaitTimeoutForPodNoLongerRunningInNamespace
(
c
,
pod
.
Name
,
ns
,
pod
.
ResourceVersion
,
10
*
time
.
Minute
)
Expect
(
err
)
.
To
(
Equal
(
wait
.
ErrWaitTimeout
),
"Pod was not deleted during network partition."
)
})
...
...
test/e2e/petset.go
View file @
0e2b0a6f
This diff is collapsed.
Click to expand it.
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