diff options
author | Sahina Bose <sabose@redhat.com> | 2014-05-27 17:04:36 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2014-05-28 23:04:25 -0700 |
commit | 05c2cd7c527d3a7e8b1244db72505314c3e82d3a (patch) | |
tree | ecf56513f017b8ec47214a9276cd4d3ebf5d7e0d /tests | |
parent | 3e3dcdd9f3eea75237a7d2995e153a21d0af6e6b (diff) |
plugins: Geo-rep plugin status message enhanced
Added geo-rep session wise details to the plugin
output.
Change-Id: I2086a493c2befa4c1e25a1cc5523213f0f13c8dd
Bug-Url: https://bugzilla.redhat.com/1101218
Bug-Url: https://bugzilla.redhat.com/1101223
Signed-off-by: Sahina Bose <sabose@redhat.com>
Reviewed-on: http://review.gluster.org/7896
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_check_volume_status.py | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/tests/test_check_volume_status.py b/tests/test_check_volume_status.py index c1ffa32..02d0bba 100644 --- a/tests/test_check_volume_status.py +++ b/tests/test_check_volume_status.py @@ -133,5 +133,25 @@ def _getQuotaStatusOk(): def _getGeoRepStatus(status): - return {'test-vol': {'status': status, - 'detail': "rhs3-2.novalocal - faulty;"}} + return {'test-vol': {'slaves': + {'10.70.43.68::slave-vol': + {'faulty': 1, + 'nodecount': 2, + 'notstarted': 0, + 'stopped': 0, + 'detail': 'rhs3.novalocal:/bricks/b3 ' + '- Passive;' + 'rhs3-2.novalocal:/bricks/b3 ' + '- FAULTY;', + 'status': status}, + '10.70.43.68::slave-vol2': + {'faulty': 0, + 'nodecount': 2, + 'notstarted': 2, + 'stopped': 0, + 'detail': 'rhs3.novalocal:/bricks/b3 ' + '- NOT_STARTED;' + 'rhs3-2.novalocal:/bricks/b3 ' + '- NOT_STARTED;', + 'status': "NOT_STARTED"} + }}} |