Fixed test_prepare_mysql_with_snapshot failure on rhel 7.2

The unitest test_prepare_mysql_with_snapshot failed on rhel 7.2
because base_dbass was not mocked. This patch fixes the issue.

Change-Id: I6734eee20e595aa78bb7ce5e700ffa151e0c0659
Closes-Bug:1540082
This commit is contained in:
David Sariel 2016-02-08 13:32:01 +02:00
parent e8261c5f96
commit 25ff855338

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,