You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[API] Bounds-check that disks are a minimum size, and use a minimum granularity size (#1029) (#1150)
* [API] Bounds-check that disks are a minimum size, and use a minimum granularity size (#1029)
- Requires the user to select a size of at least one gibibyte when creating a new disk.
- Add a test which attempts to create a disk that is 512 mebibytes in size.
* Add MIN_DISK_SIZE parameter
- Add MIN_DISK_SIZE constant.
- Modify tests to create disks with a size of MIN_DISK_SIZE / 2.
* Add disk size granularity
The disk size must be divisible by 1 GiB.
* Append _BYTES to MIN_DISK_SIZE
* Add disk minimum & granularity to GlobalImage case for project_create_disk
* Change disk size errors to read MIN_DISK_SIZE_BYTES
instead of 1 GiB
* Change MIN_DISK_SIZE error to utilize ByteCount::from
* Expand min_disk_size test coverage to include error's returned.
Changed disk granularity test to be a multiple of the block_size.
0 commit comments