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
a267e04e
Commit
a267e04e
authored
Jul 06, 2015
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10705 from mwielgus/delete_namespace_in_e2e
Remove deferred cleanups from tests/e2e/examples.go
parents
7da2304d
77aae745
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
examples.go
test/e2e/examples.go
+0
-17
No files found.
test/e2e/examples.go
View file @
a267e04e
...
...
@@ -75,13 +75,6 @@ var _ = Describe("Examples e2e", func() {
By
(
"starting redis bootstrap"
)
runKubectl
(
"create"
,
"-f"
,
bootstrapYaml
,
nsFlag
)
cleanupBootstrap
:=
true
defer
func
()
{
if
cleanupBootstrap
{
cleanup
(
bootstrapYaml
,
ns
,
"name=redis"
,
"name=redis-sentinel"
)
}
}()
err
:=
waitForPodRunningInNamespace
(
c
,
bootstrapPodName
,
ns
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
...
...
@@ -92,11 +85,8 @@ var _ = Describe("Examples e2e", func() {
By
(
"setting up services and controllers"
)
runKubectl
(
"create"
,
"-f"
,
sentinelServiceYaml
,
nsFlag
)
defer
cleanup
(
sentinelServiceYaml
,
ns
,
"name=redis-sentinel"
)
runKubectl
(
"create"
,
"-f"
,
sentinelControllerYaml
,
nsFlag
)
defer
cleanup
(
sentinelControllerYaml
,
ns
,
"name=redis-sentinel"
)
runKubectl
(
"create"
,
"-f"
,
controllerYaml
,
nsFlag
)
defer
cleanup
(
controllerYaml
,
ns
,
"name=redis"
)
By
(
"scaling up the deployment"
)
runKubectl
(
"scale"
,
"rc"
,
redisRC
,
"--replicas=3"
,
nsFlag
)
...
...
@@ -121,10 +111,8 @@ var _ = Describe("Examples e2e", func() {
By
(
"turning down bootstrap"
)
runKubectl
(
"delete"
,
"-f"
,
bootstrapYaml
,
nsFlag
)
cleanupBootstrap
=
false
err
=
waitForRCPodToDisappear
(
c
,
ns
,
redisRC
,
bootstrapPodName
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
By
(
"waiting for the new master election"
)
checkAllLogs
()
})
...
...
@@ -143,17 +131,13 @@ var _ = Describe("Examples e2e", func() {
By
(
"starting rabbitmq"
)
runKubectl
(
"create"
,
"-f"
,
rabbitmqServiceYaml
,
nsFlag
)
defer
cleanup
(
rabbitmqServiceYaml
,
ns
,
"component=rabbitmq"
)
runKubectl
(
"create"
,
"-f"
,
rabbitmqControllerYaml
,
nsFlag
)
defer
cleanup
(
rabbitmqControllerYaml
,
ns
,
"component=rabbitmq"
)
forEachPod
(
c
,
ns
,
"component"
,
"rabbitmq"
,
func
(
pod
api
.
Pod
)
{
_
,
err
:=
lookForStringInLog
(
ns
,
pod
.
Name
,
"rabbitmq"
,
"Server startup complete"
,
serverStartTimeout
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
})
By
(
"starting celery"
)
runKubectl
(
"create"
,
"-f"
,
celeryControllerYaml
,
nsFlag
)
defer
cleanup
(
celeryControllerYaml
,
ns
,
"component=celery"
)
forEachPod
(
c
,
ns
,
"component"
,
"celery"
,
func
(
pod
api
.
Pod
)
{
_
,
err
:=
lookForStringInFile
(
ns
,
pod
.
Name
,
"celery"
,
"/data/celery.log"
,
" ready."
,
serverStartTimeout
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
...
...
@@ -161,7 +145,6 @@ var _ = Describe("Examples e2e", func() {
By
(
"starting flower"
)
runKubectl
(
"create"
,
"-f"
,
flowerControllerYaml
,
nsFlag
)
defer
cleanup
(
flowerControllerYaml
,
ns
,
"component=flower"
)
forEachPod
(
c
,
ns
,
"component"
,
"flower"
,
func
(
pod
api
.
Pod
)
{
//TODO: Do a http request after a flower service is added to the example.
})
...
...
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