summaryrefslogtreecommitdiffstats
path: root/tests/bugs/cli/bug-1378842-volume-get-all.t
blob: c798ce5ceff89ab0ce96e9ee22b22d33acd6d30c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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

# Also volume get on an option not applicable for all volumes should fail
TEST ! $CLI volume get all cluster.tier-mode

# 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;