cinder/cinder/tests/unit/db
Gorka Eguileor 6a2716de16 Quota: Add backup related default limits
Logs show deprecation warning in the logs when creating backups.

Warnings are related to the "backups" and "backup_gigabytes" quota
resources:

  Deprecated: Default quota for resource: backups is set by the default
  quota flag: quota_backups, it is now deprecated. Please use the
  default quota class for default quota.

  Deprecated: Default quota for resource: backup_gigabytes is set by the
  default quota flag: quota_backup_gigabytes, it is now deprecated.
  Please use the default quota class for default quota.

This warning is shown because the ``quota_classes`` table doesn't have
entries for these 2 resources for the "default" quota class.

This patch adds a database migration to create the ``backups`` and
``backup_gigabytes`` entries in the ``quota_classes`` table like we have
for the other standard resources, such as ``volumes``, ``gigabytes``,
etc.

Closes-Bug: #1952420
Change-Id: I2a83e9b23f40a8ef4a734b456e4b7afb1ad65f94
2024-01-17 19:07:42 +01:00
..
__init__.py Files with no code must be left completely empty 2016-09-28 16:29:30 +07:00
test_cluster.py Remove unused config imports/objects 2021-09-15 10:14:36 -04:00
test_default_types.py Default type overrides 2020-09-16 14:05:31 +00:00
test_migration.py db: Remove legacy migrations 2023-03-23 12:23:47 +00:00
test_migrations.py Quota: Add backup related default limits 2024-01-17 19:07:42 +01:00
test_name_id.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_orm_relationships.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_purge.py db: Use the same connection throughout test 2023-11-08 11:34:16 +00:00
test_qos_specs.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_reset_backend.py Add support for promoting a failed over backend 2018-05-09 12:19:33 -04:00
test_transfers.py db: Final cleanup for context-based enginefacade 2022-04-14 19:19:16 +01:00
test_volume_type.py db: Remove unnecessary engine facade decorator 2022-08-31 09:52:56 +01:00