Kenichi Omichi
6be4fd45a5
Move funcs of networking_utils to e2e network
...
Many functions of networking_utils are used at e2e network only.
To make e2e core framework small as possible for reducing invalid
dependencies to e2elog subpackage, this moves these functions to
e2e network tests.
2019-10-23 22:58:32 +00:00
Kenichi Omichi
a0c0130670
Move CreatePodOrFail()
...
CreatePodOrFail() is used at e2e network tests only, so this moves
the function to the e2e network tests.
2019-10-23 21:14:10 +00:00
wojtekt
bf34ba0cdf
Fix timeouts for networking tests in large clusters
2019-10-23 14:44:45 +02:00
Kubernetes Prow Robot
ba4adeff20
Merge pull request #84090 from oomichi/move-LaunchHostExecPod
...
Move LaunchHostExecPod() to e2e network
2019-10-20 17:47:37 -07:00
Kenichi Omichi
5285cf3eb2
Move LaunchHostExecPod() to e2e network
...
LaunchHostExecPod() is called only from e2e network.
So it is not necessary to keep the function as a part of e2e framework.
This moves it to the place which calls the function.
2019-10-18 17:29:01 +00:00
Dan Winship
52b366457f
Add Namespace to e2eservice.TestJig, make all methods use jig namespace and name
...
Many TestJig methods made the caller pass a serviceName argument, even
though the jig already has a name, and every caller was passing the
same name to each function as they had passed to NewTestJig().
Likewise, many methods made the caller pass a namespace argument, but
only a single test used more than one namespace, and it can easily be
rewritten to use two test jigs as well.
2019-10-18 08:37:19 -04:00
Dan Winship
a0ad420018
Make e2eservice.TestJig methods return errors rather than failing
...
This is the preferred style for framework methods, and it lets us
write tests to confirm that certain things *don't* work.
2019-10-18 08:36:40 -04:00
Dan Winship
4dcc6229b1
Call jig.SanityCheckService automatically after changes
2019-10-18 08:35:55 -04:00
Dan Winship
85ebedd93e
Remove an unneccessary e2eservice.TestJig method
2019-10-17 21:47:34 -04:00
Sascha Grunert
5a8b695fef
Validate AgnhostPod readyness status in e2e tests
...
We now additionally check if the agnhost pods are ready before
marking the pod as running to increase the overall test stability.
Relates to: https://github.com/kubernetes/kubernetes/pull/82420
Fixes: https://github.com/kubernetes/kubernetes/issues/82445
Signed-off-by: Sascha Grunert <sgrunert@suse.com >
2019-10-10 14:11:06 +02:00
Mayank Gaikwad
99475f9499
Update e2e testing nodePort service listening on same port but different protocols
2019-09-28 06:36:27 +05:30
Kubernetes Prow Robot
354a812086
Merge pull request #82171 from mgdevstack/linuxOnly-sessionAffinity
...
Add LinuxOnly tag to e2e testing session affinity
2019-09-26 16:55:50 -07:00
Dan Winship
3c445b2ad0
Add e2enode.GetBoundedReadySchedulableNodes, replace some uses of framework.GetReadySchedulableNodesOrDie
...
For tests that want at-most-N nodes
2019-09-24 13:03:40 -04:00
Dan Winship
71b02dd422
Fix up e2enode.GetReadySchedulableNodes, replace many uses of framework.GetReadySchedulableNodesOrDie
...
Remove the "OrDie" from the name (since it doesn't "or die") and add
an extra check that there is at least 1 node available, since many
callers already did that themselves, and many others should have.
2019-09-24 13:03:39 -04:00
Dan Winship
967fd5aaf0
e2e: test that both kube-proxy and kubelet recover after iptables flush
2019-09-15 15:34:24 -04:00
hwdef
af16366001
use log func in test/e2e/network
2019-09-13 17:54:51 +08:00
Dan Winship
c921c6893b
inline e2eservice.CreatePausePodDeployment into tests
...
This isn't a generically-useful helper; it's specific to 2 test cases.
2019-09-05 11:43:42 -04:00
Dan Winship
0b9fa1146f
Move a bunch of totally non-jiggy code out of e2eservice.TestJig
...
When test/e2e/framework/service was first created, a lot of service
test code got crammed into TestJig even though it didn't use any of
TestJig's members. Make that code available outside of TestJig.
2019-09-05 11:36:26 -04:00
Zihong Zheng
1f0ef69efc
Make sure loadbalancer service is deleted before exiting the test
2019-09-03 17:18:02 -07:00
Mayank Gaikwad
f5c6eba92d
Add LinuxOnly tag to e2e testing session affinity
2019-08-30 17:37:03 +05:30
Kubernetes Prow Robot
af54eae69a
Merge pull request #81612 from rikatz/issue81060
...
Remove watching Endpoints of Headless Services
2019-08-28 14:44:25 -07:00
Kubernetes Prow Robot
d7ecc85239
Merge pull request #81955 from danwinship/add-hairpin-test
...
e2e/network: add service hairpin test
2019-08-28 08:56:16 -07:00
Kubernetes Prow Robot
ab13cf1055
Merge pull request #81691 from MrHohn/svc-finalizer-beta
...
Promote service load balancer finalizer to Beta
2019-08-27 19:37:48 -07:00
Dan Winship
8d91e9e2b6
e2e/network: add service hairpin test
2019-08-26 14:47:43 -04:00
Ricardo Pchevuzinske Katz
6c30d23e6c
Remove watching Endpoints of Headless Services
...
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@serpro.gov.br >
2019-08-25 17:27:08 -03:00
Kubernetes Prow Robot
8dc4b1b585
Merge pull request #80213 from bclau/tests/skips-windows-unrelated-tests
...
tests: Skips Windows-unrelated tests on Windows
2019-08-23 20:56:25 -07:00
Kubernetes Prow Robot
c008cf95a9
Merge pull request #77865 from mgdevstack/promote-service-types-updates
...
Promote e2e verifying different types of services and their behaviours
2019-08-22 00:50:32 -07:00
Zihong Zheng
0a7c085b14
Check service finalizer on upgrade test and fix-up test cases
2019-08-21 15:19:56 -07:00
Claudiu Belu
8812720148
tests: Skips Windows-unrelated tests on Windows
...
Skips IPv6 tests on Windows.
Skips sysctl tests on Windows.
Skips network policy tests on Windows.
Skips RunAsUser / FSGroup / file permissions related tests, as those are
not supported on Windows.
Skips the test "should preserve source pod IP for traffic thru service cluster IP"
on Windows, as it creates a Pod with HostNetwork=true, which is unsupported.
What works and what doesn't work on Windows has been documented here:
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/conformance-tests.md#windows--linux-considerations
2019-08-20 14:19:14 -07:00
Guangming Wang
05d322bbb0
cleanup: fix typos in error message in e2e test
...
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io >
2019-08-15 22:34:25 +08:00
Mayank Gaikwad
7c64fc9d98
Promote e2e verifying service type updates
2019-08-14 16:07:59 +05:30
Kubernetes Prow Robot
43fa5ca693
Merge pull request #81087 from johnSchnake/addSkipsIfSSHNotPresent
...
Ensure tests which rely on SSH behavior are skipped if unavailable
2019-08-13 07:56:07 -07:00
Dan Winship
6a42e102b7
Inline/simplify two used-only-once service test helper functions
2019-08-12 09:51:54 -04:00
John Schnake
37212fa934
Ensure tests which rely on SSH behavior are skipped if unavailable
...
A number of tests rely on SSH behavior but are not marked with
SkipUnlessSSHKeysPresent(). This means that the tests will run and
hang. This can be confusing for users because they may not know why
the tests failed. Instead, we should be reporting on the known issue
and skipping the test (hence why the helper Skip... function exists).
2019-08-07 10:24:39 -05:00
Kubernetes Prow Robot
cc4301025d
Merge pull request #80655 from johnbelamaric/promote-nodeport-creation
...
Promote NodePort service creation e2e test to conformance
2019-08-06 23:56:50 -07:00
John Belamaric
60a51ce020
Promote NodePort service creation e2e test to conformance
2019-08-06 16:23:40 -07:00
Kubernetes Prow Robot
6278b90731
Merge pull request #80805 from mgdevstack/flaky-execPod
...
Fix failing service e2e due to execPod unavailability
2019-08-02 08:43:52 -07:00
Antonio Ojea
48f1756b93
Add IPv6 support to preserve source pod IP test
...
Co-Authored-By: Benjamin Elder <bentheelder@google.com >
2019-08-02 00:16:05 +02:00
Mayank Gaikwad
bf1597f665
Fix failing service e2e due to execPod IP unavailability
2019-08-01 08:34:22 +05:30
Mayank Gaikwad
1438a3c8fc
Add service reachability test util function and e2e fixes
2019-07-24 23:08:16 +05:30
draveness
c38ae01f8e
feat: move service_util to separated package
2019-07-19 08:32:39 +08:00
Jiatong Wang
e24a962821
Fix error log issue, remove OrDie suffix in methods naming
2019-07-17 23:18:21 -07:00
Jiatong Wang
0b37152f17
Refactor and Move node related methods to framework/node package
...
Signed-off-by: Jiatong Wang <wangjiatong@vmware.com >
2019-07-17 22:54:15 -07:00
Dan Winship
9f5e1a140d
Make service "no endpoints" test use agnhost connect
2019-07-12 07:25:37 -04:00
SataQiu
5234f2e668
e2e: use framework.ExpectEqual() for test/e2e/network
2019-07-05 11:05:09 +08: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
dc8b928136
Merge pull request #79162 from SataQiu/fix-test-20190619
...
Refactor: replace framework.Failf with e2elog.Failf
2019-06-21 12:17:04 -07:00
Kubernetes Prow Robot
ef03129821
Merge pull request #78396 from bclau/tests/reduce-to-agnhost-part-2
...
tests: Replaces images used with agnhost (part 2)
2019-06-19 21:10:48 -07:00
SataQiu
332be4b1e3
refactor: replace framework.Failf with e2elog.Failf
2019-06-19 17:52:35 +08:00
Kubernetes Prow Robot
9162d932cf
Merge pull request #78703 from MrHohn/svc-e2e-name-cleanup
...
[e2e] Make meaningful service name in test
2019-06-19 00:56:31 -07:00