From 43e66567238af129d9d0b4bf82f0af1ee2f1b3ca Mon Sep 17 00:00:00 2001 From: Nishanth Thomas Date: Mon, 5 May 2014 18:53:19 +0530 Subject: git-nagios-common : fixed the unittest error Fixed the issues with UT due to refactoring of getDisksForBrick function Change-Id: Iae2737913d35d117f8160e3f985d9f07d9f9e333 Signed-off-by: Nishanth Thomas Reviewed-on: http://review.gluster.org/7675 Reviewed-by: Kanagaraj M Tested-by: Nishanth Thomas Reviewed-by: Bala FA --- tests/test_storage.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/test_storage.py b/tests/test_storage.py index fcd1e62..504c939 100644 --- a/tests/test_storage.py +++ b/tests/test_storage.py @@ -403,13 +403,12 @@ class TestStorageUtils(TestCaseBase): {'LVM2_LV_NAME': 'lv_swap', 'LVM2_PV_NAME': '/dev/vda2', 'LVM2_VG_NAME': 'vg_shubhnd'}} - disk = glusternagios.storage.getDisksForBrick("server-1:" - "/tmp/vol1-a") + disk = glusternagios.storage.getDisksForBrick( + None, "server-1:/tmp/vol1-a") self.assertEquals(disk, "/dev/vda2") mock_get_brick_device_name.return_value = "/dev/mapper/" \ "vg_shubhnd-lv_root" - disk = glusternagios.storage.getDisksForBrick("server-1:/tmp/vol1-a", - "/dev/mapper/" - "vg_shubhnd-lv_root") + disk = glusternagios.storage.getDisksForBrick( + "/dev/mapper/vg_shubhnd-lv_root", "server-1:/tmp/vol1-a") self.assertEquals(disk, "/dev/vda2") -- cgit