magnum/magnum/tests/unit/conductor
Mohammed Naser 6eb907cc89 Drop Kubernetes Python client dependency
We depend on the Kubernetes Python client for several things such as
health checks & metrics polling.  Those are both run inside periodic
jobs which spawn in greenthreads.

The Kubernetes API uses it's own thread pools which seem to use
native pools and cause several different deadlocks when it comes to
logging.  Since we don't make extensive use of the Kubernetes API
and we want something that doesn't use any threadpools, we can
simply use a simple wrapper using Requests.

This patch takes care of dropping the dependency and refactoring
all the code to use this simple mechansim instead, which should
reduce the overall dependency list as well as avoid any deadlock
issues which are present in the upstream client.

Change-Id: If0b7c96cb77bba0c79a678c9885622f1fe0f7ebc
2022-01-20 16:02:21 +00:00
..
handlers Add separated CA cert for etcd and front-proxy 2021-04-01 17:31:34 +00:00
tasks Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
__init__.py Make room for functional tests 2015-04-02 12:25:43 -04:00
test_k8s_api.py Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
test_monitors.py Drop Kubernetes Python client dependency 2022-01-20 16:02:21 +00:00
test_rpcapi.py Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
test_scale_manager.py Drop Kubernetes Python client dependency 2022-01-20 16:02:21 +00:00
test_utils.py Use unittest.mock instead of mock 2020-06-09 20:57:54 +02:00