kuryr-kubernetes/kuryr_kubernetes/tests/unit
Michał Dulko 44890a84d5 Set read timeout for any request in K8sClient
We're often contacting the K8s API through a loadbalancer (e.g. Octavia
LB in DevStack deployments, HAProxy in OpenShift) and we've often seen
they're able to drop connections silently, effectively leaving our
requests hanging forever. This got fixed in `K8sClient.watch` which
helped a lot, but we now seem to see it happening with other requests.
In order to make sure we won't block processing events for a resource
forever due to that, this commit adds read timeout to all the methods in
K8sClient.

Closes-Bug: 1897893
Change-Id: If1846ec78abc0840e7aba04565b220a1d20e5dc9
2020-09-30 14:34:46 +02:00
..
cmd Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
cni Pod annotations to KuryrPort CRD. 2020-07-29 23:50:17 +02:00
controller Merge "Leaks of loadbalancer" 2020-09-22 17:02:44 +00:00
handlers Merge "Tweak exponential backoff" 2020-07-14 20:04:52 +00:00
__init__.py K8s and Neutron clients support 2016-10-03 16:07:03 +00:00
kuryr_fixtures.py Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
test_clients.py Make _create_ports keys coherent with Neutron API. 2020-04-24 06:48:29 +00:00
test_k8s_client.py Set read timeout for any request in K8sClient 2020-09-30 14:34:46 +02:00
test_linux_net_utils.py Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
test_object.py Ensure security_groups on LBaaSLoadBalancer defaults to empty list 2020-06-01 10:57:05 +00:00
test_os_vif_plug_noop.py Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
test_os_vif_util.py Use unittest.mock instead of third party mock 2020-04-18 11:53:51 -05:00
test_utils.py Update loadbalancer CRD with service spec and rely on CRD 2020-07-30 21:56:43 +00:00
test_watcher.py Periodically fetch full list of watched resources 2020-06-30 12:31:32 +02:00