tests/xenserver/models/compute/pool_tests.rb in fog-1.8.0 vs tests/xenserver/models/compute/pool_tests.rb in fog-1.9.0

- old
+ new

@@ -17,11 +17,12 @@ :__default_sr, :__master, :tags, :restrictions, :ha_enabled, - :vswitch_controller + :vswitch_controller, + :__suspend_image_sr ] tests("The Pool model should respond to") do attributes.each do |attribute| test("#{attribute}") { pool.respond_to? attribute } end @@ -41,9 +42,14 @@ tests("return a valid default_storage_repository") do test("should be a Fog::Compute::XenServer::StorageRepository") { pool.default_storage_repository.kind_of? Fog::Compute::XenServer::StorageRepository } end tests("return valid Host as the master") do test("should be a Fog::Compute::XenServer::Host") { pool.master.kind_of? Fog::Compute::XenServer::Host } + end + test("be able to be configured as a valid suspend_image_sr") do + pool.suspend_image_sr = pool.default_storage_repository + pool.reload + pool.suspend_image_sr.reference == pool.default_storage_repository.reference end end end