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
bb6a252c
Commit
bb6a252c
authored
Apr 27, 2015
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7334 from jayunit100/density-namespaces
Unify the namespace pattern for density.go with the others
parents
832973c0
804ce233
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
density.go
test/e2e/density.go
+7
-9
No files found.
test/e2e/density.go
View file @
bb6a252c
...
@@ -54,7 +54,9 @@ var _ = Describe("Density", func() {
...
@@ -54,7 +54,9 @@ var _ = Describe("Density", func() {
expectNoError
(
err
)
expectNoError
(
err
)
minionCount
=
len
(
minions
.
Items
)
minionCount
=
len
(
minions
.
Items
)
Expect
(
minionCount
)
.
NotTo
(
BeZero
())
Expect
(
minionCount
)
.
NotTo
(
BeZero
())
ns
=
api
.
NamespaceDefault
nsForTesting
,
err
:=
createTestingNS
(
"density"
,
c
)
ns
=
nsForTesting
.
Name
expectNoError
(
err
)
})
})
AfterEach
(
func
()
{
AfterEach
(
func
()
{
...
@@ -69,11 +71,9 @@ var _ = Describe("Density", func() {
...
@@ -69,11 +71,9 @@ var _ = Describe("Density", func() {
expectNoError
(
err
)
expectNoError
(
err
)
}
}
// Clean up the namespace if a non-default one was used
By
(
fmt
.
Sprintf
(
"Destroying namespace for this suite %v"
,
ns
))
if
ns
!=
api
.
NamespaceDefault
{
if
err
:=
c
.
Namespaces
()
.
Delete
(
ns
);
err
!=
nil
{
By
(
"Cleaning up the namespace"
)
Failf
(
"Couldn't delete ns %s"
,
err
)
err
:=
c
.
Namespaces
()
.
Delete
(
ns
)
expectNoError
(
err
)
}
}
})
})
...
@@ -104,10 +104,8 @@ var _ = Describe("Density", func() {
...
@@ -104,10 +104,8 @@ var _ = Describe("Density", func() {
}
}
itArg
:=
testArg
itArg
:=
testArg
It
(
name
,
func
()
{
It
(
name
,
func
()
{
uuid
:=
string
(
util
.
NewUUID
())
totalPods
:=
itArg
.
podsPerMinion
*
minionCount
totalPods
:=
itArg
.
podsPerMinion
*
minionCount
nameStr
:=
strconv
.
Itoa
(
totalPods
)
+
"-"
+
uuid
nameStr
:=
strconv
.
Itoa
(
totalPods
)
+
"-"
+
string
(
util
.
NewUUID
())
ns
=
"e2e-density"
+
nameStr
RCName
=
"my-hostname-density"
+
nameStr
RCName
=
"my-hostname-density"
+
nameStr
// Create a listener for events
// Create a listener for events
...
...
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