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:
parent
4ddef41a59
commit
09c8d80075
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue