Commit Graph

1075 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
14e5adfc85 Merge pull request #82683 from davidz627/fix/translationStruct
Refactor CSI Translation Library into a struct that is injected into various components to simplify unit testing
2019-09-29 10:11:37 -07:00
Kubernetes Prow Robot
39286f3962 Merge pull request #83255 from misterikkit/vsphere_stress
E2E: Add missing Bootstrap() call
2019-09-28 00:13:38 -07:00
John Schnake
2dab911ac2 Use imageutils instead of hardcoded image paths
A number of tests were using hardcoded image paths instead of
going through the imageutils package. The reason for centralizing
the logic there is to keep an eye on what images we use and where
they come from.
2019-09-27 15:01:08 -05:00
David Zhu
92cb06a2e7 Refactor CSI Translation Library into a struct that is injected into various components to simplify unit testing in future 2019-09-27 12:59:53 -07:00
Jonathan Basseri
378a074212 E2E: Add missing Bootstrap() call
One of the vsphere storage test suites was hitting a nil panic because
it did not call Bootstrap().
2019-09-27 11:01:27 -07:00
Jan Safranek
c1c0ba1c76 Use pod + nsenter instead of SSH in block volume tests
listPodVolumePluginDirectory was moved to break import cycle.
2019-09-25 13:34:27 +02:00
Kubernetes Prow Robot
ba690c0796 Merge pull request #82955 from misterikkit/vsphere-sc
storage E2E: test drivers must have DNS-1123 names
2019-09-20 20:07:51 -07:00
Kubernetes Prow Robot
4ed88d4232 Merge pull request #81819 from msau42/topology-e2es
add volume topology e2es
2019-09-20 20:07:25 -07:00
Jonathan Basseri
e47ddafa9f storage E2E: test drivers must have DNS-1123 names
Because driver names get used in some object names (e.g. StorageClass)
the driver name must be a valid DNS-1123 name.
2019-09-20 16:39:24 -07:00
Kubernetes Prow Robot
a7bd7a925d Merge pull request #82908 from ZP-AlwaysWin/dev06
Use framework.ExpectNotEqual()
2019-09-20 16:17:58 -07:00
Michelle Au
8d3abb83f9 Rename testCleanup to driverCleanup
Change-Id: I2ee50e2c7eed82724b7a2703819dcefcf7fa915f
2019-09-20 12:26:53 -07:00
Michelle Au
95c7b42340 add topology e2es to storage testsuite
Change-Id: I1ec4247cef5d477ae2a76136113a4ed5ce30bf44
2019-09-20 12:26:53 -07:00
ZP-AlwaysWin
59f766fe0a Use framework.ExpectEqual() 2019-09-20 11:36:03 +08:00
WanLinghao
a6f5d99409 Refactor and clean up e2e framework utils. This patch handles test/e2e/framework/pv_util.go file 2019-09-18 17:57:13 +08:00
Mucahit Kurt
f0aa13cd46 skip e2e tests that run on multi node cluster and require node independent volume for the drivers that does not support node independent volumes, like hostpath
Signed-off-by: Mucahit Kurt <mucahitkurt@gmail.com>
2019-09-13 22:49:53 +03:00
Kubernetes Prow Robot
043b96ee89 Merge pull request #82569 from calmkart/master
MOD:fix spelling errors
2019-09-11 22:53:06 -07:00
Kubernetes Prow Robot
7efc8e33d6 Merge pull request #82367 from jsafrane/cinder-block-tests
Enable block tests for Cinder
2019-09-11 15:27:07 -07:00
Kubernetes Prow Robot
411caaf469 Merge pull request #82324 from andyzhangx/fix-azure-pv-e2e-test
test: fix azure disk e2e test failure
2019-09-11 15:25:53 -07:00
Kubernetes Prow Robot
c12d8de141 Merge pull request #82245 from jsafrane/use-pause-for-race
Don't require any resources in race test
2019-09-11 10:42:02 -07:00
Kubernetes Prow Robot
caf21ac4ff Merge pull request #82241 from jsafrane/disable-cephfs-test
Mark Ceph tests as serial
2019-09-11 10:41:48 -07:00
Kubernetes Prow Robot
4b6c32c097 Merge pull request #82121 from Zhuzhenghao/typo/bound
Typo fix: binded -> bound
2019-09-11 10:39:28 -07:00
calmkart
00fcce9a58 MOD:fix spelling errors 2019-09-11 16:46:25 +08:00
calmkart
d558a89437 MOD:fix spelling errors 2019-09-11 15:59:15 +08:00
Sandeep Sunny
6b0748d3b5 Added e2e test to verify zone support across datacenters in the same vCenter 2019-09-10 23:14:41 -07:00
carlory
910bd000ff use log functions of core framework in the 'test/e2e/storage/*' 2019-09-06 10:26:16 +08:00
Jan Safranek
6a433ee5ba Enable block tests for Cinder
Cinder volume plugin has implemented block mode a long while ago.
2019-09-05 13:17:13 +02:00
andyzhangx
4c58dc3a56 test: fix azure disk test failure 2019-09-04 15:16:38 +00:00
Jan Safranek
1e602caea0 Don't require any resources in race test
The race test is interested only if all volumes are mounted and pod is
started, it does not need any special CPU.

It de-flakes the test when running on a tight node.
2019-09-02 17:49:13 +02:00
Jan Safranek
1ed97b62fa Mark Ceph tests as serial
The dummy Ceph RBD and CephFS server in test/images/volume/rbd can run only
once on a machine, therefore mark the tests as [Serial].
2019-09-02 15:46:37 +02:00
Kubernetes Prow Robot
263e871aa3 Merge pull request #82115 from humblec/dp-e2e-image
Migrate the e2e provisioner container image to a different location.
2019-08-30 09:39:54 -07:00
Kubernetes Prow Robot
b362655242 Merge pull request #81792 from j-griffith/move_cloning_to_beta
Promote VolumePVCDataSource to beta for 1.16
2019-08-29 13:31:25 -07:00
Kubernetes Prow Robot
cd9519fe95 Merge pull request #82004 from pohly/ephemeral-beta
ephemeral inline CSI volumes as beta
2019-08-29 09:30:25 -07:00
朱正浩,Zhu Zhenghao
aa20910e24 Typo fix: binded -> bound 2019-08-29 18:28:36 +08:00
Humble Chirammal
daa19ef44c Migrate the e2e provisioner container image to a different location.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-08-29 13:10:22 +05:30
Kubernetes Prow Robot
4ba225a541 Merge pull request #81486 from wongma7/aws-testdriver
Re-implement AWS test driver interfaces
2019-08-28 18:26:23 -07:00
Kubernetes Prow Robot
c4ccb623e8 Merge pull request #80247 from jsafrane/e2e-volume-limits
Add e2e test for CSI volume limits
2019-08-28 18:25:56 -07:00
Kubernetes Prow Robot
8b4fd4104d Merge pull request #81960 from pohly/ephemeral-tests
ephemeral volume tests
2019-08-28 12:02:07 -07:00
Kubernetes Prow Robot
8f17e46e5c Merge pull request #81943 from dims/update-import-aliases-for-1.16-test-e2e
Use preferred import packages for test/e2e
2019-08-28 05:11:25 -07:00
Patrick Ohly
5088b2ee2f e2e storage: read/write + read-only ephemeral inline volume test, data sharing
The assumption so far was that all drivers support read/write
volumes. That might not necessarily be true, so we have to let the
test driver specify it and then test accordingly.

Another aspect that is worth testing is whether the driver correctly
creates a new volume for each pod even if the volume attributes are
the same. However, drivers are not required to do that, so again we
have to let the test driver specify that.
2019-08-28 12:20:54 +02:00
Patrick Ohly
cead39cc97 e2e storage: wait for pod deletion
After deleting a pod, we need to be sure that it really is gone,
otherwise there is a race condition: if we remove the CSI driver that
is responsible for the volume used by the pod before the pod is
actually deleted, deleting the pod will fail.
2019-08-28 12:20:54 +02:00
Patrick Ohly
7d2ad805a9 e2e storage: multi-volume and multi-pod tests for inline ephemeral volumes
Multiple pods using the same data and multiple inline ephemeral
volumes per pod are additional cases that are worth checking.
2019-08-28 12:20:54 +02:00
Patrick Ohly
55334fb9e9 e2e storage: check NodeUnpublishVolume in csi-mock tests
Once we have deleted the pod and the volume, we want to be sure that
NodeUnpublishVolume was called for it. The main motivation was to
check this for inline ephemeral volumes, but the same additional check
also makes sense for other volumes.
2019-08-28 12:20:54 +02:00
Patrick Ohly
cf125a2db3 e2e storage: enable testing of ephemeral inline volumes with hostpath CSI driver
We need the 1.2.0 driver for that because that has support for
detecting the volume mode dynamically, and we need to deploy a
CSIDriver object which enables pod info (for the dynamic detection)
and both modes (to satisfy the new mode sanity check).
2019-08-28 12:20:54 +02:00
Patrick Ohly
6c6930a088 e2e storage: synchronize .yaml files with latest upstream releases
This ensures that the files are in sync with:
   hostpath: v1.2.0-rc3
   external-attacher: v2.0.1
   external-provisioner: v1.3.0
   external-resizer: v0.2.0
   external-snapshotter: v1.2.0

driver-registrar/rbac.yaml is obsolete because only
node-driver-registrar is in use now and does not need RBAC rules.

mock/e2e-test-rbac.yaml was not used anywhere.

The README.md files were updated to indicate that these really are
files copied from elsewhere. To avoid the need to constantly edit
these files on each update, <version> is used as placeholder in the URL.
2019-08-28 12:18:36 +02:00
Jan Safranek
90d09919e8 Add e2e test for volume limits
The test creates as many PVs and pods as the driver/plugin reports to support on a
single node.
2019-08-28 10:39:08 +02:00
Kubernetes Prow Robot
dccd28269a Merge pull request #81467 from bertinatto/e2e_volume_expand
Graduate Volume Expansion to Beta + e2e tests
2019-08-28 01:37:25 -07:00
Patrick Ohly
482a900e83 storage: make CSIInlineVolume a beta feature
The feature is complete and supported by an increasing number of CSI
drivers, but before it can be really used, it should be moved out of
alpha into beta.
2019-08-28 05:32:44 +02:00
Matthew Wong
7851929acf Re-implement AWS test driver interfaces 2019-08-27 11:01:38 -07:00
alejandrox1
7c161d6a5f Refactoring pod related functions from pv_util to pod pkg
Moving pod related functions from e2e/framework/pv_util.go to
e2e/framework/pod in order to allow refactoring of pv_util.go into its
own package.

Signed-off-by: alejandrox1 <alarcj137@gmail.com>
2019-08-27 12:27:45 -04:00
Fabio Bertinatto
81572e5254 Enable CSI e2e tests for volume expansion 2019-08-27 17:33:41 +02:00