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
43c6a5eb
Commit
43c6a5eb
authored
Apr 15, 2015
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6847 from quinton-hoole/2015-04-14-namespace-for-services-e2e
Move remaining tests in e2e/service.go to unique namespaces.
parents
0709dc6a
34a2c654
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
service.go
test/e2e/service.go
+7
-7
No files found.
test/e2e/service.go
View file @
43c6a5eb
...
...
@@ -52,7 +52,7 @@ var _ = Describe("Services", func() {
return
}
podClient
:=
c
.
Pods
(
api
.
NamespaceDefault
)
podClient
:=
c
.
Pods
(
namespace0
)
//TODO: Wait for skyDNS
...
...
@@ -125,7 +125,7 @@ var _ = Describe("Services", func() {
Failf
(
"Failed to create %s pod: %v"
,
pod
.
Name
,
err
)
}
expectNoError
(
waitForPodRunning
(
c
,
pod
.
Name
))
expectNoError
(
waitForPodRunning
InNamespace
(
c
,
pod
.
Name
,
namespace0
))
By
(
"retrieving the pod"
)
pod
,
err
:=
podClient
.
Get
(
pod
.
Name
)
...
...
@@ -142,7 +142,7 @@ var _ = Describe("Services", func() {
_
,
err
:=
c
.
Get
()
.
Prefix
(
"proxy"
)
.
Resource
(
"pods"
)
.
Namespace
(
api
.
NamespaceDefault
)
.
Namespace
(
namespace0
)
.
Name
(
pod
.
Name
)
.
Suffix
(
"results"
,
name
)
.
Do
()
.
Raw
()
...
...
@@ -188,7 +188,7 @@ var _ = Describe("Services", func() {
It
(
"should serve a basic endpoint from pods"
,
func
(
done
Done
)
{
serviceName
:=
"endpoint-test2"
ns
:=
api
.
NamespaceDefault
ns
:=
namespace0
labels
:=
map
[
string
]
string
{
"foo"
:
"bar"
,
"baz"
:
"blah"
,
...
...
@@ -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"
,
}
...
...
@@ -317,7 +317,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 +326,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