diff options
author | John Garbutt <john@johngarbutt.com> | 2020-03-10 12:31:26 +0000 |
---|---|---|
committer | melanie witt <melwittt@gmail.com> | 2022-02-24 16:20:04 +0000 |
commit | 6acefc6b101401686ef03f672fdc6d5be1b32ae1 (patch) | |
tree | 217913fb25e7929e311023816072f3963832d6ad /nova/conf | |
parent | 4fbe94a98cecb150b3e2dfacdc57bf0b713a32f3 (diff) | |
download | nova-6acefc6b101401686ef03f672fdc6d5be1b32ae1.tar.gz |
Assert quota related API behavior when noop
Adding tests so its clear what happens with the noop driver when using
the quota APIs.
To make the unit tests work, we had to make the caching of the quota
driver slightly more dynamic. We verify the current config matches
the currently cached driver, and reload the driver if there is a miss-match.
It also preserves the ability of some unit tests to pass in a fake
quota driver.
We also test the current unified limits driver, as it is currently
identical in behaviour to the noop driver.
As things evolve the tests will diverge, but will show the common
approach to what is returned from the API in both cases.
blueprint unified-limits-nova
Change-Id: If3c58d6cbf0a0aee62766c7142beab165c1fb9a4
Diffstat (limited to 'nova/conf')
-rw-r--r-- | nova/conf/quota.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/conf/quota.py b/nova/conf/quota.py index bb37c0c28b..0d51129d50 100644 --- a/nova/conf/quota.py +++ b/nova/conf/quota.py @@ -181,6 +181,8 @@ Possible values: 'on-demand.'), ('nova.quota.NoopQuotaDriver', 'Ignores quota and treats all ' 'resources as unlimited.'), + ('nova.quota.UnifiedLimitsDriver', 'Do not use. Still being ' + 'developed.') ], help=""" Provides abstraction for quota checks. Users can configure a specific |