summaryrefslogtreecommitdiffstats
path: root/tests/bugs/cli/bug-1378842-volume-get-all.t
blob: be41f25b000ad88ee58c11f79c189bd9ed728062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

. $(dirname $0)/../../include.rc
. $(dirname $0)/../../volume.rc

cleanup;
TEST glusterd
TEST pidof glusterd

TEST $CLI volume set all server-quorum-ratio 80

# Execute volume get without having an explicit option, this should fail
TEST ! $CLI volume get all

# Execute volume get with an explicit global option
TEST $CLI volume get all server-quorum-ratio
EXPECT '80' volume_get_field all 'cluster.server-quorum-ratio'

# Execute volume get with 'all'
TEST $CLI volume get all all

cleanup;