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
cf0c84bc
Commit
cf0c84bc
authored
Mar 10, 2017
by
Madhusudan.C.S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Federation] Major rewrite of replicaset e2e tests.
parent
ce811116
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
replicaset.go
test/e2e_federation/replicaset.go
+0
-0
util.go
test/e2e_federation/util.go
+2
-1
No files found.
test/e2e_federation/replicaset.go
View file @
cf0c84bc
This diff is collapsed.
Click to expand it.
test/e2e_federation/util.go
View file @
cf0c84bc
...
...
@@ -52,6 +52,7 @@ var (
const
(
federatedNamespaceTimeout
=
5
*
time
.
Minute
federatedReplicasetTimeout
=
5
*
time
.
Minute
federatedServiceTimeout
=
5
*
time
.
Minute
federatedClustersWaitTimeout
=
1
*
time
.
Minute
...
...
@@ -551,7 +552,7 @@ func deleteBackendPodsOrFail(clusters map[string]*cluster, namespace string) {
// waitForReplicatSetToBeDeletedOrFail waits for the named ReplicaSet in namespace to be deleted.
// If the deletion fails, the enclosing test fails.
func
waitForReplicaSetToBeDeletedOrFail
(
clientset
*
fedclientset
.
Clientset
,
namespace
string
,
replicaSet
string
)
{
err
:=
wait
.
Poll
(
5
*
time
.
Second
,
wait
.
ForeverTes
tTimeout
,
func
()
(
bool
,
error
)
{
err
:=
wait
.
Poll
(
5
*
time
.
Second
,
federatedReplicase
tTimeout
,
func
()
(
bool
,
error
)
{
_
,
err
:=
clientset
.
Extensions
()
.
ReplicaSets
(
namespace
)
.
Get
(
replicaSet
,
metav1
.
GetOptions
{})
if
err
!=
nil
&&
errors
.
IsNotFound
(
err
)
{
return
true
,
nil
...
...
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