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
b27f99bd
Commit
b27f99bd
authored
Jul 22, 2015
by
Vish Kannan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11030 from justinsb/e2e_aws_lb_changes_on_service_change
e2e: For AWS, tolerate an LB change when the service changes
parents
4421b3df
62726108
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
service.go
test/e2e/service.go
+14
-2
No files found.
test/e2e/service.go
View file @
b27f99bd
...
@@ -457,8 +457,20 @@ var _ = Describe("Services", func() {
...
@@ -457,8 +457,20 @@ var _ = Describe("Services", func() {
Failf
(
"got unexpected len(Status.LoadBalancer.Ingresss) for NodePort service: %v"
,
service
)
Failf
(
"got unexpected len(Status.LoadBalancer.Ingresss) for NodePort service: %v"
,
service
)
}
}
ingress2
:=
service
.
Status
.
LoadBalancer
.
Ingress
[
0
]
ingress2
:=
service
.
Status
.
LoadBalancer
.
Ingress
[
0
]
// TODO: This is a problem on AWS; we can't just always be changing the LB
Expect
(
ingress1
)
.
To
(
Equal
(
ingress2
))
// TODO: Fix the issue here: https://github.com/GoogleCloudPlatform/kubernetes/issues/11002
if
providerIs
(
"aws"
)
{
// TODO: Make this less of a hack (or fix the underlying bug)
time
.
Sleep
(
time
.
Second
*
120
)
service
,
err
=
waitForLoadBalancerIngress
(
c
,
serviceName
,
ns
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
// We don't want the ingress point to change, but we should verify that the new ingress point still works
ingress2
=
service
.
Status
.
LoadBalancer
.
Ingress
[
0
]
Expect
(
ingress1
)
.
NotTo
(
Equal
(
ingress2
))
}
else
{
Expect
(
ingress1
)
.
To
(
Equal
(
ingress2
))
}
By
(
"hitting the pod through the service's updated NodePort"
)
By
(
"hitting the pod through the service's updated NodePort"
)
testReachable
(
ip
,
nodePort2
)
testReachable
(
ip
,
nodePort2
)
...
...
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