Commit Graph

570 Commits

Author SHA1 Message Date
Patrick Ohly
ac8ac8ee6c e2e: update bazel BUILD files
Generated via hack/update-bazel.sh.
2018-12-21 10:30:10 +01:00
Patrick Ohly
3253e9ab6b e2e/storage: refactor test config
Exposing framework.VolumeTestConfig as part of the testsuite package
API was confusing because it was unclear which of the values in it
really have an effect. How it was set also was a bit awkward: a test
driver had a copy that had to be overwritten at test runtime and then
might have been updated and/or overwritten again by the driver.

Now testsuites has its own test config structure. It contains the
values that might have to be set dynamically at runtime. Instead of
overwriting a copy of that struct inside the test driver, the test
driver takes some common defaults (specifically, the framework pointer
and the prefix) when it gets initialized and then manages its own
copy. For example, the hostpath driver has to lock the pods to a
single node.

framework.VolumeTestConfig is still used internally and test drivers
can decide to run tests with a fully populated instance if needed (for
example, after setting up an NFS server).
2018-12-21 10:30:06 +01:00
Patrick Ohly
dfcf2ca345 e2e/storage: separate generic testsuites from specific drivers
This makes it possible to use the testsuites package out-of-tree
without pulling in unnecessary dependencies and code (in
test/e2e/storage/vsphere) that defines tests that are not wanted in a
custom test suite.
2018-12-20 13:41:48 +01:00
Patrick Ohly
41ab9449ed e2e/storage: drivers determine the claim size
Different drivers support different volume sizes. Some have certain
minimum sizes, some maximum sizes. Instead of hard-coding some kind of
default into the testsuites, now each driver that supports dynamic
provisioning has to provide the size.
2018-12-20 13:41:48 +01:00
Patrick Ohly
5349ce75fa e2e/storage: remove code duplication
The setup of the V0 hostpath driver was done with copy-and-paste and
then changing just the driver name and the manifests. The same can be
achieved by making the base struct a bit more configurable, which
simplifies future changes (less code).

Renaming the provisioner container was unnecessary and was reverted to
make it possible to use the same patch configuration.

While at it, also fix the InitHostV0PathCSIDriver typo.
2018-12-20 13:41:48 +01:00
Jordan Liggitt
0ff455e340 generated files 2018-12-19 11:19:12 -05:00
Jordan Liggitt
fd9e9b01b1 Remove uses of extensions/v1beta1 clients 2018-12-19 11:18:53 -05:00
Weibin Lin
842bd1e1ec update deployment, daemonset, replicaset, statefulset to apps/v1 2018-12-19 10:46:45 -05:00
Kubernetes Prow Robot
a5887009fc Merge pull request #68275 from tanshanshan/fixtypo-0905-2
nits in e2e test
2018-12-06 19:02:57 -08:00
Kubernetes Prow Robot
b5615259e5 Merge pull request #67511 from oomichi/add-debug-info
Add debugging info in pv/pvc protection e2e tests
2018-12-06 08:42:24 -08:00
Hemant Kumar
1570f39d9e We do not pass device path to unmount device
Also rename attachable-with-long-format file
2018-12-03 17:31:01 -05:00
Cheng Xing
87e4a460fb Volume exec file test: added NodeSelector to pod 2018-11-30 15:31:34 -08:00
k8s-ci-robot
06cc355b76 Merge pull request #71574 from msau42/remove-events-e2e
Check for subpath error in container status instead of pod events
2018-11-30 12:09:18 -08:00
k8s-ci-robot
3156df3e80 Merge pull request #71537 from davidz627/fix/updateGCE
Create cloud-sa on GCE PD Driver creation
2018-11-30 08:20:29 -08:00
k8s-ci-robot
0955c930be Merge pull request #70756 from msau42/add-io-exec-test
Add e2e test for file exec
2018-11-30 08:19:48 -08:00
k8s-ci-robot
9ebf53fffd Merge pull request #71480 from msau42/remove-legacy-flex-e2e
Remove legacy gci flex directory from e2e tests
2018-11-30 01:20:08 -08:00
Michelle Au
7571b7e100 Check for subpath error in container status instead of pod events 2018-11-29 15:57:02 -08:00
Michelle Au
03065a1bde Refactor driverinfo feature support into capabilities map 2018-11-29 11:10:06 -08:00
Michelle Au
8bb501bc70 Add e2e test for file exec 2018-11-29 11:08:15 -08:00
David Zhu
67a40cd3cc Do GCE Secret setup in driver creation instead of skip test 2018-11-29 10:51:01 -08:00
k8s-ci-robot
e5326f22ea Merge pull request #70471 from xichengliudui/fix181031
Fix some typos
2018-11-29 00:48:16 -08:00
Michelle Au
b02cada150 Revert "CSI: enhance driver tests to update the drivers." 2018-11-28 17:10:13 -08:00
k8s-ci-robot
3f47b4febd Merge pull request #70578 from jsafrane/csi-e2e-driver-update
CSI: enhance driver tests to update the drivers.
2018-11-28 05:20:45 -08:00
Masaki Kimura
bae2e8a5e3 Fix timeout for testPodFailSubpathError longer to avoid flake 2018-11-28 00:04:52 +00:00
Michelle Au
6032a1e2df Remove legacy gci flex directory from e2e tests 2018-11-27 15:10:37 -08:00
k8s-ci-robot
fad23990ce Merge pull request #71429 from gnufied/fix-detach-while-mount-flake
Fix flake with e2e test that checks detach while mount in progress
2018-11-26 16:57:21 -08:00
k8s-ci-robot
ce68cfa453 Merge pull request #71428 from mkimuram/issue/71383
Fix subpath test flake that is caused in testPodFailSubpathError
2018-11-26 15:43:33 -08:00
k8s-ci-robot
855f3fae5e Merge pull request #71235 from msau42/fix-hostpath-io
Fix io test to use unique file names and cleanup all files
2018-11-26 13:34:10 -08:00
Hemant Kumar
df88257ad8 Fix flake with e2e test that checks detach while mount in progress
A volume can show up as in-use even before it gets attached
to the node.
2018-11-26 15:28:05 -05:00
Masaki Kimura
790de995f3 Fix testPodFailSubpathError to make only WaitTimeoutForPodEvent wait 2018-11-26 17:29:25 +00:00
Jan Safranek
51fc7930d6 CSI: enhance driver tests to update the drivers.
We want to check that kubelet correctly handles driver update
on a node.
2018-11-26 12:45:01 +01:00
k8s-ci-robot
205eaee0e5 Merge pull request #71145 from gnufied/test-mounted-detach
Fix volume detach while mount in progress
2018-11-22 23:27:48 -08:00
saad-ali
aa8244beb5 Modify CSI to handle both 0.3 and 1.0
Modify the CSI volume plugin to handle CSI version 0.x as well as 1.x
2018-11-21 18:37:31 -08:00
Hemant Kumar
d2b6e30143 Fix bug with volume getting marked as not in-use with pending op
Add test for verifying volume detach
2018-11-20 11:58:47 -05:00
Michelle Au
11627ae134 Fix io test to use unique file names and cleanup all files 2018-11-19 15:09:27 -08:00
k8s-ci-robot
ec2e767e59 Merge pull request #71167 from msau42/block-beta
Promote raw block volume support to beta
2018-11-16 20:28:03 -08:00
Cheng Xing
b275ebb5a8 Revert "Make csi alpha failing test skip"
This reverts commit f98b87cac1.
2018-11-16 13:00:58 -08:00
Matthew Wong
bee759b925 Add volume mode downgrade test: should not mount/map in <1.13 2018-11-16 13:38:59 -05:00
Matthew Wong
0c671b1211 Remove [Feature:BlockVolume] everywhere 2018-11-16 13:38:59 -05:00
k8s-ci-robot
6fc60428a7 Merge pull request #71020 from saad-ali/updateCSI10
Bump CSI Spec to 1.0.0 and gRPC to 1.13.0
2018-11-16 01:53:21 -08:00
saad-ali
503f654d7a Update CSI tests to point to 1.0.0 external bits. 2018-11-15 20:01:50 -08:00
k8s-ci-robot
90245bec24 Merge pull request #70987 from pohly/storage-volume-testsuites-names
e2e/storage: distinct test names for provisioning
2018-11-15 15:00:21 -08:00
Jan Safranek
6fee3688a0 Rename tag for CSI skip attach tests
So it has the same name as alpha feature
2018-11-15 15:42:00 +01:00
k8s-ci-robot
5b76030760 Merge pull request #71039 from mkimuram/issue/70760hostpath
Fix CreateSecPodWithNodeName to properly set node to be deployed
2018-11-14 23:19:57 -08:00
Patrick Ohly
7efad66ae8 e2e/storage: distinct test names for provisioning
A test name should not be the subset of another, because then it is
impossible to focus on it.

In this case, -ginkgo.focus=should.provision.storage ran both "should
provision storage" and "should provision storage with mount options"
without the ability to select just the former.
2018-11-14 19:37:58 +01:00
Masaki Kimura
6a94656d0e Fix CreateSecPodWithNodeName to properly set node to be deployed 2018-11-14 16:10:14 +00:00
k8s-ci-robot
cbcd6bf444 Merge pull request #70989 from pohly/storage-volume-testsuites-fmt
e2e/storage: avoid fmt.Sprintf for single string
2018-11-14 08:08:03 -08:00
Michelle Au
63068be7ef Remove serial from gcepd-external tests 2018-11-13 16:42:57 -08:00
Patrick Ohly
89193ac0fd e2e/storage: avoid fmt.Sprintf for single string
The fmt.Sprintf call is either redundant (if the format string
contains no format characters) or broken (if it does, because there
are no parameters).
2018-11-13 10:43:19 +01:00
k8s-ci-robot
0ca67bde54 Merge pull request #70362 from ddebroy/ddebroy-multi-pvc
Add multi PVC versions of e2e tests for WaitForFirstConsumer
2018-11-12 03:14:39 -08:00