kubernetes/test/e2e/framework
Kubernetes Submit Queue 9f3e2010dc
Merge pull request #65117 from mkimuram/issue/56803v2
Automatic merge from submit-queue (batch tested with PRs 64593, 65117, 65629, 65827, 65686). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add e2e tests for volumeMode of persistent volume

This set of e2e tests is to confirm that persistent volume works well for all volumeModes.
Coverage of the tests are shown in the figure of [Test cases], below.

Once implementation policy is confirmed to be good, we can add plugins and test cases to this.
[Test cases]
```
 #   plugin      volumeMode    Test case                                                Expectation
--- ---------- -------------- ------------------------------------------------------ ------------
 1    iSCSI      Block         (a) Create Pod with PV and confirm Read/Write to PV    Success
 2    iSCSI      Block         (b) Create Pod and restart kubelet and confirm PV      Success
 3    iSCSI      Block         (c) Create Pod and restart kubelet while deleting PV   Success
 4    iSCSI      FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
 5    iSCSI      FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
 6    iSCSI      FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
 7    RBD        Block         (a) Create Pod with PV and confirm Read/Write to PV    Success
 8    RBD        Block         (b) Create Pod and restart kubelet and confirm PV      Success
 9    RBD        Block         (c) Create Pod and restart kubelet while deleting PV   Success
10    RBD        FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
11    RBD        FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
12    RBD        FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
13    CephFS     Block         (a) Create Pod with PV and confirm Read/Write to PV    Fail
14    CephFS     FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
15    CephFS     FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
16    CephFS     FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
17    NFS        Block         (a) Create Pod with PV and confirm Read/Write to PV    Fail
18    NFS        FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
19    NFS        FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
20    NFS        FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
```




**What this PR does / why we need it**:

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #56803

**Special notes for your reviewer**:
/sig storage
@gnufied  @rootfs @jsafrane @jeffvance 

This PR is intend to reflect the comments for the below PR.
https://github.com/kubernetes/kubernetes/pull/56804

**Release note**:

```release-note
NONE
```
2018-07-04 18:52:10 -07:00
..
ginkgowrapper update BUILD files 2017-10-15 18:18:13 -07:00
metrics Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
timer Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
authorizer_util.go PodSecurityPolicy E2E tests 2017-11-01 16:00:32 -07:00
BUILD Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
cleanup.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
crd_util.go apiextensions: make CreateNewCustomResourceDefinition return created CRD 2018-05-23 21:41:55 +02:00
deployment_util.go Fix breaking volume resize e2e tests 2018-05-25 15:32:44 -04:00
exec_util.go use core client with explicit version globally 2017-10-27 15:48:32 +08:00
firewall_util_test.go Test ports are covered by firewall 2018-02-05 16:54:15 -08:00
firewall_util.go Test ports are covered by firewall 2018-02-05 16:54:15 -08:00
framework.go Better log line in e2e 2018-06-07 17:01:49 -07:00
get-kubemark-resource-usage.go Correct spelling 2018-03-14 18:03:42 +08:00
google_compute.go Modified regional PD test to fetch template name from GCE 2018-05-29 15:51:24 -07:00
gpu_util.go Update URLs for nvidia gpu device plugin and nvidia driver installer. 2017-11-14 15:31:22 -08:00
ingress_utils.go address comments 2018-06-22 16:38:43 -07:00
jobs_util.go Remove kubectl reapers 2018-05-25 22:18:05 +02:00
kubelet_stats.go add e2e regression tests for the kubelet being secure 2018-06-12 17:05:27 +08:00
log_size_monitoring.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
metrics_util.go Merge pull request #65307 from shyamjvs/fix-scheduler-reset-metrics-bug 2018-06-22 03:08:13 -07:00
networking_utils.go Make various fixes to flex tests and fix some crashes 2018-06-29 11:10:26 -04:00
nodes_util.go Fix GKE Regional Clusters upgrade tests 2018-05-28 15:00:23 +02:00
perf_util.go Capture different parts of pod-startup latency as metrics 2018-03-21 16:58:25 +01:00
pods.go use core client with explicit version globally 2017-10-27 15:48:32 +08:00
profile_gatherer.go Refactor profile-gatherer to work across all master components 2018-06-22 12:11:56 +02:00
psp_util.go Promote sysctl annotations to API fields 2018-06-05 23:17:00 +02:00
pv_util.go Add e2e tests for volumeMode of persistent volume 2018-06-27 17:25:55 +00:00
rc_util.go Remove kubectl reapers 2018-05-25 22:18:05 +02:00
resource_usage_gatherer.go Add e2e tests for GPU monitoring. 2018-01-26 15:30:55 -08:00
rs_util.go test/e2e: Use apps/v1 Deployment/ReplicaSet. 2018-05-22 13:43:06 -07:00
service_util.go Remove kubectl reapers 2018-05-25 22:18:05 +02:00
size.go Support multizone clusters in GCE and GKE e2e tests 2017-11-10 15:29:15 +01:00
statefulset_utils.go Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
test_context.go Merge pull request #63780 from pohly/csi-e2e-parameters 2018-06-08 11:26:09 -07:00
upgrade_util.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
util.go Make various fixes to flex tests and fix some crashes 2018-06-29 11:10:26 -04:00
volume_util.go Add reliable wait for volume server startup. 2018-05-29 09:54:20 +02:00