Commit Graph

767 Commits (52f3380ef3a5d5de4d75ff92defd1c9af9d775bc)

Author SHA1 Message Date
Kubernetes Prow Robot 13ec0e2bb9
Merge pull request #78478 from draveness/feature/use-framework-expect-no-error
fix: use framework.ExpectNoError instead of gomega
2019-05-30 04:55:01 -07:00
Kubernetes Prow Robot 60248990a8
Merge pull request #78051 from davidz627/fix/skipMetrics
Skips metrics gathering for test if not on gce, gke, or aws
2019-05-29 17:24:33 -07:00
draveness d6c600dac0 fix: use framework.ExpectNoError instead of gomega 2019-05-29 23:46:35 +08:00
Kubernetes Prow Robot 8c94f4daed
Merge pull request #78058 from verult/skip-leaking-pd
CSI migration e2e: do not skip tests if metricsGrabber.HasRegisteredM…
2019-05-23 14:48:20 -07:00
SataQiu b828e570b1 fix golint failures of test/e2e/storage/drivers 2019-05-20 13:12:38 +08:00
Kubernetes Prow Robot 21448ea606
Merge pull request #77220 from jingxu97/March/windows_test
Update subpath e2e test for windows
2019-05-17 20:26:46 -07:00
Cheng Xing eead54985d CSI migration e2e: do not skip tests if metricsGrabber.HasRegisteredMaster() is true 2019-05-17 16:52:06 -07:00
David Zhu 9854ecbeef Skips metrics gathering for test if not on gce, gke, or aws 2019-05-17 13:23:31 -07:00
Jing Xu e570d27b40 Update subpath e2e test for windows
Modify the current subpath e2e file to allow it run in windows clusters.

Change-Id: I921dfbbae9480c718853a97a76cc0a95b1af9790
2019-05-17 10:13:41 -07:00
s-ito-ts 9357cecf54 Use framework.ExpectNoError() for e2e/storage/vsphere 2019-05-17 09:50:19 +00:00
SataQiu 01d38fec16 fix golint failures of test/e2e/storage 2019-05-11 23:30:17 +08:00
danielqsj 629ec7e113 replace test error checking with more readable way 2019-05-10 13:58:09 +08:00
danielqsj 1058877fbf remove dot imports in e2e/storage 2019-05-10 13:56:26 +08:00
danielqsj 8a6fede9e6 remove dot imports in e2e/storage/vsphere 2019-05-10 13:56:16 +08:00
Kubernetes Prow Robot 69b52633cc
Merge pull request #77605 from pohly/multivolume-storage-class-fix
Multivolume storage class fix
2019-05-09 15:48:22 -07:00
Kubernetes Prow Robot b27fe7f4b9
Merge pull request #74314 from oomichi/add-ExpectError
Add ExpectError() to e2e test framework
2019-05-09 15:47:57 -07:00
Patrick Ohly 093027c891 e2e/storage: ensure that also external storage classes are unique
One previously undocumented expectation is that
GetDynamicProvisionStorageClass can be called more than once per test
and then each time returns a new, unique storage class. The in-memory
implementation in driveroperations.go:GetStorageClass ensured that,
but loading from a .yaml file didn't. This caused the multivolume tests
to fail when applied to an already installed GCE driver with the
-storage.testdriver parameter.
2019-05-09 08:53:25 +02:00
Kubernetes Prow Robot b3875556b0
Merge pull request #77336 from johnSchnake/refactorFrameworkSSH
Move ssh code to new package
2019-05-08 13:06:47 -07:00
Kenichi Omichi 436544488b Add ExpectError() to e2e test framework
There is a lot of gomega.Expect(err).To(gomega.HaveOccurred()) callers
which expect an error happens in e2e tests.
However these test code seems confusing because the code readers
need to take care of To() or NotTo() on each test scenario.
This adds ExpectError() for more readable test code.
In addition, this applies ExpectError() to e2e provisioning.go as a
sample.
2019-05-08 17:40:12 +00:00
Daniel (Shijun) Qian 5268f69405 fix duplicated imports of k8s code (#77484)
* fix duplicated imports of api/core/v1

* fix duplicated imports of client-go/kubernetes

* fix duplicated imports of rest code

* change import name to more reasonable
2019-05-08 10:12:47 -07:00
John Schnake 338bc3ce42 Move framework ssh code to new package
The framework/ssh.go code was heavily used throughout the framework
and could be useful elsewhere but reusing those methods requires
importing all of the framework.

Extracting these methods to their own package for reuse.

Only a few methods had to be copied into this package from the
rest of the framework to avoid an import cycle.
2019-05-08 11:00:36 -05:00
Kubernetes Prow Robot 8fa775e546
Merge pull request #75187 from subramanian-neelakantan/host_to_create_volume
Use any host that mounts the datastore to create Volume
2019-05-07 08:15:54 -07:00
Johannes M. Scheuermann d59c67871c Remove unused code from CSI e2e tests 2019-05-06 21:59:09 +02:00
John Schnake a6f5ebf831 Move storage tests to use the framework/log package
This is part of the transition to using framework/log instead
of the Logf inside the framework package. This will help with
import size/cycles when importing the framework or subpackages.
2019-05-04 12:50:38 -05:00
Jorge Alarcon Ochoa dc619067d9 Refeactored framework deployment utils
This is the continuation of the refactoring of framework/deployment_utils.go
into framework/deployment.

Signed-off-by: Jorge Alarcon Ochoa <alarcj137@gmail.com>
2019-05-03 18:00:53 -04:00
Subramanian Neelakantan 18922a3c44 Use any host that mounts the datastore to create Volume
Also, This change makes zone to work per datacenter and cleans up dummy vms.
There can be multiple datastores found for a given name. The datastore name is
unique only within a datacenter. So this commit returns a list of datastores
for a given datastore name in FindDatastoreByName() method. The calles are
responsible to handle or find the right datastore to use among those returned.
2019-05-03 16:42:41 +05:30
Kubernetes Prow Robot 9e52832c52
Merge pull request #77317 from gnufied/fix-block-volume-resizing
Fix block volume expansion
2019-05-01 20:42:56 -07:00
Hemant Kumar 0eb68c5a22 Fix blockvolume expansion 2019-05-01 18:25:54 -04:00
Kubernetes Prow Robot 5189f24a75
Merge pull request #77315 from msau42/external-e2e
add multivolume suite to external storage test suite
2019-05-01 14:33:08 -07:00
Kubernetes Prow Robot 2b561456ce
Merge pull request #77101 from davidz627/feature/migrationTest
Add testing infra for checking whether an in-tree plugin is using backend that is shimmed to CSI
2019-05-01 14:32:30 -07:00
Michelle Au bb8c1b144c add multivolume suite to external storage test suite
Change-Id: I59e529956e8cd40a948b2d21395b4b3c33b212bf
2019-05-01 11:35:46 -07:00
David Zhu 1271237d23 Add migration metrics checking to all test suites 2019-05-01 11:24:03 -07:00
Kubernetes Prow Robot aedebb23aa
Merge pull request #77233 from msau42/remove-pd-external
remove pd-external from e2e config
2019-04-30 14:11:37 -07:00
Michelle Au 80471bf487 remove pd-external from e2e config
Change-Id: I1d734fcc8e8145e586b5df9acd0736c7ba0658d1
2019-04-29 15:25:14 -07:00
David Zhu 213cc99ead Operation generator migration metric fixes and test metrics retrieval code 2019-04-25 16:27:45 -07:00
Kubernetes Prow Robot e4a57b77ec
Merge pull request #76719 from bertinatto/fix_vsphere_size
Fix Vsphere rouding up of volume size
2019-04-24 16:50:46 -07:00
Fabio Bertinatto d98db30d15 Change Vsphere e2e test to verify rounded PV size instead 2019-04-24 13:42:16 +02:00
Matthew Wong 51db6cb093 Use e2e.test instead of test/e2e in example invocations 2019-04-23 15:59:54 -04:00
Kubernetes Prow Robot dc08b6b275
Merge pull request #76625 from gnufied/skip-if-no-default-sc
Skip storage tests that depend on default SC - if no default SC is found
2019-04-22 14:37:45 -07:00
Hemant Kumar 6fee8a7727 Skip pvc protection tests if no default SC is found
Other tests that check for default storageclass also
check for cloudprovider such as gce, aws and openstack
and hence are already skipped in bare metal environments.

But this particular test keeps failing because no such check exists.
2019-04-22 14:51:04 -04:00
Kubernetes Prow Robot 29163600fe
Merge pull request #76796 from dims/remove-unused-methods
Remove unused code
2019-04-19 11:09:55 -07:00
Davanum Srinivas 7b8c9acc09
remove unused code
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
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