test/dummy/log/test.log in knock-1.4.0 vs test/dummy/log/test.log in knock-1.4.1
- old
+ new
@@ -1,146 +1,146 @@
- [1m[36m (4.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (1.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
+ [1m[36m (3.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
+ [1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150713101607')
+ [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150713101607')
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$8Yam9pqovA3weu3n/l1Z4eJ7SP/xFw2yESJoXUcpqk89Fqn3mpY7C', '2016-01-02 04:04:33', '2016-01-02 04:04:33', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$pPSRVhAc5Awe4myXaw6EF.Xn.hJ/mWlUGSUA5UfiGbmm4l6O5QJ9u', '2016-01-02 04:04:33', '2016-01-02 04:04:33', 298486374)[0m
- [1m[35m (1.7ms)[0m commit transaction
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$p5uJvjODelWvUMamobUYm.l7v1cL4QMmQQsFmdlQpZWa4xyWD6Zsa', '2016-01-08 12:37:37', '2016-01-08 12:37:37', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$2hM6WVXy88h9vqb31eD4l.6jkUb6ppqstn5w.ixGo9hN3Sb76n5Ei', '2016-01-08 12:37:37', '2016-01-08 12:37:37', 298486374)[0m
+ [1m[35m (1.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------
+KnockTest: test_setup_block_yields_self
+---------------------------------------
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
+--------------------------------------------------
+CurrentUsersControllerTest: test_responds_with_200
+--------------------------------------------------
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by CurrentUsersController#show as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------
+CurrentUsersControllerTest: test_responds_with_404_if_user_is_not_logged_in
+---------------------------------------------------------------------------
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by CurrentUsersController#show as HTML
+Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------
Knock::AuthTokenControllerTest: test_responds_with_201
------------------------------------------------------
- [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
Processing by Knock::AuthTokenController#create as HTML
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
- [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
- [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
-Completed 201 Created in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
-Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
------------------------------------------------------------------------------
-Processing by Knock::AuthTokenController#create as HTML
- Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
- [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
-Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
+Completed 201 Created in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------
Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
-----------------------------------------------------------------------------
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
Processing by Knock::AuthTokenController#create as HTML
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------------
-Knock::AuthTokenTest: test_verify_audience_when_token_audience_is_present
--------------------------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
-Knock::AuthTokenTest: test_encode_tokens_with_RSA
--------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------
-Knock::AuthTokenTest: test_verify_algorithm
--------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Knock::AuthTokenTest: test_decode_RSA_encoded_tokens
-----------------------------------------------------
- [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
+-----------------------------------------------------------------------------
+Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
+-----------------------------------------------------------------------------
+Processing by Knock::AuthTokenController#create as HTML
+ Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
+Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------------------------------
-ProtectedResourcesControllerTest: test_responds_with_unauthorized_with_invalid_token_in_url
--------------------------------------------------------------------------------------------
+-----------------------------------------------------------------
+ProtectedResourcesControllerTest: test_responds_with_unauthorized
+-----------------------------------------------------------------
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
Processing by ProtectedResourcesController#index as HTML
- Parameters: {"token"=>"invalid"}
Filter chain halted as :authenticate rendered or redirected
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
-ProtectedResourcesControllerTest: test_responds_with_unauthorized
------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+ProtectedResourcesControllerTest: test_responds_with_success_with_valid_token_in_header
+---------------------------------------------------------------------------------------
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
Processing by ProtectedResourcesController#index as HTML
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------------------
+ProtectedResourcesControllerTest: test_responds_with_unauthorized_with_invalid_token_in_url
+-------------------------------------------------------------------------------------------
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by ProtectedResourcesController#index as HTML
+ Parameters: {"token"=>"invalid"}
Filter chain halted as :authenticate rendered or redirected
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
+------------------------------------------------------------------------------
+ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
+------------------------------------------------------------------------------
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by ProtectedResourcesController#index as HTML
+ [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
+Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------------------------
ProtectedResourcesControllerTest: test_responds_with_unauthorized_with_invalid_token_in_header
----------------------------------------------------------------------------------------------
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
Processing by ProtectedResourcesController#index as HTML
Filter chain halted as :authenticate rendered or redirected
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
ProtectedResourcesControllerTest: test_responds_with_success_with_token_in_url
------------------------------------------------------------------------------
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
Processing by ProtectedResourcesController#index as HTML
- Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTE3OTM4NzQsImF1ZCI6bnVsbCwic3ViIjo5ODAxOTA5NjJ9.o7HWlffQZN6ss8gZk4Nyl70T8TXpNFoVhr3lBZ5Jvnc"}
- [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
+ Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTIzNDMwNTcsImF1ZCI6ZmFsc2UsInN1YiI6OTgwMTkwOTYyfQ._LmEq4p__HN1QJJugtREjx2fhFHfDM64ZZ3DYp8E17k"}
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
-ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
-------------------------------------------------------------------------------
- [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
-Processing by ProtectedResourcesController#index as HTML
- [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
+----------------------------------------------------------------
+InstallGeneratorTest: test_Assert_all_files_are_properly_created
+----------------------------------------------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------------------
-ProtectedResourcesControllerTest: test_responds_with_success_with_valid_token_in_header
----------------------------------------------------------------------------------------
+----------------------------------------------------
+Knock::AuthTokenTest: test_decode_RSA_encoded_tokens
+----------------------------------------------------
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
-Processing by ProtectedResourcesController#index as HTML
- [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------
-CurrentUsersControllerTest: test_responds_with_200
---------------------------------------------------
- [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
-Processing by CurrentUsersController#show as HTML
- [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
-CurrentUsersControllerTest: test_responds_with_404_if_user_is_not_logged_in
----------------------------------------------------------------------------
- [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
-Processing by CurrentUsersController#show as HTML
-Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
-InstallGeneratorTest: test_Assert_all_files_are_properly_created
-----------------------------------------------------------------
+-------------------------------------------------
+Knock::AuthTokenTest: test_encode_tokens_with_RSA
+-------------------------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------
-KnockTest: test_setup_block_yields_self
----------------------------------------
+-------------------------------------------------------------------------
+Knock::AuthTokenTest: test_verify_audience_when_token_audience_is_present
+-------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-------------------------------------------
+Knock::AuthTokenTest: test_verify_algorithm
+-------------------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m