Commit Graph

66 Commits

Author SHA1 Message Date
wojtekt
749922fa46 Cleanup SIGDescribe in test/e2e/network 2021-02-27 20:29:27 +01:00
Claudiu Belu
d37cbeb388 tests: Refactors agnhost image pod usage - network
A previous commit created a few agnhost related functions that creates agnhost
pods / containers for general purposes.

Refactors tests to use those functions.
2020-09-26 05:56:31 -07:00
Jefftree
ace97738e2 Update formatting of conformance comment 2020-07-29 20:50:44 -07:00
Kenichi Omichi
5c77461733 Move NewAgnhostPod() to e2e/network
because the function is called in e2e/network tests only.
2020-03-24 05:46:49 +00:00
tanjunchen
bed22fbb44 WaitForPodReady is simply wrapper functions for e2epod package,
and they made an invalid dependency to sub e2e framework from the core framework.

So we can use e2epod.WaitTimeoutForPodReadyInNamespace to remove invalid dependency.

The main purpose of this pr is to handle the framework core package dependency subpackage pod.
2020-03-22 23:08:52 +08:00
Kenichi Omichi
2c8955fd4a Use e2epod.WaitForPodNameRunningInNamespace directly
WaitForPod*() are just wrapper functions for e2epod package, and they
made an invalid dependency to sub e2e framework from the core framework.
So this replaces WaitForPodRunning() with the e2epod function.
2020-03-17 00:13:14 +00:00
Mike Danese
aaf855c1e6 deref all calls to metav1.NewDeleteOptions that are passed to clients.
This is gross but because NewDeleteOptions is used by various parts of
storage that still pass around pointers, the return type can't be
changed without significant refactoring within the apiserver. I think
this would be good to cleanup, but I want to minimize apiserver side
changes as much as possible in the client signature refactor.
2020-03-05 14:59:46 -08:00
Mike Danese
c58e69ec79 automated refactor 2020-03-05 14:59:46 -08:00
Claudiu Belu
c57f20b712 tests: Replaces dnsutils image used with agnhost (part 4)
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:

- dnsutils

dnsmasq is a Linux specific binary. In order for the tests to also
pass on Windows, CoreDNS should be used instead.
2020-02-26 21:51:23 -08:00
Mike Danese
25651408ae generated: run refactor 2020-02-08 12:30:21 -05:00
Mike Danese
3aa59f7f30 generated: run refactor 2020-02-07 18:16:47 -08:00
tanjunchen
586e1f2325 e2e/network/: Use e2eskipper package 2020-01-11 12:05:10 +08:00
tanjunchen
d51b72d9e9 fix staticcheck in test/e2e/network/ 2019-12-05 13:58:28 +08: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
Kubernetes Prow Robot
c449359119
Merge pull request #74977 from mgdevstack/master-conformance-pqdn
Promote DNS e2e verifying PQDN resolution for cluster
2019-09-26 14:39:36 -07:00
hwdef
af16366001 use log func in test/e2e/network 2019-09-13 17:54:51 +08:00
Mayank Gaikwad
eb07002d41 Promote PQDN for services DNS e2e to Conformance 2019-09-06 02:14:46 +05:30
Antonio Ojea
45d6f08868
Add a method to TestContext to check if is IPv6 2019-08-27 15:41:10 +02:00
Antonio Ojea
930a1321da
DNS e2e tests differentiate between IP family
The e2e DNS tests differentiate between IP family to
avoid false positives with dual stack clusters.
2019-08-27 12:57:40 +02:00
Mayank Gaikwad
78741f149a Modify dns e2e to individualise GCE specific dns checks into seperate e2e 2019-08-16 22:12:29 +05:30
draveness
c38ae01f8e feat: move service_util to separated package 2019-07-19 08:32:39 +08:00
SataQiu
332be4b1e3 refactor: replace framework.Failf with e2elog.Failf 2019-06-19 17:52:35 +08:00
Kubernetes Prow Robot
16bc6c1d02
Merge pull request #74982 from mgdevstack/promote-dns-hostname
Promote DNS e2e verifying DNS resolution for hostname and subdomain
2019-06-13 19:13:11 -07:00
SataQiu
d3a902ff5b e2e refactor: cleanup Logf form framework/util 2019-05-24 16:39:46 +08: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
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
Mayank Gaikwad
64f2c68948 Add [LinuxOnly] to e2e verifying PQDN resolution 2019-05-16 20:07:37 +05:30
toyoda
ba4119a07b use framework.ExpectNoError() for e2e/network 2019-05-15 13:33:13 +09:00
Mayank Gaikwad
fc2af0e5a4 Promote e2e verifying DNS resolution for o pod's fqdn, hostname and subdomain 2019-05-14 23:53:00 +05:30
Kubernetes Prow Robot
2926505fff
Merge pull request #77503 from mgdevstack/master-subdomain-e2e
Add subdomain entry to verify dns resolution
2019-05-13 23:19:07 -07:00
SataQiu
515f8342d3 fix golint failures of test/e2e/network 2019-05-11 22:29:40 +08:00
Kubernetes Prow Robot
eacae8540a
Merge pull request #76508 from bclau/tests/agnhost-custom-dns-test
tests: Adds configurable pod DNS nameservers and search list test
2019-05-07 14:30:49 -07:00
Mayank Gaikwad
831939b65e Add subdomain to verify dns resolution by subdomain 2019-05-06 16:47:02 +05:30
Kubernetes Prow Robot
a26709ecee
Merge pull request #76061 from towolf/dynamic-cluster.local
test/e2e/network: Honor --dns-domain in more places
2019-05-03 17:01:38 -07:00
Kubernetes Prow Robot
6f1fd17b7a
Merge pull request #77366 from johnSchnake/frameworkLogRefactoring
Move auth and network tests to use framework/log
2019-05-03 08:53:19 -07:00
Tobias Wolf
e3299d5f6a test/e2e/network: Honor --dns-domain in more places
Try to finish what commit 4c8a65ac01 started; that is, do not assume
cluster.local is a constant base domain, when it is configurable.

This makes DNS e2e tests pass with --dns-domain, which was only being honored
for some tests, not all

Signed-off-by: Tobias Wolf <towolf@gmail.com>
2019-05-03 17:02:16 +02:00
John Schnake
0c62f751b6 Move auth and network tests to use framework/log
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-03 08:41:21 -05:00
Kubernetes Prow Robot
75546a0166
Merge pull request #75591 from bclau/tests/split-hosts-entries
tests: Splits hostname from DNS test
2019-05-02 14:18:20 -07:00
Claudiu Belu
a7598c791f tests: Adds configurable pod DNS nameservers and search list test
This test creates a pod with custom DNS configurations and expects
them to be set in the containers.

The test pod is using the agnhost image, which can output the container's
DNS configurations that the test checks.
2019-05-01 20:52:20 -07:00
Mayank Gaikwad
8f5c3a2980 Promote DNS e2e verifying DNS resolution for externalName services 2019-03-27 10:45:59 +05:30
Claudiu Belu
06f115641c tests: Splits hostname from DNS test
At the moment, Windows cannot mount individual files into Containers, which means
that the Kubelet-managed hosts file cannot be mounted into the Container, causing
the "should provide DNS for pods for Hostname and Subdomain" test to fail.

The mentioned test has /etc/hosts file entry checks. This commits separates the
DNS check and the /etc/hosts checks into two tests.
2019-03-21 06:14:53 -07:00
Peter Hornyack
c88085dff2 Don't test metadata server connectivity from GCE Windows pods.
Windows containers do not include a route to the GCE metadata server by
default. This check is causing the "DNS should provide DNS for the
cluster" test to fail for clusters with Windows nodes
(https://testgrid.k8s.io/sig-windows#gce-windows-master&width=20).

Tested that this works by running "DNS should provide DNS for the
cluster" against an e2e cluster with Windows nodes brought up on GCE.
2019-03-07 17:51:17 -08:00
Kubernetes Prow Robot
a99d6cef86
Merge pull request #72729 from bclau/tests/split-dns-host-entries
tests: Separates DNS hosts entries test
2019-02-26 06:38:10 -08:00
Claudiu Belu
cb9c594f98 tests: Separates DNS hosts entries test
At the moment, Windows cannot mount individual files into Containers, which means
that the Kubelet-managed hosts file cannot be mounted into the Container, causing
the "should provide DNS for the cluster" test to fail.

This test separates the hosts entries checks from the mentioned test to a new test.
2019-02-06 15:41:57 -08:00
Nathan Gieseker
689db1b4cb removes incorrect dns name to resolve in dns test 2019-02-01 13:35:33 -08:00
Nathan Gieseker
1a7e07b618 Rebase, fixes format error, removes a host name from confomance test 2018-11-13 14:15:05 -08:00
Nathan Gieseker
ee73270915 Removes PQDNs from conformance tests and places them in their own tests 2018-11-13 13:59:18 -08:00
Sandeep Rajan
4c8a65ac01 configure cluster domain via flags 2018-11-01 12:27:54 -04:00
Louis Lepper
70650cbff4 Output more context with the log messages, and general style tweaks 2018-08-21 20:52:47 +10:00
Louis Lepper
624a5630f2 Make error messages more helpful in some e2e tests
Related to issues 34059 and 10322
2018-08-21 07:11:37 +10:00