You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/04/10 14:20:37 UTC

[2/3] git commit: Mock: Added :destroy_storage_snapshot operation

Mock: Added :destroy_storage_snapshot operation


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/2cb1b8b8
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/2cb1b8b8
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/2cb1b8b8

Branch: refs/heads/master
Commit: 2cb1b8b8497d055201e304f416abc81d1d0af0ac
Parents: 09bfd93
Author: Michal Fojtik <mf...@redhat.com>
Authored: Thu Apr 5 13:23:19 2012 +0200
Committer: Michal fojtik <mf...@redhat.com>
Committed: Tue Apr 10 14:20:33 2012 +0200

----------------------------------------------------------------------
 server/lib/deltacloud/drivers/mock/mock_driver.rb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/2cb1b8b8/server/lib/deltacloud/drivers/mock/mock_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/mock_driver.rb b/server/lib/deltacloud/drivers/mock/mock_driver.rb
index d8882db..b58872c 100644
--- a/server/lib/deltacloud/drivers/mock/mock_driver.rb
+++ b/server/lib/deltacloud/drivers/mock/mock_driver.rb
@@ -299,6 +299,11 @@ module Deltacloud::Drivers::Mock
       snapshots
     end
 
+    def destroy_storage_snapshot(credentials, opts={})
+      check_credentials(credentials)
+      @client.destroy(:storage_snapshots, opts[:id])
+    end
+
     def keys(credentials, opts={})
       check_credentials(credentials)
       result = @client.build_all(Key)