test/dummy/log/test.log in knock-1.3.0 vs test/dummy/log/test.log in knock-1.4.0
- old
+ new
@@ -1,78 +1,146 @@
- [1m[36m (2.9ms)[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 (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 (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[35m (1.6ms)[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.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150713101607')
+ [1m[35m (1.5ms)[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$0mPmVn/CmWZkmHf15VY.JuVDRXH5EhKuCzFpsKH7.ySvtGWM4WLhW', '2015-07-23 14:58:31', '2015-07-23 14:58:31', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$h2eMNW1pZXYVkPzhnOGg3efpsw7/ENPysgUpdAi4o8u0K.wu/omDG', '2015-07-23 14:58:31', '2015-07-23 14:58:31', 298486374)[0m
- [1m[35m (45.0ms)[0m commit transaction
+ [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[36m (0.1ms)[0m [1mbegin transaction[0m
+------------------------------------------------------
+Knock::AuthTokenControllerTest: test_responds_with_201
+------------------------------------------------------
+ [1m[35mUser Load (0.3ms)[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.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[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[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]]
+ [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
+-------------------------------------------------------------------------------------------
+ [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[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[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
------------------------------------------------------------------------------
-ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
------------------------------------------------------------------------------
- [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
+------------------------------------------------------------------------------
+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 2ms (ActiveRecord: 0.1ms)
+Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [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.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
+ [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
-------------------------------------------------------
-Knock::AuthTokenControllerTest: test_responds_with_201
-------------------------------------------------------
+---------------------------------------------------------------------------------------
+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 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.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
-Completed 201 Created in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
-Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
------------------------------------------------------------------------------
+Processing by ProtectedResourcesController#index as HTML
[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[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
-Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[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)
+Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------
-KnockTest: test_setup_block_yields_self
----------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
+--------------------------------------------------
+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
----------------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+---------------------------------------
+KnockTest: test_setup_block_yields_self
+---------------------------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m