From 732fad312df9709407466756c2d75efff6bffdf1 Mon Sep 17 00:00:00 2001 From: geemus Date: Thu, 16 Aug 2012 16:12:37 -0500 Subject: [PATCH] [aws|compute] remove brittle instance tests which rely on tests running fast p.s. these fail on travis-ci --- tests/aws/requests/compute/instance_tests.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/aws/requests/compute/instance_tests.rb b/tests/aws/requests/compute/instance_tests.rb index 1cafd7273..f947908cd 100644 --- a/tests/aws/requests/compute/instance_tests.rb +++ b/tests/aws/requests/compute/instance_tests.rb @@ -180,21 +180,6 @@ Shindo.tests('Fog::Compute[:aws] | instance requests', ['aws']) do data end - if Fog.mocking? - # Ensure the new instance doesn't show up in mock describe_instances right away - tests("#describe_instances").formats(@describe_instances_format) do - body = Fog::Compute[:aws].describe_instances.body - instance_ids = body['reservationSet'].map {|reservation| reservation['instancesSet'].map {|instance| instance['instanceId'] } }.flatten - test("doesn't include the new instance") { !instance_ids.include?(@instance_id) } - body - end - - # But querying for the new instance directly should raise an error - tests("#describe_instances('instance-id' => '#{@instance_id}')").raises(Fog::Compute::AWS::NotFound) do - Fog::Compute[:aws].describe_instances('instance-id' => @instance_id) - end - end - server = Fog::Compute[:aws].servers.get(@instance_id) while server.nil? do # It may take a moment to get the server after launching it