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
82222e2a
Commit
82222e2a
authored
Apr 16, 2015
by
Quinton Hoole
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Move remaining tests in e2e/service.go to unique namespaces."
parent
a4d0ed89
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 @
82222e2a
...
...
@@ -52,7 +52,7 @@ var _ = Describe("Services", func() {
return
}
podClient
:=
c
.
Pods
(
namespace0
)
podClient
:=
c
.
Pods
(
api
.
NamespaceDefault
)
//TODO: Wait for skyDNS
...
...
@@ -125,7 +125,7 @@ var _ = Describe("Services", func() {
Failf
(
"Failed to create %s pod: %v"
,
pod
.
Name
,
err
)
}
expectNoError
(
waitForPodRunning
InNamespace
(
c
,
pod
.
Name
,
namespace0
))
expectNoError
(
waitForPodRunning
(
c
,
pod
.
Name
))
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
(
namespace0
)
.
Namespace
(
api
.
NamespaceDefault
)
.
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
:=
namespace0
ns
:=
api
.
NamespaceDefault
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
:=
namespace0
ns
:=
api
.
NamespaceDefault
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
(
ns
)
podClient
:=
c
.
Pods
(
api
.
NamespaceDefault
)
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
InNamespace
(
c
,
pod
.
Name
,
ns
))
expectNoError
(
waitForPodRunning
(
c
,
pod
.
Name
))
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