From 09c8d800753fd6882361e68c81efa93b122989fd Mon Sep 17 00:00:00 2001 From: Sergio Rubio Date: Fri, 4 Jan 2013 23:07:33 +0100 Subject: [PATCH] [xenserver|tests] added more pool tests to cover the new functionality --- tests/xenserver/models/compute/pool_tests.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/xenserver/models/compute/pool_tests.rb b/tests/xenserver/models/compute/pool_tests.rb index b593abe6b..54e26e123 100644 --- a/tests/xenserver/models/compute/pool_tests.rb +++ b/tests/xenserver/models/compute/pool_tests.rb @@ -19,7 +19,8 @@ Shindo.tests('Fog::Compute[:xenserver] | Pool model', ['xenserver']) do :tags, :restrictions, :ha_enabled, - :vswitch_controller + :vswitch_controller, + :__suspend_image_sr ] tests("The Pool model should respond to") do attributes.each do |attribute| @@ -44,6 +45,11 @@ Shindo.tests('Fog::Compute[:xenserver] | Pool model', ['xenserver']) do 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