Hi,

This patch introduces few changes to EC2 driver. Currently when client
ask for specific instance/realm/image and this resource does not exists,
various kinds of exceptions are returned and captured in order to say 
'404 - Not Found'. This patch will make EC2 driver return empty set or
'nil' in this case, which is the same behaviour we have in Mock driver.

This patch also adds .wait_for! method that can be used to poll Instance
model:

  instance.wait_for!(driver) { |i| i.is_running? }

or

  instance.wait_for!(driver) { |i| !i.public_addresses.empty? }

This method also include 'callback' to make VCR recording possible.

And finally, this patch set introduce first draft of EC2 driver
unit tests. These tests use VCR recording.

PS: The VCR fixtures are pretty large, so you can grab all three
patches here: http://omicron.mifo.sk/patches.tgz

  -- Michal

Reply via email to