From 9508ee283e22423c564a47a72214045b07fee059 Mon Sep 17 00:00:00 2001 From: geemus Date: Mon, 4 Apr 2011 17:22:15 -0700 Subject: [PATCH] [aws|rds] wait for instance ready? before delete --- tests/aws/requests/rds/instance_tests.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/aws/requests/rds/instance_tests.rb b/tests/aws/requests/rds/instance_tests.rb index 5e5fce5c7..4bb29c22c 100644 --- a/tests/aws/requests/rds/instance_tests.rb +++ b/tests/aws/requests/rds/instance_tests.rb @@ -86,8 +86,9 @@ Shindo.tests('AWS::RDS | instance requests', ['aws', 'rds']) do tests("replica identifiers") do returns([@db_replica_id]){server.read_replica_identifiers} end - + tests("#delete_db_instance").formats(AWS::RDS::Formats::DELETE_DB_INSTANCE) do + server.wait_for { state == 'available'} AWS[:rds].delete_db_instance(@db_replica_id, nil, true) body = AWS[:rds].delete_db_instance(@db_instance_id, 'fog-final-snapshot').body Fog.wait_for do