summaryrefslogtreecommitdiffstats
path: root/tests/functional/arbiter/test_replacing_all_arbiter_bricks_in_the_volume.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/arbiter/test_replacing_all_arbiter_bricks_in_the_volume.py')
-rwxr-xr-xtests/functional/arbiter/test_replacing_all_arbiter_bricks_in_the_volume.py29
1 files changed, 5 insertions, 24 deletions
diff --git a/tests/functional/arbiter/test_replacing_all_arbiter_bricks_in_the_volume.py b/tests/functional/arbiter/test_replacing_all_arbiter_bricks_in_the_volume.py
index 03e704491..26c848171 100755
--- a/tests/functional/arbiter/test_replacing_all_arbiter_bricks_in_the_volume.py
+++ b/tests/functional/arbiter/test_replacing_all_arbiter_bricks_in_the_volume.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2015-2018 Red Hat, Inc. <http://www.redhat.com>
+# Copyright (C) 2015-2020 Red Hat, Inc. <http://www.redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -14,7 +14,6 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-import sys
from glusto.core import Glusto as g
@@ -36,7 +35,7 @@ from glustolibs.io.utils import (validate_io_procs,
wait_for_io_to_complete)
-@runs_on([['distributed-replicated'],
+@runs_on([['distributed-arbiter'],
['glusterfs']])
class TestArbiterSelfHeal(GlusterBaseClass):
"""
@@ -64,19 +63,6 @@ class TestArbiterSelfHeal(GlusterBaseClass):
def setUp(self):
# Calling GlusterBaseClass setUp
self.get_super_method(self, 'setUp')()
-
- # Setup Volumes
- if self.volume_type == "distributed-replicated":
- self.volume_configs = []
-
- # Redefine distributed-replicated volume
- self.volume['voltype'] = {
- 'type': 'distributed-replicated',
- 'replica_count': 3,
- 'dist_count': 4,
- 'arbiter_count': 1,
- 'transport': 'tcp'}
-
self.all_mounts_procs = []
self.io_validation_complete = False
self.bricks_to_clean = []
@@ -160,14 +146,9 @@ class TestArbiterSelfHeal(GlusterBaseClass):
mount_obj.client_system, mount_obj.mountpoint)
# Create dirs with file
g.log.info('Creating dirs with file...')
- command = ("/usr/bin/env python%d %s create_deep_dirs_with_files "
- "-d 3 "
- "-l 3 "
- "-n 3 "
- "-f 20 "
- "%s" % (
- sys.version_info.major, self.script_upload_path,
- mount_obj.mountpoint))
+ command = ("/usr/bin/env python %s create_deep_dirs_with_files "
+ "-d 3 -l 3 -n 3 -f 20 %s"
+ % (self.script_upload_path, mount_obj.mountpoint))
proc = g.run_async(mount_obj.client_system, command,
user=mount_obj.user)