diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2019-04-22 18:10:05 +0530 |
---|---|---|
committer | Sanju Rakonde <srakonde@redhat.com> | 2019-04-24 14:04:35 +0000 |
commit | 15ba102feba723b7707ab5efbd614e3da2c59555 (patch) | |
tree | b5de64ce23f6beba6831de4b0deea5aee0d9fb84 /tests/bugs/cli | |
parent | 2d39572821306496c96797f4d122f8200aae4585 (diff) |
tests: add .t file to increase cli code coverage
updates: bz#1693692
Change-Id: I848e622d7b8562e864f0e208aafdc21d9cb757d3
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'tests/bugs/cli')
-rw-r--r-- | tests/bugs/cli/bug-983317-volume-get.t | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/bugs/cli/bug-983317-volume-get.t b/tests/bugs/cli/bug-983317-volume-get.t index 8f09d588565..c793bbc9f0c 100644 --- a/tests/bugs/cli/bug-983317-volume-get.t +++ b/tests/bugs/cli/bug-983317-volume-get.t @@ -7,7 +7,8 @@ cleanup; TEST glusterd TEST pidof glusterd -TEST $CLI volume create $V0 $H0:$B0/$V0 +TEST $CLI volume create $V0 $H0:$B0/${V0}{1,2}; +EXPECT 'Created' volinfo_field $V0 'Status'; # Set a volume option TEST $CLI volume set $V0 open-behind on @@ -32,3 +33,13 @@ EXPECT '80' volume_get_field $V0 'server-quorum-ratio' # Check user.* options can also be retrived using volume get EXPECT 'dummy' volume_get_field $V0 'user.metadata' + +TEST $CLI volume set all brick-multiplex enable +EXPECT 'enable' volume_get_field $V0 'brick-multiplex' + +TEST $CLI volume set all brick-multiplex disable +EXPECT 'disable' volume_get_field $V0 'brick-multiplex' + +#setting an cluster level option for single volume should fail +TEST ! $CLI volume set $V0 brick-multiplex enable + |