summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/volumes/volumes/tests.py
diff options
context:
space:
mode:
authorRich Hagarty <richard.hagarty@hpe.com>2015-11-10 16:15:53 -0800
committerRich Hagarty <richard.hagarty@hpe.com>2015-12-11 07:28:42 -0800
commit70ade476b8001ed63cbb371620a035fe1ca7a44a (patch)
treeaadf02b8bc4808aff5b50f089465ea82dfbbe7d2 /openstack_dashboard/dashboards/project/volumes/volumes/tests.py
parentf37f32ad067ff3af3afc98d54f0ad464faf60271 (diff)
downloadhorizon-70ade476b8001ed63cbb371620a035fe1ca7a44a.tar.gz
Use "GiB" and "gibibyte" labels in volume panels
Cinder APIs require size values to be in gibibytes (GiB). Horizon panels show these values in gigabytes (GB), which confuses storage admins. Change-Id: I62ab332d3415f35ead237dd1af5f6a11eb193654 Partially-Implements: blueprint gb-to-gib-conversion Closes-bug: #1511167
Diffstat (limited to 'openstack_dashboard/dashboards/project/volumes/volumes/tests.py')
-rw-r--r--openstack_dashboard/dashboards/project/volumes/volumes/tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/openstack_dashboard/dashboards/project/volumes/volumes/tests.py b/openstack_dashboard/dashboards/project/volumes/volumes/tests.py
index b6a70d055..219baf80a 100644
--- a/openstack_dashboard/dashboards/project/volumes/volumes/tests.py
+++ b/openstack_dashboard/dashboards/project/volumes/volumes/tests.py
@@ -494,7 +494,7 @@ class VolumeViewTests(test.TestCase):
self.assertEqual(res.redirect_chain, [])
self.assertFormError(res, 'form', None,
"The volume size cannot be less than the "
- "snapshot size (40GB)")
+ "snapshot size (40GiB)")
@test.create_stubs({cinder: ('volume_create',
'volume_type_list',
@@ -725,7 +725,7 @@ class VolumeViewTests(test.TestCase):
self.assertEqual(res.redirect_chain, [])
self.assertFormError(res, 'form', None,
"The volume size cannot be less than the "
- "image minimum disk size (30GB)")
+ "image minimum disk size (30GiB)")
def test_create_volume_from_image_under_image_min_disk_size(self):
image = self.images.get(name="protected_images")
@@ -791,8 +791,8 @@ class VolumeViewTests(test.TestCase):
url = reverse('horizon:project:volumes:volumes:create')
res = self.client.post(url, formData)
- expected_error = [u'A volume of 5000GB cannot be created as you only'
- ' have 20GB of your quota available.']
+ expected_error = [u'A volume of 5000GiB cannot be created as you only'
+ ' have 20GiB of your quota available.']
self.assertEqual(res.context['form'].errors['__all__'], expected_error)
@test.create_stubs({cinder: ('volume_snapshot_list',
@@ -1578,8 +1578,8 @@ class VolumeViewTests(test.TestCase):
args=[volume.id])
res = self.client.post(url, formData)
self.assertFormError(res, "form", "new_size",
- "Volume cannot be extended to 1000GB as you only "
- "have 80GB of your quota available.")
+ "Volume cannot be extended to 1000GiB as you "
+ "only have 80GiB of your quota available.")
@test.create_stubs({cinder: ('volume_backup_supported',
'volume_list',