Commit Graph

586 Commits (8b98e802eddb9f478ff7d991a2f72f60c165388a)

Author SHA1 Message Date
Yecheng Fu 513ae63bf6 Add a new stress test to replace old provisioner stress test 2019-01-23 13:49:41 +08:00
Yecheng Fu b7a33511e5 Clean up local volum provisioner e2e tests 2019-01-23 11:02:12 +08:00
Yecheng Fu e3bca51a57 Do not check events in e2e tests
events can be throttled and should not be used to validate failure
conditions in e2e tests
2019-01-22 18:24:29 +08:00
Jan Safranek 9ed73a948c Pass the test if event is not delivered 2019-01-21 17:03:10 +01:00
mrIncompetent cf7a8935af Use actual node hostname during test "EmptyDir Wrapper Volume, ConfigMap volumes, no race" 2019-01-16 14:39:00 +01:00
Cheng Xing 9864628c76 CSI topology e2e - fix space in Feature tag 2019-01-15 10:47:14 -08:00
Cheng Xing 12ece9dacb CSI topology e2e tests 2019-01-11 18:36:06 -08:00
Kubernetes Prow Robot 5acac9b3e2
Merge pull request #70439 from jsafrane/worlload-test
CSI: Add test for passing Pod information in NodePublish call
2019-01-07 12:08:51 -08:00
Jan Safranek e1556c1549 Fix hostpath driver name 2019-01-04 17:26:24 +01:00
Kubernetes Prow Robot a103bddc2a
Merge pull request #72354 from globervinodhn/conformance-slow
Remove SLOW tag from Probing container and EmptyDir Wrapper Volume
2019-01-03 20:21:53 -08:00
Michelle Au 6279515914 Add e2e test for removing the subpath directory 2019-01-03 16:35:54 -08:00
Kubernetes Prow Robot 47f2f7a53a
Merge pull request #72410 from pohly/storage-gcepd-config-fix
e2e/storage: reset driver config in the test suite
2019-01-03 15:51:44 -08:00
Tara Gu fb324249c2 Add test case for validate container cannot write to readonly volumes 2019-01-03 15:24:31 -05:00
Jan Safranek d617dcb1e0 CSI: Add test for passing Pod information in NodePublish call 2019-01-02 16:11:41 +01:00
globervinodhn b3217cc624 Remove SLOW tag from KUBEDESCRIBE and SIGDESCRIBE
Remove SLOW tag and update description for KUBEDESCRIBE(Probing container) and SIGDESCRIBE(EmptyDir Wrapper Volume)

Remove slow references for tests that execute below 5 minutes
2018-12-31 13:13:11 +05:30
Patrick Ohly 98ba1d8519 e2e/storage: reset driver config in the test suite
PR #70862 made each driver responsible for resetting its config, but
as it turned out, one place was missed in that PR: the in-tree gcepd
sets a node selector. Not resetting that caused other tests to fail
randomly depending on test execution order.

Now the test suite resets the config by taking a copy after setting up
the driver and restoring that copy before each test.

Long term the intention is to separate the entire test config from the
static driver info (https://github.com/kubernetes/kubernetes/issues/72288),
but for now resetting the config is the fastest way to fix the test flake.

Fixes: #72378
2018-12-28 22:44:09 +01:00
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