diff options
author | Ramesh Nachimuthu <rnachimu@redhat.com> | 2014-05-28 17:06:27 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2014-05-29 00:08:51 -0700 |
commit | 00fef945e7f0125394845f8c995690c74b4c4337 (patch) | |
tree | b00e7cd976eed2ed5252ddebdc3c51803d47dc5b /tests | |
parent | e4f07c24305719c15b591c0b0b9bcf042e1c1889 (diff) |
autoconfig:mock pynag in auto config test case
Mocking pynag using dicts in test cases
Change-Id: I7ddedb640910c8dca0b79d17efe5e6eeefc9ee6f
Bug-Url: https://bugzilla.redhat.com/1099093
Bug-Url: https://bugzilla.redhat.com/1099328
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Reviewed-on: http://review.gluster.org/7921
Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_discovery.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_discovery.py b/tests/test_discovery.py index 68d3cbd..c3a1329 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -16,8 +16,6 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # -from pynag import Model - from plugins import discovery, server_utils from plugins.config_generator import GLUSTER_AUTO_CONFIG from plugins.config_generator import HOST_SERVICES @@ -143,7 +141,7 @@ class TestDiscovery(TestCaseBase): '10.70.43.0!10.70.43.57'}) def fillServiceModel(self, values): - serviceModel = Model.Service() + serviceModel = {} for key, value in values.iteritems(): serviceModel[key] = value return serviceModel |