Commit Graph

11188 Commits

Author SHA1 Message Date
Frank Jiao
049b652c35 Use framework.ExpectEqual() for e2e/cloud tests 2019-07-05 14:15:54 +08:00
SataQiu
5234f2e668 e2e: use framework.ExpectEqual() for test/e2e/network 2019-07-05 11:05:09 +08:00
Tomas Smetana
d4f43e8e19 e2e: Skip multi-node PV test when pods scheduled on the same node 2019-07-04 17:15:43 +02:00
Patrick Ohly
1822895ce2 update Bazel 2019-07-04 17:15:14 +02:00
Patrick Ohly
b86a007057 e2e: avoid mandatory command line flags
Tests should never directly add to the global command line, because
some users of the tests might not want them there. For example,
options might only get set directly from a config file.

To achieve that, e2e/framework/config, e2e/framework/viperconfig, and
e2e/framework/test_context.go avoid using the global flag set and
instead expect to be told by the caller which flag set to use. Tests
that called flag directly either get updated or obsolete flags get
removed.

The exception is framework.HandleFlags, which as before directly
implements global command line handling.

This is a breaking change for test suites which do not use that
function (and only those): they now need to ensure that they copy
individual flags from tests. Because the RegisterCommonFlags prototype
has changed, test suite authors will notice due to the resulting
compilation errors.
2019-07-04 17:15:14 +02:00
draveness
4c2e77a53e feat: use framework.ExpectEqual in storage e2e test 2019-07-04 22:24:29 +08:00
Patrick Ohly
3630cfca2b e2e: fix full path support when reading viper config file
Something changed in Viper such that it now returns the
ConfigFileNotFound error when the config file is not found, for
example when it is specified including the .yaml or .json suffix.
When the code was originally was written, it returned "Unsupported
Config Type".

Found when adding a unit test for this code (separate commit because
it depends on the flag changes).
2019-07-04 15:56:00 +02:00
SataQiu
03e4527a87 e2e: use framework.ExpectEqual() for test/e2e/node 2019-07-04 20:21:04 +08:00
s-ito-ts
e7752f72e4 Use framework.ExpectEqual() under e2e/scheduling 2019-07-04 08:51:24 +00:00
ClarkLee
867c88471f Use ExpectEqual in e2e/common 2019-07-04 13:50:19 +08:00
ClarkLee
b94b1672f9 Use ExpectEqual in e2e/auth 2019-07-04 11:41:20 +08:00
draveness
ff09cc5405 feat: use framework.ExpectEqual in upgrades and windows e2e test 2019-07-04 09:38:38 +08:00
draveness
36167cffd6 feat: use framework.ExpectEqual in servicecatalog e2e test 2019-07-04 09:07:27 +08:00
tanshanshan
2c130b236c Use ExpectEqual under apps 2019-07-04 08:43:42 +08:00
Kubernetes Prow Robot
3c675ade25 Merge pull request #79731 from rajansandeep/ptrtest
Edit google DNS hostname
2019-07-03 13:53:05 -07:00
Kubernetes Prow Robot
8765ed365f Merge pull request #79636 from liggitt/crd-preserve-unknown-openapi
Fix publishing x-kubernetes-preserve-unknown-fields working with kubectl
2019-07-03 12:29:52 -07:00
Yassine TIJANI
1efc45b790 consolidate etcd version
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-07-03 18:27:37 +02:00
Jordan Liggitt
990c656adb Test kubectl with x-kubernetes-preserve-unknown-fields 2019-07-03 12:18:05 -04:00
Kubernetes Prow Robot
3c38115a32 Merge pull request #79045 from odinuge/file-perms
Fix file permissions for non executable files
2019-07-03 09:12:45 -07:00
Sandeep Rajan
9e683fab30 edit google dns hostname 2019-07-03 10:40:16 -04:00
Anish Ramasekar
789920955a add e2e for dualstack
add test for network connectivity check

update tests

complete tests

Review feedback

run update-bazel

feature flag connectivity test

remove dead code

add todo
2019-07-02 22:47:03 -07:00
toyoda
5a5886035b Use ExpectEqual in e2e/kubectl 2019-07-03 13:55:19 +09:00
Kenichi Omichi
66b1dc230e Use ExpectEqual under e2e/apimachinery
Since https://github.com/kubernetes/kubernetes/pull/78922 ExpectEqual()
is implemented as test framework. This makes e2e tests use the function
under test/e2e/apimachinery.
2019-07-03 02:49:35 +00:00
Kubernetes Prow Robot
57416ef5ec Merge pull request #78177 from MaysaMacedo/add-more-e2e-np-tests
Increase Network Policy tests coverage
2019-07-02 14:27:12 -07:00
Jan Safranek
2a08bd64af Add public functions to define CSI external tests
3rd party test suites that want to include external CSI tests may not use
"flags" for cmdline parsing.
2019-07-02 12:01:55 +02:00
Kubernetes Prow Robot
b959e9a25a Merge pull request #79322 from s-ito-ts/e2e_ephemeral_storage
e2e test: change from milli bytes to bytes in ephemeral-storage resource limits
2019-07-02 00:57:08 -07:00
Kubernetes Prow Robot
cdddcf9b48 Merge pull request #71170 from atlassian/rand-cleanup2
Cleanup math/rand package usage
2019-07-01 21:33:08 -07:00
Kubernetes Prow Robot
da0f51ffed Merge pull request #78820 from haosdent/fix_typos
Fix typos.
2019-07-01 15:09:20 -07:00
Kubernetes Prow Robot
d3be556e1c Merge pull request #77150 from chardch/gpu-test-pod-number
Only create one pod per node with gpus in E2E test
2019-07-01 15:09:07 -07:00
Kubernetes Prow Robot
ce2836831f Merge pull request #76315 from globervinodhn/new_e2e_removejobpods
New E2E proposal: Validate that all the pods are removed when the job is deleted
2019-07-01 12:53:21 -07:00
Kubernetes Prow Robot
f2c4237605 Merge pull request #74847 from draveness/feature/filter-active-pods
refactor: use controller.FilterActivePods in test/e2e/framework/util.go
2019-07-01 11:07:20 -07:00
Kubernetes Prow Robot
8756e2c5e4 Merge pull request #79588 from wojtek-t/deprecate_scalability_tests
Deprecate scalability tests (we use ClusterLoader already)
2019-07-01 07:24:00 -07:00
Kubernetes Prow Robot
3f221551b6 Merge pull request #78728 from mborsz/firewall
Modify firewall rules names to make them shorter.
2019-07-01 07:23:34 -07:00
draveness
83e0d99614 refactor: use controller.FilterActivePods in framework e2e test 2019-07-01 18:12:02 +08:00
wojtekt
dcd064a482 Deprecate scalability tests 2019-07-01 09:15:15 +02:00
Kubernetes Prow Robot
8e55b5dd40 Merge pull request #79392 from Bowenislandsong/master
adding pre-condition for an e2e scheduler test
2019-06-28 12:43:44 -07:00
Kubernetes Prow Robot
d1d111496a Merge pull request #79238 from bclau/tests/reduce-to-agnhost-part-3
tests: Replaces images used with agnhost (part 3)
2019-06-28 12:43:19 -07:00
Bowen Song
d39453c35e Adding an if statement to check the number of worker nodes available before running a test that needs 2 nodes.
Checking avoids error assertion in function 'CreateHostPortPods' to fail.
2019-06-28 09:25:39 -04:00
Andrea Nodari
b31f5c7233 Fix golint failures related to docs 2019-06-28 12:31:06 +01:00
Andrea Nodari
35f6ad187b Fix golint failures for test/e2e/scalability 2019-06-28 12:31:06 +01:00
Mayank Gaikwad
49cc8ef60f Replace buzybox and pause pod image with agnhost 2019-06-28 07:44:31 +05:30
Kubernetes Prow Robot
f3a03f71af Merge pull request #79473 from wojtek-t/coordination_v1
Use coordination v1 API
2019-06-27 15:30:14 -07:00
Richard Chen
9368b2ce87 Only create one pod per gpu node in E2E test 2019-06-27 13:40:35 -07:00
wojtekt
e8ca50c43c Use coordination v1 API 2019-06-27 18:08:40 +02:00
Jan Safranek
d6077c717d Run sidecars for csi-mock as privileged
The driver and provisioner runs as privileged, so make all the other
sidecar containers privileged too.

This helps on system with SELinux, non-privileged container can't access
socket of a privileged one.
2019-06-27 13:39:14 +02:00
Claudiu Belu
c752ea8134 tests: Replaces images used with agnhost (part 3)
Quite a few images are only used a few times in a few tests. Thus,
the images are being centralized into the agnhost image, reducing
the number of images that have to be pulled and used.

This PR replaces the usage of the following images with agnhost:

- audit-proxy
- crd-conversion-webhook
- entrypoint-tester
- inclusterclient
- iperf
- porter
- serve-hostname
2019-06-26 13:33:55 -07:00
Claudiu Belu
6b7a641c96 tests: Fixes agnhost logs-generator usage
Cobra flags have 2 dashes, not 1.
2019-06-26 11:38:38 -07:00
Kubernetes Prow Robot
20e97a6b4b Merge pull request #79388 from aojea/e2e_ipv6_guestbook
Add ipv6 support to the e2e guestbook test
2019-06-25 19:25:13 -07:00
Kubernetes Prow Robot
ab618571b1 Merge pull request #78291 from goodluckbot/refactor-cleanup-e2e-statefulset-util
Refactor and cleanup for statefulset_utils.go
2019-06-25 18:15:26 -07:00
Kubernetes Prow Robot
5305532fcf Merge pull request #75243 from aojea/e2e_ipv6_dns
Add ipv6 support to the DNS e2e tests
2019-06-25 18:15:14 -07:00