Merge "Remove snapshot['size'] references"

This commit is contained in:
Jenkins 2017-05-06 19:22:55 +00:00 committed by Gerrit Code Review
commit d3f1d1bf6d
3 changed files with 1 additions and 3 deletions

View File

@ -9441,7 +9441,7 @@ class VMAXCommonTest(test.TestCase):
mock_sg):
common = self.driver.common
snapshot = self.data.test_snapshot_v3.copy()
snapshot['size'] = '100'
snapshot['volume_size'] = '100'
with mock.patch.object(common, '_initial_setup',
return_value=self.data.extra_specs):
self.driver.create_snapshot(snapshot)

View File

@ -570,7 +570,6 @@ for i in range(8):
snapshot['name'] = 'TEST_SNAPSHOT{0:d}'.format(i)
snapshot['provider_location'] = None if i == 2 else '{0:d}'.format(
i if i < 5 else i + 5)
snapshot['size'] = 256 if i == 1 else 128
snapshot['status'] = 'creating' if i == 2 else 'available'
snapshot['volume_id'] = '00000000-0000-0000-0000-{0:012d}'.format(
i if i < 5 else 7)

View File

@ -647,7 +647,6 @@ for i in range(8):
snapshot['name'] = 'TEST_SNAPSHOT{0:d}'.format(i)
snapshot['provider_location'] = None if i == 2 else '{0:d}'.format(
i if i < 5 else i + 5)
snapshot['size'] = 256 if i == 1 else 128
snapshot['status'] = 'creating' if i == 2 else 'available'
snapshot['volume_id'] = '00000000-0000-0000-0000-{0:012d}'.format(
i if i < 5 else 7)