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
2c4ceca1
Commit
2c4ceca1
authored
May 29, 2015
by
Rohit Jnagal
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8974 from lavalamp/networkTimeout
Use spew for more informative debug output
parents
0afb34d9
02b13315
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
util.go
test/e2e/util.go
+4
-3
No files found.
test/e2e/util.go
View file @
2c4ceca1
...
@@ -30,8 +30,6 @@ import (
...
@@ -30,8 +30,6 @@ import (
"strings"
"strings"
"time"
"time"
"code.google.com/p/go-uuid/uuid"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd"
...
@@ -42,6 +40,8 @@ import (
...
@@ -42,6 +40,8 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"code.google.com/p/go-uuid/uuid"
"github.com/davecgh/go-spew/spew"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh"
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/ginkgo"
...
@@ -252,6 +252,7 @@ func waitForDefaultServiceAccountInNamespace(c *client.Client, namespace string)
...
@@ -252,6 +252,7 @@ func waitForDefaultServiceAccountInNamespace(c *client.Client, namespace string)
}
}
// createNS should be used by every test, note that we append a common prefix to the provided test name.
// createNS should be used by every test, note that we append a common prefix to the provided test name.
// Please see NewFramework instead of using this directly.
func
createTestingNS
(
baseName
string
,
c
*
client
.
Client
)
(
*
api
.
Namespace
,
error
)
{
func
createTestingNS
(
baseName
string
,
c
*
client
.
Client
)
(
*
api
.
Namespace
,
error
)
{
namespaceObj
:=
&
api
.
Namespace
{
namespaceObj
:=
&
api
.
Namespace
{
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
...
@@ -270,7 +271,7 @@ func waitForPodRunningInNamespace(c *client.Client, podName string, namespace st
...
@@ -270,7 +271,7 @@ func waitForPodRunningInNamespace(c *client.Client, podName string, namespace st
return
true
,
nil
return
true
,
nil
}
}
if
pod
.
Status
.
Phase
==
api
.
PodFailed
{
if
pod
.
Status
.
Phase
==
api
.
PodFailed
{
return
true
,
fmt
.
Errorf
(
"Giving up; pod went into failed status:
\n
%
#v"
,
pod
.
Status
)
return
true
,
fmt
.
Errorf
(
"Giving up; pod went into failed status:
\n
%
s"
,
spew
.
Sprintf
(
"%#v"
,
pod
)
)
}
}
return
false
,
nil
return
false
,
nil
})
})
...
...
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