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
77aae745
Commit
77aae745
authored
Jul 03, 2015
by
Marcin Wielgus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deferred cleanups from tests/e2e/examples.go
parent
974377b3
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 @
77aae745
...
@@ -75,13 +75,6 @@ var _ = Describe("Examples e2e", func() {
...
@@ -75,13 +75,6 @@ var _ = Describe("Examples e2e", func() {
By
(
"starting redis bootstrap"
)
By
(
"starting redis bootstrap"
)
runKubectl
(
"create"
,
"-f"
,
bootstrapYaml
,
nsFlag
)
runKubectl
(
"create"
,
"-f"
,
bootstrapYaml
,
nsFlag
)
cleanupBootstrap
:=
true
defer
func
()
{
if
cleanupBootstrap
{
cleanup
(
bootstrapYaml
,
ns
,
"name=redis"
,
"name=redis-sentinel"
)
}
}()
err
:=
waitForPodRunningInNamespace
(
c
,
bootstrapPodName
,
ns
)
err
:=
waitForPodRunningInNamespace
(
c
,
bootstrapPodName
,
ns
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
...
@@ -92,11 +85,8 @@ var _ = Describe("Examples e2e", func() {
...
@@ -92,11 +85,8 @@ var _ = Describe("Examples e2e", func() {
By
(
"setting up services and controllers"
)
By
(
"setting up services and controllers"
)
runKubectl
(
"create"
,
"-f"
,
sentinelServiceYaml
,
nsFlag
)
runKubectl
(
"create"
,
"-f"
,
sentinelServiceYaml
,
nsFlag
)
defer
cleanup
(
sentinelServiceYaml
,
ns
,
"name=redis-sentinel"
)
runKubectl
(
"create"
,
"-f"
,
sentinelControllerYaml
,
nsFlag
)
runKubectl
(
"create"
,
"-f"
,
sentinelControllerYaml
,
nsFlag
)
defer
cleanup
(
sentinelControllerYaml
,
ns
,
"name=redis-sentinel"
)
runKubectl
(
"create"
,
"-f"
,
controllerYaml
,
nsFlag
)
runKubectl
(
"create"
,
"-f"
,
controllerYaml
,
nsFlag
)
defer
cleanup
(
controllerYaml
,
ns
,
"name=redis"
)
By
(
"scaling up the deployment"
)
By
(
"scaling up the deployment"
)
runKubectl
(
"scale"
,
"rc"
,
redisRC
,
"--replicas=3"
,
nsFlag
)
runKubectl
(
"scale"
,
"rc"
,
redisRC
,
"--replicas=3"
,
nsFlag
)
...
@@ -121,10 +111,8 @@ var _ = Describe("Examples e2e", func() {
...
@@ -121,10 +111,8 @@ var _ = Describe("Examples e2e", func() {
By
(
"turning down bootstrap"
)
By
(
"turning down bootstrap"
)
runKubectl
(
"delete"
,
"-f"
,
bootstrapYaml
,
nsFlag
)
runKubectl
(
"delete"
,
"-f"
,
bootstrapYaml
,
nsFlag
)
cleanupBootstrap
=
false
err
=
waitForRCPodToDisappear
(
c
,
ns
,
redisRC
,
bootstrapPodName
)
err
=
waitForRCPodToDisappear
(
c
,
ns
,
redisRC
,
bootstrapPodName
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
By
(
"waiting for the new master election"
)
By
(
"waiting for the new master election"
)
checkAllLogs
()
checkAllLogs
()
})
})
...
@@ -143,17 +131,13 @@ var _ = Describe("Examples e2e", func() {
...
@@ -143,17 +131,13 @@ var _ = Describe("Examples e2e", func() {
By
(
"starting rabbitmq"
)
By
(
"starting rabbitmq"
)
runKubectl
(
"create"
,
"-f"
,
rabbitmqServiceYaml
,
nsFlag
)
runKubectl
(
"create"
,
"-f"
,
rabbitmqServiceYaml
,
nsFlag
)
defer
cleanup
(
rabbitmqServiceYaml
,
ns
,
"component=rabbitmq"
)
runKubectl
(
"create"
,
"-f"
,
rabbitmqControllerYaml
,
nsFlag
)
runKubectl
(
"create"
,
"-f"
,
rabbitmqControllerYaml
,
nsFlag
)
defer
cleanup
(
rabbitmqControllerYaml
,
ns
,
"component=rabbitmq"
)
forEachPod
(
c
,
ns
,
"component"
,
"rabbitmq"
,
func
(
pod
api
.
Pod
)
{
forEachPod
(
c
,
ns
,
"component"
,
"rabbitmq"
,
func
(
pod
api
.
Pod
)
{
_
,
err
:=
lookForStringInLog
(
ns
,
pod
.
Name
,
"rabbitmq"
,
"Server startup complete"
,
serverStartTimeout
)
_
,
err
:=
lookForStringInLog
(
ns
,
pod
.
Name
,
"rabbitmq"
,
"Server startup complete"
,
serverStartTimeout
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
})
})
By
(
"starting celery"
)
By
(
"starting celery"
)
runKubectl
(
"create"
,
"-f"
,
celeryControllerYaml
,
nsFlag
)
runKubectl
(
"create"
,
"-f"
,
celeryControllerYaml
,
nsFlag
)
defer
cleanup
(
celeryControllerYaml
,
ns
,
"component=celery"
)
forEachPod
(
c
,
ns
,
"component"
,
"celery"
,
func
(
pod
api
.
Pod
)
{
forEachPod
(
c
,
ns
,
"component"
,
"celery"
,
func
(
pod
api
.
Pod
)
{
_
,
err
:=
lookForStringInFile
(
ns
,
pod
.
Name
,
"celery"
,
"/data/celery.log"
,
" ready."
,
serverStartTimeout
)
_
,
err
:=
lookForStringInFile
(
ns
,
pod
.
Name
,
"celery"
,
"/data/celery.log"
,
" ready."
,
serverStartTimeout
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
...
@@ -161,7 +145,6 @@ var _ = Describe("Examples e2e", func() {
...
@@ -161,7 +145,6 @@ var _ = Describe("Examples e2e", func() {
By
(
"starting flower"
)
By
(
"starting flower"
)
runKubectl
(
"create"
,
"-f"
,
flowerControllerYaml
,
nsFlag
)
runKubectl
(
"create"
,
"-f"
,
flowerControllerYaml
,
nsFlag
)
defer
cleanup
(
flowerControllerYaml
,
ns
,
"component=flower"
)
forEachPod
(
c
,
ns
,
"component"
,
"flower"
,
func
(
pod
api
.
Pod
)
{
forEachPod
(
c
,
ns
,
"component"
,
"flower"
,
func
(
pod
api
.
Pod
)
{
//TODO: Do a http request after a flower service is added to the example.
//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