From 31411a771f9eea4b65e9dd49f213d021bde51bfe Mon Sep 17 00:00:00 2001 From: rishubhjain Date: Thu, 25 Apr 2019 18:44:44 +0530 Subject: 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 --- tests/line-coverage/cli-peer-and-volume-operations.t | 1 + tests/line-coverage/cli-volume-top-profile-coverage.t | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/line-coverage') diff --git a/tests/line-coverage/cli-peer-and-volume-operations.t b/tests/line-coverage/cli-peer-and-volume-operations.t index 81a849885a3..27d7439a180 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 73b72ff2446..35713c26faa 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 -- cgit