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
e13fadcb
Commit
e13fadcb
authored
Aug 13, 2018
by
tanshanshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error in return value should be tested and fix Description Info
parent
62745905
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
vsphere_volume_master_restart.go
test/e2e/storage/vsphere/vsphere_volume_master_restart.go
+2
-2
vsphere_volume_node_poweroff.go
test/e2e/storage/vsphere/vsphere_volume_node_poweroff.go
+2
-0
No files found.
test/e2e/storage/vsphere/vsphere_volume_master_restart.go
View file @
e13fadcb
...
...
@@ -102,7 +102,7 @@ var _ = utils.SIGDescribe("Volume Attach Verify [Feature:vsphere][Serial][Disrup
pods
=
append
(
pods
,
pod
)
nodeName
:=
pod
.
Spec
.
NodeName
By
(
fmt
.
Sprintf
(
"Verify volume %s is attached to the
pod
%s"
,
volumePath
,
nodeName
))
By
(
fmt
.
Sprintf
(
"Verify volume %s is attached to the
node
%s"
,
volumePath
,
nodeName
))
expectVolumeToBeAttached
(
nodeName
,
volumePath
)
}
...
...
@@ -119,7 +119,7 @@ var _ = utils.SIGDescribe("Volume Attach Verify [Feature:vsphere][Serial][Disrup
volumePath
:=
volumePaths
[
i
]
nodeName
:=
pod
.
Spec
.
NodeName
By
(
fmt
.
Sprintf
(
"After master restart, verify volume %v is attached to the
pod
%v"
,
volumePath
,
nodeName
))
By
(
fmt
.
Sprintf
(
"After master restart, verify volume %v is attached to the
node
%v"
,
volumePath
,
nodeName
))
expectVolumeToBeAttached
(
nodeName
,
volumePath
)
By
(
fmt
.
Sprintf
(
"Deleting pod on node %s"
,
nodeName
))
...
...
test/e2e/storage/vsphere/vsphere_volume_node_poweroff.go
View file @
e13fadcb
...
...
@@ -94,10 +94,12 @@ var _ = utils.SIGDescribe("Node Poweroff [Feature:vsphere] [Slow] [Disruptive]",
By
(
"Creating a Deployment"
)
deployment
,
err
:=
framework
.
CreateDeployment
(
client
,
int32
(
1
),
map
[
string
]
string
{
"test"
:
"app"
},
nil
,
namespace
,
pvclaims
,
""
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
(),
fmt
.
Sprintf
(
"Failed to create Deployment with err: %v"
,
err
))
defer
client
.
ExtensionsV1beta1
()
.
Deployments
(
namespace
)
.
Delete
(
deployment
.
Name
,
&
metav1
.
DeleteOptions
{})
By
(
"Get pod from the deployement"
)
podList
,
err
:=
framework
.
GetPodsForDeployment
(
client
,
deployment
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
(),
fmt
.
Sprintf
(
"Failed to get pod from the deployement with err: %v"
,
err
))
Expect
(
podList
.
Items
)
.
NotTo
(
BeEmpty
())
pod
:=
podList
.
Items
[
0
]
node1
:=
pod
.
Spec
.
NodeName
...
...
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