test/dummy/log/test.log in easymon-1.2.6 vs test/dummy/log/test.log in easymon-1.3

- old
+ new

@@ -1,430 +1,533 @@ -  (0.2ms) BEGIN -  (0.1ms) BEGIN +  (18.9ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` +  (0.2ms) BEGIN +  (0.2ms) BEGIN --------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass +MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run --------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.2ms) BEGIN ------------------------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails ------------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -Dalli::Server#connect 127.0.0.1:11211 -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -ChecklistTest: test_#success?_returns_false_when_results_is_empty ------------------------------------------------------------------ -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +----------------------------------------------------------------------- +MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run +----------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------------------ +MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------------- -ChecklistTest: test_#timing_is_a_sum_of_all_check_results +MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache --------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------- -ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist -------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------- -ChecklistTest: test_can_look_up_checks_by_name ----------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------- -ChecklistTest: test_cat_fetch_a_check_by_name ---------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- -ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository -------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------- -ChecklistTest: test_it_will_run_each_check ------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +--------------------------------------------------------------------- +SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run +--------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) BEGIN +----------------------------------------------------------------------- +SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run +----------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +-------------------------------------------------------------------------------------- +ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run +-------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------------------------------ +TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run +------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN ----------------------------------------------------------------- RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------- RedisCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------ RedisCheckTest: test_given_nil_as_a_config ------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------------------- +ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run +-------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------- +ActiveRecordCheckTest: test_given_nil_as_a_config +------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +-------------------------------------------------------------------------- RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist -------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------- RepositoryTest: test_fetches_a_check_by_name -------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN ----------------------------------------------------- RepositoryTest: test_fetches_a_critical_check_by_name ----------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------- RepositoryTest: test_returns_a_checklist_when_asked --------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------------- RepositoryTest: test_we_can_add_a_check_to_the_repository --------------------------------------------------------- -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------- RepositoryTest: test_we_can_remove_a_check_from_the_repository -------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +-------------------------------------------------------------------------------- +SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down +-------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------------------------------- +SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down +------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------------------------------- +SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run +------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------ +SplitActiveRecordCheckTest: test_given_nil_as_a_config +------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------ Processing by Easymon::ChecksController#index as JSON -  (0.2ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------ Processing by Easymon::ChecksController#index as HTML -  (0.1ms) SELECT 1 + Rendering text template Rendered text template (0.0ms) -Completed 503 Service Unavailable in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN +Completed 503 Service Unavailable in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails --------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML + Rendering text template Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails ------------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.1ms) SELECT 1 + Rendering text template Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.2ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_all_checks_pass -------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 + Rendering text template Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined -------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML + Rendering text template Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +Completed 503 Service Unavailable in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) BEGIN +  (0.1ms) BEGIN +---------------------------------------------------------------- +Easymon::ChecksControllerTest: test_return_403_if_not_authorized +---------------------------------------------------------------- +Processing by Easymon::ChecksController#index as HTML +Filter chain halted as :authorize_request rendered or redirected +Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) +Processing by Easymon::ChecksController#show as HTML + Parameters: {"check"=>"database"} +Filter chain halted as :authorize_request rendered or redirected +Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------ Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} + Rendering text template Rendered text template (0.0ms) Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_json_when_the_check_passes ------------------------------------------------------------------- Processing by Easymon::ChecksController#show as JSON Parameters: {"check"=>"database"} -  (0.1ms) SELECT 1 -Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.1ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_fails ------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} + Rendering text template Rendered text template (0.0ms) -Completed 503 Service Unavailable in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -  (0.3ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_passes -------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 + Rendering text template Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ---------------------------------------------------------------- HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------ HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run ------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------ HttpCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------- HttpCheckTest: test_given_nil_as_a_url -------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down --------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------- -SplitActiveRecordCheckTest: test_given_nil_as_a_config ------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------- -ActiveRecordCheckTest: test_given_nil_as_a_config -------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------------------------- +ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass +--------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------------------------------------ +ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails +------------------------------------------------------------------------------------ +Dalli::Server#connect 127.0.0.1:11211 +127.0.0.1:11211 failed (count: 0) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +Dalli::Server#connect 127.0.0.1:11211 +127.0.0.1:11211 failed (count: 1) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +127.0.0.1:11211 is down +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) BEGIN +  (0.1ms) BEGIN +----------------------------------------------------------------- +ChecklistTest: test_#success?_returns_false_when_results_is_empty +----------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN +--------------------------------------------------------- +ChecklistTest: test_#timing_is_a_sum_of_all_check_results +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------------------------- +ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist +------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN +---------------------------------------------- +ChecklistTest: test_can_look_up_checks_by_name +---------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) BEGIN +  (0.1ms) BEGIN +--------------------------------------------- +ChecklistTest: test_cat_fetch_a_check_by_name +--------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +  (0.2ms) BEGIN +------------------------------------------------------------------- +ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository +------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.4ms) ROLLBACK +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) BEGIN +  (0.3ms) BEGIN +------------------------------------------ +ChecklistTest: test_it_will_run_each_check +------------------------------------------ +down_retry_delay not reached for 127.0.0.1:11211 (0.968 seconds left) +down_retry_delay not reached for 127.0.0.1:11211 (0.968 seconds left) +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +--------------------------------------------------------------------- MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run --------------------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------- MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run ----------------------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers ------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------- MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache --------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) BEGIN +---------------------------------------------------------------- +HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run +---------------------------------------------------------------- +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) BEGIN +------------------------------------------------------------------ +HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run +------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------------------ +HttpCheckTest: test_#run_sets_success_conditions_on_successful_run +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +-------------------------------------- +HttpCheckTest: test_given_nil_as_a_url +-------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------------------- RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist --------------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.2ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------- RepositoryTest: test_fetches_a_check_by_name -------------------------------------------- -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.2ms) BEGIN +  (0.1ms) BEGIN  (0.1ms) BEGIN ----------------------------------------------------- RepositoryTest: test_fetches_a_critical_check_by_name -----------------------------------------------------  (0.1ms) ROLLBACK @@ -450,1102 +553,483 @@ --------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down --------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.2ms) BEGIN -  (0.2ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down -------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------- -SplitActiveRecordCheckTest: test_given_nil_as_a_config ------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------------- TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------------ TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------ -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------- -ActiveRecordCheckTest: test_given_nil_as_a_config -------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- -RedisCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------- -RedisCheckTest: test_given_nil_as_a_config ------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------ Processing by Easymon::ChecksController#index as JSON -  (0.2ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------ Processing by Easymon::ChecksController#index as HTML -  (0.3ms) SELECT 1 Rendered text template (0.0ms) -Completed 503 Service Unavailable in 2ms (Views: 1.4ms | ActiveRecord: 0.3ms) -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK +Completed 503 Service Unavailable in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails --------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails ------------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.2ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_all_checks_pass -------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.2ms) BEGIN +  (0.3ms) BEGIN -------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined -------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Rendered text template (0.0ms) Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +---------------------------------------------------------------- +Easymon::ChecksControllerTest: test_return_403_if_not_authorized +---------------------------------------------------------------- +Processing by Easymon::ChecksController#index as HTML +Filter chain halted as :authorize_request rendered or redirected +Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) +Processing by Easymon::ChecksController#show as HTML + Parameters: {"check"=>"database"} +Filter chain halted as :authorize_request rendered or redirected +Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------------ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------ Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Rendered text template (0.0ms) Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.2ms) BEGIN ------------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_json_when_the_check_passes ------------------------------------------------------------------- Processing by Easymon::ChecksController#show as JSON Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_fails ------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.2ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.2ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_passes -------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass +SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run --------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails ------------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -Dalli::Server#connect 127.0.0.1:11211 -  (0.2ms) ROLLBACK +----------------------------------------------------------------------- +SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run +-----------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -ChecklistTest: test_#success?_returns_false_when_results_is_empty ------------------------------------------------------------------ -  (0.1ms) ROLLBACK +-------------------------------------------------------------------------- +ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run +--------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -ChecklistTest: test_#timing_is_a_sum_of_all_check_results ---------------------------------------------------------- -  (0.1ms) ROLLBACK +---------------------------------------------------------------------------- +ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run +----------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------- -ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist -------------------------------------------------------------------------- -  (0.1ms) SELECT 1 +------------------------------------------------- +ActiveRecordCheckTest: test_given_nil_as_a_config +-------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ----------------------------------------------- -ChecklistTest: test_can_look_up_checks_by_name ----------------------------------------------- +-------------------------------------------------------------------------------- +SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down +--------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------- -ChecklistTest: test_cat_fetch_a_check_by_name ---------------------------------------------- -  (0.1ms) ROLLBACK +------------------------------------------------------------------------------- +SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down +-------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------------- -ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository -------------------------------------------------------------------- +------------------------------------------------------------------------------- +SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run +-------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------- -ChecklistTest: test_it_will_run_each_check ------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------- +------------------------------------------------------ +SplitActiveRecordCheckTest: test_given_nil_as_a_config +------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run ------------------------------------------------------------------- +--------------------------------------------------------------------- +ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass +---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------- -HttpCheckTest: test_given_nil_as_a_url --------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.3ms) BEGIN ----------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------------------- -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN ------------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN ---------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass ---------------------------------------------------------------------- -  (0.3ms) SELECT 1=1 -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN ------------------------------------------------------------------------------------ ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails ------------------------------------------------------------------------------------ -  (0.2ms) SELECT 1=1 Dalli::Server#connect 127.0.0.1:11211 -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN +127.0.0.1:11211 failed (count: 0) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +Dalli::Server#connect 127.0.0.1:11211 +127.0.0.1:11211 failed (count: 1) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +127.0.0.1:11211 is down +  (0.3ms) ROLLBACK +  (0.3ms) ROLLBACK +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +  (0.2ms) BEGIN ----------------------------------------------------------------- ChecklistTest: test_#success?_returns_false_when_results_is_empty -----------------------------------------------------------------  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +  (0.2ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------- ChecklistTest: test_#timing_is_a_sum_of_all_check_results ---------------------------------------------------------  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------------- ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist ------------------------------------------------------------------------- -  (0.2ms) SELECT 1=1 +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ---------------------------------------------- ChecklistTest: test_can_look_up_checks_by_name ---------------------------------------------- +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------- ChecklistTest: test_cat_fetch_a_check_by_name --------------------------------------------- +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -------------------------------------------------------------------- -ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository -------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN ------------------------------------------- -ChecklistTest: test_it_will_run_each_check ------------------------------------------- -  (0.2ms) SELECT 1=1 -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN --------------------------------------------------------------------------- -RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist ---------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- -RepositoryTest: test_fetches_a_check_by_name --------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN ------------------------------------------------------ -RepositoryTest: test_fetches_a_critical_check_by_name ------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN ---------------------------------------------------- -RepositoryTest: test_returns_a_checklist_when_asked ---------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN ---------------------------------------------------------- -RepositoryTest: test_we_can_add_a_check_to_the_repository ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN --------------------------------------------------------------- -RepositoryTest: test_we_can_remove_a_check_from_the_repository --------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as JSON -  (0.2ms) SELECT 1=1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1=1 - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms) -  (0.3ms) ROLLBACK -  (0.2ms) BEGIN ---------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails ---------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -------------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails -------------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1=1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_all_checks_pass --------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1=1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined --------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN ----------------------------------------------------------------- -Easymon::ChecksControllerTest: test_return_404_if_not_authorized ----------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -Filter chain halted as :authorize_request rendered or redirected -Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} -Filter chain halted as :authorize_request rendered or redirected -Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN ------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN ------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_json_when_the_check_passes +ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository ------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as JSON - Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1=1 -Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_fails -------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_passes --------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1=1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN ---------------------------------------------------------------------- -MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN ------------------------------------------------------------------------ -MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN ------------------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers -------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.2ms) BEGIN ---------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache ---------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down --------------------------------------------------------------------------------- -  (0.2ms) SELECT 1=1 -  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down -------------------------------------------------------------------------------- -  (0.2ms) SELECT 1=1 -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1=1 -  (0.1ms) SELECT 1=1 +------------------------------------------ +ChecklistTest: test_it_will_run_each_check +------------------------------------------ +down_retry_delay not reached for 127.0.0.1:11211 (0.981 seconds left) +down_retry_delay not reached for 127.0.0.1:11211 (0.981 seconds left)  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------- -SplitActiveRecordCheckTest: test_given_nil_as_a_config -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ----------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run ------------------------------------------------------------------- -  (0.1ms) ROLLBACK +-------------------------------------------------------------------------------------- +ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run +--------------------------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------- -HttpCheckTest: test_given_nil_as_a_url --------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------- +---------------------------------------------------------------------------------------- +ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ----------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------- -  (0.1ms) SELECT 1=1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------- -ActiveRecordCheckTest: test_given_nil_as_a_config -------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------- RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------- RedisCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------ RedisCheckTest: test_given_nil_as_a_config ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.3ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------ Processing by Easymon::ChecksController#index as JSON -  (0.2ms) SELECT 1=1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------ Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1=1 Rendered text template (0.0ms) -Completed 503 Service Unavailable in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN +Completed 503 Service Unavailable in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) BEGIN --------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails --------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Rendered text template (0.0ms) Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.2ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails ------------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1=1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_all_checks_pass -------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1=1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK -  (0.3ms) BEGIN +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined -------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Rendered text template (0.0ms) Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK -  (0.2ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ---------------------------------------------------------------- -Easymon::ChecksControllerTest: test_return_404_if_not_authorized +Easymon::ChecksControllerTest: test_return_403_if_not_authorized ---------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Filter chain halted as :authorize_request rendered or redirected Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Filter chain halted as :authorize_request rendered or redirected Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------ Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Rendered text template (0.0ms) -Completed 404 Not Found in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK -  (0.2ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_json_when_the_check_passes ------------------------------------------------------------------- Processing by Easymon::ChecksController#show as JSON Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1=1 -Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_fails ------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_passes -------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1=1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ------------------------------------------------------------------ -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- -RedisCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------- +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------- -RedisCheckTest: test_given_nil_as_a_config ------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------- -ActiveRecordCheckTest: test_given_nil_as_a_config -------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.4ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------- -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------- -HttpCheckTest: test_given_nil_as_a_url --------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass ---------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails ------------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -Dalli::Server#connect 127.0.0.1:11211 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -ChecklistTest: test_#success?_returns_false_when_results_is_empty ------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -ChecklistTest: test_#timing_is_a_sum_of_all_check_results ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------- -ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist -------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------- -ChecklistTest: test_can_look_up_checks_by_name ----------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------- -ChecklistTest: test_cat_fetch_a_check_by_name ---------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- -ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository -------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------- -ChecklistTest: test_it_will_run_each_check ------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist --------------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN -------------------------------------------- RepositoryTest: test_fetches_a_check_by_name --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) BEGIN  (0.1ms) BEGIN ----------------------------------------------------- RepositoryTest: test_fetches_a_critical_check_by_name -----------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------- RepositoryTest: test_returns_a_checklist_when_asked --------------------------------------------------- -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------- RepositoryTest: test_we_can_add_a_check_to_the_repository ---------------------------------------------------------  (0.1ms) ROLLBACK @@ -1553,37 +1037,33 @@  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------- RepositoryTest: test_we_can_remove_a_check_from_the_repository -------------------------------------------------------------- -  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------------------------- SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------------------- SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down ------------------------------------------------------------------------------- -  (0.1ms) SELECT 1  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------------- SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) SELECT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN @@ -1594,556 +1074,320 @@  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as JSON -  (0.3ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms) -  (0.2ms) ROLLBACK +-------------------------------------------------------------------------- +ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run +--------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.3ms) BEGIN -  (0.2ms) BEGIN -  (0.2ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.3ms) SELECT 1 - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.2ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails ---------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.3ms) BEGIN -  (0.3ms) BEGIN -  (0.2ms) BEGIN -------------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails -------------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_all_checks_pass --------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined --------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +---------------------------------------------------------------------------- +ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run +----------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_json_when_the_check_passes -------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as JSON - Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK +------------------------------------------------- +ActiveRecordCheckTest: test_given_nil_as_a_config +-------------------------------------------------  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.2ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_fails -------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_passes --------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- -RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist --------------------------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------- -RepositoryTest: test_fetches_a_check_by_name --------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------ -RepositoryTest: test_fetches_a_critical_check_by_name ------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------- -RepositoryTest: test_returns_a_checklist_when_asked ---------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -RepositoryTest: test_we_can_add_a_check_to_the_repository ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------- -RepositoryTest: test_we_can_remove_a_check_from_the_repository --------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------- ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass --------------------------------------------------------------------- -  (0.1ms) SELECT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------------------ ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails ------------------------------------------------------------------------------------ -  (0.1ms) SELECT 1 Dalli::Server#connect 127.0.0.1:11211 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +127.0.0.1:11211 failed (count: 0) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +Dalli::Server#connect 127.0.0.1:11211 +127.0.0.1:11211 failed (count: 1) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +127.0.0.1:11211 is down +  (0.3ms) ROLLBACK +  (0.3ms) ROLLBACK +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) BEGIN +  (0.2ms) BEGIN ----------------------------------------------------------------- ChecklistTest: test_#success?_returns_false_when_results_is_empty ----------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN +  (0.2ms) BEGIN --------------------------------------------------------- ChecklistTest: test_#timing_is_a_sum_of_all_check_results --------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------------------- ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist ------------------------------------------------------------------------- -  (0.2ms) SELECT 1  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------- ChecklistTest: test_can_look_up_checks_by_name ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------- ChecklistTest: test_cat_fetch_a_check_by_name ---------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------- ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository ------------------------------------------------------------------- -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------ ChecklistTest: test_it_will_run_each_check ------------------------------------------ -  (0.1ms) SELECT 1 -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------- -  (0.1ms) ROLLBACK +down_retry_delay not reached for 127.0.0.1:11211 (0.972 seconds left) +down_retry_delay not reached for 127.0.0.1:11211 (0.972 seconds left)  (0.1ms) ROLLBACK -  (0.3ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run -------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------- -  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.2ms) BEGIN --------------------------------------- -HttpCheckTest: test_given_nil_as_a_url --------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------------------------- SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run --------------------------------------------------------------------- +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ----------------------------------------------------------------------- SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run ----------------------------------------------------------------------- +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------------------------------- ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run -------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ---------------------------------------------------------------------------------------- ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run ---------------------------------------------------------------------------------------- -  (0.2ms) SELECT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run ---------------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run +TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------- -ActiveRecordCheckTest: test_given_nil_as_a_config --------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as JSON -  (0.1ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) +  (0.1ms) BEGIN +------------------------------------------------------------------------------ +TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run +------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.1ms) SELECT 1 - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms) -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails ---------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails -------------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_all_checks_pass --------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK +----------------------------------------------------------------- +RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run +-----------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined --------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_json_when_the_check_passes +RedisCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as JSON - Parameters: {"check"=>"database"} -  (0.1ms) SELECT 1 -Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_fails -------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK +------------------------------------------ +RedisCheckTest: test_given_nil_as_a_config +------------------------------------------ +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_passes --------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------------------------- MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run --------------------------------------------------------------------- +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.2ms) BEGIN +  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ----------------------------------------------------------------------- MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run ----------------------------------------------------------------------- +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------ MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers ------------------------------------------------------------------ +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------------- MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache --------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run -----------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down --------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 +---------------------------------------------------------------- +HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run +----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------- -SplitActiveRecordCheckTest: test_given_nil_as_a_config ------------------------------------------------------- +------------------------------------------------------------------ +HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run +------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------ -RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ------------------------------------------------------------------ +------------------------------------------------------------------ +HttpCheckTest: test_#run_sets_success_conditions_on_successful_run +------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------------- -RedisCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------- +-------------------------------------- +HttpCheckTest: test_given_nil_as_a_url +--------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------- -RedisCheckTest: test_given_nil_as_a_config ------------------------------------------- +  (0.3ms) BEGIN +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +------------------------------------------------------------------------------ +TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run +------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +--------------------------------------------------------------------- +SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run +--------------------------------------------------------------------- +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +----------------------------------------------------------------------- +SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run +----------------------------------------------------------------------- +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------ Processing by Easymon::ChecksController#index as JSON -  (0.3ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms) -  (0.2ms) ROLLBACK +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------ Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 Rendered text template (0.0ms) -Completed 503 Service Unavailable in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) +Completed 503 Service Unavailable in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------------- @@ -2151,214 +1395,225 @@ --------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Rendered text template (0.0ms) Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails ------------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.1ms) SELECT 1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) -  (0.1ms) ROLLBACK +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_all_checks_pass -------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined -------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN +---------------------------------------------------------------- +Easymon::ChecksControllerTest: test_return_403_if_not_authorized +---------------------------------------------------------------- +Processing by Easymon::ChecksController#index as HTML +Filter chain halted as :authorize_request rendered or redirected +Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) +Processing by Easymon::ChecksController#show as HTML + Parameters: {"check"=>"database"} +Filter chain halted as :authorize_request rendered or redirected +Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------------ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------ Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Rendered text template (0.0ms) Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_json_when_the_check_passes ------------------------------------------------------------------- Processing by Easymon::ChecksController#show as JSON Parameters: {"check"=>"database"} -  (0.1ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) -  (0.1ms) ROLLBACK +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_fails ------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Rendered text template (0.0ms) Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_passes -------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.4ms) ROLLBACK  (0.2ms) BEGIN -  (0.2ms) BEGIN +  (0.1ms) BEGIN +-------------------------------------------------------------------------------------- +ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run +-------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------------------- ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------------------------------------- ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run ---------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------- ActiveRecordCheckTest: test_given_nil_as_a_config ------------------------------------------------- +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +-------------------------------------------------------------------------------- +SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down +--------------------------------------------------------------------------------  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN +------------------------------------------------------------------------------- +SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down +------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------------------------------- +SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run +------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN +------------------------------------------------------ +SplitActiveRecordCheckTest: test_given_nil_as_a_config +------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------------------------- MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ----------------------------------------------------------------------- MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------ MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------- MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run -----------------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------------------- +----------------------------------------------------------------- +RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run +-----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------------------------------- -SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK +------------------------------------------------------------------- +RedisCheckTest: test_#run_sets_success_conditions_on_successful_run +-------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down --------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------- -SplitActiveRecordCheckTest: test_given_nil_as_a_config ------------------------------------------------------- +------------------------------------------ +RedisCheckTest: test_given_nil_as_a_config +------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN @@ -2395,63 +1650,36 @@ ---------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.3ms) BEGIN +  (0.2ms) BEGIN --------------------------------------------------------- RepositoryTest: test_we_can_add_a_check_to_the_repository ---------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------- RepositoryTest: test_we_can_remove_a_check_from_the_repository --------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------ -RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- -RedisCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------- -RedisCheckTest: test_given_nil_as_a_config ------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------- HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------ HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run @@ -2481,320 +1709,130 @@  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------------- ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass --------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------------------------ ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails ------------------------------------------------------------------------------------ -  (0.2ms) SELECT 1 Dalli::Server#connect 127.0.0.1:11211 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN +127.0.0.1:11211 failed (count: 0) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +Dalli::Server#connect 127.0.0.1:11211 +127.0.0.1:11211 failed (count: 1) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +127.0.0.1:11211 is down +  (0.3ms) ROLLBACK +  (0.3ms) ROLLBACK +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) BEGIN +  (0.2ms) BEGIN ----------------------------------------------------------------- ChecklistTest: test_#success?_returns_false_when_results_is_empty ----------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN +  (0.2ms) BEGIN --------------------------------------------------------- ChecklistTest: test_#timing_is_a_sum_of_all_check_results --------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------------------- ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist ------------------------------------------------------------------------- -  (0.1ms) SELECT 1 +  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.2ms) BEGIN ---------------------------------------------- ChecklistTest: test_can_look_up_checks_by_name ---------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------- ChecklistTest: test_cat_fetch_a_check_by_name --------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------- ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository ------------------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------ ChecklistTest: test_it_will_run_each_check ------------------------------------------ -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------------------- +down_retry_delay not reached for 127.0.0.1:11211 (0.979 seconds left) +down_retry_delay not reached for 127.0.0.1:11211 (0.978 seconds left) +  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.2ms) BEGIN --------------------------------------------------------------------- -MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run +ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass --------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.2ms) BEGIN ------------------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------- -HttpCheckTest: test_given_nil_as_a_url --------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as JSON -  (0.3ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails ---------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.2ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails -------------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_all_checks_pass --------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined --------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.2ms) BEGIN ----------------------------------------------------------------- -Easymon::ChecksControllerTest: test_return_404_if_not_authorized ----------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -Filter chain halted as :authorize_request rendered or redirected -Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} -Filter chain halted as :authorize_request rendered or redirected -Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.2ms) BEGIN -------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_json_when_the_check_passes -------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as JSON - Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.3ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_fails -------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_passes --------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass ---------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------------------ ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails ------------------------------------------------------------------------------------ -  (0.1ms) SELECT 1 Dalli::Server#connect 127.0.0.1:11211 -  (0.2ms) ROLLBACK +127.0.0.1:11211 failed (count: 0) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +Dalli::Server#connect 127.0.0.1:11211 +127.0.0.1:11211 failed (count: 1) Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 11211 +127.0.0.1:11211 is down  (0.2ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK  (0.2ms) BEGIN +  (0.1ms) BEGIN ----------------------------------------------------------------- ChecklistTest: test_#success?_returns_false_when_results_is_empty ----------------------------------------------------------------- +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN --------------------------------------------------------- ChecklistTest: test_#timing_is_a_sum_of_all_check_results --------------------------------------------------------- +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------------- ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist ------------------------------------------------------------------------- -  (0.1ms) SELECT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------- @@ -2819,103 +1857,54 @@  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------ ChecklistTest: test_it_will_run_each_check ------------------------------------------ -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK +down_retry_delay not reached for 127.0.0.1:11211 (0.988 seconds left) +down_retry_delay not reached for 127.0.0.1:11211 (0.987 seconds left)  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------ -SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- -RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist --------------------------------------------------------------------------- -  (0.1ms) ROLLBACK +-------------------------------------------------------------------------------------- +ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run +--------------------------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------- -RepositoryTest: test_fetches_a_check_by_name ---------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------ -RepositoryTest: test_fetches_a_critical_check_by_name ------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------- -RepositoryTest: test_returns_a_checklist_when_asked ---------------------------------------------------- -  (0.1ms) ROLLBACK +---------------------------------------------------------------------------------------- +ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run +----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -RepositoryTest: test_we_can_add_a_check_to_the_repository ----------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------- -RepositoryTest: test_we_can_remove_a_check_from_the_repository --------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ------------------------------------------------------------------ -  (0.1ms) ROLLBACK +--------------------------------------------------------------------- +SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run +---------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- -RedisCheckTest: test_#run_sets_success_conditions_on_successful_run --------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------- -RedisCheckTest: test_given_nil_as_a_config ------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN +----------------------------------------------------------------------- +SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run +----------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.1ms) BEGIN +  (0.1ms) BEGIN -------------------------------------------------------------------------- ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run -------------------------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN +  (0.1ms) BEGIN ---------------------------------------------------------------------------- ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run ---------------------------------------------------------------------------- -  (0.1ms) SELECT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------- @@ -2923,969 +1912,332 @@ -------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ----------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down --------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------- -SplitActiveRecordCheckTest: test_given_nil_as_a_config ------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.2ms) BEGIN ---------------------------------------------------------------- HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------- -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------ HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run ------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------ HttpCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------- HttpCheckTest: test_given_nil_as_a_url --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------------- TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------------- -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------------------ TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------ -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN -------------------------------------------------------------------- -RedisCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------- -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.2ms) BEGIN ------------------------------------------- -RedisCheckTest: test_given_nil_as_a_config ------------------------------------------- -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.2ms) BEGIN --------------------------------------------------------------------------- -RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist --------------------------------------------------------------------------- -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------- -RepositoryTest: test_fetches_a_check_by_name --------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------ -RepositoryTest: test_fetches_a_critical_check_by_name ------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.2ms) BEGIN ---------------------------------------------------- -RepositoryTest: test_returns_a_checklist_when_asked ---------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -RepositoryTest: test_we_can_add_a_check_to_the_repository ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------- -RepositoryTest: test_we_can_remove_a_check_from_the_repository --------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down -------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------------- SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down ------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------------------- SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------ SplitActiveRecordCheckTest: test_given_nil_as_a_config ------------------------------------------------------ -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass ---------------------------------------------------------------------- -  (0.1ms) SELECT 1  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails ------------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -Dalli::Server#connect 127.0.0.1:11211 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -ChecklistTest: test_#success?_returns_false_when_results_is_empty ------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -ChecklistTest: test_#timing_is_a_sum_of_all_check_results ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------- -ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist -------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------- -ChecklistTest: test_can_look_up_checks_by_name ----------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------- -ChecklistTest: test_cat_fetch_a_check_by_name ---------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- -ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository -------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------- -ChecklistTest: test_it_will_run_each_check ------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers ------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------- -ActiveRecordCheckTest: test_given_nil_as_a_config -------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------ Processing by Easymon::ChecksController#index as JSON -  (0.3ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms) -  (0.2ms) ROLLBACK +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------ Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------ Processing by Easymon::ChecksController#index as HTML -  (0.1ms) SELECT 1 Rendered text template (0.0ms) -Completed 503 Service Unavailable in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms) -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +Completed 503 Service Unavailable in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails --------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Rendered text template (0.0ms) Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails ------------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_all_checks_pass -------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined -------------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Rendered text template (0.0ms) Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------------------------- -Easymon::ChecksControllerTest: test_return_404_if_not_authorized +Easymon::ChecksControllerTest: test_return_403_if_not_authorized ---------------------------------------------------------------- Processing by Easymon::ChecksController#index as HTML Filter chain halted as :authorize_request rendered or redirected Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Filter chain halted as :authorize_request rendered or redirected Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.2ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------------ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------ Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Rendered text template (0.0ms) -Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_json_when_the_check_passes ------------------------------------------------------------------- Processing by Easymon::ChecksController#show as JSON Parameters: {"check"=>"database"} -  (0.1ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_fails ------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} Rendered text template (0.0ms) Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.3ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_passes --------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.2ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------------------- -SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_returns_valid_json ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as JSON -  (0.2ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_check_fails ------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.3ms) SELECT 1 - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 2ms (Views: 1.1ms | ActiveRecord: 0.3ms) -  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.2ms) BEGIN ---------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails ---------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.2ms) BEGIN -  (0.2ms) BEGIN -------------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails -------------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.3ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms) -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_all_checks_pass --------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -  (0.2ms) SELECT 1 - Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined --------------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------- -Easymon::ChecksControllerTest: test_return_403_if_not_authorized ----------------------------------------------------------------- -Processing by Easymon::ChecksController#index as HTML -Filter chain halted as :authorize_request rendered or redirected -Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} -Filter chain halted as :authorize_request rendered or redirected -Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found ------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_json_when_the_check_passes -------------------------------------------------------------------- -Processing by Easymon::ChecksController#show as JSON - Parameters: {"check"=>"database"} -  (0.1ms) SELECT 1 -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------- -Easymon::ChecksControllerTest: test_show_when_the_check_fails -------------------------------------------------------------- -Processing by Easymon::ChecksController#show as HTML - Parameters: {"check"=>"database"} - Rendered text template (0.0ms) -Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN +  (0.2ms) BEGIN -------------------------------------------------------------- Easymon::ChecksControllerTest: test_show_when_the_check_passes -------------------------------------------------------------- Processing by Easymon::ChecksController#show as HTML Parameters: {"check"=>"database"} -  (0.2ms) SELECT 1 Rendered text template (0.0ms) -Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) -  (0.1ms) ROLLBACK +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run -----------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------------- -TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run ------------------------------------------------------------------------------- -  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN +  (0.1ms) BEGIN ----------------------------------------------------------------- RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------- +  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK -  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.2ms) BEGIN -  (0.2ms) BEGIN +  (0.1ms) BEGIN +  (0.2ms) BEGIN ------------------------------------------------------------------- RedisCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------- -  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN -  (0.2ms) BEGIN +  (0.1ms) BEGIN +  (0.1ms) BEGIN ------------------------------------------ RedisCheckTest: test_given_nil_as_a_config ------------------------------------------ -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- -RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist ---------------------------------------------------------------------------  (0.2ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------- -RepositoryTest: test_fetches_a_check_by_name --------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------ -RepositoryTest: test_fetches_a_critical_check_by_name ------------------------------------------------------ -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.3ms) BEGIN ---------------------------------------------------- -RepositoryTest: test_returns_a_checklist_when_asked ---------------------------------------------------- -  (0.2ms) ROLLBACK -  (0.4ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------------------- -RepositoryTest: test_we_can_add_a_check_to_the_repository ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------- -RepositoryTest: test_we_can_remove_a_check_from_the_repository --------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------- -ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------- -ActiveRecordCheckTest: test_given_nil_as_a_config -------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run --------------------------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- -ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run ----------------------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down --------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.2ms) BEGIN  (0.2ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down -------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.2ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------------- -SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run -------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------- -SplitActiveRecordCheckTest: test_given_nil_as_a_config ------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN --------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass +MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run --------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------------------- -ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails ------------------------------------------------------------------------------------- -  (0.2ms) SELECT 1 -Dalli::Server#connect 127.0.0.1:11211  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN +  (0.2ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -ChecklistTest: test_#success?_returns_false_when_results_is_empty ------------------------------------------------------------------ +  (0.2ms) BEGIN +----------------------------------------------------------------------- +MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run +-----------------------------------------------------------------------  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------------------- -ChecklistTest: test_#timing_is_a_sum_of_all_check_results ---------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------------- -ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist -------------------------------------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------- -ChecklistTest: test_can_look_up_checks_by_name ----------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ---------------------------------------------- -ChecklistTest: test_cat_fetch_a_check_by_name ---------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN -------------------------------------------------------------------- -ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository -------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------- -ChecklistTest: test_it_will_run_each_check ------------------------------------------- -  (0.1ms) SELECT 1 -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ----------------------------------------------------------------- -HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ----------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------ -HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run +MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------- -HttpCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------- -  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache +--------------------------------------------------------- +  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------- -HttpCheckTest: test_given_nil_as_a_url --------------------------------------- +-------------------------------------------------------------------------- +RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist +--------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------------------------------- -MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- +-------------------------------------------- +RepositoryTest: test_fetches_a_check_by_name +--------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------------ -MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ +----------------------------------------------------- +RepositoryTest: test_fetches_a_critical_check_by_name +-----------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ------------------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers ------------------------------------------------------------------- +--------------------------------------------------- +RepositoryTest: test_returns_a_checklist_when_asked +---------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN --------------------------------------------------------- -MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache +RepositoryTest: test_we_can_add_a_check_to_the_repository ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) BEGIN ---------------------------------------------------------------------- -SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run ---------------------------------------------------------------------- -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) BEGIN -  (0.1ms) BEGIN ------------------------------------------------------------------------ -SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run ------------------------------------------------------------------------ +-------------------------------------------------------------- +RepositoryTest: test_we_can_remove_a_check_from_the_repository +--------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK