diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2019-04-25 19:02:39 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-05-02 06:00:17 +0000 |
commit | 60d6e90bd0565f8d56641ff97dd90348894ac870 (patch) | |
tree | 149dabf5d43ee32dba3fb7ffdf0a6405043a81d5 /tests/line-coverage/cli-peer-and-volume-operations.t | |
parent | 31411a771f9eea4b65e9dd49f213d021bde51bfe (diff) | |
download | glusterfs-60d6e90bd0565f8d56641ff97dd90348894ac870.tar.gz glusterfs-60d6e90bd0565f8d56641ff97dd90348894ac870.tar.xz glusterfs-60d6e90bd0565f8d56641ff97dd90348894ac870.zip |
tests/cli: add .t file to increase line coverage in cli
updates: bz#1693692
Change-Id: Ib188c5fddea8c762e89ff15aa83b08c35cdb21e1
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'tests/line-coverage/cli-peer-and-volume-operations.t')
-rw-r--r-- | tests/line-coverage/cli-peer-and-volume-operations.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/line-coverage/cli-peer-and-volume-operations.t b/tests/line-coverage/cli-peer-and-volume-operations.t index 27d7439a18..5c44565cbc 100644 --- a/tests/line-coverage/cli-peer-and-volume-operations.t +++ b/tests/line-coverage/cli-peer-and-volume-operations.t @@ -12,6 +12,8 @@ cleanup TEST launch_cluster 3 +TEST $CLI_1 system uuid reset + ## basic peer commands TEST $CLI_1 peer probe $H2 EXPECT_WITHIN $PROBE_TIMEOUT 1 peer_count 1 @@ -39,6 +41,15 @@ TEST ! $CLI_1 peer probe 1024.1024.1024.1024 TEST $CLI_1 pool list +TEST $CLI_1 --help +TEST $CLI_1 --version +TEST $CLI_1 --print-logdir +TEST $CLI_1 --print-statedumpdir + +# try unrecognised command +TEST ! $CLI_1 volume +TEST pidof glusterd + ## all help commands TEST $CLI_1 global help TEST $CLI_1 help @@ -63,4 +74,14 @@ TEST touch $M1/file{1..100} #fails because $V0 is not shd compatible TEST ! $CLI_1 volume status $V0 shd +#test explicitly provided options +TEST $CLI_1 --timeout=120 --log-level=INFO volume status + +# system commnds +TEST $CLI_1 system help +TEST $CLI_1 system uuid get +TEST $CLI_1 system getspec $V0 +TEST $CLI_1 system getwd +TEST $CLI_1 system fsm log + cleanup |