letsencrypt_plugin 0.0.3 → 0.0.4
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/letsencrypt_plugin/application_controller.rb +12 -10
- data/lib/letsencrypt_plugin/version.rb +1 -1
- data/lib/tasks/letsencrypt_plugin_tasks.rake +5 -7
- data/test/controllers/application_controller_test.rb +21 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/log/test.log +452 -0
- data/test/test_helper.rb +3 -0
- metadata +20 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dfdc32f4ac554d04c98648ddbe50f6f3f04f459
|
4
|
+
data.tar.gz: 2e5be29687e51ffdc5d439bbc148d1b02afcb1e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d220d498fcfd806f7dc98d50e793d05a508d4fa7302002c617bb36dededcbb9fb737822cc15deb28beb83b9998e331037cb3d2b3b978fc666af1cf43a0a06654
|
7
|
+
data.tar.gz: 3b49eb1752ce1c6d7c65cf2c47221cad3c4d43d81e59075c309ce303676d916e229fca48ef43756c1375d06b004e2396f8388e79ff119b3b1c3df63c12bb118b
|
@@ -1,26 +1,28 @@
|
|
1
1
|
module LetsencryptPlugin
|
2
2
|
class ApplicationController < ActionController::Base
|
3
|
+
before_action :get_challenge_response, only: [:index]
|
3
4
|
before_action :validate_length, only: [:index]
|
4
5
|
|
5
6
|
def index
|
6
7
|
# There is only one item in DB with challenge response from our task
|
7
8
|
# we will use it to render plain text response
|
8
|
-
response
|
9
|
-
if !response.nil?
|
10
|
-
render plain: response.response
|
11
|
-
else
|
12
|
-
challenge_failed
|
13
|
-
end
|
9
|
+
render plain: @response.response, status: :ok
|
14
10
|
end
|
15
11
|
|
16
12
|
private
|
17
13
|
def validate_length
|
18
14
|
# Challenge request should have at least 128bit
|
19
|
-
challenge_failed if params[:challenge].nil? || params[:challenge].length < 16 || params[:challenge].length > 256
|
15
|
+
challenge_failed('Challenge failed - Request has invalid length!') if params[:challenge].nil? || params[:challenge].length < 16 || params[:challenge].length > 256
|
16
|
+
end
|
17
|
+
|
18
|
+
def get_challenge_response
|
19
|
+
@response = Challenge.first
|
20
|
+
challenge_failed('Challenge failed - Can not get response from database!') if @response.nil?
|
20
21
|
end
|
21
|
-
|
22
|
-
def challenge_failed
|
23
|
-
|
22
|
+
|
23
|
+
def challenge_failed(msg)
|
24
|
+
Rails.logger.error(msg)
|
25
|
+
render plain: msg, status: :bad_request
|
24
26
|
end
|
25
27
|
end
|
26
28
|
end
|
@@ -32,11 +32,9 @@ task :letsencrypt_plugin => :setup_logger do
|
|
32
32
|
wait_for_status(challenge)
|
33
33
|
|
34
34
|
if challenge.verify_status == 'valid'
|
35
|
-
certificate_private_key = OpenSSL::PKey::RSA.new(2048)
|
36
|
-
csr = create_csr(certificate_private_key)
|
37
35
|
# We can now request a certificate
|
38
|
-
certificate = client.new_certificate(
|
39
|
-
save_certificate(certificate
|
36
|
+
certificate = client.new_certificate(create_csr)
|
37
|
+
save_certificate(certificate)
|
40
38
|
|
41
39
|
Rails.logger.info("Certificate has been generated.")
|
42
40
|
else
|
@@ -70,17 +68,17 @@ task :letsencrypt_plugin => :setup_logger do
|
|
70
68
|
end
|
71
69
|
end
|
72
70
|
|
73
|
-
def create_csr
|
71
|
+
def create_csr
|
74
72
|
Rails.logger.info("Creating CSR...")
|
75
73
|
Acme::CertificateRequest.new(names: [ CONFIG[:domain] ])
|
76
74
|
end
|
77
75
|
|
78
76
|
# Save the certificate and key
|
79
|
-
def save_certificate(certificate
|
77
|
+
def save_certificate(certificate)
|
80
78
|
if !certificate.nil?
|
81
79
|
Rails.logger.info("Saving certificates and key...")
|
82
80
|
File.write(File.join(CONFIG[:output_cert_dir], "#{CONFIG[:domain]}-cert.pem"), certificate.to_pem)
|
83
|
-
File.write(File.join(CONFIG[:output_cert_dir], "#{CONFIG[:domain]}-key.pem"),
|
81
|
+
File.write(File.join(CONFIG[:output_cert_dir], "#{CONFIG[:domain]}-key.pem"), certificate.request.private_key.to_pem)
|
84
82
|
File.write(File.join(CONFIG[:output_cert_dir], "#{CONFIG[:domain]}-chain.pem"), certificate.chain_to_pem)
|
85
83
|
File.write(File.join(CONFIG[:output_cert_dir], "#{CONFIG[:domain]}-fullchain.pem"), certificate.fullchain_to_pem)
|
86
84
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module LetsencryptPlugin
|
4
|
+
class ApplicationControllerTest < ActionController::TestCase
|
5
|
+
setup do
|
6
|
+
@routes = LetsencryptPlugin::Engine.routes
|
7
|
+
end
|
8
|
+
|
9
|
+
test "if challenge request is invalid when is smaller than 128 bits" do
|
10
|
+
get :index, challenge: 'dG9rZW4='
|
11
|
+
assert_response :bad_request
|
12
|
+
assert_match('Challenge failed - Request has invalid length!', response.body)
|
13
|
+
end
|
14
|
+
|
15
|
+
test "if challenge request is invalid if it is larger than 256 bytes" do
|
16
|
+
get :index, challenge: "a" * 257
|
17
|
+
assert_response :bad_request
|
18
|
+
assert_match('Challenge failed - Request has invalid length!', response.body)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
File without changes
|
data/test/dummy/log/test.log
CHANGED
@@ -514,5 +514,457 @@ LetsencryptPluginTest: test_truth
|
|
514
514
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
515
515
|
---------------------------------
|
516
516
|
LetsencryptPluginTest: test_truth
|
517
|
+
---------------------------------
|
518
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
519
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
520
|
+
[1m[35m (0.1ms)[0m begin transaction
|
521
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
522
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:43:29', '2015-12-19 15:43:29', 980190962)
|
523
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:43:29', '2015-12-19 15:43:29', 298486374)[0m
|
524
|
+
[1m[35m (73.5ms)[0m commit transaction
|
525
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
526
|
+
---------------------------------
|
527
|
+
LetsencryptPluginTest: test_truth
|
528
|
+
---------------------------------
|
529
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
530
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
531
|
+
----------------------------------------------------------------------------------------------------------
|
532
|
+
LetsencryptPlugin::ApplicationControllerTest: test_matching_challenge_token_returns_the_challenge_response
|
533
|
+
----------------------------------------------------------------------------------------------------------
|
534
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
535
|
+
Parameters: {"challenge"=>"58u1GLEGwgSbK-3LnTYUDwZySN3FmTxE4CuqAf8IpAU"}
|
536
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.3ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
537
|
+
Rendered text template (0.1ms)
|
538
|
+
Completed 200 OK in 45ms (Views: 35.9ms | ActiveRecord: 0.3ms)
|
539
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
540
|
+
[1m[35m (0.1ms)[0m begin transaction
|
541
|
+
-------------------------------------------------------------------------------------
|
542
|
+
LetsencryptPlugin::ApplicationControllerTest: test_token_must_be_longer_than_128_bits
|
543
|
+
-------------------------------------------------------------------------------------
|
544
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
545
|
+
Parameters: {"challenge"=>"58u1GLEG"}
|
546
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
547
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
548
|
+
[1m[35m (0.1ms)[0m begin transaction
|
549
|
+
-------------------------------------------------------------------
|
550
|
+
LetsencryptPlugin::ApplicationControllerTest: test_token_must_match
|
551
|
+
-------------------------------------------------------------------
|
552
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
553
|
+
Parameters: {"challenge"=>"58u1GLEGwgSbK-3LnTYUDwZySN3FmTxE4CuqAf8IpAU_wrong_token"}
|
554
|
+
[1m[36mLetsencryptPlugin::Challenge Load (0.3ms)[0m [1mSELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1[0m
|
555
|
+
Rendered text template (0.0ms)
|
556
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
557
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
558
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
559
|
+
[1m[35m (0.1ms)[0m begin transaction
|
560
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
561
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:49:40', '2015-12-19 15:49:40', 980190962)
|
562
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:49:40', '2015-12-19 15:49:40', 298486374)[0m
|
563
|
+
[1m[35m (82.6ms)[0m commit transaction
|
564
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
565
|
+
---------------------------------
|
566
|
+
LetsencryptPluginTest: test_truth
|
567
|
+
---------------------------------
|
568
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
569
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
570
|
+
-------------------------------------------------------------------------------------------
|
571
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
572
|
+
-------------------------------------------------------------------------------------------
|
573
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
574
|
+
Parameters: {"challenge"=>"Y2hhbGxlbmdlIHRva2Vu"}
|
575
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
576
|
+
Rendered text template (0.0ms)
|
577
|
+
Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.2ms)
|
578
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
579
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
580
|
+
[1m[35m (0.1ms)[0m begin transaction
|
581
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
582
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:56:41', '2015-12-19 15:56:41', 980190962)
|
583
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:56:41', '2015-12-19 15:56:41', 298486374)[0m
|
584
|
+
[1m[35m (85.9ms)[0m commit transaction
|
585
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
586
|
+
-------------------------------------------------------------------------------------------
|
587
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
588
|
+
-------------------------------------------------------------------------------------------
|
589
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
590
|
+
Parameters: {"challenge"=>"Y2hhbGxlbmdlIHRva2Vu"}
|
591
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
592
|
+
Rendered text template (0.0ms)
|
593
|
+
Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.2ms)
|
594
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
595
|
+
[1m[35m (0.0ms)[0m begin transaction
|
596
|
+
---------------------------------
|
597
|
+
LetsencryptPluginTest: test_truth
|
598
|
+
---------------------------------
|
599
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
600
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
601
|
+
[1m[35m (0.1ms)[0m begin transaction
|
602
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
603
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:58:29', '2015-12-19 15:58:29', 980190962)
|
604
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:58:29', '2015-12-19 15:58:29', 298486374)[0m
|
605
|
+
[1m[35m (57.5ms)[0m commit transaction
|
606
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
607
|
+
-------------------------------------------------------------------------------------------
|
608
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
609
|
+
-------------------------------------------------------------------------------------------
|
610
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
611
|
+
Parameters: {"challenge"=>"Y2hhbGxlbmdlIHRva2Vu"}
|
612
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.1ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
613
|
+
Rendered text template (0.0ms)
|
614
|
+
Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.1ms)
|
615
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
616
|
+
[1m[35m (0.0ms)[0m begin transaction
|
617
|
+
---------------------------------
|
618
|
+
LetsencryptPluginTest: test_truth
|
619
|
+
---------------------------------
|
620
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
621
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
622
|
+
[1m[35m (0.1ms)[0m begin transaction
|
623
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
624
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:59:24', '2015-12-19 15:59:24', 980190962)
|
625
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:59:24', '2015-12-19 15:59:24', 298486374)[0m
|
626
|
+
[1m[35m (82.4ms)[0m commit transaction
|
627
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
628
|
+
---------------------------------
|
629
|
+
LetsencryptPluginTest: test_truth
|
630
|
+
---------------------------------
|
631
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
632
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
633
|
+
-------------------------------------------------------------------------------------------
|
634
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
635
|
+
-------------------------------------------------------------------------------------------
|
636
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
637
|
+
Parameters: {"challenge"=>"Y2hhbGxlbmdlIHRva2Vu"}
|
638
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
639
|
+
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms)
|
640
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
641
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
642
|
+
[1m[35m (0.1ms)[0m begin transaction
|
643
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
644
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:59:37', '2015-12-19 15:59:37', 980190962)
|
645
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 15:59:37', '2015-12-19 15:59:37', 298486374)[0m
|
646
|
+
[1m[35m (55.2ms)[0m commit transaction
|
647
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
648
|
+
-------------------------------------------------------------------------------------------
|
649
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
650
|
+
-------------------------------------------------------------------------------------------
|
651
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
652
|
+
Parameters: {"challenge"=>"Y2hhbGxlbmdlIHRva2Vu"}
|
653
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
654
|
+
Rendered text template (0.0ms)
|
655
|
+
Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 0.2ms)
|
656
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
657
|
+
[1m[35m (0.1ms)[0m begin transaction
|
658
|
+
---------------------------------
|
659
|
+
LetsencryptPluginTest: test_truth
|
660
|
+
---------------------------------
|
661
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
662
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
663
|
+
[1m[35m (0.1ms)[0m begin transaction
|
664
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
665
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 16:00:38', '2015-12-19 16:00:38', 980190962)
|
666
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 16:00:38', '2015-12-19 16:00:38', 298486374)[0m
|
667
|
+
[1m[35m (78.7ms)[0m commit transaction
|
668
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
669
|
+
---------------------------------
|
670
|
+
LetsencryptPluginTest: test_truth
|
671
|
+
---------------------------------
|
672
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
673
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
674
|
+
-------------------------------------------------------------------------------------------
|
675
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
676
|
+
-------------------------------------------------------------------------------------------
|
677
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
678
|
+
Parameters: {"challenge"=>"Y2hhbGxlbmdlIHRva2Vu"}
|
679
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
680
|
+
Rendered text template (0.0ms)
|
681
|
+
Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.2ms)
|
682
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
683
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
684
|
+
[1m[35m (0.1ms)[0m begin transaction
|
685
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
686
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:24:07', '2015-12-19 21:24:07', 980190962)
|
687
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:24:07', '2015-12-19 21:24:07', 298486374)[0m
|
688
|
+
[1m[35m (88.9ms)[0m commit transaction
|
689
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
690
|
+
-------------------------------------------------------------------------------------------
|
691
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
692
|
+
-------------------------------------------------------------------------------------------
|
693
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
694
|
+
Parameters: {"challenge"=>"Y2hhbGxlbmdlIHRva2Vu"}
|
695
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
696
|
+
Rendered text template (0.0ms)
|
697
|
+
Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 0.2ms)
|
698
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
699
|
+
[1m[35m (0.1ms)[0m begin transaction
|
700
|
+
---------------------------------
|
701
|
+
LetsencryptPluginTest: test_truth
|
702
|
+
---------------------------------
|
703
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
704
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
705
|
+
[1m[35m (0.1ms)[0m begin transaction
|
706
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
707
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:25:44', '2015-12-19 21:25:44', 980190962)
|
708
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:25:44', '2015-12-19 21:25:44', 298486374)[0m
|
709
|
+
[1m[35m (87.0ms)[0m commit transaction
|
710
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
711
|
+
-------------------------------------------------------------------------------------------
|
712
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
713
|
+
-------------------------------------------------------------------------------------------
|
714
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
715
|
+
Parameters: {"challenge"=>"Y2hhbGxlbmdlIHRva2Vu"}
|
716
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
717
|
+
Rendered text template (0.0ms)
|
718
|
+
Completed 200 OK in 14ms (Views: 7.8ms | ActiveRecord: 0.2ms)
|
719
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
720
|
+
[1m[35m (0.1ms)[0m begin transaction
|
721
|
+
---------------------------------
|
722
|
+
LetsencryptPluginTest: test_truth
|
723
|
+
---------------------------------
|
724
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
725
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
726
|
+
[1m[35m (0.1ms)[0m begin transaction
|
727
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
728
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:27:35', '2015-12-19 21:27:35', 980190962)
|
729
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:27:35', '2015-12-19 21:27:35', 298486374)[0m
|
730
|
+
[1m[35m (54.4ms)[0m commit transaction
|
731
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
732
|
+
---------------------------------
|
733
|
+
LetsencryptPluginTest: test_truth
|
734
|
+
---------------------------------
|
735
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
736
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
737
|
+
-------------------------------------------------------------------------------------------
|
738
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
739
|
+
-------------------------------------------------------------------------------------------
|
740
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
741
|
+
Parameters: {"challenge"=>"dG9rZW4="}
|
742
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
743
|
+
Challenge failed - invalid request.
|
744
|
+
Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
|
745
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
746
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
747
|
+
[1m[35m (0.1ms)[0m begin transaction
|
748
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
749
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:29:31', '2015-12-19 21:29:31', 980190962)
|
750
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:29:31', '2015-12-19 21:29:31', 298486374)[0m
|
751
|
+
[1m[35m (56.1ms)[0m commit transaction
|
752
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
753
|
+
---------------------------------
|
754
|
+
LetsencryptPluginTest: test_truth
|
755
|
+
---------------------------------
|
756
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
757
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
758
|
+
-------------------------------------------------------------------------------------------
|
759
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
760
|
+
-------------------------------------------------------------------------------------------
|
761
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
762
|
+
Parameters: {"challenge"=>"dG9rZW4="}
|
763
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
764
|
+
Challenge failed - invalid request.
|
765
|
+
Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
|
766
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
767
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
768
|
+
[1m[35m (0.1ms)[0m begin transaction
|
769
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
770
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:29:50', '2015-12-19 21:29:50', 980190962)
|
771
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:29:50', '2015-12-19 21:29:50', 298486374)[0m
|
772
|
+
[1m[35m (62.1ms)[0m commit transaction
|
773
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
774
|
+
-------------------------------------------------------------------------------------------
|
775
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
776
|
+
-------------------------------------------------------------------------------------------
|
777
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
778
|
+
Parameters: {"challenge"=>"dG9rZW4="}
|
779
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
780
|
+
Challenge failed - invalid request.
|
781
|
+
Rendered text template (0.0ms)
|
782
|
+
Filter chain halted as :validate_length rendered or redirected
|
783
|
+
Completed 400 Bad Request in 11ms (Views: 6.2ms | ActiveRecord: 0.2ms)
|
784
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
785
|
+
[1m[35m (0.1ms)[0m begin transaction
|
786
|
+
---------------------------------
|
787
|
+
LetsencryptPluginTest: test_truth
|
788
|
+
---------------------------------
|
789
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
790
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
791
|
+
[1m[35m (0.1ms)[0m begin transaction
|
792
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
793
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:30:31', '2015-12-19 21:30:31', 980190962)
|
794
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:30:31', '2015-12-19 21:30:31', 298486374)[0m
|
795
|
+
[1m[35m (109.5ms)[0m commit transaction
|
796
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
797
|
+
---------------------------------
|
798
|
+
LetsencryptPluginTest: test_truth
|
799
|
+
---------------------------------
|
800
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
801
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
802
|
+
-------------------------------------------------------------------------------------------
|
803
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
804
|
+
-------------------------------------------------------------------------------------------
|
805
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
806
|
+
Parameters: {"challenge"=>"dG9rZW4="}
|
807
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
808
|
+
Challenge failed - invalid request.
|
809
|
+
Rendered text template (0.0ms)
|
810
|
+
Filter chain halted as :validate_length rendered or redirected
|
811
|
+
Completed 400 Bad Request in 10ms (Views: 5.8ms | ActiveRecord: 0.2ms)
|
812
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
813
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
814
|
+
[1m[35m (0.1ms)[0m begin transaction
|
815
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
816
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:31:00', '2015-12-19 21:31:00', 980190962)
|
817
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:31:00', '2015-12-19 21:31:00', 298486374)[0m
|
818
|
+
[1m[35m (104.2ms)[0m commit transaction
|
819
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
820
|
+
-------------------------------------------------------------------------------------------
|
821
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
822
|
+
-------------------------------------------------------------------------------------------
|
823
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
824
|
+
Parameters: {"challenge"=>"dG9rZW4="}
|
825
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
826
|
+
Challenge failed - invalid request.
|
827
|
+
Rendered text template (0.0ms)
|
828
|
+
Filter chain halted as :validate_length rendered or redirected
|
829
|
+
Completed 400 Bad Request in 14ms (Views: 7.9ms | ActiveRecord: 0.2ms)
|
830
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
831
|
+
[1m[35m (0.1ms)[0m begin transaction
|
832
|
+
---------------------------------
|
833
|
+
LetsencryptPluginTest: test_truth
|
834
|
+
---------------------------------
|
835
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
836
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
837
|
+
[1m[35m (0.1ms)[0m begin transaction
|
838
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
839
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:39:49', '2015-12-19 21:39:49', 980190962)
|
840
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:39:49', '2015-12-19 21:39:49', 298486374)[0m
|
841
|
+
[1m[35m (82.3ms)[0m commit transaction
|
842
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
843
|
+
---------------------------------
|
844
|
+
LetsencryptPluginTest: test_truth
|
845
|
+
---------------------------------
|
846
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
847
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
848
|
+
-------------------------------------------------------------------------------------------
|
849
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_at_least_128bits
|
850
|
+
-------------------------------------------------------------------------------------------
|
851
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
852
|
+
Parameters: {"challenge"=>"dG9rZW4="}
|
853
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
854
|
+
Challenge failed - Request has invalid length!
|
855
|
+
Rendered text template (0.0ms)
|
856
|
+
Filter chain halted as :validate_length rendered or redirected
|
857
|
+
Completed 400 Bad Request in 11ms (Views: 6.3ms | ActiveRecord: 0.2ms)
|
858
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
859
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
860
|
+
[1m[35m (0.1ms)[0m begin transaction
|
861
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
862
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:47:34', '2015-12-19 21:47:34', 980190962)
|
863
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:47:34', '2015-12-19 21:47:34', 298486374)[0m
|
864
|
+
[1m[35m (66.9ms)[0m commit transaction
|
865
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
866
|
+
---------------------------------
|
867
|
+
LetsencryptPluginTest: test_truth
|
868
|
+
---------------------------------
|
869
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
870
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
871
|
+
----------------------------------------------------------------------------------------------------------------
|
872
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
|
873
|
+
----------------------------------------------------------------------------------------------------------------
|
874
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
875
|
+
Parameters: {"challenge"=>"dG9rZW4="}
|
876
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
877
|
+
Challenge failed - Request has invalid length!
|
878
|
+
Rendered text template (0.0ms)
|
879
|
+
Filter chain halted as :validate_length rendered or redirected
|
880
|
+
Completed 400 Bad Request in 11ms (Views: 6.3ms | ActiveRecord: 0.2ms)
|
881
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
882
|
+
[1m[35m (0.0ms)[0m begin transaction
|
883
|
+
-----------------------------------------------------------------------------------------------------------------
|
884
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
|
885
|
+
-----------------------------------------------------------------------------------------------------------------
|
886
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
887
|
+
Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
|
888
|
+
[1m[36mLetsencryptPlugin::Challenge Load (0.1ms)[0m [1mSELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1[0m
|
889
|
+
Rendered text template (0.0ms)
|
890
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
891
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
892
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
893
|
+
[1m[35m (0.1ms)[0m begin transaction
|
894
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
895
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:47:58', '2015-12-19 21:47:58', 980190962)
|
896
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:47:58', '2015-12-19 21:47:58', 298486374)[0m
|
897
|
+
[1m[35m (79.8ms)[0m commit transaction
|
898
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
899
|
+
-----------------------------------------------------------------------------------------------------------------
|
900
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
|
901
|
+
-----------------------------------------------------------------------------------------------------------------
|
902
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
903
|
+
Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
|
904
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
905
|
+
Rendered text template (0.0ms)
|
906
|
+
Completed 200 OK in 11ms (Views: 6.5ms | ActiveRecord: 0.2ms)
|
907
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
908
|
+
[1m[35m (0.0ms)[0m begin transaction
|
909
|
+
----------------------------------------------------------------------------------------------------------------
|
910
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
|
911
|
+
----------------------------------------------------------------------------------------------------------------
|
912
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
913
|
+
Parameters: {"challenge"=>"dG9rZW4="}
|
914
|
+
[1m[36mLetsencryptPlugin::Challenge Load (0.1ms)[0m [1mSELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1[0m
|
915
|
+
Challenge failed - Request has invalid length!
|
916
|
+
Rendered text template (0.0ms)
|
917
|
+
Filter chain halted as :validate_length rendered or redirected
|
918
|
+
Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
919
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
920
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
921
|
+
---------------------------------
|
922
|
+
LetsencryptPluginTest: test_truth
|
923
|
+
---------------------------------
|
924
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
925
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
926
|
+
[1m[35m (0.1ms)[0m begin transaction
|
927
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
928
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:48:59', '2015-12-19 21:48:59', 980190962)
|
929
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 21:48:59', '2015-12-19 21:48:59', 298486374)[0m
|
930
|
+
[1m[35m (59.7ms)[0m commit transaction
|
931
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
932
|
+
----------------------------------------------------------------------------------------------------------------
|
933
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
|
934
|
+
----------------------------------------------------------------------------------------------------------------
|
935
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
936
|
+
Parameters: {"challenge"=>"dG9rZW4="}
|
937
|
+
[1m[35mLetsencryptPlugin::Challenge Load (0.2ms)[0m SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
|
938
|
+
Challenge failed - Request has invalid length!
|
939
|
+
Rendered text template (0.0ms)
|
940
|
+
Filter chain halted as :validate_length rendered or redirected
|
941
|
+
Completed 400 Bad Request in 12ms (Views: 6.5ms | ActiveRecord: 0.2ms)
|
942
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
943
|
+
[1m[35m (0.1ms)[0m begin transaction
|
944
|
+
-----------------------------------------------------------------------------------------------------------------
|
945
|
+
LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
|
946
|
+
-----------------------------------------------------------------------------------------------------------------
|
947
|
+
Processing by LetsencryptPlugin::ApplicationController#index as HTML
|
948
|
+
Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
|
949
|
+
[1m[36mLetsencryptPlugin::Challenge Load (0.1ms)[0m [1mSELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1[0m
|
950
|
+
Challenge failed - Request has invalid length!
|
951
|
+
Rendered text template (0.0ms)
|
952
|
+
Filter chain halted as :validate_length rendered or redirected
|
953
|
+
Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
954
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
955
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
956
|
+
---------------------------------
|
957
|
+
LetsencryptPluginTest: test_truth
|
958
|
+
---------------------------------
|
959
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
960
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
961
|
+
[1m[35m (0.1ms)[0m begin transaction
|
962
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "letsencrypt_plugin_challenges"[0m
|
963
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 22:08:45', '2015-12-19 22:08:45', 980190962)
|
964
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2015-12-19 22:08:45', '2015-12-19 22:08:45', 298486374)[0m
|
965
|
+
[1m[35m (83.2ms)[0m commit transaction
|
966
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
967
|
+
---------------------------------
|
968
|
+
LetsencryptPluginTest: test_truth
|
517
969
|
---------------------------------
|
518
970
|
[1m[35m (0.1ms)[0m rollback transaction
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: letsencrypt_plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukasz Gromanowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: codeclimate-test-reporter
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: letsencrypt-plugin is a Ruby on Rails helper for Let's Encrypt service
|
70
84
|
for retrieving SSL certificates (without using sudo, like original letsencrypt client
|
71
85
|
does). It uses acme-client gem for communication with Let's Encrypt server. ** This
|
@@ -92,6 +106,7 @@ files:
|
|
92
106
|
- lib/letsencrypt_plugin/engine.rb
|
93
107
|
- lib/letsencrypt_plugin/version.rb
|
94
108
|
- lib/tasks/letsencrypt_plugin_tasks.rake
|
109
|
+
- test/controllers/application_controller_test.rb
|
95
110
|
- test/dummy/README.rdoc
|
96
111
|
- test/dummy/Rakefile
|
97
112
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -125,6 +140,7 @@ files:
|
|
125
140
|
- test/dummy/config/secrets.yml
|
126
141
|
- test/dummy/db/schema.rb
|
127
142
|
- test/dummy/db/test.sqlite3
|
143
|
+
- test/dummy/log/development.log
|
128
144
|
- test/dummy/log/test.log
|
129
145
|
- test/dummy/public/404.html
|
130
146
|
- test/dummy/public/422.html
|
@@ -159,6 +175,7 @@ signing_key:
|
|
159
175
|
specification_version: 4
|
160
176
|
summary: Let's encrypt plugin for Ruby on Rails applications
|
161
177
|
test_files:
|
178
|
+
- test/controllers/application_controller_test.rb
|
162
179
|
- test/test_helper.rb
|
163
180
|
- test/letsencrypt_plugin_test.rb
|
164
181
|
- test/models/letsencrypt_plugin/challenge_test.rb
|
@@ -199,5 +216,6 @@ test_files:
|
|
199
216
|
- test/dummy/config/locales/en.yml
|
200
217
|
- test/dummy/config/routes.rb
|
201
218
|
- test/dummy/log/test.log
|
219
|
+
- test/dummy/log/development.log
|
202
220
|
- test/dummy/config.ru
|
203
221
|
- test/dummy/README.rdoc
|