]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Tegile tests: Change volume size to int
authorEric Harney <eharney@redhat.com>
Tue, 19 Jan 2016 16:06:48 +0000 (11:06 -0500)
committerEric Harney <eharney@redhat.com>
Tue, 19 Jan 2016 16:06:48 +0000 (11:06 -0500)
Defining volume size as a string is not correct, and
causes huge memory consumption when multiplied by
units.Gi in the driver.

Change-Id: Ib4cf13629b70dc1c517e4c12f29c62bb9c75adbf
Closes-Bug: #1535464

cinder/tests/unit/test_tegile.py

index 1f1a198ddb2e8ab15c67e00876348a75fb2037ac..7197524599962cf0ed70fe8ea41e0774f5e8d24e 100644 (file)
@@ -47,7 +47,7 @@ test_volume = {'host': 'node#testPool',
 test_snapshot = {'name': 'testSnap',
                  'id': '07ae9978-5445-405e-8881-28f2adfee732',
                  'volume': {'host': 'node#testPool',
-                            'size': '1',
+                            'size': 1,
                             '_name_id': 'testvol'
                             }
                  }