aws_elb_health_check 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/aws_elb_health_check/health_checks_controller.rb +1 -1
- data/config/routes.rb +1 -1
- data/lib/aws_elb_health_check/version.rb +1 -1
- data/test/controllers/aws_elb_health_check/health_checks_controller_test.rb +3 -9
- data/test/dummy/log/test.log +117 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40d15eef37ad7221dc935ec3b144d426ad9f2e15
|
4
|
+
data.tar.gz: a1aa8c7680d5dafda34e79373b4ccb437c33e3c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b797f50212d5fd71c9a8bb899c2fb4b7e15f0e5523ac7fcd530c3f133e4959892f9d0bf4ff2a1f82e8ea2c3e96c9d50bf5d83aa1c9a704f491e59029dee261c9
|
7
|
+
data.tar.gz: fefcbcd47a5b03a22997fe83404df903f87935d20b70e6d98de47134f1ac69a4cdd1d974bc9540f03bd6675aa8a23faa934eef08abb5e67020bbdd9c048ea9aa
|
data/config/routes.rb
CHANGED
@@ -8,25 +8,19 @@ module AwsElbHealthCheck
|
|
8
8
|
|
9
9
|
test "should get success when secret key is used" do
|
10
10
|
ENV["AWS_ELB_HEALTH_CHECK_SECRET_KEY"] = "asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlf"
|
11
|
-
get :index,
|
11
|
+
get :index, check_key: ENV["AWS_ELB_HEALTH_CHECK_SECRET_KEY"]
|
12
12
|
assert_response :success
|
13
13
|
end
|
14
14
|
|
15
15
|
test "should get failure when secret key is wrong" do
|
16
16
|
ENV["AWS_ELB_HEALTH_CHECK_SECRET_KEY"] = "asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlf"
|
17
|
-
get :index,
|
18
|
-
assert_response 403
|
19
|
-
end
|
20
|
-
|
21
|
-
test "should get failure when secret key is omitted" do
|
22
|
-
ENV["AWS_ELB_HEALTH_CHECK_SECRET_KEY"] = "asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlf"
|
23
|
-
get :index
|
17
|
+
get :index, check_key: ENV["AWS_ELB_HEALTH_CHECK_SECRET_KEY"] + "foobar"
|
24
18
|
assert_response 403
|
25
19
|
end
|
26
20
|
|
27
21
|
test "should get 501 when secret key has not been configured" do
|
28
22
|
ENV.delete("AWS_ELB_HEALTH_CHECK_SECRET_KEY")
|
29
|
-
get :index
|
23
|
+
get :index, check_key: "asdfasdfasdf"
|
30
24
|
assert_response 501
|
31
25
|
end
|
32
26
|
|
data/test/dummy/log/test.log
CHANGED
@@ -566,3 +566,120 @@ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
|
566
566
|
AwsElbHealthCheckTest: test_truth
|
567
567
|
---------------------------------
|
568
568
|
[1m[35m (0.1ms)[0m rollback transaction
|
569
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
570
|
+
---------------------------------
|
571
|
+
AwsElbHealthCheckTest: test_truth
|
572
|
+
---------------------------------
|
573
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
574
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
575
|
+
----------------------------------------------------------------------------------------------------------
|
576
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_501_when_secret_key_has_not_been_configured
|
577
|
+
----------------------------------------------------------------------------------------------------------
|
578
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
579
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
580
|
+
----------------------------------------------------------------------------------------------
|
581
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_success_when_secret_key_is_used
|
582
|
+
----------------------------------------------------------------------------------------------
|
583
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
584
|
+
Parameters: {"check_key"=>"asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlf"}
|
585
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
586
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
587
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
588
|
+
-------------------------------------------------------------------------------------------------
|
589
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_failure_when_secret_key_is_omitted
|
590
|
+
-------------------------------------------------------------------------------------------------
|
591
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
592
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
593
|
+
-----------------------------------------------------------------------------------------------
|
594
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_failure_when_secret_key_is_wrong
|
595
|
+
-----------------------------------------------------------------------------------------------
|
596
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
597
|
+
Parameters: {"check_key"=>"asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlffoobar"}
|
598
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
599
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
600
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
601
|
+
---------------------------------
|
602
|
+
AwsElbHealthCheckTest: test_truth
|
603
|
+
---------------------------------
|
604
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
605
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
606
|
+
----------------------------------------------------------------------------------------------------------
|
607
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_501_when_secret_key_has_not_been_configured
|
608
|
+
----------------------------------------------------------------------------------------------------------
|
609
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
610
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
611
|
+
-----------------------------------------------------------------------------------------------
|
612
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_failure_when_secret_key_is_wrong
|
613
|
+
-----------------------------------------------------------------------------------------------
|
614
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
615
|
+
Parameters: {"check_key"=>"asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlffoobar"}
|
616
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
617
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
618
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
619
|
+
----------------------------------------------------------------------------------------------
|
620
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_success_when_secret_key_is_used
|
621
|
+
----------------------------------------------------------------------------------------------
|
622
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
623
|
+
Parameters: {"check_key"=>"asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlf"}
|
624
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
625
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
626
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
627
|
+
----------------------------------------------------------------------------------------------------------
|
628
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_501_when_secret_key_has_not_been_configured
|
629
|
+
----------------------------------------------------------------------------------------------------------
|
630
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
631
|
+
Parameters: {"check_key"=>"asdfasdfasdf"}
|
632
|
+
Application is not configured properly: 'AWS_ELB_HEALTH_CHECK_SECRET_KEY' is not set up, so no health check can ever pass
|
633
|
+
Completed 501 Not Implemented in 0ms (ActiveRecord: 0.0ms)
|
634
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
635
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
636
|
+
----------------------------------------------------------------------------------------------
|
637
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_success_when_secret_key_is_used
|
638
|
+
----------------------------------------------------------------------------------------------
|
639
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
640
|
+
Parameters: {"check_key"=>"asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlf"}
|
641
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
642
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
643
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
644
|
+
-----------------------------------------------------------------------------------------------
|
645
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_failure_when_secret_key_is_wrong
|
646
|
+
-----------------------------------------------------------------------------------------------
|
647
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
648
|
+
Parameters: {"check_key"=>"asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlffoobar"}
|
649
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
650
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
651
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
652
|
+
---------------------------------
|
653
|
+
AwsElbHealthCheckTest: test_truth
|
654
|
+
---------------------------------
|
655
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
656
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
657
|
+
-----------------------------------------------------------------------------------------------
|
658
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_failure_when_secret_key_is_wrong
|
659
|
+
-----------------------------------------------------------------------------------------------
|
660
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
661
|
+
Parameters: {"check_key"=>"asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlffoobar"}
|
662
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
663
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
664
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
665
|
+
----------------------------------------------------------------------------------------------------------
|
666
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_501_when_secret_key_has_not_been_configured
|
667
|
+
----------------------------------------------------------------------------------------------------------
|
668
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
669
|
+
Parameters: {"check_key"=>"asdfasdfasdf"}
|
670
|
+
Application is not configured properly: 'AWS_ELB_HEALTH_CHECK_SECRET_KEY' is not set up, so no health check can ever pass
|
671
|
+
Completed 501 Not Implemented in 0ms (ActiveRecord: 0.0ms)
|
672
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
673
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
674
|
+
----------------------------------------------------------------------------------------------
|
675
|
+
AwsElbHealthCheck::HealthChecksControllerTest: test_should_get_success_when_secret_key_is_used
|
676
|
+
----------------------------------------------------------------------------------------------
|
677
|
+
Processing by AwsElbHealthCheck::HealthChecksController#index as HTML
|
678
|
+
Parameters: {"check_key"=>"asdlkfjhasdlkfjhasdlkjfhasdlkfjhasdlf"}
|
679
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
680
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
681
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
682
|
+
---------------------------------
|
683
|
+
AwsElbHealthCheckTest: test_truth
|
684
|
+
---------------------------------
|
685
|
+
[1m[35m (0.0ms)[0m rollback transaction
|