easymon 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of easymon might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45d2b32d2bfd9756867864f0efac82ca31eaa453
4
- data.tar.gz: 10221dd57fc4449ea1647e3d919263b7e62993e0
3
+ metadata.gz: 29ecc776d155e2a0953af0b15d22569a09944d9b
4
+ data.tar.gz: 936153e7e49f93aec7933313205d1181393fb0d1
5
5
  SHA512:
6
- metadata.gz: 1e0f2965acc1d4376dc7e6e6816a668631bc1dcc9a16835ec6f74b148858e0de7014634311ddefe2608b2591dbddccfde9f5340d1c7aa7acc82434fa1b63ee02
7
- data.tar.gz: 8a9714bfa21cf3e3eba9cb483f6e92a5de4b31c719f6df6ff576d8f591ef6ed372bfb93b8c74192a776ed273eec095ddacec68ba2b8e15ba721f0eec14ba638c
6
+ metadata.gz: 3f2d69c09de39473a0fb124adaac50fe571a42d09b7ebbdbb42f37b26c896841c7a9514304f94e52153edd99aacba358d2ef6e22c7d81ae480955c7dba8e04a3
7
+ data.tar.gz: 0c26aad8b1237d6767c0e9e0b2f564cd0fcb1a4950faf66c364d712d04bb24defb7dc675cb3963bf4e3cd3fa1793483c0c165cb5682976787c461a74162655b8
@@ -5,8 +5,8 @@ module Easymon
5
5
  class ChecksController < ApplicationController
6
6
  rescue_from Easymon::NoSuchCheck do |e|
7
7
  respond_to do |format|
8
- format.any(:text, :html) { render :text => e.message, :status => :not_found }
9
- format.json { render :json => e.message, :status => :not_found }
8
+ format.any(:text, :html) { render_result e.message, :not_found }
9
+ format.json { render :json => e.message, :status => :not_found }
10
10
  end
11
11
  end
12
12
 
@@ -32,7 +32,7 @@ module Easymon
32
32
  end
33
33
 
34
34
  respond_to do |format|
35
- format.any(:text, :html) { render :text => message, :status => response_status }
35
+ format.any(:text, :html) { render_result message, response_status }
36
36
  format.json { render :json => checklist, :status => response_status }
37
37
  end
38
38
  end
@@ -55,14 +55,12 @@ module Easymon
55
55
  result = Easymon::Result.new(check_result, timing, check[:critical])
56
56
  end
57
57
 
58
-
59
-
60
58
  respond_to do |format|
61
59
  format.any(:text, :html) do
62
60
  if is_critical
63
- render :text => add_prefix(checklist.success?, checklist), :status => checklist.response_status
61
+ render_result add_prefix(checklist.success?, checklist), checklist.response_status
64
62
  else
65
- render :text => result, :status => result.response_status
63
+ render_result result, result.response_status
66
64
  end
67
65
  end
68
66
  format.json do
@@ -76,6 +74,11 @@ module Easymon
76
74
  end
77
75
 
78
76
  private
77
+ def render_result(message, status)
78
+ symbol_for_plain = Easymon.has_render_plain? ? :plain : :text
79
+ render symbol_for_plain => message, :status => status
80
+ end
81
+
79
82
  def add_prefix(result, message)
80
83
  result ? "OK #{message}" : "DOWN #{message}"
81
84
  end
@@ -35,6 +35,15 @@ module Easymon
35
35
  Easymon.rails_version > Gem::Version.new("3.1")
36
36
  end
37
37
 
38
+ def self.newer_than?(version)
39
+ Easymon.rails_version > Gem::Version.new(version)
40
+ end
41
+
42
+ def self.has_render_plain?
43
+ # Rails 4.1.0 introduced :plain, Rails 5 deprecated :text
44
+ Easymon.newer_than?("4.1.0.beta")
45
+ end
46
+
38
47
  def self.routes(mapper, path = "/up")
39
48
  if Easymon.rails2?
40
49
  # Rails 2.3.x (anything less than 3, really)
@@ -1,3 +1,3 @@
1
1
  module Easymon
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
@@ -408,3 +408,2158 @@ MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache
408
408
   (0.1ms) ROLLBACK
409
409
   (0.1ms) ROLLBACK
410
410
   (0.1ms) ROLLBACK
411
+  (0.2ms) BEGIN
412
+  (0.2ms) BEGIN
413
+ --------------------------------------------------------------------------
414
+ RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist
415
+ --------------------------------------------------------------------------
416
+  (0.1ms) ROLLBACK
417
+  (0.2ms) ROLLBACK
418
+  (0.1ms) BEGIN
419
+  (0.2ms) BEGIN
420
+ --------------------------------------------
421
+ RepositoryTest: test_fetches_a_check_by_name
422
+ --------------------------------------------
423
+  (0.1ms) ROLLBACK
424
+  (0.1ms) ROLLBACK
425
+  (0.2ms) BEGIN
426
+  (0.1ms) BEGIN
427
+ -----------------------------------------------------
428
+ RepositoryTest: test_fetches_a_critical_check_by_name
429
+ -----------------------------------------------------
430
+  (0.1ms) ROLLBACK
431
+  (0.1ms) ROLLBACK
432
+  (0.1ms) BEGIN
433
+  (0.1ms) BEGIN
434
+ ---------------------------------------------------
435
+ RepositoryTest: test_returns_a_checklist_when_asked
436
+ ---------------------------------------------------
437
+  (0.1ms) ROLLBACK
438
+  (0.1ms) ROLLBACK
439
+  (0.1ms) BEGIN
440
+  (0.1ms) BEGIN
441
+ ---------------------------------------------------------
442
+ RepositoryTest: test_we_can_add_a_check_to_the_repository
443
+ ---------------------------------------------------------
444
+  (0.1ms) ROLLBACK
445
+  (0.1ms) ROLLBACK
446
+  (0.1ms) BEGIN
447
+  (0.1ms) BEGIN
448
+ --------------------------------------------------------------
449
+ RepositoryTest: test_we_can_remove_a_check_from_the_repository
450
+ --------------------------------------------------------------
451
+  (0.1ms) ROLLBACK
452
+  (0.1ms) ROLLBACK
453
+  (0.1ms) BEGIN
454
+  (0.1ms) BEGIN
455
+ --------------------------------------------------------------------------------
456
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down
457
+ --------------------------------------------------------------------------------
458
+  (0.2ms) SELECT 1
459
+  (0.2ms) ROLLBACK
460
+  (0.2ms) ROLLBACK
461
+  (0.2ms) BEGIN
462
+  (0.2ms) BEGIN
463
+  (0.2ms) BEGIN
464
+ -------------------------------------------------------------------------------
465
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down
466
+ -------------------------------------------------------------------------------
467
+  (0.2ms) SELECT 1
468
+  (0.1ms) ROLLBACK
469
+  (0.2ms) ROLLBACK
470
+  (0.2ms) BEGIN
471
+  (0.1ms) BEGIN
472
+  (0.1ms) BEGIN
473
+ -------------------------------------------------------------------------------
474
+ SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run
475
+ -------------------------------------------------------------------------------
476
+  (0.2ms) SELECT 1
477
+  (0.1ms) SELECT 1
478
+  (0.1ms) ROLLBACK
479
+  (0.1ms) ROLLBACK
480
+  (0.1ms) BEGIN
481
+  (0.1ms) BEGIN
482
+  (0.1ms) BEGIN
483
+ ------------------------------------------------------
484
+ SplitActiveRecordCheckTest: test_given_nil_as_a_config
485
+ ------------------------------------------------------
486
+  (0.1ms) ROLLBACK
487
+  (0.1ms) ROLLBACK
488
+  (0.1ms) ROLLBACK
489
+  (0.1ms) BEGIN
490
+  (0.1ms) BEGIN
491
+  (0.1ms) BEGIN
492
+ ---------------------------------------------------------------------
493
+ MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
494
+ ---------------------------------------------------------------------
495
+  (0.1ms) ROLLBACK
496
+  (0.1ms) ROLLBACK
497
+  (0.1ms) ROLLBACK
498
+  (0.1ms) BEGIN
499
+  (0.1ms) BEGIN
500
+  (0.1ms) BEGIN
501
+ -----------------------------------------------------------------------
502
+ MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run
503
+ -----------------------------------------------------------------------
504
+  (0.1ms) ROLLBACK
505
+  (0.1ms) ROLLBACK
506
+  (0.1ms) ROLLBACK
507
+  (0.1ms) BEGIN
508
+  (0.1ms) BEGIN
509
+  (0.1ms) BEGIN
510
+ ------------------------------------------------------------------
511
+ MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers
512
+ ------------------------------------------------------------------
513
+  (0.1ms) ROLLBACK
514
+  (0.1ms) ROLLBACK
515
+  (0.1ms) ROLLBACK
516
+  (0.1ms) BEGIN
517
+  (0.1ms) BEGIN
518
+  (0.1ms) BEGIN
519
+ ---------------------------------------------------------
520
+ MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache
521
+ ---------------------------------------------------------
522
+  (0.1ms) ROLLBACK
523
+  (0.1ms) ROLLBACK
524
+  (0.1ms) ROLLBACK
525
+  (0.1ms) BEGIN
526
+  (0.1ms) BEGIN
527
+  (0.1ms) BEGIN
528
+ ----------------------------------------------------------------------------
529
+ TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run
530
+ ----------------------------------------------------------------------------
531
+  (0.1ms) ROLLBACK
532
+  (0.1ms) ROLLBACK
533
+  (0.1ms) ROLLBACK
534
+  (0.1ms) BEGIN
535
+  (0.1ms) BEGIN
536
+  (0.1ms) BEGIN
537
+ ------------------------------------------------------------------------------
538
+ TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run
539
+ ------------------------------------------------------------------------------
540
+  (0.1ms) ROLLBACK
541
+  (0.1ms) ROLLBACK
542
+  (0.1ms) ROLLBACK
543
+  (0.1ms) BEGIN
544
+  (0.1ms) BEGIN
545
+  (0.1ms) BEGIN
546
+ ---------------------------------------------------------------------
547
+ SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
548
+ ---------------------------------------------------------------------
549
+  (0.1ms) ROLLBACK
550
+  (0.1ms) ROLLBACK
551
+  (0.1ms) ROLLBACK
552
+  (0.1ms) BEGIN
553
+  (0.1ms) BEGIN
554
+  (0.1ms) BEGIN
555
+ -----------------------------------------------------------------------
556
+ SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run
557
+ -----------------------------------------------------------------------
558
+  (0.1ms) ROLLBACK
559
+  (0.1ms) ROLLBACK
560
+  (0.1ms) ROLLBACK
561
+  (0.1ms) BEGIN
562
+  (0.1ms) BEGIN
563
+  (0.1ms) BEGIN
564
+ --------------------------------------------------------------------------
565
+ ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run
566
+ --------------------------------------------------------------------------
567
+  (0.1ms) ROLLBACK
568
+  (0.1ms) ROLLBACK
569
+  (0.1ms) ROLLBACK
570
+  (0.1ms) BEGIN
571
+  (0.1ms) BEGIN
572
+  (0.1ms) BEGIN
573
+ ----------------------------------------------------------------------------
574
+ ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run
575
+ ----------------------------------------------------------------------------
576
+  (0.1ms) SELECT 1
577
+  (0.1ms) ROLLBACK
578
+  (0.1ms) ROLLBACK
579
+  (0.1ms) ROLLBACK
580
+  (0.1ms) BEGIN
581
+  (0.1ms) BEGIN
582
+  (0.1ms) BEGIN
583
+ -------------------------------------------------
584
+ ActiveRecordCheckTest: test_given_nil_as_a_config
585
+ -------------------------------------------------
586
+  (0.1ms) ROLLBACK
587
+  (0.1ms) ROLLBACK
588
+  (0.1ms) ROLLBACK
589
+  (0.1ms) BEGIN
590
+  (0.1ms) BEGIN
591
+  (0.1ms) BEGIN
592
+ -----------------------------------------------------------------
593
+ RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
594
+ -----------------------------------------------------------------
595
+  (0.1ms) ROLLBACK
596
+  (0.1ms) ROLLBACK
597
+  (0.1ms) ROLLBACK
598
+  (0.1ms) BEGIN
599
+  (0.1ms) BEGIN
600
+  (0.1ms) BEGIN
601
+ -------------------------------------------------------------------
602
+ RedisCheckTest: test_#run_sets_success_conditions_on_successful_run
603
+ -------------------------------------------------------------------
604
+  (0.1ms) ROLLBACK
605
+  (0.1ms) ROLLBACK
606
+  (0.1ms) ROLLBACK
607
+  (0.1ms) BEGIN
608
+  (0.1ms) BEGIN
609
+  (0.1ms) BEGIN
610
+ ------------------------------------------
611
+ RedisCheckTest: test_given_nil_as_a_config
612
+ ------------------------------------------
613
+  (0.1ms) ROLLBACK
614
+  (0.1ms) ROLLBACK
615
+  (0.1ms) ROLLBACK
616
+  (0.1ms) BEGIN
617
+  (0.1ms) BEGIN
618
+  (0.1ms) BEGIN
619
+ --------------------------------------------------------------------------------------
620
+ ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run
621
+ --------------------------------------------------------------------------------------
622
+  (0.1ms) ROLLBACK
623
+  (0.1ms) ROLLBACK
624
+  (0.1ms) ROLLBACK
625
+  (0.1ms) BEGIN
626
+  (0.1ms) BEGIN
627
+  (0.1ms) BEGIN
628
+ ----------------------------------------------------------------------------------------
629
+ ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run
630
+ ----------------------------------------------------------------------------------------
631
+  (0.1ms) SELECT 1
632
+  (0.1ms) ROLLBACK
633
+  (0.1ms) ROLLBACK
634
+  (0.1ms) ROLLBACK
635
+  (0.1ms) BEGIN
636
+  (0.1ms) BEGIN
637
+  (0.1ms) BEGIN
638
+ ------------------------------------------------------------
639
+ Easymon::ChecksControllerTest: test_index_returns_valid_json
640
+ ------------------------------------------------------------
641
+ Processing by Easymon::ChecksController#index as JSON
642
+  (0.2ms) SELECT 1
643
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
644
+  (0.1ms) ROLLBACK
645
+  (0.1ms) ROLLBACK
646
+  (0.2ms) ROLLBACK
647
+  (0.1ms) BEGIN
648
+  (0.1ms) BEGIN
649
+  (0.1ms) BEGIN
650
+ ------------------------------------------------------------
651
+ Easymon::ChecksControllerTest: test_index_when_a_check_fails
652
+ ------------------------------------------------------------
653
+ Processing by Easymon::ChecksController#index as HTML
654
+  (0.3ms) SELECT 1
655
+ Rendered text template (0.0ms)
656
+ Completed 503 Service Unavailable in 2ms (Views: 1.4ms | ActiveRecord: 0.3ms)
657
+  (0.2ms) ROLLBACK
658
+  (0.2ms) ROLLBACK
659
+  (0.1ms) ROLLBACK
660
+  (0.2ms) BEGIN
661
+  (0.1ms) BEGIN
662
+  (0.1ms) BEGIN
663
+ ---------------------------------------------------------------------
664
+ Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails
665
+ ---------------------------------------------------------------------
666
+ Processing by Easymon::ChecksController#index as HTML
667
+ Rendered text template (0.0ms)
668
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
669
+  (0.2ms) ROLLBACK
670
+  (0.2ms) ROLLBACK
671
+  (0.2ms) ROLLBACK
672
+  (0.1ms) BEGIN
673
+  (0.1ms) BEGIN
674
+  (0.1ms) BEGIN
675
+ -------------------------------------------------------------------------
676
+ Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails
677
+ -------------------------------------------------------------------------
678
+ Processing by Easymon::ChecksController#index as HTML
679
+  (0.2ms) SELECT 1
680
+ Rendered text template (0.0ms)
681
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
682
+  (0.1ms) ROLLBACK
683
+  (0.1ms) ROLLBACK
684
+  (0.1ms) ROLLBACK
685
+  (0.1ms) BEGIN
686
+  (0.2ms) BEGIN
687
+  (0.1ms) BEGIN
688
+ --------------------------------------------------------------
689
+ Easymon::ChecksControllerTest: test_index_when_all_checks_pass
690
+ --------------------------------------------------------------
691
+ Processing by Easymon::ChecksController#index as HTML
692
+  (0.2ms) SELECT 1
693
+ Rendered text template (0.0ms)
694
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
695
+  (0.1ms) ROLLBACK
696
+  (0.2ms) ROLLBACK
697
+  (0.1ms) ROLLBACK
698
+  (0.1ms) BEGIN
699
+  (0.1ms) BEGIN
700
+  (0.2ms) BEGIN
701
+ --------------------------------------------------------------------
702
+ Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined
703
+ --------------------------------------------------------------------
704
+ Processing by Easymon::ChecksController#index as HTML
705
+ Rendered text template (0.0ms)
706
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
707
+  (0.2ms) ROLLBACK
708
+  (0.1ms) ROLLBACK
709
+  (0.1ms) ROLLBACK
710
+  (0.1ms) BEGIN
711
+  (0.1ms) BEGIN
712
+  (0.1ms) BEGIN
713
+ ------------------------------------------------------------------
714
+ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found
715
+ ------------------------------------------------------------------
716
+ Processing by Easymon::ChecksController#show as HTML
717
+ Parameters: {"check"=>"database"}
718
+ Rendered text template (0.0ms)
719
+ Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
720
+  (0.1ms) ROLLBACK
721
+  (0.1ms) ROLLBACK
722
+  (0.1ms) ROLLBACK
723
+  (0.1ms) BEGIN
724
+  (0.1ms) BEGIN
725
+  (0.2ms) BEGIN
726
+ -------------------------------------------------------------------
727
+ Easymon::ChecksControllerTest: test_show_json_when_the_check_passes
728
+ -------------------------------------------------------------------
729
+ Processing by Easymon::ChecksController#show as JSON
730
+ Parameters: {"check"=>"database"}
731
+  (0.2ms) SELECT 1
732
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
733
+  (0.2ms) ROLLBACK
734
+  (0.1ms) ROLLBACK
735
+  (0.1ms) ROLLBACK
736
+  (0.1ms) BEGIN
737
+  (0.1ms) BEGIN
738
+  (0.1ms) BEGIN
739
+ -------------------------------------------------------------
740
+ Easymon::ChecksControllerTest: test_show_when_the_check_fails
741
+ -------------------------------------------------------------
742
+ Processing by Easymon::ChecksController#show as HTML
743
+ Parameters: {"check"=>"database"}
744
+ Rendered text template (0.0ms)
745
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
746
+  (0.2ms) ROLLBACK
747
+  (0.2ms) ROLLBACK
748
+  (0.1ms) ROLLBACK
749
+  (0.2ms) BEGIN
750
+  (0.1ms) BEGIN
751
+  (0.2ms) BEGIN
752
+ --------------------------------------------------------------
753
+ Easymon::ChecksControllerTest: test_show_when_the_check_passes
754
+ --------------------------------------------------------------
755
+ Processing by Easymon::ChecksController#show as HTML
756
+ Parameters: {"check"=>"database"}
757
+  (0.2ms) SELECT 1
758
+ Rendered text template (0.0ms)
759
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
760
+  (0.1ms) ROLLBACK
761
+  (0.2ms) ROLLBACK
762
+  (0.2ms) ROLLBACK
763
+  (0.1ms) BEGIN
764
+  (0.1ms) BEGIN
765
+  (0.1ms) BEGIN
766
+ ---------------------------------------------------------------------
767
+ ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass
768
+ ---------------------------------------------------------------------
769
+  (0.1ms) SELECT 1
770
+  (0.1ms) ROLLBACK
771
+  (0.1ms) ROLLBACK
772
+  (0.1ms) ROLLBACK
773
+  (0.1ms) BEGIN
774
+  (0.1ms) BEGIN
775
+  (0.1ms) BEGIN
776
+ ------------------------------------------------------------------------------------
777
+ ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails
778
+ ------------------------------------------------------------------------------------
779
+  (0.1ms) SELECT 1
780
+ Dalli::Server#connect 127.0.0.1:11211
781
+  (0.2ms) ROLLBACK
782
+  (0.1ms) ROLLBACK
783
+  (0.1ms) ROLLBACK
784
+  (0.1ms) BEGIN
785
+  (0.1ms) BEGIN
786
+  (0.1ms) BEGIN
787
+ -----------------------------------------------------------------
788
+ ChecklistTest: test_#success?_returns_false_when_results_is_empty
789
+ -----------------------------------------------------------------
790
+  (0.1ms) ROLLBACK
791
+  (0.1ms) ROLLBACK
792
+  (0.1ms) ROLLBACK
793
+  (0.1ms) BEGIN
794
+  (0.1ms) BEGIN
795
+  (0.1ms) BEGIN
796
+ ---------------------------------------------------------
797
+ ChecklistTest: test_#timing_is_a_sum_of_all_check_results
798
+ ---------------------------------------------------------
799
+  (0.1ms) ROLLBACK
800
+  (0.1ms) ROLLBACK
801
+  (0.1ms) ROLLBACK
802
+  (0.1ms) BEGIN
803
+  (0.1ms) BEGIN
804
+  (0.1ms) BEGIN
805
+ -------------------------------------------------------------------------
806
+ ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist
807
+ -------------------------------------------------------------------------
808
+  (0.1ms) SELECT 1
809
+  (0.1ms) ROLLBACK
810
+  (0.1ms) ROLLBACK
811
+  (0.1ms) ROLLBACK
812
+  (0.1ms) BEGIN
813
+  (0.1ms) BEGIN
814
+  (0.1ms) BEGIN
815
+ ----------------------------------------------
816
+ ChecklistTest: test_can_look_up_checks_by_name
817
+ ----------------------------------------------
818
+  (0.1ms) ROLLBACK
819
+  (0.1ms) ROLLBACK
820
+  (0.1ms) ROLLBACK
821
+  (0.1ms) BEGIN
822
+  (0.1ms) BEGIN
823
+  (0.1ms) BEGIN
824
+ ---------------------------------------------
825
+ ChecklistTest: test_cat_fetch_a_check_by_name
826
+ ---------------------------------------------
827
+  (0.1ms) ROLLBACK
828
+  (0.1ms) ROLLBACK
829
+  (0.1ms) ROLLBACK
830
+  (0.1ms) BEGIN
831
+  (0.1ms) BEGIN
832
+  (0.1ms) BEGIN
833
+ -------------------------------------------------------------------
834
+ ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository
835
+ -------------------------------------------------------------------
836
+  (0.1ms) ROLLBACK
837
+  (0.1ms) ROLLBACK
838
+  (0.1ms) ROLLBACK
839
+  (0.1ms) BEGIN
840
+  (0.1ms) BEGIN
841
+  (0.1ms) BEGIN
842
+ ------------------------------------------
843
+ ChecklistTest: test_it_will_run_each_check
844
+ ------------------------------------------
845
+  (0.1ms) SELECT 1
846
+  (0.1ms) ROLLBACK
847
+  (0.1ms) ROLLBACK
848
+  (0.1ms) ROLLBACK
849
+  (0.1ms) BEGIN
850
+  (0.1ms) BEGIN
851
+  (0.1ms) BEGIN
852
+ ----------------------------------------------------------------
853
+ HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
854
+ ----------------------------------------------------------------
855
+  (0.1ms) ROLLBACK
856
+  (0.1ms) ROLLBACK
857
+  (0.1ms) ROLLBACK
858
+  (0.1ms) BEGIN
859
+  (0.1ms) BEGIN
860
+  (0.1ms) BEGIN
861
+ ------------------------------------------------------------------
862
+ HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run
863
+ ------------------------------------------------------------------
864
+  (0.1ms) ROLLBACK
865
+  (0.1ms) ROLLBACK
866
+  (0.1ms) ROLLBACK
867
+  (0.1ms) BEGIN
868
+  (0.1ms) BEGIN
869
+  (0.1ms) BEGIN
870
+ ------------------------------------------------------------------
871
+ HttpCheckTest: test_#run_sets_success_conditions_on_successful_run
872
+ ------------------------------------------------------------------
873
+  (0.1ms) ROLLBACK
874
+  (0.1ms) ROLLBACK
875
+  (0.1ms) ROLLBACK
876
+  (0.1ms) BEGIN
877
+  (0.1ms) BEGIN
878
+  (0.1ms) BEGIN
879
+ --------------------------------------
880
+ HttpCheckTest: test_given_nil_as_a_url
881
+ --------------------------------------
882
+  (0.1ms) ROLLBACK
883
+  (0.1ms) ROLLBACK
884
+  (0.1ms) ROLLBACK
885
+  (0.3ms) BEGIN
886
+ ----------------------------------------------------------------------------
887
+ TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run
888
+ ----------------------------------------------------------------------------
889
+  (0.2ms) ROLLBACK
890
+  (0.1ms) BEGIN
891
+ ------------------------------------------------------------------------------
892
+ TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run
893
+ ------------------------------------------------------------------------------
894
+  (0.1ms) ROLLBACK
895
+  (0.1ms) BEGIN
896
+ ---------------------------------------------------------------------
897
+ ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass
898
+ ---------------------------------------------------------------------
899
+  (0.3ms) SELECT 1=1
900
+  (0.2ms) ROLLBACK
901
+  (0.2ms) BEGIN
902
+ ------------------------------------------------------------------------------------
903
+ ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails
904
+ ------------------------------------------------------------------------------------
905
+  (0.2ms) SELECT 1=1
906
+ Dalli::Server#connect 127.0.0.1:11211
907
+  (0.2ms) ROLLBACK
908
+  (0.1ms) BEGIN
909
+ -----------------------------------------------------------------
910
+ ChecklistTest: test_#success?_returns_false_when_results_is_empty
911
+ -----------------------------------------------------------------
912
+  (0.2ms) ROLLBACK
913
+  (0.1ms) BEGIN
914
+ ---------------------------------------------------------
915
+ ChecklistTest: test_#timing_is_a_sum_of_all_check_results
916
+ ---------------------------------------------------------
917
+  (0.2ms) ROLLBACK
918
+  (0.1ms) BEGIN
919
+ -------------------------------------------------------------------------
920
+ ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist
921
+ -------------------------------------------------------------------------
922
+  (0.2ms) SELECT 1=1
923
+  (0.1ms) ROLLBACK
924
+  (0.1ms) BEGIN
925
+ ----------------------------------------------
926
+ ChecklistTest: test_can_look_up_checks_by_name
927
+ ----------------------------------------------
928
+  (0.1ms) ROLLBACK
929
+  (0.1ms) BEGIN
930
+ ---------------------------------------------
931
+ ChecklistTest: test_cat_fetch_a_check_by_name
932
+ ---------------------------------------------
933
+  (0.1ms) ROLLBACK
934
+  (0.1ms) BEGIN
935
+ -------------------------------------------------------------------
936
+ ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository
937
+ -------------------------------------------------------------------
938
+  (0.1ms) ROLLBACK
939
+  (0.1ms) BEGIN
940
+ ------------------------------------------
941
+ ChecklistTest: test_it_will_run_each_check
942
+ ------------------------------------------
943
+  (0.2ms) SELECT 1=1
944
+  (0.2ms) ROLLBACK
945
+  (0.1ms) BEGIN
946
+ --------------------------------------------------------------------------
947
+ RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist
948
+ --------------------------------------------------------------------------
949
+  (0.1ms) ROLLBACK
950
+  (0.1ms) BEGIN
951
+ --------------------------------------------
952
+ RepositoryTest: test_fetches_a_check_by_name
953
+ --------------------------------------------
954
+  (0.1ms) ROLLBACK
955
+  (0.1ms) BEGIN
956
+ -----------------------------------------------------
957
+ RepositoryTest: test_fetches_a_critical_check_by_name
958
+ -----------------------------------------------------
959
+  (0.1ms) ROLLBACK
960
+  (0.1ms) BEGIN
961
+ ---------------------------------------------------
962
+ RepositoryTest: test_returns_a_checklist_when_asked
963
+ ---------------------------------------------------
964
+  (0.1ms) ROLLBACK
965
+  (0.1ms) BEGIN
966
+ ---------------------------------------------------------
967
+ RepositoryTest: test_we_can_add_a_check_to_the_repository
968
+ ---------------------------------------------------------
969
+  (0.1ms) ROLLBACK
970
+  (0.1ms) BEGIN
971
+ --------------------------------------------------------------
972
+ RepositoryTest: test_we_can_remove_a_check_from_the_repository
973
+ --------------------------------------------------------------
974
+  (0.1ms) ROLLBACK
975
+  (0.1ms) BEGIN
976
+ ------------------------------------------------------------
977
+ Easymon::ChecksControllerTest: test_index_returns_valid_json
978
+ ------------------------------------------------------------
979
+ Processing by Easymon::ChecksController#index as JSON
980
+  (0.2ms) SELECT 1=1
981
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
982
+  (0.2ms) ROLLBACK
983
+  (0.2ms) BEGIN
984
+ ------------------------------------------------------------
985
+ Easymon::ChecksControllerTest: test_index_when_a_check_fails
986
+ ------------------------------------------------------------
987
+ Processing by Easymon::ChecksController#index as HTML
988
+  (0.2ms) SELECT 1=1
989
+ Rendered text template (0.0ms)
990
+ Completed 503 Service Unavailable in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms)
991
+  (0.3ms) ROLLBACK
992
+  (0.2ms) BEGIN
993
+ ---------------------------------------------------------------------
994
+ Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails
995
+ ---------------------------------------------------------------------
996
+ Processing by Easymon::ChecksController#index as HTML
997
+ Rendered text template (0.0ms)
998
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
999
+  (0.1ms) ROLLBACK
1000
+  (0.1ms) BEGIN
1001
+ -------------------------------------------------------------------------
1002
+ Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails
1003
+ -------------------------------------------------------------------------
1004
+ Processing by Easymon::ChecksController#index as HTML
1005
+  (0.2ms) SELECT 1=1
1006
+ Rendered text template (0.0ms)
1007
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1008
+  (0.1ms) ROLLBACK
1009
+  (0.1ms) BEGIN
1010
+ --------------------------------------------------------------
1011
+ Easymon::ChecksControllerTest: test_index_when_all_checks_pass
1012
+ --------------------------------------------------------------
1013
+ Processing by Easymon::ChecksController#index as HTML
1014
+  (0.2ms) SELECT 1=1
1015
+ Rendered text template (0.0ms)
1016
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1017
+  (0.2ms) ROLLBACK
1018
+  (0.1ms) BEGIN
1019
+ --------------------------------------------------------------------
1020
+ Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined
1021
+ --------------------------------------------------------------------
1022
+ Processing by Easymon::ChecksController#index as HTML
1023
+ Rendered text template (0.0ms)
1024
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1025
+  (0.1ms) ROLLBACK
1026
+  (0.1ms) BEGIN
1027
+ ----------------------------------------------------------------
1028
+ Easymon::ChecksControllerTest: test_return_404_if_not_authorized
1029
+ ----------------------------------------------------------------
1030
+ Processing by Easymon::ChecksController#index as HTML
1031
+ Filter chain halted as :authorize_request rendered or redirected
1032
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
1033
+ Processing by Easymon::ChecksController#show as HTML
1034
+ Parameters: {"check"=>"database"}
1035
+ Filter chain halted as :authorize_request rendered or redirected
1036
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
1037
+  (0.2ms) ROLLBACK
1038
+  (0.2ms) BEGIN
1039
+ ------------------------------------------------------------------
1040
+ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found
1041
+ ------------------------------------------------------------------
1042
+ Processing by Easymon::ChecksController#show as HTML
1043
+ Parameters: {"check"=>"database"}
1044
+ Rendered text template (0.0ms)
1045
+ Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1046
+  (0.1ms) ROLLBACK
1047
+  (0.1ms) BEGIN
1048
+ -------------------------------------------------------------------
1049
+ Easymon::ChecksControllerTest: test_show_json_when_the_check_passes
1050
+ -------------------------------------------------------------------
1051
+ Processing by Easymon::ChecksController#show as JSON
1052
+ Parameters: {"check"=>"database"}
1053
+  (0.2ms) SELECT 1=1
1054
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1055
+  (0.1ms) ROLLBACK
1056
+  (0.1ms) BEGIN
1057
+ -------------------------------------------------------------
1058
+ Easymon::ChecksControllerTest: test_show_when_the_check_fails
1059
+ -------------------------------------------------------------
1060
+ Processing by Easymon::ChecksController#show as HTML
1061
+ Parameters: {"check"=>"database"}
1062
+ Rendered text template (0.0ms)
1063
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1064
+  (0.2ms) ROLLBACK
1065
+  (0.1ms) BEGIN
1066
+ --------------------------------------------------------------
1067
+ Easymon::ChecksControllerTest: test_show_when_the_check_passes
1068
+ --------------------------------------------------------------
1069
+ Processing by Easymon::ChecksController#show as HTML
1070
+ Parameters: {"check"=>"database"}
1071
+  (0.2ms) SELECT 1=1
1072
+ Rendered text template (0.0ms)
1073
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1074
+  (0.2ms) ROLLBACK
1075
+  (0.1ms) BEGIN
1076
+ ---------------------------------------------------------------------
1077
+ MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1078
+ ---------------------------------------------------------------------
1079
+  (0.2ms) ROLLBACK
1080
+  (0.2ms) BEGIN
1081
+ -----------------------------------------------------------------------
1082
+ MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run
1083
+ -----------------------------------------------------------------------
1084
+  (0.2ms) ROLLBACK
1085
+  (0.2ms) BEGIN
1086
+ ------------------------------------------------------------------
1087
+ MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers
1088
+ ------------------------------------------------------------------
1089
+  (0.1ms) ROLLBACK
1090
+  (0.2ms) BEGIN
1091
+ ---------------------------------------------------------
1092
+ MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache
1093
+ ---------------------------------------------------------
1094
+  (0.1ms) ROLLBACK
1095
+  (0.1ms) BEGIN
1096
+ --------------------------------------------------------------------------------
1097
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down
1098
+ --------------------------------------------------------------------------------
1099
+  (0.2ms) SELECT 1=1
1100
+  (0.2ms) ROLLBACK
1101
+  (0.1ms) BEGIN
1102
+  (0.1ms) BEGIN
1103
+ -------------------------------------------------------------------------------
1104
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down
1105
+ -------------------------------------------------------------------------------
1106
+  (0.2ms) SELECT 1=1
1107
+  (0.1ms) ROLLBACK
1108
+  (0.1ms) BEGIN
1109
+  (0.1ms) BEGIN
1110
+ -------------------------------------------------------------------------------
1111
+ SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run
1112
+ -------------------------------------------------------------------------------
1113
+  (0.1ms) SELECT 1=1
1114
+  (0.1ms) SELECT 1=1
1115
+  (0.1ms) ROLLBACK
1116
+  (0.1ms) BEGIN
1117
+  (0.1ms) BEGIN
1118
+ ------------------------------------------------------
1119
+ SplitActiveRecordCheckTest: test_given_nil_as_a_config
1120
+ ------------------------------------------------------
1121
+  (0.1ms) ROLLBACK
1122
+  (0.1ms) ROLLBACK
1123
+  (0.1ms) BEGIN
1124
+  (0.1ms) BEGIN
1125
+ ----------------------------------------------------------------
1126
+ HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1127
+ ----------------------------------------------------------------
1128
+  (0.1ms) ROLLBACK
1129
+  (0.1ms) ROLLBACK
1130
+  (0.1ms) BEGIN
1131
+  (0.1ms) BEGIN
1132
+ ------------------------------------------------------------------
1133
+ HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run
1134
+ ------------------------------------------------------------------
1135
+  (0.1ms) ROLLBACK
1136
+  (0.1ms) ROLLBACK
1137
+  (0.1ms) BEGIN
1138
+  (0.1ms) BEGIN
1139
+ ------------------------------------------------------------------
1140
+ HttpCheckTest: test_#run_sets_success_conditions_on_successful_run
1141
+ ------------------------------------------------------------------
1142
+  (0.1ms) ROLLBACK
1143
+  (0.1ms) ROLLBACK
1144
+  (0.1ms) BEGIN
1145
+  (0.1ms) BEGIN
1146
+ --------------------------------------
1147
+ HttpCheckTest: test_given_nil_as_a_url
1148
+ --------------------------------------
1149
+  (0.1ms) ROLLBACK
1150
+  (0.1ms) ROLLBACK
1151
+  (0.1ms) BEGIN
1152
+  (0.1ms) BEGIN
1153
+ --------------------------------------------------------------------------
1154
+ ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run
1155
+ --------------------------------------------------------------------------
1156
+  (0.1ms) ROLLBACK
1157
+  (0.1ms) ROLLBACK
1158
+  (0.1ms) BEGIN
1159
+  (0.1ms) BEGIN
1160
+ ----------------------------------------------------------------------------
1161
+ ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run
1162
+ ----------------------------------------------------------------------------
1163
+  (0.1ms) SELECT 1=1
1164
+  (0.1ms) ROLLBACK
1165
+  (0.1ms) ROLLBACK
1166
+  (0.1ms) BEGIN
1167
+  (0.1ms) BEGIN
1168
+ -------------------------------------------------
1169
+ ActiveRecordCheckTest: test_given_nil_as_a_config
1170
+ -------------------------------------------------
1171
+  (0.1ms) ROLLBACK
1172
+  (0.1ms) ROLLBACK
1173
+  (0.1ms) BEGIN
1174
+  (0.1ms) BEGIN
1175
+ -----------------------------------------------------------------
1176
+ RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1177
+ -----------------------------------------------------------------
1178
+  (0.1ms) ROLLBACK
1179
+  (0.1ms) ROLLBACK
1180
+  (0.1ms) BEGIN
1181
+  (0.1ms) BEGIN
1182
+ -------------------------------------------------------------------
1183
+ RedisCheckTest: test_#run_sets_success_conditions_on_successful_run
1184
+ -------------------------------------------------------------------
1185
+  (0.1ms) ROLLBACK
1186
+  (0.1ms) ROLLBACK
1187
+  (0.1ms) BEGIN
1188
+  (0.1ms) BEGIN
1189
+ ------------------------------------------
1190
+ RedisCheckTest: test_given_nil_as_a_config
1191
+ ------------------------------------------
1192
+  (0.1ms) ROLLBACK
1193
+  (0.1ms) ROLLBACK
1194
+  (0.1ms) BEGIN
1195
+  (0.1ms) BEGIN
1196
+ ---------------------------------------------------------------------
1197
+ SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1198
+ ---------------------------------------------------------------------
1199
+  (0.1ms) ROLLBACK
1200
+  (0.1ms) ROLLBACK
1201
+  (0.1ms) BEGIN
1202
+  (0.1ms) BEGIN
1203
+ -----------------------------------------------------------------------
1204
+ SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run
1205
+ -----------------------------------------------------------------------
1206
+  (0.1ms) ROLLBACK
1207
+  (0.1ms) ROLLBACK
1208
+  (0.2ms) BEGIN
1209
+ ------------------------------------------------------------
1210
+ Easymon::ChecksControllerTest: test_index_returns_valid_json
1211
+ ------------------------------------------------------------
1212
+ Processing by Easymon::ChecksController#index as JSON
1213
+  (0.2ms) SELECT 1=1
1214
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1215
+  (0.2ms) ROLLBACK
1216
+  (0.1ms) BEGIN
1217
+ ------------------------------------------------------------
1218
+ Easymon::ChecksControllerTest: test_index_when_a_check_fails
1219
+ ------------------------------------------------------------
1220
+ Processing by Easymon::ChecksController#index as HTML
1221
+  (0.2ms) SELECT 1=1
1222
+ Rendered text template (0.0ms)
1223
+ Completed 503 Service Unavailable in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)
1224
+  (0.2ms) ROLLBACK
1225
+  (0.2ms) BEGIN
1226
+ ---------------------------------------------------------------------
1227
+ Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails
1228
+ ---------------------------------------------------------------------
1229
+ Processing by Easymon::ChecksController#index as HTML
1230
+ Rendered text template (0.0ms)
1231
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1232
+  (0.2ms) ROLLBACK
1233
+  (0.2ms) BEGIN
1234
+ -------------------------------------------------------------------------
1235
+ Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails
1236
+ -------------------------------------------------------------------------
1237
+ Processing by Easymon::ChecksController#index as HTML
1238
+  (0.2ms) SELECT 1=1
1239
+ Rendered text template (0.0ms)
1240
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1241
+  (0.2ms) ROLLBACK
1242
+  (0.2ms) BEGIN
1243
+ --------------------------------------------------------------
1244
+ Easymon::ChecksControllerTest: test_index_when_all_checks_pass
1245
+ --------------------------------------------------------------
1246
+ Processing by Easymon::ChecksController#index as HTML
1247
+  (0.2ms) SELECT 1=1
1248
+ Rendered text template (0.0ms)
1249
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1250
+  (0.2ms) ROLLBACK
1251
+  (0.3ms) BEGIN
1252
+ --------------------------------------------------------------------
1253
+ Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined
1254
+ --------------------------------------------------------------------
1255
+ Processing by Easymon::ChecksController#index as HTML
1256
+ Rendered text template (0.0ms)
1257
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1258
+  (0.2ms) ROLLBACK
1259
+  (0.2ms) BEGIN
1260
+ ----------------------------------------------------------------
1261
+ Easymon::ChecksControllerTest: test_return_404_if_not_authorized
1262
+ ----------------------------------------------------------------
1263
+ Processing by Easymon::ChecksController#index as HTML
1264
+ Filter chain halted as :authorize_request rendered or redirected
1265
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
1266
+ Processing by Easymon::ChecksController#show as HTML
1267
+ Parameters: {"check"=>"database"}
1268
+ Filter chain halted as :authorize_request rendered or redirected
1269
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
1270
+  (0.2ms) ROLLBACK
1271
+  (0.2ms) BEGIN
1272
+ ------------------------------------------------------------------
1273
+ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found
1274
+ ------------------------------------------------------------------
1275
+ Processing by Easymon::ChecksController#show as HTML
1276
+ Parameters: {"check"=>"database"}
1277
+ Rendered text template (0.0ms)
1278
+ Completed 404 Not Found in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1279
+  (0.2ms) ROLLBACK
1280
+  (0.2ms) BEGIN
1281
+ -------------------------------------------------------------------
1282
+ Easymon::ChecksControllerTest: test_show_json_when_the_check_passes
1283
+ -------------------------------------------------------------------
1284
+ Processing by Easymon::ChecksController#show as JSON
1285
+ Parameters: {"check"=>"database"}
1286
+  (0.2ms) SELECT 1=1
1287
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1288
+  (0.2ms) ROLLBACK
1289
+  (0.1ms) BEGIN
1290
+ -------------------------------------------------------------
1291
+ Easymon::ChecksControllerTest: test_show_when_the_check_fails
1292
+ -------------------------------------------------------------
1293
+ Processing by Easymon::ChecksController#show as HTML
1294
+ Parameters: {"check"=>"database"}
1295
+ Rendered text template (0.0ms)
1296
+ Completed 503 Service Unavailable in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1297
+  (0.2ms) ROLLBACK
1298
+  (0.1ms) BEGIN
1299
+ --------------------------------------------------------------
1300
+ Easymon::ChecksControllerTest: test_show_when_the_check_passes
1301
+ --------------------------------------------------------------
1302
+ Processing by Easymon::ChecksController#show as HTML
1303
+ Parameters: {"check"=>"database"}
1304
+  (0.2ms) SELECT 1=1
1305
+ Rendered text template (0.0ms)
1306
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1307
+  (0.1ms) ROLLBACK
1308
+  (0.2ms) BEGIN
1309
+  (0.1ms) BEGIN
1310
+ -----------------------------------------------------------------
1311
+ RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1312
+ -----------------------------------------------------------------
1313
+  (0.2ms) ROLLBACK
1314
+  (0.1ms) ROLLBACK
1315
+  (0.1ms) BEGIN
1316
+  (0.1ms) BEGIN
1317
+ -------------------------------------------------------------------
1318
+ RedisCheckTest: test_#run_sets_success_conditions_on_successful_run
1319
+ -------------------------------------------------------------------
1320
+  (0.1ms) ROLLBACK
1321
+  (0.1ms) ROLLBACK
1322
+  (0.1ms) BEGIN
1323
+  (0.1ms) BEGIN
1324
+ ------------------------------------------
1325
+ RedisCheckTest: test_given_nil_as_a_config
1326
+ ------------------------------------------
1327
+  (0.1ms) ROLLBACK
1328
+  (0.1ms) ROLLBACK
1329
+  (0.1ms) BEGIN
1330
+  (0.1ms) BEGIN
1331
+ ----------------------------------------------------------------------------
1332
+ TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run
1333
+ ----------------------------------------------------------------------------
1334
+  (0.1ms) ROLLBACK
1335
+  (0.1ms) ROLLBACK
1336
+  (0.1ms) BEGIN
1337
+  (0.1ms) BEGIN
1338
+ ------------------------------------------------------------------------------
1339
+ TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run
1340
+ ------------------------------------------------------------------------------
1341
+  (0.1ms) ROLLBACK
1342
+  (0.1ms) ROLLBACK
1343
+  (0.1ms) BEGIN
1344
+  (0.1ms) BEGIN
1345
+ --------------------------------------------------------------------------
1346
+ ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run
1347
+ --------------------------------------------------------------------------
1348
+  (0.1ms) ROLLBACK
1349
+  (0.1ms) ROLLBACK
1350
+  (0.1ms) BEGIN
1351
+  (0.1ms) BEGIN
1352
+ ----------------------------------------------------------------------------
1353
+ ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run
1354
+ ----------------------------------------------------------------------------
1355
+  (0.1ms) SELECT 1
1356
+  (0.1ms) ROLLBACK
1357
+  (0.1ms) ROLLBACK
1358
+  (0.1ms) BEGIN
1359
+  (0.1ms) BEGIN
1360
+ -------------------------------------------------
1361
+ ActiveRecordCheckTest: test_given_nil_as_a_config
1362
+ -------------------------------------------------
1363
+  (0.1ms) ROLLBACK
1364
+  (0.1ms) ROLLBACK
1365
+  (0.1ms) BEGIN
1366
+  (0.1ms) BEGIN
1367
+ --------------------------------------------------------------------------------------
1368
+ ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run
1369
+ --------------------------------------------------------------------------------------
1370
+  (0.1ms) ROLLBACK
1371
+  (0.1ms) ROLLBACK
1372
+  (0.1ms) BEGIN
1373
+  (0.1ms) BEGIN
1374
+ ----------------------------------------------------------------------------------------
1375
+ ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run
1376
+ ----------------------------------------------------------------------------------------
1377
+  (0.1ms) SELECT 1
1378
+  (0.1ms) ROLLBACK
1379
+  (0.4ms) ROLLBACK
1380
+  (0.2ms) BEGIN
1381
+  (0.1ms) BEGIN
1382
+ ----------------------------------------------------------------
1383
+ HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1384
+ ----------------------------------------------------------------
1385
+  (0.2ms) ROLLBACK
1386
+  (0.1ms) ROLLBACK
1387
+  (0.1ms) BEGIN
1388
+  (0.1ms) BEGIN
1389
+ ------------------------------------------------------------------
1390
+ HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run
1391
+ ------------------------------------------------------------------
1392
+  (0.1ms) ROLLBACK
1393
+  (0.1ms) ROLLBACK
1394
+  (0.1ms) BEGIN
1395
+  (0.1ms) BEGIN
1396
+ ------------------------------------------------------------------
1397
+ HttpCheckTest: test_#run_sets_success_conditions_on_successful_run
1398
+ ------------------------------------------------------------------
1399
+  (0.1ms) ROLLBACK
1400
+  (0.1ms) ROLLBACK
1401
+  (0.1ms) BEGIN
1402
+  (0.1ms) BEGIN
1403
+ --------------------------------------
1404
+ HttpCheckTest: test_given_nil_as_a_url
1405
+ --------------------------------------
1406
+  (0.1ms) ROLLBACK
1407
+  (0.1ms) ROLLBACK
1408
+  (0.1ms) BEGIN
1409
+  (0.1ms) BEGIN
1410
+ ---------------------------------------------------------------------
1411
+ ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass
1412
+ ---------------------------------------------------------------------
1413
+  (0.2ms) SELECT 1
1414
+  (0.1ms) ROLLBACK
1415
+  (0.1ms) ROLLBACK
1416
+  (0.1ms) BEGIN
1417
+  (0.1ms) BEGIN
1418
+ ------------------------------------------------------------------------------------
1419
+ ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails
1420
+ ------------------------------------------------------------------------------------
1421
+  (0.2ms) SELECT 1
1422
+ Dalli::Server#connect 127.0.0.1:11211
1423
+  (0.1ms) ROLLBACK
1424
+  (0.1ms) ROLLBACK
1425
+  (0.1ms) BEGIN
1426
+  (0.1ms) BEGIN
1427
+ -----------------------------------------------------------------
1428
+ ChecklistTest: test_#success?_returns_false_when_results_is_empty
1429
+ -----------------------------------------------------------------
1430
+  (0.1ms) ROLLBACK
1431
+  (0.1ms) ROLLBACK
1432
+  (0.1ms) BEGIN
1433
+  (0.1ms) BEGIN
1434
+ ---------------------------------------------------------
1435
+ ChecklistTest: test_#timing_is_a_sum_of_all_check_results
1436
+ ---------------------------------------------------------
1437
+  (0.1ms) ROLLBACK
1438
+  (0.1ms) ROLLBACK
1439
+  (0.1ms) BEGIN
1440
+  (0.1ms) BEGIN
1441
+ -------------------------------------------------------------------------
1442
+ ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist
1443
+ -------------------------------------------------------------------------
1444
+  (0.1ms) SELECT 1
1445
+  (0.1ms) ROLLBACK
1446
+  (0.1ms) ROLLBACK
1447
+  (0.1ms) BEGIN
1448
+  (0.1ms) BEGIN
1449
+ ----------------------------------------------
1450
+ ChecklistTest: test_can_look_up_checks_by_name
1451
+ ----------------------------------------------
1452
+  (0.1ms) ROLLBACK
1453
+  (0.1ms) ROLLBACK
1454
+  (0.1ms) BEGIN
1455
+  (0.1ms) BEGIN
1456
+ ---------------------------------------------
1457
+ ChecklistTest: test_cat_fetch_a_check_by_name
1458
+ ---------------------------------------------
1459
+  (0.1ms) ROLLBACK
1460
+  (0.1ms) ROLLBACK
1461
+  (0.1ms) BEGIN
1462
+  (0.1ms) BEGIN
1463
+ -------------------------------------------------------------------
1464
+ ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository
1465
+ -------------------------------------------------------------------
1466
+  (0.1ms) ROLLBACK
1467
+  (0.1ms) ROLLBACK
1468
+  (0.1ms) BEGIN
1469
+  (0.1ms) BEGIN
1470
+ ------------------------------------------
1471
+ ChecklistTest: test_it_will_run_each_check
1472
+ ------------------------------------------
1473
+  (0.1ms) SELECT 1
1474
+  (0.1ms) ROLLBACK
1475
+  (0.1ms) ROLLBACK
1476
+  (0.1ms) BEGIN
1477
+  (0.1ms) BEGIN
1478
+ ---------------------------------------------------------------------
1479
+ MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1480
+ ---------------------------------------------------------------------
1481
+  (0.1ms) ROLLBACK
1482
+  (0.1ms) ROLLBACK
1483
+  (0.1ms) BEGIN
1484
+  (0.1ms) BEGIN
1485
+ -----------------------------------------------------------------------
1486
+ MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run
1487
+ -----------------------------------------------------------------------
1488
+  (0.1ms) ROLLBACK
1489
+  (0.1ms) ROLLBACK
1490
+  (0.1ms) BEGIN
1491
+  (0.1ms) BEGIN
1492
+ ------------------------------------------------------------------
1493
+ MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers
1494
+ ------------------------------------------------------------------
1495
+  (0.1ms) ROLLBACK
1496
+  (0.1ms) ROLLBACK
1497
+  (0.1ms) BEGIN
1498
+  (0.1ms) BEGIN
1499
+ ---------------------------------------------------------
1500
+ MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache
1501
+ ---------------------------------------------------------
1502
+  (0.1ms) ROLLBACK
1503
+  (0.1ms) ROLLBACK
1504
+  (0.1ms) BEGIN
1505
+  (0.1ms) BEGIN
1506
+ ---------------------------------------------------------------------
1507
+ SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1508
+ ---------------------------------------------------------------------
1509
+  (0.1ms) ROLLBACK
1510
+  (0.1ms) ROLLBACK
1511
+  (0.1ms) BEGIN
1512
+  (0.1ms) BEGIN
1513
+ -----------------------------------------------------------------------
1514
+ SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run
1515
+ -----------------------------------------------------------------------
1516
+  (0.1ms) ROLLBACK
1517
+  (0.2ms) ROLLBACK
1518
+  (0.1ms) BEGIN
1519
+  (0.1ms) BEGIN
1520
+ --------------------------------------------------------------------------
1521
+ RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist
1522
+ --------------------------------------------------------------------------
1523
+  (0.1ms) ROLLBACK
1524
+  (0.1ms) ROLLBACK
1525
+  (0.1ms) BEGIN
1526
+  (0.1ms) BEGIN
1527
+ --------------------------------------------
1528
+ RepositoryTest: test_fetches_a_check_by_name
1529
+ --------------------------------------------
1530
+  (0.1ms) ROLLBACK
1531
+  (0.1ms) ROLLBACK
1532
+  (0.1ms) BEGIN
1533
+  (0.1ms) BEGIN
1534
+ -----------------------------------------------------
1535
+ RepositoryTest: test_fetches_a_critical_check_by_name
1536
+ -----------------------------------------------------
1537
+  (0.1ms) ROLLBACK
1538
+  (0.1ms) ROLLBACK
1539
+  (0.1ms) BEGIN
1540
+  (0.1ms) BEGIN
1541
+ ---------------------------------------------------
1542
+ RepositoryTest: test_returns_a_checklist_when_asked
1543
+ ---------------------------------------------------
1544
+  (0.1ms) ROLLBACK
1545
+  (0.1ms) ROLLBACK
1546
+  (0.1ms) BEGIN
1547
+  (0.1ms) BEGIN
1548
+ ---------------------------------------------------------
1549
+ RepositoryTest: test_we_can_add_a_check_to_the_repository
1550
+ ---------------------------------------------------------
1551
+  (0.1ms) ROLLBACK
1552
+  (0.1ms) ROLLBACK
1553
+  (0.1ms) BEGIN
1554
+  (0.1ms) BEGIN
1555
+ --------------------------------------------------------------
1556
+ RepositoryTest: test_we_can_remove_a_check_from_the_repository
1557
+ --------------------------------------------------------------
1558
+  (0.2ms) ROLLBACK
1559
+  (0.1ms) ROLLBACK
1560
+  (0.1ms) BEGIN
1561
+  (0.1ms) BEGIN
1562
+ --------------------------------------------------------------------------------
1563
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down
1564
+ --------------------------------------------------------------------------------
1565
+  (0.1ms) SELECT 1
1566
+  (0.1ms) ROLLBACK
1567
+  (0.1ms) ROLLBACK
1568
+  (0.1ms) BEGIN
1569
+  (0.1ms) BEGIN
1570
+  (0.1ms) BEGIN
1571
+ -------------------------------------------------------------------------------
1572
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down
1573
+ -------------------------------------------------------------------------------
1574
+  (0.1ms) SELECT 1
1575
+  (0.1ms) ROLLBACK
1576
+  (0.2ms) ROLLBACK
1577
+  (0.1ms) BEGIN
1578
+  (0.1ms) BEGIN
1579
+  (0.1ms) BEGIN
1580
+ -------------------------------------------------------------------------------
1581
+ SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run
1582
+ -------------------------------------------------------------------------------
1583
+  (0.1ms) SELECT 1
1584
+  (0.1ms) SELECT 1
1585
+  (0.1ms) ROLLBACK
1586
+  (0.1ms) ROLLBACK
1587
+  (0.1ms) BEGIN
1588
+  (0.1ms) BEGIN
1589
+  (0.1ms) BEGIN
1590
+ ------------------------------------------------------
1591
+ SplitActiveRecordCheckTest: test_given_nil_as_a_config
1592
+ ------------------------------------------------------
1593
+  (0.1ms) ROLLBACK
1594
+  (0.1ms) ROLLBACK
1595
+  (0.1ms) ROLLBACK
1596
+  (0.1ms) BEGIN
1597
+  (0.1ms) BEGIN
1598
+  (0.1ms) BEGIN
1599
+ ------------------------------------------------------------
1600
+ Easymon::ChecksControllerTest: test_index_returns_valid_json
1601
+ ------------------------------------------------------------
1602
+ Processing by Easymon::ChecksController#index as JSON
1603
+  (0.3ms) SELECT 1
1604
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1605
+  (0.2ms) ROLLBACK
1606
+  (0.1ms) ROLLBACK
1607
+  (0.1ms) ROLLBACK
1608
+  (0.3ms) BEGIN
1609
+  (0.2ms) BEGIN
1610
+  (0.2ms) BEGIN
1611
+ ------------------------------------------------------------
1612
+ Easymon::ChecksControllerTest: test_index_when_a_check_fails
1613
+ ------------------------------------------------------------
1614
+ Processing by Easymon::ChecksController#index as HTML
1615
+  (0.3ms) SELECT 1
1616
+ Rendered text template (0.0ms)
1617
+ Completed 503 Service Unavailable in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
1618
+  (0.2ms) ROLLBACK
1619
+  (0.2ms) ROLLBACK
1620
+  (0.2ms) ROLLBACK
1621
+  (0.2ms) BEGIN
1622
+  (0.2ms) BEGIN
1623
+  (0.1ms) BEGIN
1624
+ ---------------------------------------------------------------------
1625
+ Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails
1626
+ ---------------------------------------------------------------------
1627
+ Processing by Easymon::ChecksController#index as HTML
1628
+ Rendered text template (0.0ms)
1629
+ Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1630
+  (0.2ms) ROLLBACK
1631
+  (0.1ms) ROLLBACK
1632
+  (0.2ms) ROLLBACK
1633
+  (0.3ms) BEGIN
1634
+  (0.3ms) BEGIN
1635
+  (0.2ms) BEGIN
1636
+ -------------------------------------------------------------------------
1637
+ Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails
1638
+ -------------------------------------------------------------------------
1639
+ Processing by Easymon::ChecksController#index as HTML
1640
+  (0.2ms) SELECT 1
1641
+ Rendered text template (0.0ms)
1642
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1643
+  (0.1ms) ROLLBACK
1644
+  (0.1ms) ROLLBACK
1645
+  (0.1ms) ROLLBACK
1646
+  (0.1ms) BEGIN
1647
+  (0.1ms) BEGIN
1648
+  (0.1ms) BEGIN
1649
+ --------------------------------------------------------------
1650
+ Easymon::ChecksControllerTest: test_index_when_all_checks_pass
1651
+ --------------------------------------------------------------
1652
+ Processing by Easymon::ChecksController#index as HTML
1653
+  (0.2ms) SELECT 1
1654
+ Rendered text template (0.0ms)
1655
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1656
+  (0.1ms) ROLLBACK
1657
+  (0.1ms) ROLLBACK
1658
+  (0.1ms) ROLLBACK
1659
+  (0.1ms) BEGIN
1660
+  (0.1ms) BEGIN
1661
+  (0.1ms) BEGIN
1662
+ --------------------------------------------------------------------
1663
+ Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined
1664
+ --------------------------------------------------------------------
1665
+ Processing by Easymon::ChecksController#index as HTML
1666
+ Rendered text template (0.0ms)
1667
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1668
+  (0.1ms) ROLLBACK
1669
+  (0.1ms) ROLLBACK
1670
+  (0.1ms) ROLLBACK
1671
+  (0.2ms) BEGIN
1672
+  (0.1ms) BEGIN
1673
+  (0.1ms) BEGIN
1674
+ ------------------------------------------------------------------
1675
+ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found
1676
+ ------------------------------------------------------------------
1677
+ Processing by Easymon::ChecksController#show as HTML
1678
+ Parameters: {"check"=>"database"}
1679
+ Rendered text template (0.0ms)
1680
+ Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1681
+  (0.2ms) ROLLBACK
1682
+  (0.1ms) ROLLBACK
1683
+  (0.1ms) ROLLBACK
1684
+  (0.2ms) BEGIN
1685
+  (0.1ms) BEGIN
1686
+  (0.1ms) BEGIN
1687
+ -------------------------------------------------------------------
1688
+ Easymon::ChecksControllerTest: test_show_json_when_the_check_passes
1689
+ -------------------------------------------------------------------
1690
+ Processing by Easymon::ChecksController#show as JSON
1691
+ Parameters: {"check"=>"database"}
1692
+  (0.2ms) SELECT 1
1693
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1694
+  (0.2ms) ROLLBACK
1695
+  (0.1ms) ROLLBACK
1696
+  (0.2ms) ROLLBACK
1697
+  (0.2ms) BEGIN
1698
+  (0.2ms) BEGIN
1699
+  (0.1ms) BEGIN
1700
+ -------------------------------------------------------------
1701
+ Easymon::ChecksControllerTest: test_show_when_the_check_fails
1702
+ -------------------------------------------------------------
1703
+ Processing by Easymon::ChecksController#show as HTML
1704
+ Parameters: {"check"=>"database"}
1705
+ Rendered text template (0.0ms)
1706
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1707
+  (0.2ms) ROLLBACK
1708
+  (0.2ms) ROLLBACK
1709
+  (0.2ms) ROLLBACK
1710
+  (0.1ms) BEGIN
1711
+  (0.1ms) BEGIN
1712
+  (0.1ms) BEGIN
1713
+ --------------------------------------------------------------
1714
+ Easymon::ChecksControllerTest: test_show_when_the_check_passes
1715
+ --------------------------------------------------------------
1716
+ Processing by Easymon::ChecksController#show as HTML
1717
+ Parameters: {"check"=>"database"}
1718
+  (0.2ms) SELECT 1
1719
+ Rendered text template (0.0ms)
1720
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1721
+  (0.2ms) ROLLBACK
1722
+  (0.1ms) ROLLBACK
1723
+  (0.2ms) ROLLBACK
1724
+  (0.1ms) BEGIN
1725
+  (0.1ms) BEGIN
1726
+ --------------------------------------------------------------------------
1727
+ RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist
1728
+ --------------------------------------------------------------------------
1729
+  (0.1ms) ROLLBACK
1730
+  (0.1ms) ROLLBACK
1731
+  (0.1ms) BEGIN
1732
+  (0.1ms) BEGIN
1733
+ --------------------------------------------
1734
+ RepositoryTest: test_fetches_a_check_by_name
1735
+ --------------------------------------------
1736
+  (0.1ms) ROLLBACK
1737
+  (0.1ms) ROLLBACK
1738
+  (0.1ms) BEGIN
1739
+  (0.1ms) BEGIN
1740
+ -----------------------------------------------------
1741
+ RepositoryTest: test_fetches_a_critical_check_by_name
1742
+ -----------------------------------------------------
1743
+  (0.1ms) ROLLBACK
1744
+  (0.1ms) ROLLBACK
1745
+  (0.1ms) BEGIN
1746
+  (0.1ms) BEGIN
1747
+ ---------------------------------------------------
1748
+ RepositoryTest: test_returns_a_checklist_when_asked
1749
+ ---------------------------------------------------
1750
+  (0.1ms) ROLLBACK
1751
+  (0.1ms) ROLLBACK
1752
+  (0.1ms) BEGIN
1753
+  (0.1ms) BEGIN
1754
+ ---------------------------------------------------------
1755
+ RepositoryTest: test_we_can_add_a_check_to_the_repository
1756
+ ---------------------------------------------------------
1757
+  (0.1ms) ROLLBACK
1758
+  (0.1ms) ROLLBACK
1759
+  (0.1ms) BEGIN
1760
+  (0.1ms) BEGIN
1761
+ --------------------------------------------------------------
1762
+ RepositoryTest: test_we_can_remove_a_check_from_the_repository
1763
+ --------------------------------------------------------------
1764
+  (0.1ms) ROLLBACK
1765
+  (0.1ms) ROLLBACK
1766
+  (0.1ms) BEGIN
1767
+  (0.1ms) BEGIN
1768
+ ---------------------------------------------------------------------
1769
+ ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass
1770
+ ---------------------------------------------------------------------
1771
+  (0.1ms) SELECT 1
1772
+  (0.1ms) ROLLBACK
1773
+  (0.1ms) ROLLBACK
1774
+  (0.1ms) BEGIN
1775
+  (0.1ms) BEGIN
1776
+ ------------------------------------------------------------------------------------
1777
+ ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails
1778
+ ------------------------------------------------------------------------------------
1779
+  (0.1ms) SELECT 1
1780
+ Dalli::Server#connect 127.0.0.1:11211
1781
+  (0.1ms) ROLLBACK
1782
+  (0.1ms) ROLLBACK
1783
+  (0.1ms) BEGIN
1784
+  (0.1ms) BEGIN
1785
+ -----------------------------------------------------------------
1786
+ ChecklistTest: test_#success?_returns_false_when_results_is_empty
1787
+ -----------------------------------------------------------------
1788
+  (0.1ms) ROLLBACK
1789
+  (0.1ms) ROLLBACK
1790
+  (0.1ms) BEGIN
1791
+  (0.1ms) BEGIN
1792
+ ---------------------------------------------------------
1793
+ ChecklistTest: test_#timing_is_a_sum_of_all_check_results
1794
+ ---------------------------------------------------------
1795
+  (0.1ms) ROLLBACK
1796
+  (0.1ms) ROLLBACK
1797
+  (0.1ms) BEGIN
1798
+  (0.1ms) BEGIN
1799
+ -------------------------------------------------------------------------
1800
+ ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist
1801
+ -------------------------------------------------------------------------
1802
+  (0.2ms) SELECT 1
1803
+  (0.2ms) ROLLBACK
1804
+  (0.1ms) ROLLBACK
1805
+  (0.1ms) BEGIN
1806
+  (0.1ms) BEGIN
1807
+ ----------------------------------------------
1808
+ ChecklistTest: test_can_look_up_checks_by_name
1809
+ ----------------------------------------------
1810
+  (0.1ms) ROLLBACK
1811
+  (0.1ms) ROLLBACK
1812
+  (0.1ms) BEGIN
1813
+  (0.1ms) BEGIN
1814
+ ---------------------------------------------
1815
+ ChecklistTest: test_cat_fetch_a_check_by_name
1816
+ ---------------------------------------------
1817
+  (0.1ms) ROLLBACK
1818
+  (0.1ms) ROLLBACK
1819
+  (0.1ms) BEGIN
1820
+  (0.1ms) BEGIN
1821
+ -------------------------------------------------------------------
1822
+ ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository
1823
+ -------------------------------------------------------------------
1824
+  (0.1ms) ROLLBACK
1825
+  (0.1ms) ROLLBACK
1826
+  (0.1ms) BEGIN
1827
+  (0.1ms) BEGIN
1828
+ ------------------------------------------
1829
+ ChecklistTest: test_it_will_run_each_check
1830
+ ------------------------------------------
1831
+  (0.1ms) SELECT 1
1832
+  (0.2ms) ROLLBACK
1833
+  (0.2ms) ROLLBACK
1834
+  (0.2ms) BEGIN
1835
+  (0.1ms) BEGIN
1836
+ ----------------------------------------------------------------
1837
+ HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1838
+ ----------------------------------------------------------------
1839
+  (0.1ms) ROLLBACK
1840
+  (0.1ms) ROLLBACK
1841
+  (0.3ms) BEGIN
1842
+  (0.1ms) BEGIN
1843
+ ------------------------------------------------------------------
1844
+ HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run
1845
+ ------------------------------------------------------------------
1846
+  (0.1ms) ROLLBACK
1847
+  (0.2ms) ROLLBACK
1848
+  (0.2ms) BEGIN
1849
+  (0.1ms) BEGIN
1850
+ ------------------------------------------------------------------
1851
+ HttpCheckTest: test_#run_sets_success_conditions_on_successful_run
1852
+ ------------------------------------------------------------------
1853
+  (0.2ms) ROLLBACK
1854
+  (0.1ms) ROLLBACK
1855
+  (0.1ms) BEGIN
1856
+  (0.2ms) BEGIN
1857
+ --------------------------------------
1858
+ HttpCheckTest: test_given_nil_as_a_url
1859
+ --------------------------------------
1860
+  (0.1ms) ROLLBACK
1861
+  (0.1ms) ROLLBACK
1862
+  (0.1ms) BEGIN
1863
+  (0.1ms) BEGIN
1864
+ ---------------------------------------------------------------------
1865
+ SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
1866
+ ---------------------------------------------------------------------
1867
+  (0.1ms) ROLLBACK
1868
+  (0.1ms) ROLLBACK
1869
+  (0.1ms) BEGIN
1870
+  (0.1ms) BEGIN
1871
+ -----------------------------------------------------------------------
1872
+ SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run
1873
+ -----------------------------------------------------------------------
1874
+  (0.1ms) ROLLBACK
1875
+  (0.1ms) ROLLBACK
1876
+  (0.1ms) BEGIN
1877
+  (0.1ms) BEGIN
1878
+ --------------------------------------------------------------------------------------
1879
+ ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run
1880
+ --------------------------------------------------------------------------------------
1881
+  (0.1ms) ROLLBACK
1882
+  (0.1ms) ROLLBACK
1883
+  (0.1ms) BEGIN
1884
+  (0.1ms) BEGIN
1885
+ ----------------------------------------------------------------------------------------
1886
+ ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run
1887
+ ----------------------------------------------------------------------------------------
1888
+  (0.2ms) SELECT 1
1889
+  (0.1ms) ROLLBACK
1890
+  (0.1ms) ROLLBACK
1891
+  (0.1ms) BEGIN
1892
+  (0.1ms) BEGIN
1893
+ --------------------------------------------------------------------------
1894
+ ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run
1895
+ --------------------------------------------------------------------------
1896
+  (0.1ms) ROLLBACK
1897
+  (0.1ms) ROLLBACK
1898
+  (0.1ms) BEGIN
1899
+  (0.1ms) BEGIN
1900
+ ----------------------------------------------------------------------------
1901
+ ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run
1902
+ ----------------------------------------------------------------------------
1903
+  (0.1ms) SELECT 1
1904
+  (0.1ms) ROLLBACK
1905
+  (0.1ms) ROLLBACK
1906
+  (0.1ms) BEGIN
1907
+  (0.1ms) BEGIN
1908
+ -------------------------------------------------
1909
+ ActiveRecordCheckTest: test_given_nil_as_a_config
1910
+ -------------------------------------------------
1911
+  (0.1ms) ROLLBACK
1912
+  (0.1ms) ROLLBACK
1913
+  (0.1ms) BEGIN
1914
+  (0.1ms) BEGIN
1915
+ ------------------------------------------------------------
1916
+ Easymon::ChecksControllerTest: test_index_returns_valid_json
1917
+ ------------------------------------------------------------
1918
+ Processing by Easymon::ChecksController#index as JSON
1919
+  (0.1ms) SELECT 1
1920
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1921
+  (0.1ms) ROLLBACK
1922
+  (0.1ms) ROLLBACK
1923
+  (0.1ms) BEGIN
1924
+  (0.1ms) BEGIN
1925
+ ------------------------------------------------------------
1926
+ Easymon::ChecksControllerTest: test_index_when_a_check_fails
1927
+ ------------------------------------------------------------
1928
+ Processing by Easymon::ChecksController#index as HTML
1929
+  (0.1ms) SELECT 1
1930
+ Rendered text template (0.0ms)
1931
+ Completed 503 Service Unavailable in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
1932
+  (0.1ms) ROLLBACK
1933
+  (0.1ms) ROLLBACK
1934
+  (0.1ms) BEGIN
1935
+  (0.1ms) BEGIN
1936
+ ---------------------------------------------------------------------
1937
+ Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails
1938
+ ---------------------------------------------------------------------
1939
+ Processing by Easymon::ChecksController#index as HTML
1940
+ Rendered text template (0.0ms)
1941
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1942
+  (0.1ms) ROLLBACK
1943
+  (0.1ms) ROLLBACK
1944
+  (0.2ms) BEGIN
1945
+  (0.1ms) BEGIN
1946
+ -------------------------------------------------------------------------
1947
+ Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails
1948
+ -------------------------------------------------------------------------
1949
+ Processing by Easymon::ChecksController#index as HTML
1950
+  (0.2ms) SELECT 1
1951
+ Rendered text template (0.0ms)
1952
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1953
+  (0.2ms) ROLLBACK
1954
+  (0.1ms) ROLLBACK
1955
+  (0.1ms) BEGIN
1956
+  (0.1ms) BEGIN
1957
+ --------------------------------------------------------------
1958
+ Easymon::ChecksControllerTest: test_index_when_all_checks_pass
1959
+ --------------------------------------------------------------
1960
+ Processing by Easymon::ChecksController#index as HTML
1961
+  (0.2ms) SELECT 1
1962
+ Rendered text template (0.0ms)
1963
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1964
+  (0.1ms) ROLLBACK
1965
+  (0.1ms) ROLLBACK
1966
+  (0.1ms) BEGIN
1967
+  (0.1ms) BEGIN
1968
+ --------------------------------------------------------------------
1969
+ Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined
1970
+ --------------------------------------------------------------------
1971
+ Processing by Easymon::ChecksController#index as HTML
1972
+ Rendered text template (0.0ms)
1973
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1974
+  (0.1ms) ROLLBACK
1975
+  (0.1ms) ROLLBACK
1976
+  (0.1ms) BEGIN
1977
+  (0.1ms) BEGIN
1978
+ ------------------------------------------------------------------
1979
+ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found
1980
+ ------------------------------------------------------------------
1981
+ Processing by Easymon::ChecksController#show as HTML
1982
+ Parameters: {"check"=>"database"}
1983
+ Rendered text template (0.0ms)
1984
+ Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1985
+  (0.1ms) ROLLBACK
1986
+  (0.1ms) ROLLBACK
1987
+  (0.1ms) BEGIN
1988
+  (0.1ms) BEGIN
1989
+ -------------------------------------------------------------------
1990
+ Easymon::ChecksControllerTest: test_show_json_when_the_check_passes
1991
+ -------------------------------------------------------------------
1992
+ Processing by Easymon::ChecksController#show as JSON
1993
+ Parameters: {"check"=>"database"}
1994
+  (0.1ms) SELECT 1
1995
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1996
+  (0.1ms) ROLLBACK
1997
+  (0.1ms) ROLLBACK
1998
+  (0.1ms) BEGIN
1999
+  (0.1ms) BEGIN
2000
+ -------------------------------------------------------------
2001
+ Easymon::ChecksControllerTest: test_show_when_the_check_fails
2002
+ -------------------------------------------------------------
2003
+ Processing by Easymon::ChecksController#show as HTML
2004
+ Parameters: {"check"=>"database"}
2005
+ Rendered text template (0.0ms)
2006
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2007
+  (0.2ms) ROLLBACK
2008
+  (0.1ms) ROLLBACK
2009
+  (0.1ms) BEGIN
2010
+  (0.1ms) BEGIN
2011
+ --------------------------------------------------------------
2012
+ Easymon::ChecksControllerTest: test_show_when_the_check_passes
2013
+ --------------------------------------------------------------
2014
+ Processing by Easymon::ChecksController#show as HTML
2015
+ Parameters: {"check"=>"database"}
2016
+  (0.2ms) SELECT 1
2017
+ Rendered text template (0.0ms)
2018
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2019
+  (0.2ms) ROLLBACK
2020
+  (0.2ms) ROLLBACK
2021
+  (0.2ms) BEGIN
2022
+  (0.1ms) BEGIN
2023
+ ---------------------------------------------------------------------
2024
+ MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
2025
+ ---------------------------------------------------------------------
2026
+  (0.1ms) ROLLBACK
2027
+  (0.1ms) ROLLBACK
2028
+  (0.2ms) BEGIN
2029
+  (0.1ms) BEGIN
2030
+ -----------------------------------------------------------------------
2031
+ MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run
2032
+ -----------------------------------------------------------------------
2033
+  (0.1ms) ROLLBACK
2034
+  (0.1ms) ROLLBACK
2035
+  (0.1ms) BEGIN
2036
+  (0.1ms) BEGIN
2037
+ ------------------------------------------------------------------
2038
+ MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers
2039
+ ------------------------------------------------------------------
2040
+  (0.1ms) ROLLBACK
2041
+  (0.1ms) ROLLBACK
2042
+  (0.1ms) BEGIN
2043
+  (0.1ms) BEGIN
2044
+ ---------------------------------------------------------
2045
+ MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache
2046
+ ---------------------------------------------------------
2047
+  (0.1ms) ROLLBACK
2048
+  (0.1ms) ROLLBACK
2049
+  (0.1ms) BEGIN
2050
+  (0.1ms) BEGIN
2051
+ ----------------------------------------------------------------------------
2052
+ TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run
2053
+ ----------------------------------------------------------------------------
2054
+  (0.1ms) ROLLBACK
2055
+  (0.1ms) ROLLBACK
2056
+  (0.1ms) BEGIN
2057
+  (0.1ms) BEGIN
2058
+ ------------------------------------------------------------------------------
2059
+ TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run
2060
+ ------------------------------------------------------------------------------
2061
+  (0.1ms) ROLLBACK
2062
+  (0.1ms) ROLLBACK
2063
+  (0.1ms) BEGIN
2064
+  (0.1ms) BEGIN
2065
+ --------------------------------------------------------------------------------
2066
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down
2067
+ --------------------------------------------------------------------------------
2068
+  (0.1ms) SELECT 1
2069
+  (0.1ms) ROLLBACK
2070
+  (0.1ms) ROLLBACK
2071
+  (0.1ms) BEGIN
2072
+  (0.1ms) BEGIN
2073
+  (0.1ms) BEGIN
2074
+ -------------------------------------------------------------------------------
2075
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down
2076
+ -------------------------------------------------------------------------------
2077
+  (0.1ms) SELECT 1
2078
+  (0.1ms) ROLLBACK
2079
+  (0.1ms) ROLLBACK
2080
+  (0.1ms) BEGIN
2081
+  (0.1ms) BEGIN
2082
+  (0.1ms) BEGIN
2083
+ -------------------------------------------------------------------------------
2084
+ SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run
2085
+ -------------------------------------------------------------------------------
2086
+  (0.1ms) SELECT 1
2087
+  (0.1ms) SELECT 1
2088
+  (0.1ms) ROLLBACK
2089
+  (0.1ms) ROLLBACK
2090
+  (0.1ms) BEGIN
2091
+  (0.1ms) BEGIN
2092
+  (0.1ms) BEGIN
2093
+ ------------------------------------------------------
2094
+ SplitActiveRecordCheckTest: test_given_nil_as_a_config
2095
+ ------------------------------------------------------
2096
+  (0.1ms) ROLLBACK
2097
+  (0.1ms) ROLLBACK
2098
+  (0.1ms) ROLLBACK
2099
+  (0.1ms) BEGIN
2100
+  (0.1ms) BEGIN
2101
+  (0.1ms) BEGIN
2102
+ -----------------------------------------------------------------
2103
+ RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
2104
+ -----------------------------------------------------------------
2105
+  (0.1ms) ROLLBACK
2106
+  (0.1ms) ROLLBACK
2107
+  (0.1ms) ROLLBACK
2108
+  (0.1ms) BEGIN
2109
+  (0.1ms) BEGIN
2110
+  (0.1ms) BEGIN
2111
+ -------------------------------------------------------------------
2112
+ RedisCheckTest: test_#run_sets_success_conditions_on_successful_run
2113
+ -------------------------------------------------------------------
2114
+  (0.1ms) ROLLBACK
2115
+  (0.1ms) ROLLBACK
2116
+  (0.1ms) ROLLBACK
2117
+  (0.1ms) BEGIN
2118
+  (0.1ms) BEGIN
2119
+  (0.1ms) BEGIN
2120
+ ------------------------------------------
2121
+ RedisCheckTest: test_given_nil_as_a_config
2122
+ ------------------------------------------
2123
+  (0.1ms) ROLLBACK
2124
+  (0.1ms) ROLLBACK
2125
+  (0.1ms) ROLLBACK
2126
+  (0.2ms) BEGIN
2127
+  (0.1ms) BEGIN
2128
+ ------------------------------------------------------------
2129
+ Easymon::ChecksControllerTest: test_index_returns_valid_json
2130
+ ------------------------------------------------------------
2131
+ Processing by Easymon::ChecksController#index as JSON
2132
+  (0.3ms) SELECT 1
2133
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
2134
+  (0.2ms) ROLLBACK
2135
+  (0.2ms) ROLLBACK
2136
+  (0.1ms) BEGIN
2137
+  (0.1ms) BEGIN
2138
+ ------------------------------------------------------------
2139
+ Easymon::ChecksControllerTest: test_index_when_a_check_fails
2140
+ ------------------------------------------------------------
2141
+ Processing by Easymon::ChecksController#index as HTML
2142
+  (0.2ms) SELECT 1
2143
+ Rendered text template (0.0ms)
2144
+ Completed 503 Service Unavailable in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
2145
+  (0.1ms) ROLLBACK
2146
+  (0.2ms) ROLLBACK
2147
+  (0.1ms) BEGIN
2148
+  (0.1ms) BEGIN
2149
+ ---------------------------------------------------------------------
2150
+ Easymon::ChecksControllerTest: test_index_when_a_critical_check_fails
2151
+ ---------------------------------------------------------------------
2152
+ Processing by Easymon::ChecksController#index as HTML
2153
+ Rendered text template (0.0ms)
2154
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2155
+  (0.2ms) ROLLBACK
2156
+  (0.1ms) ROLLBACK
2157
+  (0.1ms) BEGIN
2158
+  (0.1ms) BEGIN
2159
+ -------------------------------------------------------------------------
2160
+ Easymon::ChecksControllerTest: test_index_when_a_non-critical_check_fails
2161
+ -------------------------------------------------------------------------
2162
+ Processing by Easymon::ChecksController#index as HTML
2163
+  (0.1ms) SELECT 1
2164
+ Rendered text template (0.0ms)
2165
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2166
+  (0.1ms) ROLLBACK
2167
+  (0.1ms) ROLLBACK
2168
+  (0.1ms) BEGIN
2169
+  (0.1ms) BEGIN
2170
+ --------------------------------------------------------------
2171
+ Easymon::ChecksControllerTest: test_index_when_all_checks_pass
2172
+ --------------------------------------------------------------
2173
+ Processing by Easymon::ChecksController#index as HTML
2174
+  (0.2ms) SELECT 1
2175
+ Rendered text template (0.0ms)
2176
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2177
+  (0.1ms) ROLLBACK
2178
+  (0.1ms) ROLLBACK
2179
+  (0.1ms) BEGIN
2180
+  (0.1ms) BEGIN
2181
+ --------------------------------------------------------------------
2182
+ Easymon::ChecksControllerTest: test_index_when_no_checks_are_defined
2183
+ --------------------------------------------------------------------
2184
+ Processing by Easymon::ChecksController#index as HTML
2185
+ Rendered text template (0.0ms)
2186
+ Completed 503 Service Unavailable in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2187
+  (0.1ms) ROLLBACK
2188
+  (0.1ms) ROLLBACK
2189
+  (0.1ms) BEGIN
2190
+  (0.1ms) BEGIN
2191
+ ------------------------------------------------------------------
2192
+ Easymon::ChecksControllerTest: test_show_if_the_check_is_not_found
2193
+ ------------------------------------------------------------------
2194
+ Processing by Easymon::ChecksController#show as HTML
2195
+ Parameters: {"check"=>"database"}
2196
+ Rendered text template (0.0ms)
2197
+ Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2198
+  (0.1ms) ROLLBACK
2199
+  (0.1ms) ROLLBACK
2200
+  (0.1ms) BEGIN
2201
+  (0.1ms) BEGIN
2202
+ -------------------------------------------------------------------
2203
+ Easymon::ChecksControllerTest: test_show_json_when_the_check_passes
2204
+ -------------------------------------------------------------------
2205
+ Processing by Easymon::ChecksController#show as JSON
2206
+ Parameters: {"check"=>"database"}
2207
+  (0.1ms) SELECT 1
2208
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
2209
+  (0.1ms) ROLLBACK
2210
+  (0.1ms) ROLLBACK
2211
+  (0.1ms) BEGIN
2212
+  (0.1ms) BEGIN
2213
+ -------------------------------------------------------------
2214
+ Easymon::ChecksControllerTest: test_show_when_the_check_fails
2215
+ -------------------------------------------------------------
2216
+ Processing by Easymon::ChecksController#show as HTML
2217
+ Parameters: {"check"=>"database"}
2218
+ Rendered text template (0.0ms)
2219
+ Completed 503 Service Unavailable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2220
+  (0.1ms) ROLLBACK
2221
+  (0.1ms) ROLLBACK
2222
+  (0.1ms) BEGIN
2223
+  (0.1ms) BEGIN
2224
+ --------------------------------------------------------------
2225
+ Easymon::ChecksControllerTest: test_show_when_the_check_passes
2226
+ --------------------------------------------------------------
2227
+ Processing by Easymon::ChecksController#show as HTML
2228
+ Parameters: {"check"=>"database"}
2229
+  (0.2ms) SELECT 1
2230
+ Rendered text template (0.0ms)
2231
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2232
+  (0.2ms) ROLLBACK
2233
+  (0.1ms) ROLLBACK
2234
+  (0.2ms) BEGIN
2235
+  (0.2ms) BEGIN
2236
+ --------------------------------------------------------------------------
2237
+ ActiveRecordCheckTest: test_#check_returns_a_failed_result_on_a_failed_run
2238
+ --------------------------------------------------------------------------
2239
+  (0.1ms) ROLLBACK
2240
+  (0.1ms) ROLLBACK
2241
+  (0.1ms) BEGIN
2242
+  (0.1ms) BEGIN
2243
+ ----------------------------------------------------------------------------
2244
+ ActiveRecordCheckTest: test_#check_returns_a_successful_result_on_a_good_run
2245
+ ----------------------------------------------------------------------------
2246
+  (0.2ms) SELECT 1
2247
+  (0.1ms) ROLLBACK
2248
+  (0.1ms) ROLLBACK
2249
+  (0.1ms) BEGIN
2250
+  (0.1ms) BEGIN
2251
+ -------------------------------------------------
2252
+ ActiveRecordCheckTest: test_given_nil_as_a_config
2253
+ -------------------------------------------------
2254
+  (0.1ms) ROLLBACK
2255
+  (0.1ms) ROLLBACK
2256
+  (0.1ms) BEGIN
2257
+  (0.1ms) BEGIN
2258
+ ---------------------------------------------------------------------
2259
+ MemcachedCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
2260
+ ---------------------------------------------------------------------
2261
+  (0.1ms) ROLLBACK
2262
+  (0.1ms) ROLLBACK
2263
+  (0.1ms) BEGIN
2264
+  (0.1ms) BEGIN
2265
+ -----------------------------------------------------------------------
2266
+ MemcachedCheckTest: test_#run_sets_success_conditions_on_successful_run
2267
+ -----------------------------------------------------------------------
2268
+  (0.1ms) ROLLBACK
2269
+  (0.1ms) ROLLBACK
2270
+  (0.1ms) BEGIN
2271
+  (0.1ms) BEGIN
2272
+ ------------------------------------------------------------------
2273
+ MemcachedCheckTest: test_fails_when_passed_a_cache_with_no_servers
2274
+ ------------------------------------------------------------------
2275
+  (0.1ms) ROLLBACK
2276
+  (0.1ms) ROLLBACK
2277
+  (0.1ms) BEGIN
2278
+  (0.1ms) BEGIN
2279
+ ---------------------------------------------------------
2280
+ MemcachedCheckTest: test_fails_when_passed_nil_as_a_cache
2281
+ ---------------------------------------------------------
2282
+  (0.1ms) ROLLBACK
2283
+  (0.1ms) ROLLBACK
2284
+  (0.1ms) BEGIN
2285
+  (0.1ms) BEGIN
2286
+ ----------------------------------------------------------------------------
2287
+ TrafficEnabledCheckTest: test_#check_sets_failure_conditions_on_a_failed_run
2288
+ ----------------------------------------------------------------------------
2289
+  (0.1ms) ROLLBACK
2290
+  (0.1ms) ROLLBACK
2291
+  (0.1ms) BEGIN
2292
+  (0.1ms) BEGIN
2293
+ ------------------------------------------------------------------------------
2294
+ TrafficEnabledCheckTest: test_#check_sets_success_conditions_on_successful_run
2295
+ ------------------------------------------------------------------------------
2296
+  (0.1ms) ROLLBACK
2297
+  (0.1ms) ROLLBACK
2298
+  (0.1ms) BEGIN
2299
+  (0.1ms) BEGIN
2300
+ --------------------------------------------------------------------------------------
2301
+ ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_failed_result_on_a_failed_run
2302
+ --------------------------------------------------------------------------------------
2303
+  (0.1ms) ROLLBACK
2304
+  (0.1ms) ROLLBACK
2305
+  (0.1ms) BEGIN
2306
+  (0.1ms) BEGIN
2307
+ ----------------------------------------------------------------------------------------
2308
+ ActiveRecordCheckOnPostgresqlTest: test_#check_returns_a_successful_result_on_a_good_run
2309
+ ----------------------------------------------------------------------------------------
2310
+  (0.1ms) SELECT 1
2311
+  (0.1ms) ROLLBACK
2312
+  (0.1ms) ROLLBACK
2313
+  (0.1ms) BEGIN
2314
+  (0.1ms) BEGIN
2315
+ ---------------------------------------------------------------------
2316
+ SemaphoreCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
2317
+ ---------------------------------------------------------------------
2318
+  (0.1ms) ROLLBACK
2319
+  (0.1ms) ROLLBACK
2320
+  (0.1ms) BEGIN
2321
+  (0.1ms) BEGIN
2322
+ -----------------------------------------------------------------------
2323
+ SemaphoreCheckTest: test_#run_sets_success_conditions_on_successful_run
2324
+ -----------------------------------------------------------------------
2325
+  (0.1ms) ROLLBACK
2326
+  (0.1ms) ROLLBACK
2327
+  (0.1ms) BEGIN
2328
+  (0.1ms) BEGIN
2329
+ --------------------------------------------------------------------------------
2330
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_master_is_down
2331
+ --------------------------------------------------------------------------------
2332
+  (0.1ms) SELECT 1
2333
+  (0.1ms) ROLLBACK
2334
+  (0.1ms) ROLLBACK
2335
+  (0.1ms) BEGIN
2336
+  (0.1ms) BEGIN
2337
+  (0.1ms) BEGIN
2338
+ -------------------------------------------------------------------------------
2339
+ SplitActiveRecordCheckTest: test_#run_sets_failed_conditions_when_slave_is_down
2340
+ -------------------------------------------------------------------------------
2341
+  (0.1ms) SELECT 1
2342
+  (0.1ms) ROLLBACK
2343
+  (0.1ms) ROLLBACK
2344
+  (0.1ms) BEGIN
2345
+  (0.1ms) BEGIN
2346
+  (0.1ms) BEGIN
2347
+ -------------------------------------------------------------------------------
2348
+ SplitActiveRecordCheckTest: test_#run_sets_success_conditions_on_successful_run
2349
+ -------------------------------------------------------------------------------
2350
+  (0.1ms) SELECT 1
2351
+  (0.1ms) SELECT 1
2352
+  (0.1ms) ROLLBACK
2353
+  (0.1ms) ROLLBACK
2354
+  (0.1ms) BEGIN
2355
+  (0.1ms) BEGIN
2356
+  (0.1ms) BEGIN
2357
+ ------------------------------------------------------
2358
+ SplitActiveRecordCheckTest: test_given_nil_as_a_config
2359
+ ------------------------------------------------------
2360
+  (0.1ms) ROLLBACK
2361
+  (0.1ms) ROLLBACK
2362
+  (0.1ms) ROLLBACK
2363
+  (0.1ms) BEGIN
2364
+  (0.1ms) BEGIN
2365
+  (0.1ms) BEGIN
2366
+ --------------------------------------------------------------------------
2367
+ RepositoryTest: test_adds_checks_marked_critical_to_the_critical_checklist
2368
+ --------------------------------------------------------------------------
2369
+  (0.1ms) ROLLBACK
2370
+  (0.1ms) ROLLBACK
2371
+  (0.1ms) ROLLBACK
2372
+  (0.1ms) BEGIN
2373
+  (0.1ms) BEGIN
2374
+  (0.1ms) BEGIN
2375
+ --------------------------------------------
2376
+ RepositoryTest: test_fetches_a_check_by_name
2377
+ --------------------------------------------
2378
+  (0.1ms) ROLLBACK
2379
+  (0.1ms) ROLLBACK
2380
+  (0.1ms) ROLLBACK
2381
+  (0.1ms) BEGIN
2382
+  (0.1ms) BEGIN
2383
+  (0.1ms) BEGIN
2384
+ -----------------------------------------------------
2385
+ RepositoryTest: test_fetches_a_critical_check_by_name
2386
+ -----------------------------------------------------
2387
+  (0.1ms) ROLLBACK
2388
+  (0.1ms) ROLLBACK
2389
+  (0.1ms) ROLLBACK
2390
+  (0.1ms) BEGIN
2391
+  (0.1ms) BEGIN
2392
+  (0.1ms) BEGIN
2393
+ ---------------------------------------------------
2394
+ RepositoryTest: test_returns_a_checklist_when_asked
2395
+ ---------------------------------------------------
2396
+  (0.1ms) ROLLBACK
2397
+  (0.1ms) ROLLBACK
2398
+  (0.1ms) ROLLBACK
2399
+  (0.1ms) BEGIN
2400
+  (0.1ms) BEGIN
2401
+  (0.1ms) BEGIN
2402
+ ---------------------------------------------------------
2403
+ RepositoryTest: test_we_can_add_a_check_to_the_repository
2404
+ ---------------------------------------------------------
2405
+  (0.1ms) ROLLBACK
2406
+  (0.1ms) ROLLBACK
2407
+  (0.1ms) ROLLBACK
2408
+  (0.1ms) BEGIN
2409
+  (0.1ms) BEGIN
2410
+  (0.1ms) BEGIN
2411
+ --------------------------------------------------------------
2412
+ RepositoryTest: test_we_can_remove_a_check_from_the_repository
2413
+ --------------------------------------------------------------
2414
+  (0.1ms) ROLLBACK
2415
+  (0.1ms) ROLLBACK
2416
+  (0.1ms) ROLLBACK
2417
+  (0.1ms) BEGIN
2418
+  (0.1ms) BEGIN
2419
+  (0.1ms) BEGIN
2420
+ -----------------------------------------------------------------
2421
+ RedisCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
2422
+ -----------------------------------------------------------------
2423
+  (0.1ms) ROLLBACK
2424
+  (0.1ms) ROLLBACK
2425
+  (0.1ms) ROLLBACK
2426
+  (0.1ms) BEGIN
2427
+  (0.1ms) BEGIN
2428
+  (0.1ms) BEGIN
2429
+ -------------------------------------------------------------------
2430
+ RedisCheckTest: test_#run_sets_success_conditions_on_successful_run
2431
+ -------------------------------------------------------------------
2432
+  (0.1ms) ROLLBACK
2433
+  (0.1ms) ROLLBACK
2434
+  (0.1ms) ROLLBACK
2435
+  (0.1ms) BEGIN
2436
+  (0.1ms) BEGIN
2437
+  (0.1ms) BEGIN
2438
+ ------------------------------------------
2439
+ RedisCheckTest: test_given_nil_as_a_config
2440
+ ------------------------------------------
2441
+  (0.1ms) ROLLBACK
2442
+  (0.1ms) ROLLBACK
2443
+  (0.1ms) ROLLBACK
2444
+  (0.1ms) BEGIN
2445
+  (0.1ms) BEGIN
2446
+  (0.1ms) BEGIN
2447
+ ----------------------------------------------------------------
2448
+ HttpCheckTest: test_#run_sets_failure_conditions_on_a_failed_run
2449
+ ----------------------------------------------------------------
2450
+  (0.1ms) ROLLBACK
2451
+  (0.1ms) ROLLBACK
2452
+  (0.1ms) ROLLBACK
2453
+  (0.1ms) BEGIN
2454
+  (0.1ms) BEGIN
2455
+  (0.1ms) BEGIN
2456
+ ------------------------------------------------------------------
2457
+ HttpCheckTest: test_#run_sets_failure_conditions_on_an_errored_run
2458
+ ------------------------------------------------------------------
2459
+  (0.1ms) ROLLBACK
2460
+  (0.1ms) ROLLBACK
2461
+  (0.1ms) ROLLBACK
2462
+  (0.1ms) BEGIN
2463
+  (0.1ms) BEGIN
2464
+  (0.1ms) BEGIN
2465
+ ------------------------------------------------------------------
2466
+ HttpCheckTest: test_#run_sets_success_conditions_on_successful_run
2467
+ ------------------------------------------------------------------
2468
+  (0.1ms) ROLLBACK
2469
+  (0.1ms) ROLLBACK
2470
+  (0.1ms) ROLLBACK
2471
+  (0.1ms) BEGIN
2472
+  (0.1ms) BEGIN
2473
+  (0.1ms) BEGIN
2474
+ --------------------------------------
2475
+ HttpCheckTest: test_given_nil_as_a_url
2476
+ --------------------------------------
2477
+  (0.1ms) ROLLBACK
2478
+  (0.1ms) ROLLBACK
2479
+  (0.1ms) ROLLBACK
2480
+  (0.1ms) BEGIN
2481
+  (0.1ms) BEGIN
2482
+  (0.1ms) BEGIN
2483
+ ---------------------------------------------------------------------
2484
+ ChecklistTest: test_#response_status_returns_:ok_when_all_checks_pass
2485
+ ---------------------------------------------------------------------
2486
+  (0.1ms) SELECT 1
2487
+  (0.1ms) ROLLBACK
2488
+  (0.1ms) ROLLBACK
2489
+  (0.1ms) ROLLBACK
2490
+  (0.1ms) BEGIN
2491
+  (0.1ms) BEGIN
2492
+  (0.1ms) BEGIN
2493
+ ------------------------------------------------------------------------------------
2494
+ ChecklistTest: test_#response_status_returns_:service_unavailable_when_a_check_fails
2495
+ ------------------------------------------------------------------------------------
2496
+  (0.2ms) SELECT 1
2497
+ Dalli::Server#connect 127.0.0.1:11211
2498
+  (0.1ms) ROLLBACK
2499
+  (0.1ms) ROLLBACK
2500
+  (0.1ms) ROLLBACK
2501
+  (0.1ms) BEGIN
2502
+  (0.1ms) BEGIN
2503
+  (0.1ms) BEGIN
2504
+ -----------------------------------------------------------------
2505
+ ChecklistTest: test_#success?_returns_false_when_results_is_empty
2506
+ -----------------------------------------------------------------
2507
+  (0.1ms) ROLLBACK
2508
+  (0.1ms) ROLLBACK
2509
+  (0.1ms) ROLLBACK
2510
+  (0.1ms) BEGIN
2511
+  (0.1ms) BEGIN
2512
+  (0.1ms) BEGIN
2513
+ ---------------------------------------------------------
2514
+ ChecklistTest: test_#timing_is_a_sum_of_all_check_results
2515
+ ---------------------------------------------------------
2516
+  (0.1ms) ROLLBACK
2517
+  (0.1ms) ROLLBACK
2518
+  (0.1ms) ROLLBACK
2519
+  (0.1ms) BEGIN
2520
+  (0.1ms) BEGIN
2521
+  (0.1ms) BEGIN
2522
+ -------------------------------------------------------------------------
2523
+ ChecklistTest: test_#to_s_returns_a_valid_representation_of_the_checklist
2524
+ -------------------------------------------------------------------------
2525
+  (0.1ms) SELECT 1
2526
+  (0.1ms) ROLLBACK
2527
+  (0.1ms) ROLLBACK
2528
+  (0.2ms) ROLLBACK
2529
+  (0.1ms) BEGIN
2530
+  (0.1ms) BEGIN
2531
+  (0.1ms) BEGIN
2532
+ ----------------------------------------------
2533
+ ChecklistTest: test_can_look_up_checks_by_name
2534
+ ----------------------------------------------
2535
+  (0.1ms) ROLLBACK
2536
+  (0.1ms) ROLLBACK
2537
+  (0.1ms) ROLLBACK
2538
+  (0.1ms) BEGIN
2539
+  (0.1ms) BEGIN
2540
+  (0.1ms) BEGIN
2541
+ ---------------------------------------------
2542
+ ChecklistTest: test_cat_fetch_a_check_by_name
2543
+ ---------------------------------------------
2544
+  (0.1ms) ROLLBACK
2545
+  (0.1ms) ROLLBACK
2546
+  (0.1ms) ROLLBACK
2547
+  (0.1ms) BEGIN
2548
+  (0.1ms) BEGIN
2549
+  (0.1ms) BEGIN
2550
+ -------------------------------------------------------------------
2551
+ ChecklistTest: test_it_knows_the_number_of_checks_in_the_Repository
2552
+ -------------------------------------------------------------------
2553
+  (0.1ms) ROLLBACK
2554
+  (0.1ms) ROLLBACK
2555
+  (0.1ms) ROLLBACK
2556
+  (0.1ms) BEGIN
2557
+  (0.1ms) BEGIN
2558
+  (0.1ms) BEGIN
2559
+ ------------------------------------------
2560
+ ChecklistTest: test_it_will_run_each_check
2561
+ ------------------------------------------
2562
+  (0.1ms) SELECT 1
2563
+  (0.1ms) ROLLBACK
2564
+  (0.1ms) ROLLBACK
2565
+  (0.1ms) ROLLBACK