CLI now only outputs one XML document for 'status all' only containing those volumes which are started. BUG: 1004218 Change-Id: Id4130fe59b3b74475d8bd1cc8134ac59a28f1b7e Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.org/5773 Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
27 lines
451 B
Bash
27 lines
451 B
Bash
#!/bin/bash
|
|
|
|
# Test if only a single xml document is generated by 'status all'
|
|
# when a volume is not started
|
|
|
|
. $(dirname $0)/../include.rc
|
|
|
|
cleanup;
|
|
|
|
TEST glusterd
|
|
|
|
TEST $CLI volume create ${V0}1 $H0:$B0/${V0}1{1,2}
|
|
TEST $CLI volume create ${V0}2 $H0:$B0/${V0}2{1,2}
|
|
|
|
TEST $CLI volume start ${V0}1
|
|
|
|
function test_status_all ()
|
|
{
|
|
$CLI volume status all --xml | xmllint -format -
|
|
}
|
|
|
|
TEST test_status_all
|
|
|
|
TEST $CLI volume stop ${V0}1
|
|
|
|
cleanup
|