From 1c5b97b9edef1d9bba325ff477c01190a3a963e5 Mon Sep 17 00:00:00 2001 From: Kyle Rames Date: Thu, 31 Oct 2013 10:21:22 -0500 Subject: [PATCH] [rackspace] updating test helper to log errors and not throw exceptions to prevent shindo from halting if an error occurs. --- tests/rackspace/helper.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/rackspace/helper.rb b/tests/rackspace/helper.rb index 3e45f761f..831f45f3f 100644 --- a/tests/rackspace/helper.rb +++ b/tests/rackspace/helper.rb @@ -54,8 +54,12 @@ module Shindo until current_state == state current_state = service.get_server(server_id).body['server']['status'] if error_states - error_states = Array(error_states) - raise "ERROR! Server should have transitioned to '#{state}' not '#{current_state}'" if error_states.include?(current_state) + error_states = Array(error_states) + if error_states.include?(current_state) + Fog::Logger.warning caller + Fog::Logger.warning "ERROR! Server should have transitioned to '#{state}' not '#{current_state}'" + return + end end sleep 10 unless Fog.mocking? end