Commit Graph

725 Commits

Author SHA1 Message Date
John Schnake
028df0451d Refactor of e2e/framework/authorizer_util.go
- moves these helper functions into e2e/framework/auth
 - removes logging from helper functions
 - in some cases explicitly returns errors that were implicitly
ignored/logged. In the situations where they should be ignored,
we explicitly check that the condition is met before ignoring it.
 - fixes references of these methods to use the right package and
return values
2019-04-17 16:39:37 -05:00
Kubernetes Prow Robot
8045a99a70 Merge pull request #76565 from xichengliudui/ends-With-Newline
Use fmt.printf() to end with a newline
2019-04-15 14:25:22 -07:00
SataQiu
252cabf155 [e2e] test/e2e/framework/volume_util.go -> test/e2e/framework/volume/fixtures.go 2019-04-13 16:58:37 +08:00
Kubernetes Prow Robot
cc368faa1b Merge pull request #73739 from jsafrane/parallelize-iscsi
Parallelize iSCSI tests
2019-04-12 12:56:47 -07:00
Jan Safranek
b18dba3794 Parallelize iSCSI tests
iSCSI target (=the server) is implemented in Linux kernel. The "iSCSI
server" pod is not a real server, it just configures the kernel on the
host. In order to run iSCSI tests in parallel, we need to be able to
run multiple such pods on a single node, serving different LUNs to
different tests.

The "server pod" must run with HostNetwork=true to achieve that.
Each pod then creates its own IQN with namespace name, so it can't
collide with other server pods running in another namespaces on the same
node.
2019-04-10 14:43:06 +02:00
aaa
433f86c6a7 Use fmt.printf() to end with a newline
update pull request

update pull request

update pull request
2019-04-10 07:43:54 -04:00
Jing Xu
208fbfe975 Fix test failures in volume provisioning
For windows, the command such as "mount" and "grep" do not work for
windows node, this PR is fix the test issue by removing those commands
and change it windows ones if the node OS is windows.

Change-Id: I2428128ee407b611067b8e7c000dfff539d17309
2019-04-08 16:10:36 -07:00
Kubernetes Prow Robot
23d7e489dd Merge pull request #75797 from atoato88/fix-golint-e2e-framework-v
Fix golint failures of e2e/framework/v*.go
2019-04-05 11:51:33 -07:00
Jan Safranek
fc8b8669d1 Don't run topology tests with GCE CSI driver on non-GCE cloud 2019-04-05 13:26:11 +02:00
Kubernetes Prow Robot
73c1e35491 Merge pull request #76174 from msau42/slow-e2es
Mark slow storage e2es
2019-04-04 19:37:19 -07:00
Michelle Au
ce7ac63916 Mark slow storage e2es 2019-04-04 18:01:22 -07:00
Kubernetes Prow Robot
8660288acd Merge pull request #76034 from mkimuram/issue/75775
Restore volume tests using statefulset
2019-04-04 17:48:07 -07:00
Akihito INOH
fad1ebc45f Fix golint failures of e2e/framework/v*.go
This fixes golint failures of the following file:
- test/e2e/framework/volume_util.go

This changes following file because of change function name
in above file.
- test/e2e/storage/testsuites/volumes.go
2019-04-05 06:16:13 +09:00
Masaki Kimura
b474b28f7b Use framework.ExpectNoError() for rest of under test/e2e/storage 2019-04-04 18:51:51 +00:00
Masaki Kimura
f2e39e42b8 Use framework.ExpectNoError() for test/e2e/storage/persistent_volumes.go 2019-04-04 18:42:36 +00:00
Masaki Kimura
15188268b4 Restore volume tests using statefulset 2019-04-04 18:42:36 +00:00
Michelle Au
db472c87a7 Add e2e tests 2019-04-03 12:03:26 -07:00
Kubernetes Prow Robot
25ffbe6338 Merge pull request #74274 from oomichi/use-ExpectNoError-for-e2e-storage
Use framework.ExpectNoError() for e2e/storage
2019-04-03 08:33:47 -07:00
Kubernetes Prow Robot
51db0fe21a Merge pull request #76030 from andrewsykim/e2e-legacyscheme
test/e2e: replace legacy scheme with client-go scheme
2019-04-02 22:47:53 -07:00
Kenichi Omichi
542b07cd6a Use framework.ExpectNoError() for e2e/storage
The e2e test framework has ExpectNoError() for readable test code.
This replaces Expect(err).NotTo(HaveOccurred()) with it for e2e/storage.
2019-04-02 16:20:35 +00:00
Andrew Sy Kim
4ac9feb7f9 test/e2e: replace legacy scheme with client-go scheme
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-04-02 10:08:55 -04:00
Cheng Xing
60c2885194 Regional PD failover e2e test: set pvc name explicitly instead of relying on GenerateName 2019-04-01 14:41:30 -07:00
Cheng Xing
d20845f635 Fixed storage class nilpointer in RePD failover test 2019-04-01 11:35:02 -07:00
Michelle Au
634be030a8 Fix provisioning tests to allow delayed binding 2019-03-29 15:00:26 -07:00
Michelle Au
bbf6683e22 Switch PD tests to use delayed binding 2019-03-27 18:30:13 -07:00
Kubernetes Prow Robot
e05be44808 Merge pull request #74693 from mkimuram/issue/74545
Add e2e tests for multiAttach
2019-03-26 20:44:48 -07:00
Cheng Xing
6a02ebb30c Updated regional PD minimum size; changed regional PD failover test to use StorageClassTest to generate PVC template 2019-03-26 14:23:08 -07:00
Jing Xu
221c673f31 Skip GlusterDynamicProvisioner test in GKE
The GlusterDynamicProvisioner test will not work on GKE because master
node is in a different project and cannot talk to the pod running on
node which is used for gluster provisioner. So add the code to skip the
test on GKE
2019-03-20 12:07:50 -07:00
Kubernetes Prow Robot
c67e16c74f Merge pull request #75272 from gnufied/add-pod-information-on-error
Add pod information when max volume condition is missing
2019-03-12 13:19:31 -07:00
Kubernetes Prow Robot
11b9ebf113 Merge pull request #75225 from jingxu97/pd_windows_test
Add bracket to the sig-window tag and other fixes
2019-03-12 13:19:19 -07:00
Jing Xu
3718f4e0ed Add bracket to the sig-window tag
Need to add bracket in the tag for sig-windows. Also fix an issue: for
current testing structure, it first init driver and then set up the
framework. So when initialize the driver, it does not know what OS is
and we can not set up the capabilities correctly. Instead we have to add
all the capabilities and supported fs types including both linux and
windows. Later in the code, we will check the Node OS and decide how to
run the test.
2019-03-11 18:40:45 -07:00
Hemant Kumar
cc61632255 Add pod information when max volume condition is missing 2019-03-11 17:11:56 -04:00
Kubernetes Prow Robot
01c9edf7fa Merge pull request #75133 from pohly/storage-external-snapshot
e2e: external snapshotter
2019-03-09 16:29:26 -08:00
Masaki Kimura
b4c88acec6 Add e2e tests for multiAttach 2019-03-09 00:26:00 +00:00
Hemant Kumar
a8f318779b Add CSI volume resizing tests
Add some tests for checking node expansion
Add new tests for expander
2019-03-08 09:23:18 -05:00
Kubernetes Prow Robot
788f24583e Merge pull request #74990 from jingxu97/pd_windows_test
Add GCE PD tests for windows cluster
2019-03-07 21:20:23 -08:00
Hemant Kumar
9d78c96e56 Fix volume attach limit flake
It looks like node does become unschedulable for the pod
but condition does not get added to the pod in time.

Also ginkgo could retry the test and hence it helps to use
unique node label for scheduling.
2019-03-07 12:35:52 -05:00
Jing Xu
18be0a49e6 Add GCE PD tests for windows cluster
This PR is the first one to add a few GCE PD tests for windows cluster. Will
add more tests in later PRs
2019-03-07 09:13:56 -08:00
Patrick Ohly
e84271ed8a e2e/storage: allow empty volume type
This can happen when the test pattern is about snapshotting.
2019-03-07 16:57:16 +01:00
Patrick Ohly
915d6365f1 e2e/storage: fix snapshot support in external driver testing
When using an already installed driver, the snapshot name is the
original driver name. Renaming was incorrectly copied from the in-tree
CSI hostpath driver.
2019-03-07 15:45:40 +01:00
Kubernetes Prow Robot
bf4e93da57 Merge pull request #75067 from msau42/csi-beta-e2e
make CSI PD tests serial
2019-03-07 02:23:12 -08:00
Kubernetes Prow Robot
6dbe98980f Merge pull request #74909 from NetApp/csi-raw-block-to-beta2
Promote CSI raw blocks to beta
2019-03-06 22:55:46 -08:00
Michelle Au
8b97e2ab7c make CSI PD tests serial 2019-03-06 15:11:50 -08:00
Patrick Ohly
6644db9914 e2e/storage: testing of external storage drivers
It is useful to apply the storage testsuite also to "external" (=
out-of-tree) storage drivers. One way of doing that is setting up a
custom E2E test suite, but that's still quite a bit of work.

An easier alternative is to parameterize the Kubernetes e2e.test
binary at runtime so that it instantiates the testsuite for one or
more drivers. Some parameters have to be provided before starting the
test because they define configuration and capabilities of the driver
and its storage backend that cannot be discovered at runtime. This is
done by populating the DriverDefinition with the content of the file
that the new -storage.testdriver parameters points to.

The universal .yaml and .json decoder from Kubernetes is used. It's
flexible, but has some downsides:
- currently ignores unknown fields (see https://github.com/kubernetes/kubernetes/pull/71589)
- poor error messages when fields have the wrong type

Storage drivers have to be installed in the test cluster before
starting e2e.test. Only tests involving dynamically provisioned
volumes are currently supported.
2019-03-06 22:06:31 +01:00
Ben Swartzlander
1493e684d3 Promote CSI raw blocks to beta 2019-03-06 13:43:52 -05:00
Kubernetes Prow Robot
c4fd78e7c9 Merge pull request #74993 from msau42/csi-beta-e2e
e2e test updates for CSIDriver and CSINode beta
2019-03-06 08:24:38 -08:00
Kubernetes Prow Robot
d99979f8b5 Merge pull request #75015 from cofyc/fix73168-disable-temporarily
Disable "should set different fsGroup for second pod if first pod is deleted" temporarily
2019-03-06 04:46:10 -08:00
Michelle Au
afbc8a5056 e2e test updates for beta 2019-03-05 20:24:59 -08:00
Yecheng Fu
05fe7094d5 Disable "should set different fsGroup for second pod if first pod is deleted" test temporarily 2019-03-06 10:46:17 +08:00
Michelle Au
b90ef213af don't check for container status ready in subpath test 2019-03-05 18:31:59 -08:00