diff options
author | rishubhjain <rishubhjain47@gmail.com> | 2019-04-25 18:44:44 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-05-02 04:52:35 +0000 |
commit | 31411a771f9eea4b65e9dd49f213d021bde51bfe (patch) | |
tree | f09326046ced145b93ddea9e1b01359f90ee7790 /tests | |
parent | bff877b6e0004076ba3d7d4fac3912e8ad9d676d (diff) | |
download | glusterfs-31411a771f9eea4b65e9dd49f213d021bde51bfe.tar.gz glusterfs-31411a771f9eea4b65e9dd49f213d021bde51bfe.tar.xz glusterfs-31411a771f9eea4b65e9dd49f213d021bde51bfe.zip |
tests: add .t files to increase cli code coverage
different volume profile sub options are added in the test.
Change-Id: I93100c37f51afc10870e60b91fcd86e7859e734a
updates: bz#1693692
Signed-off-by: rishubhjain <rishubhjain47@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/line-coverage/cli-peer-and-volume-operations.t | 1 | ||||
-rw-r--r-- | tests/line-coverage/cli-volume-top-profile-coverage.t | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/line-coverage/cli-peer-and-volume-operations.t b/tests/line-coverage/cli-peer-and-volume-operations.t index 81a849885a..27d7439a18 100644 --- a/tests/line-coverage/cli-peer-and-volume-operations.t +++ b/tests/line-coverage/cli-peer-and-volume-operations.t @@ -54,6 +54,7 @@ TEST $CLI_1 volume create $V0 $H1:$B1/$V0 $H2:$B2/$V0 $H3:$B3/$V0 # create a volume with already existing volume name TEST ! $CLI_1 volume create $V0 $H1:$B1/$V1 $H2:$B2/$V1 TEST $CLI_1 volume start $V0 +EXPECT 'Started' cluster_volinfo_field 1 $V0 'Status'; # Mount the volume and create files TEST glusterfs -s $H1 --volfile-id $V0 $M1 diff --git a/tests/line-coverage/cli-volume-top-profile-coverage.t b/tests/line-coverage/cli-volume-top-profile-coverage.t index 73b72ff244..35713c26fa 100644 --- a/tests/line-coverage/cli-volume-top-profile-coverage.t +++ b/tests/line-coverage/cli-volume-top-profile-coverage.t @@ -46,8 +46,8 @@ function test_volume_top_cmds () { # Testing volume profile command with and without xml function test_volume_profile_cmds () { local ret=0 - declare -a profile_cmds=("start" "info" "stop") - for cmd in ${profile_cmds[@]}; do + declare -a profile_cmds=("start" "info" "info peek" "info cumulative" "info clear" "info incremental peek" "stop") + for cmd in "${profile_cmds[@]}"; do $CLI_1 volume profile $V0 $cmd (( ret += $? )) $CLI_1 volume profile $V0 $cmd --xml |