From 82c94a926c1f1961932798257d18a2fc306f9393 Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Fri, 27 Jul 2018 13:02:05 +0530 Subject: Fix spelling mistake across the codebase Change-Id: I46fc2feffe6443af6913785d67bf310838532421 --- tests/functional/snapshot/test_256_snapshots.py | 6 +++--- tests/functional/snapshot/test_clone_snap.py | 4 ++-- tests/functional/snapshot/test_mount_snap.py | 2 +- .../functional/snapshot/test_snap_delete_existing_scheduler.py | 2 +- tests/functional/snapshot/test_snap_list_after_restart.py | 2 +- tests/functional/snapshot/test_snap_uss.py | 6 +++--- tests/functional/snapshot/test_snapshot_create.py | 4 ++-- tests/functional/snapshot/test_snapshot_restore.py | 4 ++-- tests/functional/snapshot/test_uss_brick_down.py | 4 ++-- tests/functional/snapshot/test_uss_snap_active_deactive.py | 2 +- tests/functional/snapshot/test_validate_snap_scheduler.py | 4 ++-- tests/functional/snapshot/test_validate_snapshot_max_limit.py | 10 +++++----- tests/functional/snapshot/test_validate_snapshot_rebalance.py | 4 ++-- 13 files changed, 27 insertions(+), 27 deletions(-) (limited to 'tests/functional/snapshot') diff --git a/tests/functional/snapshot/test_256_snapshots.py b/tests/functional/snapshot/test_256_snapshots.py index f3e6e4b0e..9c5ceaf99 100644 --- a/tests/functional/snapshot/test_256_snapshots.py +++ b/tests/functional/snapshot/test_256_snapshots.py @@ -38,7 +38,7 @@ class SanpCreate256(GlusterBaseClass): 4. Varify IO 5. modify max snap limit to default to 256. 6. Create 256 snapshots - 7. Varify 256 created sucessfully + 7. Varify 256 created successfully 8. Create 257th snapshot - check for failure -- it should fail. 9. Cleanup @@ -92,7 +92,7 @@ class SanpCreate256(GlusterBaseClass): ret = cls.unmount_volume_and_cleanup_volume(cls.mounts) if not ret: raise ExecutionError("Failed to cleanup volume and mount") - g.log.info("Cleanup successfull for the volume and mount") + g.log.info("Cleanup successful for the volume and mount") GlusterBaseClass.tearDownClass.im_func(cls) @@ -155,7 +155,7 @@ class SanpCreate256(GlusterBaseClass): for i in range(1, 257, 1): self.assertTrue(("snapy%s" % i in snap_list), "%s snap not " "found " % ("snapy%s" % i)) - g.log.info("Sucessfully validated names of snap") + g.log.info("Successfully validated names of snap") # Try to create 257th snapshot cmd_str = "gluster snapshot create %s %s %s" % ("snap", self.volname, diff --git a/tests/functional/snapshot/test_clone_snap.py b/tests/functional/snapshot/test_clone_snap.py index a7ebd965c..6311a282a 100644 --- a/tests/functional/snapshot/test_clone_snap.py +++ b/tests/functional/snapshot/test_clone_snap.py @@ -198,7 +198,7 @@ class CloneSnapshot(GlusterBaseClass): "do touch file$i; done; cd;") % mount_obj proc = g.run(self.clients[0], cmd) all_mounts_procs.append(proc) - g.log.info("I/O on mountpoint is Successfull") + g.log.info("I/O on mountpoint is successful") # create snapshot g.log.info("Starting to Create snapshot of clone volume") @@ -226,7 +226,7 @@ class CloneSnapshot(GlusterBaseClass): ret, _, _ = umount_volume(self.clients[0], self.mpoint, self.mount_type) if ret == 1: - raise ExecutionError("Unmounting the moint point %s failed" + raise ExecutionError("Unmounting the mount point %s failed" % self.mpoint) g.log.info("Mount point %s deleted successfully", self.mpoint) g.log.info("Unmount Volume Successful") diff --git a/tests/functional/snapshot/test_mount_snap.py b/tests/functional/snapshot/test_mount_snap.py index e01be9dd8..67b8a43cd 100644 --- a/tests/functional/snapshot/test_mount_snap.py +++ b/tests/functional/snapshot/test_mount_snap.py @@ -177,7 +177,7 @@ class TestSnapMountSnapshot(GlusterBaseClass): # validate io should fail self.assertFalse( validate_io_procs(all_mounts_procs, self.mounts), - "Unexpected: IO Successfull on all clients" + "Unexpected: IO Successful on all clients" ) g.log.info("Expected: IO failed on clients") diff --git a/tests/functional/snapshot/test_snap_delete_existing_scheduler.py b/tests/functional/snapshot/test_snap_delete_existing_scheduler.py index 436e7f214..a321dcd39 100644 --- a/tests/functional/snapshot/test_snap_delete_existing_scheduler.py +++ b/tests/functional/snapshot/test_snap_delete_existing_scheduler.py @@ -186,7 +186,7 @@ class SnapshotDeleteExistingScheduler(GlusterBaseClass): count += 2 self.assertEqual(status.strip().split(":")[2], ' Enabled', "Failed to check status of scheduler") - g.log.info("Successfuly checked scheduler status") + g.log.info("Successfully checked scheduler status") # write files on all mounts g.log.info("Starting IO on all mounts...") diff --git a/tests/functional/snapshot/test_snap_list_after_restart.py b/tests/functional/snapshot/test_snap_list_after_restart.py index 1eb83751c..52f34c14a 100644 --- a/tests/functional/snapshot/test_snap_list_after_restart.py +++ b/tests/functional/snapshot/test_snap_list_after_restart.py @@ -122,7 +122,7 @@ class SnapshotGlusterddown(GlusterBaseClass): g.log.info("Starting to list all snapshots") for server in self.servers[0:]: out = get_snap_list(server) - self.assertIsNotNone(out, "Falied to list snap in node" + self.assertIsNotNone(out, "Failed to list snap in node" "%s" % server) self.assertEqual(len(out), 2, "Failed to validate snap list" "on node %s" % server) diff --git a/tests/functional/snapshot/test_snap_uss.py b/tests/functional/snapshot/test_snap_uss.py index aad6d897c..60e06f359 100644 --- a/tests/functional/snapshot/test_snap_uss.py +++ b/tests/functional/snapshot/test_snap_uss.py @@ -197,7 +197,7 @@ class SnapshotUssSnap(GlusterBaseClass): for mount_obj in self.mounts: ret, _, _ = uss_list_snaps(mount_obj.client_system, mount_obj.mountpoint) - self.assertEqual(ret, 0, "Falied to list snapshot Informations") + self.assertEqual(ret, 0, "Failed to list snapshot information") g.log.info("Successfully Listed snapshots Created") # Disable USS running @@ -211,8 +211,8 @@ class SnapshotUssSnap(GlusterBaseClass): for mount_obj in self.mounts: ret, out, _ = uss_list_snaps(mount_obj.client_system, mount_obj.mountpoint) - self.assertEqual(ret, 0, "Failed to list snapshot Informations") - g.log.info("Successfully Listed snapshots Created") + self.assertEqual(ret, 0, "Failed to list snapshot information") + g.log.info("Successfully listed snapshots Created") # Validate after disabling USS, all files should be same g.log.info("Validate files after disabling uss") diff --git a/tests/functional/snapshot/test_snapshot_create.py b/tests/functional/snapshot/test_snapshot_create.py index 5ffb91681..e1bc9c272 100644 --- a/tests/functional/snapshot/test_snapshot_create.py +++ b/tests/functional/snapshot/test_snapshot_create.py @@ -101,7 +101,7 @@ class SnapCreate(GlusterBaseClass): ret = cls.unmount_volume_and_cleanup_volume(cls.mounts) if not ret: raise ExecutionError("Failed to cleanup volume and mount") - g.log.info("Cleanup successfull for the volume and mount") + g.log.info("Cleanup successful for the volume and mount") GlusterBaseClass.tearDownClass.im_func(cls) @@ -202,4 +202,4 @@ class SnapCreate(GlusterBaseClass): for i in range(0, 5): self.assertIn("snapy%s" % i, snap_list, "%s snap not " "found " % ("snapy%s" % i)) - g.log.info("Sucessfully validated names of snap") + g.log.info("Successfully validated names of snap") diff --git a/tests/functional/snapshot/test_snapshot_restore.py b/tests/functional/snapshot/test_snapshot_restore.py index cbec67e04..966551b58 100644 --- a/tests/functional/snapshot/test_snapshot_restore.py +++ b/tests/functional/snapshot/test_snapshot_restore.py @@ -106,7 +106,7 @@ class SnapRestore(GlusterBaseClass): ret = cls.unmount_volume_and_cleanup_volume(cls.mounts) if not ret: raise ExecutionError("Failed to cleanup volume and mount") - g.log.info("Cleanup successfull for the volume and mount") + g.log.info("Cleanup successful for the volume and mount") GlusterBaseClass.tearDownClass.im_func(cls) @@ -157,7 +157,7 @@ class SnapRestore(GlusterBaseClass): % self.volname)) g.log.info("Volume options for%s is set successfully", self.volname) - # Get brick list befor taking snap_restore + # Get brick list before taking snap_restore bricks_before_snap_restore = get_all_bricks(self.mnode, self.volname) g.log.info("Brick List before snap restore " "volume: %s", bricks_before_snap_restore) diff --git a/tests/functional/snapshot/test_uss_brick_down.py b/tests/functional/snapshot/test_uss_brick_down.py index 94b48c043..172b0f291 100644 --- a/tests/functional/snapshot/test_uss_brick_down.py +++ b/tests/functional/snapshot/test_uss_brick_down.py @@ -98,7 +98,7 @@ class SnapUssBrickDown(GlusterBaseClass): * Mount volume * Perform I/O on mounts * Bring down one brick - * Enbale USS + * Enable USS * Validate USS is enabled * Bring the brick online using gluster v start force * Create 2 snapshots snapy1 & snapy2 @@ -164,7 +164,7 @@ class SnapUssBrickDown(GlusterBaseClass): g.log.info("Bring the brick online using gluster v start force") ret, _, _ = volume_start(self.mnode, self.volname, force=True) self.assertEqual(ret, 0, "Volume start with force failed") - g.log.info("Volume start with force successfull") + g.log.info("Volume start with force successful") # Create 2 snapshot g.log.info("Creating 2 snapshots for volume %s", self.volname) diff --git a/tests/functional/snapshot/test_uss_snap_active_deactive.py b/tests/functional/snapshot/test_uss_snap_active_deactive.py index c28cc1d60..93c0231ee 100644 --- a/tests/functional/snapshot/test_uss_snap_active_deactive.py +++ b/tests/functional/snapshot/test_uss_snap_active_deactive.py @@ -100,7 +100,7 @@ class SnapUssActiveD(GlusterBaseClass): * Perform I/O on mounts * Create 2 snapshots snapy1 & snapy2 * Validate snap created - * Enbale USS + * Enable USS * Validate USS is enabled * Validate snapd is running * Activate snapy1 & snapy2 diff --git a/tests/functional/snapshot/test_validate_snap_scheduler.py b/tests/functional/snapshot/test_validate_snap_scheduler.py index ea54f26d2..c8513ca22 100644 --- a/tests/functional/snapshot/test_validate_snap_scheduler.py +++ b/tests/functional/snapshot/test_validate_snap_scheduler.py @@ -127,7 +127,7 @@ class SnapshotSchedulerBehaviour(GlusterBaseClass): count += 2 self.assertEqual(status.strip().split(":")[2], ' Enabled', "Failed to check status of scheduler") - g.log.info("Successfuly checked scheduler status") + g.log.info("Successfully checked scheduler status") # Disable snap scheduler g.log.info("Starting to disable snapshot scheduler on all nodes") @@ -148,4 +148,4 @@ class SnapshotSchedulerBehaviour(GlusterBaseClass): count += 2 self.assertEqual(status.strip().split(":")[2], ' Disabled', "Failed to check status of scheduler") - g.log.info("Successfuly checked scheduler status") + g.log.info("Successfully checked scheduler status") diff --git a/tests/functional/snapshot/test_validate_snapshot_max_limit.py b/tests/functional/snapshot/test_validate_snapshot_max_limit.py index 75582e4ed..3df2a98dc 100644 --- a/tests/functional/snapshot/test_validate_snapshot_max_limit.py +++ b/tests/functional/snapshot/test_validate_snapshot_max_limit.py @@ -26,7 +26,7 @@ Steps : 5. modify max snap limit to default to 10. 6. modify soft-limit to 50% 6. Create 5 snapshots - 7. Varify 5 created sucessfully + 7. Varify 5 created successfully 8. Create 6th snapshot - check for warning -- it should not fail. 9. modify soft-limit to 100% @@ -65,7 +65,7 @@ class SnapCreateMax(GlusterBaseClass): 5. modify max snap limit to default to 10. 6. modify soft-limit to 50% 6. Create 5 snapshots - 7. Varify 5 created sucessfully + 7. Varify 5 created successfully 8. Create 6th snapshot - check for warning -- it should not fail. 9. modify soft-limit to 100% @@ -125,7 +125,7 @@ class SnapCreateMax(GlusterBaseClass): ret = self.unmount_volume_and_cleanup_volume(self.mounts) if not ret: raise ExecutionError("Failed to cleanup volume and mount") - g.log.info("Cleanup successfull for the volume and mount") + g.log.info("Cleanup successful for the volume and mount") def test_validate_snaps_max_limit(self): # pylint: disable=too-many-statements @@ -194,7 +194,7 @@ class SnapCreateMax(GlusterBaseClass): for i in range(1, 6): self.assertTrue(("snapy%s" % i in snap_list), "%s snap not " "found " % ("snapy%s" % i)) - g.log.info("Sucessfully validated names of snapshots") + g.log.info("Successfully validated names of snapshots") # create 6th snapshot cmd_str = "gluster snapshot create %s %s %s" % ("snapy6", self.volname, @@ -246,7 +246,7 @@ class SnapCreateMax(GlusterBaseClass): cmd_str = "gluster snapshot create %s %s %s" % ("snap", self.volname, "no-timestamp") ret, _, _ = g.run(self.mnode, cmd_str) - self.assertNotEqual(ret, 0, ("Unexpected: sucessfully created 'snap' " + self.assertNotEqual(ret, 0, ("Unexpected: successfully created 'snap' " "for %s" % self.volname)) g.log.info("Expected: Snapshot 'snap' not created as it is 11th snap") diff --git a/tests/functional/snapshot/test_validate_snapshot_rebalance.py b/tests/functional/snapshot/test_validate_snapshot_rebalance.py index 7eb674475..f9e018d64 100644 --- a/tests/functional/snapshot/test_validate_snapshot_rebalance.py +++ b/tests/functional/snapshot/test_validate_snapshot_rebalance.py @@ -55,7 +55,7 @@ class SnapCreateRebal(GlusterBaseClass): during rebalance 9. After rebalance is completed, create snapshots with the same name as in Step 7 - -- this operation should be sucessfull + -- this operation should be successful 10. Cleanup """ @@ -103,7 +103,7 @@ class SnapCreateRebal(GlusterBaseClass): ret = self.unmount_volume_and_cleanup_volume(self.mounts) if not ret: raise ExecutionError("Failed to cleanup volume and mount") - g.log.info("Cleanup successfull for the volume and mount") + g.log.info("Cleanup successful for the volume and mount") def test_snapshot_while_rebalance(self): # pylint: disable=too-many-statements, missing-docstring -- cgit