magnum/magnum/tests/unit
Bharat Kunwar 55fd12a47c [fix] Use default_ng_worker.node_count for patches
At present, when a cluster is patched without node_count (e.g. when
health_status and health_status_reason are patched), the node_count in
the cluster_update invocation contains cluster.node_count instead of
default_ng_worker.node_count which causes unexpected behaviour when a
cluster has additional nodegroups (e.g. the default-worker size gets
incremented by 1 if the additional nodegroup has 1 worker each time the
cluster is patched).

This PS fixes this issue by using default_ng_worker.node_count if path
"/node_count" is not present in the patch object.

Story: 2005266
Task: 39962

Change-Id: I0df5149860604f0adf52701df371e34a6e667b9d
2020-06-11 10:30:21 +00:00
..
api [fix] Use default_ng_worker.node_count for patches 2020-06-11 10:30:21 +00:00
cmd Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
common [K8S] Delete all related load balancers before deleting cluster 2020-05-12 09:48:11 +00:00
conductor Merge "[k8s] Add label 'master_lb_allowed_cidrs'" 2020-05-15 07:50:59 +00:00
conf Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
db [k8s] Support updating k8s cluster health status 2020-04-09 16:59:26 +12:00
drivers [k8s] Use Helm v3 by default 2020-05-26 15:23:14 +00:00
objects Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
service Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
servicegroup Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
template Centralize config option: paths section 2016-09-22 05:56:53 +00:00
__init__.py Make room for functional tests 2015-04-02 12:25:43 -04:00
test_hacking.py Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00