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
b9ca7384
Commit
b9ca7384
authored
Oct 06, 2016
by
Mac Browning
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
annotate errors in e2e tests
parent
617fa912
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
addon_update.go
test/e2e/addon_update.go
+4
-4
configmap.go
test/e2e/common/configmap.go
+1
-1
downwardapi_volume.go
test/e2e/common/downwardapi_volume.go
+1
-1
pods.go
test/e2e/common/pods.go
+1
-1
No files found.
test/e2e/addon_update.go
View file @
b9ca7384
...
...
@@ -206,7 +206,7 @@ var _ = framework.KubeDescribe("Addon update", func() {
var
err
error
sshClient
,
err
=
getMasterSSHClient
()
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
()
,
"Failed to get the master SSH client."
)
})
AfterEach
(
func
()
{
...
...
@@ -252,7 +252,7 @@ var _ = framework.KubeDescribe("Addon update", func() {
for
_
,
p
:=
range
remoteFiles
{
err
:=
writeRemoteFile
(
sshClient
,
p
.
data
,
temporaryRemotePath
,
p
.
fileName
,
0644
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
()
,
"Failed to write file %q at remote path %q with ssh client %+v"
,
p
.
fileName
,
temporaryRemotePath
,
sshClient
)
}
// directory on kubernetes-master
...
...
@@ -261,7 +261,7 @@ var _ = framework.KubeDescribe("Addon update", func() {
// cleanup from previous tests
_
,
_
,
_
,
err
:=
sshExec
(
sshClient
,
fmt
.
Sprintf
(
"sudo rm -rf %s"
,
destinationDirPrefix
))
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
()
,
"Failed to remove remote dir %q with ssh client %+v"
,
destinationDirPrefix
,
sshClient
)
defer
sshExec
(
sshClient
,
fmt
.
Sprintf
(
"sudo rm -rf %s"
,
destinationDirPrefix
))
// ignore result in cleanup
sshExecAndVerify
(
sshClient
,
fmt
.
Sprintf
(
"sudo mkdir -p %s"
,
destinationDir
))
...
...
@@ -352,7 +352,7 @@ func getMasterSSHClient() (*ssh.Client, error) {
func
sshExecAndVerify
(
client
*
ssh
.
Client
,
cmd
string
)
{
_
,
_
,
rc
,
err
:=
sshExec
(
client
,
cmd
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
()
,
"Failed to execute %q with ssh client %+v"
,
cmd
,
client
)
Expect
(
rc
)
.
To
(
Equal
(
0
),
"error return code from executing command on the cluster: %s"
,
cmd
)
}
...
...
test/e2e/common/configmap.go
View file @
b9ca7384
...
...
@@ -153,7 +153,7 @@ var _ = framework.KubeDescribe("ConfigMap", func() {
configMap
.
ResourceVersion
=
""
// to force update
configMap
.
Data
[
"data-1"
]
=
"value-2"
_
,
err
=
f
.
Client
.
ConfigMaps
(
f
.
Namespace
.
Name
)
.
Update
(
configMap
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
()
,
"Failed to update configmap %q in namespace %q"
,
configMap
.
Name
,
f
.
Namespace
.
Name
)
By
(
"waiting to observe update in volume"
)
Eventually
(
pollLogs
,
podLogTimeout
,
framework
.
Poll
)
.
Should
(
ContainSubstring
(
"value-2"
))
...
...
test/e2e/common/downwardapi_volume.go
View file @
b9ca7384
...
...
@@ -127,7 +127,7 @@ var _ = framework.KubeDescribe("Downward API volume", func() {
podClient
.
CreateSync
(
pod
)
pod
,
err
:=
podClient
.
Get
(
pod
.
Name
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
()
,
"Failed to get pod %q"
,
pod
.
Name
)
Eventually
(
func
()
(
string
,
error
)
{
return
framework
.
GetPodLogs
(
f
.
Client
,
f
.
Namespace
.
Name
,
pod
.
Name
,
containerName
)
...
...
test/e2e/common/pods.go
View file @
b9ca7384
...
...
@@ -56,7 +56,7 @@ func testHostIP(podClient *framework.PodClient, pod *api.Pod) {
t
:=
time
.
Now
()
for
{
p
,
err
:=
podClient
.
Get
(
pod
.
Name
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
()
,
"Failed to get pod %q"
,
pod
.
Name
)
if
p
.
Status
.
HostIP
!=
""
{
framework
.
Logf
(
"Pod %s has hostIP: %s"
,
p
.
Name
,
p
.
Status
.
HostIP
)
break
...
...
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