summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2019-08-20 14:45:51 +0530
committerBala Konda Reddy M <bmekala@redhat.com>2019-09-04 09:44:51 +0000
commite6bca2db2d21a0a570919a0a52f4c7ab839a6f57 (patch)
tree6638fdc1f53ee2123d6f5f312fcc6b5e0dbc77e7
parent482412ec9936a2a12e8d3fb94f650407abfeb90c (diff)
Fixes: changed triggering heal by getting md5sum
Change-Id: I4d056b94b4ea59beee7eb24e7e5d5f65d7256b4a Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
-rwxr-xr-xtests/functional/arbiter/test_no_data_loss_arbiter_vol_after_rename_file.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/functional/arbiter/test_no_data_loss_arbiter_vol_after_rename_file.py b/tests/functional/arbiter/test_no_data_loss_arbiter_vol_after_rename_file.py
index 65cff4f..48163c6 100755
--- a/tests/functional/arbiter/test_no_data_loss_arbiter_vol_after_rename_file.py
+++ b/tests/functional/arbiter/test_no_data_loss_arbiter_vol_after_rename_file.py
@@ -250,14 +250,13 @@ class ArbiterSelfHealTests(GlusterBaseClass):
# Trigger heal from mount point
g.log.info("Triggering heal for %s:%s",
self.mounts[0].client_system, self.mounts[0].mountpoint)
- command = ("python %s read %s/%s"
- % (self.script_upload_path,
- self.mounts[0].mountpoint,
+ command = ("cd %s/%s ; find . | xargs getfattr -d -m . -e hex"
+ % (self.mounts[0].mountpoint,
test_dir))
ret, _, err = g.run(self.mounts[0].client_system, command)
- self.assertFalse(ret, 'Failed to start "find . | xargs stat" '
- 'on %s'
+ self.assertFalse(ret, 'Failed to trigger heal using '
+ '"find . | xargs getfattr -d -m . -e hex" on %s'
% self.mounts[0].client_system)
# Monitor heal completion
@@ -285,10 +284,10 @@ class ArbiterSelfHealTests(GlusterBaseClass):
self.assertFalse(ret, err)
g.log.info('md5sum for the node: %s', md5sum_node)
- # comparing md5sum_node result with mountpoint
+ # Comparing md5sum_node result with mountpoint
g.log.info('Comparing md5sum result with mountpoint...')
- self.assertEqual(md5sum, md5sum_node, 'File contents are not equal'
+ self.assertEqual(md5sum, md5sum_node, 'md5sums are not equal'
' on %s and %s'
% (self.mounts[0].mountpoint, brick))
- g.log.info('File contents are equal on %s and %s',
+ g.log.info('md5sums are equal on %s and %s',
self.mounts[0].mountpoint, brick)