magnum/magnum/tests/unit/api/controllers/v1
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
..
__init__.py Make room for functional tests 2015-04-02 12:25:43 -04:00
test_bay.py Fix pep8 for ambiguous variable name 2020-05-12 08:38:23 +00:00
test_baymodel.py Fix pep8 for ambiguous variable name 2020-05-12 08:38:23 +00:00
test_certificate.py Fix pep8 for ambiguous variable name 2020-05-12 08:38:23 +00:00
test_cluster.py [fix] Use default_ng_worker.node_count for patches 2020-06-11 10:30:21 +00:00
test_cluster_actions.py Support upgrade on behalf of user by admin 2020-05-19 08:49:49 +00:00
test_cluster_template.py [k8s] Deprecate in-tree Cinder 2020-05-19 08:43:58 +00:00
test_federation.py Fix pep8 for ambiguous variable name 2020-05-12 08:38:23 +00:00
test_magnum_service.py Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
test_nodegroup.py Labels override 2020-05-13 08:07:29 +00:00
test_quota.py Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
test_stats.py Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
test_types.py Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00
test_utils.py Use unittest.mock instead of third party mock 2020-04-29 17:10:23 +03:00