1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[xenserver|tests] added more pool tests to cover the new functionality

This commit is contained in:
Sergio Rubio 2013-01-04 23:07:33 +01:00
parent 4ddef41a59
commit 09c8d80075

View file

@ -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