summaryrefslogtreecommitdiffstats
path: root/tests/bugs/cli/bug-983317.t
blob: 11590ac280fe69828424342f1522faf6e4e35aa4 (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
#!/bin/bash

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

cleanup;
TEST glusterd
TEST pidof glusterd

TEST $CLI volume create $V0 $H0:$B0/$V0

# Set a volume option
TEST $CLI volume set $V0 open-behind on
TEST $CLI volume start $V0

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

# Execute volume get with an explicit option
TEST $CLI volume get $V0 open-behind

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

cleanup;