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
4b43a6a9
Commit
4b43a6a9
authored
Apr 21, 2015
by
jayunit100
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement pure UUID suffix Functionality into namespace, without implementing randomSuffix() (yet).
parent
e548c16f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
util.go
test/e2e/util.go
+3
-2
No files found.
test/e2e/util.go
View file @
4b43a6a9
...
...
@@ -33,6 +33,8 @@ import (
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/gomega"
"code.google.com/p/go-uuid/uuid"
)
const
(
...
...
@@ -85,7 +87,7 @@ func waitForPodCondition(c *client.Client, ns, podName, desc string, condition p
func
createTestingNS
(
baseName
string
,
c
*
client
.
Client
)
(
*
api
.
Namespace
,
error
)
{
namespaceObj
:=
&
api
.
Namespace
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
fmt
.
Sprintf
(
"e2e-tests-%v-%v"
,
baseName
,
randomSuffix
()),
Name
:
fmt
.
Sprintf
(
"e2e-tests-%v-%v"
,
baseName
,
uuid
.
New
()),
Namespace
:
""
,
},
Status
:
api
.
NamespaceStatus
{},
...
...
@@ -193,7 +195,6 @@ func loadClient() (*client.Client, error) {
}
// randomSuffix provides a random string to append to pods,services,rcs.
// NOTE: For test's namespaces, instead use createGinkgoNS(..).
// TODO: Allow service names to have the same form as names
// for pods and replication controllers so we don't
// need to use such a function and can instead
...
...
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