Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 09c8d800753fd6882361e68c81efa93b122989fd 1 parent 4ddef41
@rubiojr authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 tests/xenserver/models/compute/pool_tests.rb
View
8 tests/xenserver/models/compute/pool_tests.rb
@@ -19,7 +19,8 @@
: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 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.