1
0
Fork 0
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:
Aaron Suggs 2011-05-13 16:43:12 -04:00
parent 0e5ed656c3
commit 2be5435cf6
2 changed files with 6 additions and 3 deletions

View file

@ -1,9 +1,7 @@
def compute_providers
{
AWS => {
:server_attributes => {
:image_id => 'ami-1a837773' # image ami-1a837773 = Ubuntu
},
:server_attributes => {},
:mocked => true
},
Bluebox => {

View file

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