summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDarshan N <dnarayan@redhat.com>2015-07-02 12:56:41 +0530
committerSahina Bose <sabose@redhat.com>2015-08-16 23:03:46 -0700
commitdd356c110210350721b003e885c51046b87c7186 (patch)
treed0621256eb584b287da91b9180ad14fdbd894756 /tests
parent12507aeef9be103e4393451233da7ba8a8ebb2ee (diff)
nagios-common: Added disperse-vol related details to glustercli utility.
This patch adds disperse volume related details like disperse count redundancy count to glustercli utility. This is needed to monitor volume status of disperse volume. It also fixes few pep8 issues. Change-Id: I38b4a0fd0a3ffb550be8bc91863b70fe8e70d883 Bug-Url: https://bugzilla.redhat.com/1235651 Signed-off-by: Darshan N <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/11502 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_glustercli.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_glustercli.py b/tests/test_glustercli.py
index bca1502..2f3f8cb 100644
--- a/tests/test_glustercli.py
+++ b/tests/test_glustercli.py
@@ -56,6 +56,8 @@ class GlusterCliTests(TestCaseBase):
<distCount>2</distCount>
<stripeCount>1</stripeCount>
<replicaCount>2</replicaCount>
+ <disperseCount>5</disperseCount>
+ <redundancyCount>1</redundancyCount>
<type>2</type>
<typeStr>Replicate</typeStr>
<transport>0</transport>
@@ -84,6 +86,8 @@ class GlusterCliTests(TestCaseBase):
<distCount>1</distCount>
<stripeCount>1</stripeCount>
<replicaCount>1</replicaCount>
+ <disperseCount>5</disperseCount>
+ <redundancyCount>1</redundancyCount>
<type>0</type>
<typeStr>Distribute</typeStr>
<transport>1</transport>
@@ -116,6 +120,8 @@ class GlusterCliTests(TestCaseBase):
'options': {'auth.allow': '*'},
'replicaCount': '2',
'stripeCount': '1',
+ 'disperseCount': '5',
+ 'redundancyCount': '1',
'transportType': [gcli.TransportType.TCP],
'uuid': 'b3114c71-741b-4c6f-a39e-80384c4ea3cf',
'volumeName': 'music',
@@ -131,6 +137,8 @@ class GlusterCliTests(TestCaseBase):
'options': {},
'replicaCount': '1',
'stripeCount': '1',
+ 'disperseCount': '5',
+ 'redundancyCount': '1',
'transportType': [gcli.TransportType.RDMA],
'uuid': 'b444ed94-f346-4cda-bd55-0282f21d22db',
'volumeName': 'test1',