mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[compute] Test server reloading.
Also make AWS server tests use default options.
This commit is contained in:
parent
0e5ed656c3
commit
2be5435cf6
2 changed files with 6 additions and 3 deletions
|
@ -1,9 +1,7 @@
|
|||
def compute_providers
|
||||
{
|
||||
AWS => {
|
||||
:server_attributes => {
|
||||
:image_id => 'ami-1a837773' # image ami-1a837773 = Ubuntu
|
||||
},
|
||||
:server_attributes => {},
|
||||
:mocked => true
|
||||
},
|
||||
Bluebox => {
|
||||
|
|
|
@ -2,6 +2,11 @@ def server_tests(connection, params = {}, mocks_implemented = true)
|
|||
|
||||
model_tests(connection.servers, params, mocks_implemented) do
|
||||
|
||||
tests('#reload').returns(true) do
|
||||
identity = @instance.identity
|
||||
!identity.nil? && identity == @instance.reload.identity
|
||||
end
|
||||
|
||||
responds_to([:ready?, :state])
|
||||
|
||||
tests('#reboot').succeeds do
|
||||
|
|
Loading…
Add table
Reference in a new issue