diff options
author | Vijaikumar M <vmallika@redhat.com> | 2014-03-04 13:02:52 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2014-03-06 01:31:23 -0800 |
commit | 40497ba922667abbc20dda635cb0ef0abe5f51eb (patch) | |
tree | 3755c4d52ff5ed4a6d6f0d1cff0dcd80cef52ba1 /tests/bugs | |
parent | fabee8f75c56f18c949b79dcc751c2855b5c7514 (diff) |
glusterd/snapshot: Snapshot create and delete changes
With the snap driven approach, While creating the snapshot, We have to
mention the snap-name first and then the volumes to be associated with
that. Corresponding changes has been made in glusterd.
While deleting the snapshot, we have to mention only the snapname.
Corresponding changes has been made in glusterd.
CLI changes for the same can be found here:
http://review.gluster.org/#/c/6947/
Change-Id: I8bd8f471da5b728165da5f331faad3dde3486823
Signed-off-by: Vijaikumar M <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/7123
Reviewed-by: Avra Sengupta <asengupt@redhat.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/bug-1040934.t | 2 | ||||
-rw-r--r-- | tests/bugs/bug-1045333.t | 6 | ||||
-rwxr-xr-x | tests/bugs/bug-1049834.t | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/bugs/bug-1040934.t b/tests/bugs/bug-1040934.t index d057f0cb7..3089d7ce1 100644 --- a/tests/bugs/bug-1040934.t +++ b/tests/bugs/bug-1040934.t @@ -19,7 +19,7 @@ EXPECT 'Created' volinfo_field $V0 'Status' TEST $CLI_1 volume start $V0 EXPECT 'Started' volinfo_field $V0 'Status' -TEST $CLI_1 snapshot create $V0 -n ${V0}_snap +TEST $CLI_1 snapshot create ${V0}_snap ${V0} PID_1=$! wait $PID_1 diff --git a/tests/bugs/bug-1045333.t b/tests/bugs/bug-1045333.t index 59ef1c5e7..d1f8069e8 100644 --- a/tests/bugs/bug-1045333.t +++ b/tests/bugs/bug-1045333.t @@ -18,13 +18,13 @@ S2="-${V0}-snap2" #Create snapshot with name starts with hyphen(-) #Create snapshot with a long name S3="${V0}_single_gluster_volume_is_accessible_by_multiple_clients_offline_snapshot_is_a_long_name" -TEST $CLI snapshot create $V0 -n $S1 +TEST $CLI snapshot create $S1 $V0 TEST snapshot_exists $S1 -TEST $CLI snapshot create $V0 -n $S2 +TEST $CLI snapshot create $S2 $V0 TEST snapshot_exists $S2 -TEST $CLI snapshot create $V0 -n $S3 +TEST $CLI snapshot create $S3 $V0 TEST snapshot_exists $S3 diff --git a/tests/bugs/bug-1049834.t b/tests/bugs/bug-1049834.t index 6587fb765..6019a561c 100755 --- a/tests/bugs/bug-1049834.t +++ b/tests/bugs/bug-1049834.t @@ -29,7 +29,7 @@ TEST create_n_snapshots $V0 4 $V0_snap TEST snapshot_n_exists $V0 4 $V0_snap #Creating the 5th snapshots on the volume and expecting it not to be created. -TEST ! $CLI_1 snapshot create $V0 -n ${V0}_snap5 +TEST ! $CLI_1 snapshot create ${V0}_snap5 ${V0} TEST ! snapshot_exists ${V0}_snap5 TEST ! $CLI_1 snapshot delete ${V0}_snap5 |