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
0c8ee980
Commit
0c8ee980
authored
Apr 21, 2015
by
Alex Robinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7142 from a-robinson/ns
Update the external load balancer test to use a different namespace in each run
parents
a666c1e7
a9902fe9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
service.go
test/e2e/service.go
+3
-6
No files found.
test/e2e/service.go
View file @
0c8ee980
...
...
@@ -257,7 +257,7 @@ var _ = Describe("Services", func() {
It
(
"should be able to create a functioning external load balancer"
,
func
()
{
serviceName
:=
"external-lb-test"
ns
:=
api
.
NamespaceDefault
ns
:=
namespace0
labels
:=
map
[
string
]
string
{
"key0"
:
"value0"
,
}
...
...
@@ -275,9 +275,6 @@ var _ = Describe("Services", func() {
},
}
By
(
"cleaning up previous service "
+
serviceName
+
" from namespace "
+
ns
)
c
.
Services
(
ns
)
.
Delete
(
serviceName
)
By
(
"creating service "
+
serviceName
+
" with external load balancer in namespace "
+
ns
)
result
,
err
:=
c
.
Services
(
ns
)
.
Create
(
service
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
...
...
@@ -317,7 +314,7 @@ var _ = Describe("Services", func() {
}
By
(
"creating pod to be part of service "
+
serviceName
)
podClient
:=
c
.
Pods
(
api
.
NamespaceDefault
)
podClient
:=
c
.
Pods
(
ns
)
defer
func
()
{
By
(
"deleting pod "
+
pod
.
Name
)
defer
GinkgoRecover
()
...
...
@@ -326,7 +323,7 @@ var _ = Describe("Services", func() {
if
_
,
err
:=
podClient
.
Create
(
pod
);
err
!=
nil
{
Failf
(
"Failed to create pod %s: %v"
,
pod
.
Name
,
err
)
}
expectNoError
(
waitForPodRunning
(
c
,
pod
.
Name
))
expectNoError
(
waitForPodRunning
InNamespace
(
c
,
pod
.
Name
,
ns
))
By
(
"hitting the pod through the service's external load balancer"
)
var
resp
*
http
.
Response
...
...
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