Merge "Fixed test_prepare_mysql_with_snapshot failure on rhel 7.2"

This commit is contained in:
Jenkins 2016-02-13 02:50:23 +00:00 committed by Gerrit Code Review
commit 21e0a5ca4f

View File

@ -214,6 +214,8 @@ class GuestAgentManagerTest(trove_testtools.TestCase):
snapshot = {'replication_strategy': self.replication_strategy,
'dataset': {'dataset_size': 1.0},
'config': None}
total_size = snapshot['dataset']['dataset_size'] + 1
self.mock_gfvs_class.return_value = {'total': total_size}
self._prepare_dynamic(snapshot=snapshot)
@patch.multiple(dbaas.MySqlAdmin,