Allow filtering on size for volume list

"size" should be a filterable field.

Closes-Bug: #1827733
Change-Id: If43f136b28aef0efccd37184c01e8617d62bb46c
This commit is contained in:
Eric Harney 2019-05-04 10:37:40 -06:00
parent 3669d52048
commit b7a7ac7b5a
2 changed files with 3 additions and 2 deletions

View File

@ -478,7 +478,8 @@ class GeneralFiltersTest(test.TestCase):
@ddt.data({'resource': 'volume',
'expected': ["name", "status", "metadata",
"bootable", "migration_status",
"availability_zone", "group_id"]},
"availability_zone", "group_id",
"size"]},
{'resource': 'backup',
'expected': ["name", "status", "volume_id"]},
{'resource': 'snapshot',

View File

@ -1,7 +1,7 @@
{
"volume": ["name", "status", "metadata",
"bootable", "migration_status", "availability_zone",
"group_id"],
"group_id", "size"],
"backup": ["name", "status", "volume_id"],
"snapshot": ["name", "status", "volume_id", "metadata",
"availability_zone"],