Commit Graph

13613 Commits

Author SHA1 Message Date
Kenichi Omichi
63e0507fd9 Check e2e test code to use ExpectError()
We can use framework.ExpectError() for checking the expected error
happens. However Expect(err).To(HaveOccurred()) can be used instead
and that makes the e2e test code unreadable.
This adds the check to use framework.ExpectError() for readable code.
2019-05-29 17:04:58 +00:00
Kubernetes Prow Robot
3978d13d45
Merge pull request #78086 from lubinsz/pr_bzl_api
data attribute was missing for apiextensions-apiserver test cases
2019-05-29 09:44:38 -07:00
draveness
d6c600dac0 fix: use framework.ExpectNoError instead of gomega 2019-05-29 23:46:35 +08:00
Kubernetes Prow Robot
d8fd232ea1
Merge pull request #78327 from caesarxuchao/pointer-remainingItemCount
Make RemainingItemCount a pointer
2019-05-29 07:59:29 -07:00
Kubernetes Prow Robot
350c309da4
Merge pull request #78284 from SataQiu/test-e2e-refactor-20190524
[e2e] Refactor: cleanup Logf from framework/util
2019-05-29 05:33:15 -07:00
Kubernetes Prow Robot
dcf2dd332a
Merge pull request #77612 from oomichi/add-check-test-code
Add hack/verify-test-code.sh
2019-05-29 05:33:00 -07:00
Kubernetes Prow Robot
223809de3b
Merge pull request #78279 from k-toyoda-pi/replace_expecterror_e2e_a
Use framework.ExpectError() for e2e/a*
2019-05-29 03:11:16 -07:00
Kubernetes Prow Robot
51336deb4a
Merge pull request #78264 from tallclair/runasnonroot
Add RunAsNonRoot test
2019-05-29 03:10:50 -07:00
Kubernetes Prow Robot
cd9f430941
Merge pull request #78135 from liggitt/webhook-conversion
Convert to admission webhook-recognized versions
2019-05-29 00:52:36 -07:00
s-ito-ts
3492c81e12 Use framework.ExpectError() for e2e/common 2019-05-29 05:46:16 +00:00
Kubernetes Prow Robot
afba9c0355
Merge pull request #77877 from liggitt/deflake-integration
Wait for integration precondition
2019-05-28 22:21:12 -07:00
Kubernetes Prow Robot
65188f8690
Merge pull request #77852 from k-toyoda-pi/golint_test_e2e_common_p-r
Fix golint failures of test/e2e/common/[p-r]*
2019-05-28 22:21:00 -07:00
Zihong Zheng
a9ed5702be [e2e] Add tests for service load balancer finalizer 2019-05-28 11:32:24 -07:00
Jordan Liggitt
8c194ea615 Add webhook admission conversion test 2019-05-28 14:30:20 -04:00
Jordan Liggitt
145e8c46cf Make GetRemainingItemCount/SetRemainingItemCount use pointers 2019-05-28 10:37:06 -04:00
Maciej Szulik
85d8b0ce3f
Remove kubectl scale job 2019-05-28 15:24:38 +02:00
Kubernetes Prow Robot
b49d429f64
Merge pull request #78381 from qingsenLi/k8s-190527
fix a little spelling error
2019-05-28 01:02:57 -07:00
Kubernetes Prow Robot
cc5a87dba9
Merge pull request #78326 from roycaihw/crd-kubectl-e2e
fix test flake when kubectl e2e and crd-openapi e2e run in parallel
2019-05-28 01:02:43 -07:00
Kubernetes Prow Robot
470916d32d
Merge pull request #77922 from sttts/sttts-structural-crd-pruning-conversion-test
apiextensions: integration tests for pruning after conversion webhook
2019-05-28 01:02:00 -07:00
Haowei Cai
9808fa3d6c mitigate test flake when kubectl e2e and crd-openapi e2e run in parallel 2019-05-27 12:59:11 -07:00
qingsenLi
f98bbdec32 fix a little spelling error 2019-05-28 01:38:44 +08:00
SataQiu
a6e0614dd9 fix golint failures of test/e2e/chaosmonkey 2019-05-27 18:30:12 +08:00
Maysa Macedo
b6f73bc82a Increase coverage for e2e Network Policy tests 2019-05-27 02:59:56 -04:00
toyoda
028cd65db9 fix golint failure in e2e/common/[p-r]* 2019-05-27 08:57:02 +09:00
Kubernetes Prow Robot
16d33c4985
Merge pull request #78042 from oomichi/use-ExpectNoError-common2
Use framework.ExpectNoError() on e2e/common
2019-05-25 13:03:50 -07:00
Kubernetes Prow Robot
eaece39c86
Merge pull request #78323 from tallclair/docker
Add a special-cased runtime handler for dockershim
2019-05-25 09:01:50 -07:00
Dr. Stefan Schimanski
cd0b46874a apiextensions: add storage race TODO in CRD conversion e2e test 2019-05-25 17:57:04 +02:00
Chao Xu
e28a1072d9 Make ListMeta.RemainingItemCount a pointer (*int64) to make sure it's omitted
when serialized to proto.

The SetRemainingItemCount() and GetRemainingItemCount() still takes and
returns an int64 to make developers life easier.
2019-05-24 18:12:55 -07:00
Tim Allclair
19a588eeda Add a special-cased runtime handler for dockershim 2019-05-24 15:30:34 -07:00
Tim Allclair
c851c480d3 Move to debian-base non-root image 2019-05-24 11:57:43 -07:00
Sandeep Rajan
08e3fb5588 Add ready plugin to dns tests 2019-05-24 11:08:58 -04:00
SataQiu
d3a902ff5b e2e refactor: cleanup Logf form framework/util 2019-05-24 16:39:46 +08:00
toyoda
7acb1540a9 Use framework.ExpectError() for e2e/a* 2019-05-24 15:16:02 +09:00
Kubernetes Prow Robot
a07b027261
Merge pull request #77825 from roycaihw/crd-openapi-beta
Promote Publish CRD OpenAPI to beta
2019-05-23 22:24:31 -07:00
Morten Torkildsen
f1883c9e8c Support scale subresource for PDBs (#76294)
* Support scale subresource for PDBs

* Check group in finder functions

* Small fixes and more tests
2019-05-23 22:24:17 -07: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
Tim Allclair
6e78c5bdde Add RunAsNonRoot test 2019-05-23 12:23:04 -07:00
Kubernetes Prow Robot
d83805c479
Merge pull request #78194 from roycaihw/crd-openapi-e2e
Fix alpha CRD openapi e2e
2019-05-22 21:34:25 -07:00
Kubernetes Prow Robot
d1d6f64cda
Merge pull request #78198 from Random-Liu/node-e2e-service-account
Use default service account when creating test instance.
2019-05-22 20:06:23 -07:00
Kubernetes Prow Robot
367f135372
Merge pull request #78192 from Random-Liu/support-image-family-in-node-e2e
Support image family in node e2e image config file.
2019-05-22 13:52:38 -07:00
Kubernetes Prow Robot
4f33b5f421
Merge pull request #77820 from dims/charrywanganthony-pr-71835-delete-kubelet-security-controls
Remove deprecated Kubelet security controls
2019-05-22 13:52:25 -07:00
Haowei Cai
629bdf5e84 restore test behavior for CRD without validation cases
the test doesn't set empty validation but expects CRD controller to treat
nil schema specially and publish an empty schema
2019-05-22 12:16:08 -07:00
Haowei Cai
1cfed1cca6 fix crd openapi alpha e2e
make schema used in e2e structural so it can be published;
GET before UPDATE to tolerate object change
2019-05-22 12:14:55 -07:00
Jordan Liggitt
46b5573f78 Fix CRD e2e tests 2019-05-22 10:31:34 -04:00
Kenichi Omichi
496a18febc Add hack/verify-test-code.sh
This script checks coding style for test code.
It is useful to enforce developers to use framework methods for
keeping readable test code for example.
2019-05-22 14:15:25 +00:00
Kubernetes Prow Robot
6ab483b6fb
Merge pull request #78155 from qingsenLi/k8s-190521
remove unused const in test/integration
2019-05-22 04:01:05 -07:00
Kubernetes Prow Robot
3371378506
Merge pull request #78096 from SataQiu/fix-golint-test-20190520
Fix golint failures of test/e2e/storage/drivers
2019-05-22 04:00:52 -07:00
Kubernetes Prow Robot
ec0f8b843f
Merge pull request #77913 from s-ito-ts/golint_test_e2e_autoscaling
Fix golint failures of test/e2e/autoscaling
2019-05-22 04:00:25 -07:00
Kubernetes Prow Robot
c2633d8969
Merge pull request #77890 from oomichi/use-ExpectNoError-scalability
Use ExpectNoError() for scalability and scheduling
2019-05-22 02:40:25 -07:00
Lantao Liu
6bcad9cf71 Support image family in node e2e image config file.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-05-21 21:32:48 -07:00
Lantao Liu
cd33337ad9 Use default service account when creating test instance.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-05-21 21:09:04 -07:00
Kubernetes Prow Robot
2fd1556eb3
Merge pull request #77720 from jiatongw/e2e/framework/service_util
Move service_util endpoints related functions to framework/endpoints/ports.go
2019-05-21 11:40:21 -07:00
Kubernetes Prow Robot
ae2a1628f6
Merge pull request #75459 from wk8/wk8/gmsa_beta
Kubelet & API changes for Windows GMSA support
2019-05-21 11:40:08 -07:00
qingsenLi
7da5f2d3e6 remove unused const in test/integration 2019-05-22 00:51:52 +08:00
Kubernetes Prow Robot
fe0d89fc57
Merge pull request #78131 from sttts/sttts-e2e-CreateMultiVersionTestCRD-fix
e2e: fix CreateMultiVersionTestCRD version logic
2019-05-20 18:39:05 -07:00
Kubernetes Prow Robot
938041694c
Merge pull request #77554 from sttts/sttts-structural-publishing
apiextensions: publish (only) structural OpenAPI schemas
2019-05-20 18:38:39 -07:00
Kubernetes Prow Robot
b049dfaa59
Merge pull request #77343 from johnSchnake/removeGKE-SAR-404-path
GKE also requires SAR endpoints
2019-05-20 13:21:13 -07:00
Dr. Stefan Schimanski
9e04e778dd e2e: fix CreateMultiVersionTestCRD version logic 2019-05-20 22:07:02 +02:00
Jiatong Wang
76f76450ca Move service_util endpoints related to framework/endpoints
Signed-off-by: Jiatong Wang <wangjiatong@vmware.com>
2019-05-20 11:47:38 -07:00
SataQiu
b828e570b1 fix golint failures of test/e2e/storage/drivers 2019-05-20 13:12:38 +08:00
s-ito-ts
c101f40e18 Fix golint failures of test/e2e/autoscaling 2019-05-20 02:20:39 +00:00
Bin Lu
b121545b70 data attribute was missing for apiserver integration test cases
Signed-off-by: Bin Lu <bin.lu@arm.com>
2019-05-19 20:04:35 +08:00
Guoliang Wang
20f9c9940e Add Post-bind extension point to the scheduling framework 2019-05-19 18:12:16 +08:00
Kubernetes Prow Robot
0f31cc93b6
Merge pull request #74440 from yliaog/dynamic
Switched to use dynamic shared informer for Garbage Collector.
2019-05-18 12:23:12 -07:00
Kubernetes Prow Robot
df4f033a4f
Merge pull request #77501 from JieJhih/scheduling/plugin
add scheduling framework configuration
2019-05-18 03:39:12 -07:00
Dr. Stefan Schimanski
bc86aeba05 apiextensions: switch OpenAPI pubilshing to structural schema 2019-05-18 11:12:48 +02:00
Kubernetes Prow Robot
a7f13bcaf0
Merge pull request #77901 from k-toyoda-pi/use_expect_no_error_e2e_network_1
use framework.ExpectNoError() for e2e/network
2019-05-17 21:51:07 -07: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
Kubernetes Prow Robot
df8e241fb9
Merge pull request #76346 from caesarxuchao/delete-admission-objects
Sending existing object to the webhook for the DELETE verb
2019-05-17 20:26:22 -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
Yu Liao
05ebe91277 Switched to use dynamic shared informer for Garbage Collector. 2019-05-17 15:41:36 -07:00
JieJhih Jhang
2cd5fc54a1 add scheduling framework configuration
update bazel build

fix get plugin config method

initialize only needed plugins

fix unit test

fix import duplicate package

update bazel

add docstrings

add weight field to plugin

add plugin to v1alpha1

add plugins at appropriate extension points

remove todo statement

fix import package file path

set plugin json schema

add plugin unit test to option

initial plugin in test integration

initialize only needed plugins

update bazel

rename func

change plugins needed logic

remove v1 alias

change the comment

fix alias shorter

remove blank line

change docstrings

fix map bool to struct

add some docstrings

add unreserve plugin

fix docstrings

move variable inside the for loop

make if else statement cleaner

remove plugin config from reserve plugin unit test

add plugin config and reduce unnecessary options for unit test

update bazel

fix race condition

fix permit plugin integration

change plugins to be pointer

change weight to int32

fix package alias

initial queue sort plugin

rename unreserve plugin

redesign plugin struct

update docstrings

check queue sort plugin amount

fix error message

fix condition

change plugin struct

add disabled plugin for unit test

fix docstrings

handle nil plugin set
2019-05-18 06:30:28 +08:00
David Zhu
9854ecbeef Skips metrics gathering for test if not on gce, gke, or aws 2019-05-17 13:23:31 -07:00
Kubernetes Prow Robot
63e6cf3a0a
Merge pull request #78021 from s-ito-ts/77103_e2e_storage
Use framework.ExpectNoError() for e2e/storage/vsphere
2019-05-17 13:04:25 -07:00
Kubernetes Prow Robot
a4fc418c84
Merge pull request #76401 from chardch/gpu-job-with-recreate
E2E test for GPU job interrupted by node recreate
2019-05-17 13:04:12 -07:00
Kenichi Omichi
b17384acbe Use framework.ExpectNoError() on e2e/common 2019-05-17 17:30:38 +00: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
Jordan Liggitt
0b88095a17 Switch admission webhook test to work with shared etcd 2019-05-17 09:54:14 -07:00
Chao Xu
7bb4a3bace Run deleteValidation at the storage layer so that it will be retried on
conflict.

Adding unit test verify that deleteValidation is retried.

adding e2e test verifying the webhook can intercept configmap and custom
resource deletion, and the existing object is sent via the
admissionreview.OldObject.

update the admission integration test to verify that the existing object
is passed to the deletion admission webhook as oldObject, in case of an
immediate deletion and in case of an update-on-delete.
2019-05-17 09:54:11 -07:00
Kubernetes Prow Robot
46a80259f6
Merge pull request #77980 from SataQiu/fix-golint-test-20190516
Fix golint failures of test/e2e
2019-05-17 07:01:04 -07:00
Kubernetes Prow Robot
583fcb91ca
Merge pull request #77976 from soltysh/validate_true
Don't rely on defaults enforce flags we rely on in tests
2019-05-17 07:00:51 -07:00
Kubernetes Prow Robot
76c112ed06
Merge pull request #77965 from lubinsz/pr_bazel_dir
Bug fix: failed to run integration test by using bazel
2019-05-17 07:00:37 -07:00
Kubernetes Prow Robot
3193e78a2f
Merge pull request #77333 from sttts/sttts-structural-crd-pruning
apiextensions: implement structural schema CRD pruning
2019-05-17 05:38:05 -07:00
s-ito-ts
9357cecf54 Use framework.ExpectNoError() for e2e/storage/vsphere 2019-05-17 09:50:19 +00:00
Kubernetes Prow Robot
b10e16e8ec
Merge pull request #77955 from oomichi/use-ExpectNoError-upgrades
Use ExpectNoError() for e2e/upgrades
2019-05-17 02:04:58 -07:00
Kubernetes Prow Robot
27410955e2
Merge pull request #77952 from liggitt/delete-on-update
Handle updates removing remaining finalizers on deleted objects
2019-05-17 02:04:32 -07:00
Kubernetes Prow Robot
01f0be4901
Merge pull request #76639 from lubinsz/pr_bzl_arm64
Add an environment variable for bazel-test-integration on Arm
2019-05-17 02:04:06 -07:00
Dr. Stefan Schimanski
d10f8c1ad3 Update generated files 2019-05-17 09:35:10 +02:00
Dr. Stefan Schimanski
c6712455bd apiextensions: add pruning e2e & integration tests for admission webhooks 2019-05-17 09:35:10 +02:00
Dr. Stefan Schimanski
77bfddacfd apiextensions: add pruning integration tests 2019-05-17 09:35:10 +02:00
Kubernetes Prow Robot
dc462bd473
Merge pull request #77927 from sttts/sttts-e2e-util-crd-cleanup
e2e: cleanup test/util/crd to decouple tests
2019-05-16 20:40:04 -07:00
Kubernetes Prow Robot
abd35ad758
Merge pull request #77902 from s-ito-ts/77103_e2e_node
Use framework.ExpectNoError() for e2e/node
2019-05-16 20:39:39 -07:00
Bin Lu
5504d845ff Bug fix: failed to run integration test by using bazel
Signed-off-by: Bin Lu <bin.lu@arm.com>
2019-05-17 11:19:55 +08:00
Jean Rouge
b39d8f4777 Kubelet & implementation changes for Windows GMSA support
This patch comprises the kubelet changes outlined in the Windows GMSA KEP
(https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/20181221-windows-group-managed-service-accounts-for-container-identity.md)
to add GMSA support to Windows workloads.

Updated tests.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-05-16 22:07:03 -04:00
Kubernetes Prow Robot
dddb133c26
Merge pull request #77909 from k-toyoda-pi/use_expect_no_error_e2e_network_2
use framework.ExpectNoError() for e2e/network/ingress.go service.go
2019-05-16 16:27:19 -07:00
Kubernetes Prow Robot
6dfc996156
Merge pull request #77423 from apelisse/rollout-restart-other-workloads
Implement rollout restart for statefulset and daemonset
2019-05-16 16:27:06 -07:00
Kubernetes Prow Robot
109d61f844
Merge pull request #75758 from mgdevstack/pqdn-service-linuxonly
Add [LinuxOnly] tag to few e2e verifying dns resolution
2019-05-16 16:26:40 -07:00
Richard Chen
2a70a0b424 Add an e2e test for running a gpu job interrupted by node recreation. 2019-05-16 11:41:01 -07:00
chaowang
9ba0d47465
Remove deprecated Kubelet security controls
Change-Id: I9f770e6780b60e881092690f6f177d726f474fe3
2019-05-16 13:33:52 -04:00
Antoine Pelisse
145935d815 Implement rollout restart for statefulset and daemonset 2019-05-16 08:50:42 -07:00