cinder/cinder/tests/unit/db
zhangbailin 24dd74748d Increase the length of resource property in quota_usages
When updating the volume type, the length of the name is checked to be
0-255. If the user input length is 255 characters
(e.g. volume_type_name='X*255'), when synchronizing the quota resource,
the resource name needs to be updated to the form of 'resource +
volume_type_name' in quota_usages [1], because the resource attribute in
the DB is set to 'String(255)', the length limit is exceeded.

Therefore, the resource column attribute in the quota_usages database table
needs to be changed from 'String(255)' to 'String(300)'.

[1]https://github.com/openstack/cinder/blob/master/cinder/db/sqlalchemy/api.py#L352

Closes-Bug: #1798327
Closes-Bug: #1608849
Change-Id: I6c30a6be750f6b9ecff7399dbb0aea66cdc097da
2018-11-02 05:52:33 -04:00
..
__init__.py Files with no code must be left completely empty 2016-09-28 16:29:30 +07:00
test_cluster.py Move service and cluster creation in test to utils 2017-01-19 10:42:23 +01:00
test_migrations.py Increase the length of resource property in quota_usages 2018-11-02 05:52:33 -04:00
test_name_id.py DB: Optimize volume_update method 2016-11-08 12:31:06 +01:00
test_purge.py Allow purging of records less than 1 day old 2017-11-28 17:47:24 +00:00
test_qos_specs.py Add enough notification for QoS 2018-01-18 14:04:29 +08:00
test_reset_backend.py Add support for promoting a failed over backend 2018-05-09 12:19:33 -04:00
test_transfers.py Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00
test_volume_type.py Trivial fix PEP 8 coding style violation and typo 2017-05-03 19:47:22 +07:00