deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dko...@apache.org
Subject git commit: Tests: added assertion to mock image test for 'CreateImageNotSupported'
Date Fri, 07 Jun 2013 11:41:56 GMT
Updated Branches:
  refs/heads/master e569d391d -> 14cde5cf4


Tests: added assertion to mock image test for 'CreateImageNotSupported'


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

Branch: refs/heads/master
Commit: 14cde5cf48cb086a72f403dacd0812abb7b2bc14
Parents: e569d39
Author: Dies Koper <diesk@fast.au.fujitsu.com>
Authored: Thu Jun 6 21:28:49 2013 +1000
Committer: Dies Koper <diesk@fast.au.fujitsu.com>
Committed: Thu Jun 6 21:40:16 2013 +1000

----------------------------------------------------------------------
 .../drivers/mock/data/instances/inst3.yml          |    2 +-
 server/tests/drivers/mock/images_test.rb           |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/14cde5cf/server/lib/deltacloud/drivers/mock/data/instances/inst3.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/instances/inst3.yml b/server/lib/deltacloud/drivers/mock/data/instances/inst3.yml
index 0d8e36a..35a0c42 100644
--- a/server/lib/deltacloud/drivers/mock/data/instances/inst3.yml
+++ b/server/lib/deltacloud/drivers/mock/data/instances/inst3.yml
@@ -17,7 +17,7 @@
 :instance_profile: !ruby/object:Deltacloud::InstanceProfile
   id: m1-small
 :realm_id: eu
-:create_image: true
+:create_image: false
 :actions:
 - :reboot
 - :stop

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/14cde5cf/server/tests/drivers/mock/images_test.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/mock/images_test.rb b/server/tests/drivers/mock/images_test.rb
index e04b22e..77cc47a 100644
--- a/server/tests/drivers/mock/images_test.rb
+++ b/server/tests/drivers/mock/images_test.rb
@@ -44,6 +44,7 @@ describe 'MockDriver Images' do
     @driver.image(:id => 'img1-test').name.must_equal 'img1-test'
     @driver.image(:id => 'img1-test').description.must_equal 'Test1'
     Proc.new { @driver.create_image(:id => 'unknown-instance', :name => 'test') }.must_raise
Deltacloud::Exceptions::ObjectNotFound
+    Proc.new { @driver.create_image(:id => 'inst3', :name => 'test') }.must_raise Deltacloud::Exceptions::BackendError,
'CreateImageNotSupported'
     @driver.image(:id => 'test').must_be_nil
   end
 


Mime
View raw message