mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|compute] fixes for mocks tests
This commit is contained in:
parent
d3073af15a
commit
66ed4aa98b
3 changed files with 7 additions and 1 deletions
|
@ -49,7 +49,7 @@ module Fog
|
|||
# user_data=nil
|
||||
# >
|
||||
#
|
||||
|
||||
|
||||
def initialize(attributes)
|
||||
self.filters ||= {}
|
||||
super
|
||||
|
|
|
@ -12,6 +12,11 @@ def collection_tests(collection, params = {}, mocks_implemented = true)
|
|||
@instance = collection.create(params)
|
||||
end
|
||||
|
||||
# FIXME: work around for timing issue on AWS describe_instances mocks
|
||||
if Fog.mocking? && @instance.respond_to?(:ready?)
|
||||
@instance.wait_for { ready? }
|
||||
end
|
||||
|
||||
tests("#all").succeeds do
|
||||
pending if Fog.mocking? && !mocks_implemented
|
||||
collection.all
|
||||
|
|
|
@ -4,6 +4,7 @@ def server_tests(connection, params = {}, mocks_implemented = true)
|
|||
|
||||
tests('#reload').returns(true) do
|
||||
pending if Fog.mocking? && !mocks_implemented
|
||||
@instance.wait_for { ready? }
|
||||
identity = @instance.identity
|
||||
!identity.nil? && identity == @instance.reload.identity
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue