From 13f080c6b379629cd72f41745fcbb413e5a08783 Mon Sep 17 00:00:00 2001 From: geemus Date: Mon, 4 Apr 2011 16:57:39 -0700 Subject: [PATCH] [aws|rds] wait for ready? before reboot --- 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 7770b439e..5e5fce5c7 100644 --- a/tests/aws/requests/rds/instance_tests.rb +++ b/tests/aws/requests/rds/instance_tests.rb @@ -42,7 +42,8 @@ Shindo.tests('AWS::RDS | instance requests', ['aws', 'rds']) do tests 'new storage' do returns(10){ server.allocated_storage} end - + server.wait_for { state == 'available'} + tests("reboot db instance") do tests("#reboot").formats(AWS::RDS::Formats::REBOOT_DB_INSTANCE) do AWS[:rds].reboot_db_instance( @db_instance_id).body