From a2e38eecd36b456495610247eb8fa91922fb6f1e Mon Sep 17 00:00:00 2001 From: Hemanth Nakkina Date: Sat, 25 Apr 2020 08:00:22 +0530 Subject: [PATCH] Add test cases for nova shelving accounting in quotas Add functional test case to verify new config param quota-count-usage-from-placement in nova-cloud-controller charm. Charm changes - https://review.opendev.org/#/c/715182/ Related-Bug: #1864859 --- zaza/openstack/charm_tests/nova/tests.py | 61 ++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/zaza/openstack/charm_tests/nova/tests.py b/zaza/openstack/charm_tests/nova/tests.py index eefdab5..1b12240 100644 --- a/zaza/openstack/charm_tests/nova/tests.py +++ b/zaza/openstack/charm_tests/nova/tests.py @@ -150,6 +150,7 @@ class NovaCloudController(test_utils.OpenStackBaseTest): XENIAL_QUEENS = openstack_utils.get_os_release('xenial_queens') BIONIC_QUEENS = openstack_utils.get_os_release('bionic_queens') BIONIC_ROCKY = openstack_utils.get_os_release('bionic_rocky') + BIONIC_TRAIN = openstack_utils.get_os_release('bionic_train') @classmethod def setUpClass(cls): @@ -384,6 +385,66 @@ class NovaCloudController(test_utils.OpenStackBaseTest): alternate_entry, self.services) + def test_903_enable_quota_count_usage_from_placement(self): + """Verify that quota-count-usage-from-placement is propagated. + + Change quota-count-usage-from-placement and assert that nova + configuration file is updated and the services are restarted. + This parameter is not supported for releases