k3s/pkg/cloudprovider/providers
Kubernetes Submit Queue 6823803772 Merge pull request #41239 from vmware/e2eTestsUpdate-v2
Automatic merge from submit-queue (batch tested with PRs 37137, 41506, 41239, 41511, 37953)

e2e test for storage class diskformat verification for vsphere cloud provider

**What this PR does / why we need it**:
This PR adds a new e2e test for vsphere cloud provider.
Test is to verify diskformat specified in storage-class is being honored while volume creation.

Steps:

1. Create StorageClass with diskformat set to valid type (supported options are `eagerzeroedthick`, `zeroedthick` and `thin`)
2. Create PVC which uses the StorageClass created in step 1.
3. Wait for PV to be provisioned.
4. Wait for PVC's status to become Bound
5. Create POD using PVC on specific node.
6. Wait for Disk to be attached to the node.
7. Get node VM's devices and find PV's Volume Disk.
8. Get Backing Info of the Volume Disk and obtain Property of `VirtualDiskFlatVer2BackingInfo` - `EagerlyScrub` and `ThinProvisioned`
9. Based on the value of `EagerlyScrub` and `ThinProvisioned`, verify if diskformat is correct.
10. Delete POD and Wait for Volume Disk to be detached from the Node.
11. Delete PVC, PV and Storage Class



**Which issue this PR fixes** *
fixes #

**Special notes for your reviewer**:
Test is executed against v1.6.0-alpha.1
Test is failing on v1.4.8

**Release Note**
```release-note
NONE
```
@kerneltime @BaluDontu @abrarshivani please review this PR
2017-02-15 20:05:09 -08:00
..
aws Fix AWS device allocator to only use valid device names 2017-02-14 22:33:26 -05:00
azure Set NetworkInterfaces and Subnets to nil before updating Azure security groups 2017-01-25 09:01:11 +01:00
cloudstack Merge pull request #36530 from apelisse/owners-pkg-cloudprovider 2017-01-18 18:40:53 -08:00
fake start the apimachinery repo 2017-01-11 09:09:48 -05:00
gce Merge pull request #41034 from rootfs/gce-instance 2017-02-14 09:11:25 -08:00
mesos Update generated files 2017-01-29 21:41:45 +01:00
openstack Merge pull request #39735 from NickrenREN/openstack-code-optimize 2017-02-15 03:25:16 -08:00
ovirt start the apimachinery repo 2017-01-11 09:09:48 -05:00
photon move pkg/util/rand 2017-01-16 16:04:03 -05:00
rackspace start the apimachinery repo 2017-01-11 09:09:48 -05:00
vsphere adding e2e test for storage class diskformat verification 2017-02-14 21:08:53 -08:00
BUILD Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
providers.go Support persistent volume on Photon Controller platform 2016-11-08 09:36:16 -08:00