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 @@ -  (4.5ms) CREATE 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)  -  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) +  (3.7ms) CREATE 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)  +  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*) -  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations" -  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713101607') +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713101607') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" - Fixture Insert (0.1ms) 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) - Fixture Insert (0.1ms) INSERT 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) -  (1.7ms) commit transaction + Fixture Insert (0.2ms) 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) + Fixture Insert (0.1ms) INSERT 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) +  (1.4ms) commit transaction +  (0.0ms) begin transaction +--------------------------------------- +KnockTest: test_setup_block_yields_self +--------------------------------------- +  (0.0ms) rollback transaction  (0.1ms) begin transaction +-------------------------------------------------- +CurrentUsersControllerTest: test_responds_with_200 +-------------------------------------------------- + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] +Processing by CurrentUsersController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] +Completed 200 OK in 2ms (ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------------------------- +CurrentUsersControllerTest: test_responds_with_404_if_user_is_not_logged_in +--------------------------------------------------------------------------- + User Load (0.1ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ - User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] + User Load (0.1ms) 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]"}} - User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] - User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] -Completed 201 Created in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms) -  (0.1ms) rollback transaction -  (0.1ms) 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]"}} - User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] -Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms) + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] +Completed 201 Created in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction -  (0.1ms) begin transaction +  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) 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]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- -Knock::AuthTokenTest: test_verify_audience_when_token_audience_is_present -------------------------------------------------------------------------- -  (0.1ms) rollback transaction -  (0.1ms) begin transaction -------------------------------------------------- -Knock::AuthTokenTest: test_encode_tokens_with_RSA -------------------------------------------------- -  (0.1ms) rollback transaction -  (0.1ms) begin transaction -------------------------------------------- -Knock::AuthTokenTest: test_verify_algorithm -------------------------------------------- -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ----------------------------------------------------- -Knock::AuthTokenTest: test_decode_RSA_encoded_tokens ----------------------------------------------------- - User Load (0.1ms) 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]"}} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- -ProtectedResourcesControllerTest: test_responds_with_unauthorized_with_invalid_token_in_url -------------------------------------------------------------------------------------------- +----------------------------------------------------------------- +ProtectedResourcesControllerTest: test_responds_with_unauthorized +----------------------------------------------------------------- User Load (0.1ms) 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)  (0.1ms) rollback transaction -  (0.1ms) begin transaction ------------------------------------------------------------------ -ProtectedResourcesControllerTest: test_responds_with_unauthorized ------------------------------------------------------------------ +  (0.0ms) begin transaction +--------------------------------------------------------------------------------------- +ProtectedResourcesControllerTest: test_responds_with_success_with_valid_token_in_header +--------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] +Completed 200 OK in 1ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------------------------------- +ProtectedResourcesControllerTest: test_responds_with_unauthorized_with_invalid_token_in_url +------------------------------------------------------------------------------------------- + User Load (0.1ms) 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)  (0.1ms) rollback transaction -  (0.1ms) begin transaction +  (0.0ms) begin transaction +------------------------------------------------------------------------------ +ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication +------------------------------------------------------------------------------ + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] +Processing by ProtectedResourcesController#index as HTML + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] +Completed 200 OK in 1ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized_with_invalid_token_in_header ---------------------------------------------------------------------------------------------- User Load (0.1ms) 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)  (0.1ms) rollback transaction -  (0.1ms) begin transaction +  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_responds_with_success_with_token_in_url ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML - Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTE3OTM4NzQsImF1ZCI6bnVsbCwic3ViIjo5ODAxOTA5NjJ9.o7HWlffQZN6ss8gZk4Nyl70T8TXpNFoVhr3lBZ5Jvnc"} - User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] -Completed 200 OK in 1ms (ActiveRecord: 0.1ms) + Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTIzNDMwNTcsImF1ZCI6ZmFsc2UsInN1YiI6OTgwMTkwOTYyfQ._LmEq4p__HN1QJJugtREjx2fhFHfDM64ZZ3DYp8E17k"} + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] +Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- -ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------- - User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by ProtectedResourcesController#index as HTML - User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] -Completed 200 OK in 1ms (ActiveRecord: 0.1ms) +---------------------------------------------------------------- +InstallGeneratorTest: test_Assert_all_files_are_properly_created +----------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- -ProtectedResourcesControllerTest: test_responds_with_success_with_valid_token_in_header ---------------------------------------------------------------------------------------- +---------------------------------------------------- +Knock::AuthTokenTest: test_decode_RSA_encoded_tokens +---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by ProtectedResourcesController#index as HTML - User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] -Completed 200 OK in 1ms (ActiveRecord: 0.1ms) -  (0.1ms) rollback transaction -  (0.1ms) begin transaction --------------------------------------------------- -CurrentUsersControllerTest: test_responds_with_200 --------------------------------------------------- - User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by CurrentUsersController#show as HTML - User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] -Completed 200 OK in 1ms (ActiveRecord: 0.1ms) -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------------------------------- -CurrentUsersControllerTest: test_responds_with_404_if_user_is_not_logged_in ---------------------------------------------------------------------------- - User Load (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- -InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------- +------------------------------------------------- +Knock::AuthTokenTest: test_encode_tokens_with_RSA +-------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- -KnockTest: test_setup_block_yields_self ---------------------------------------- +------------------------------------------------------------------------- +Knock::AuthTokenTest: test_verify_audience_when_token_audience_is_present +------------------------------------------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------- +Knock::AuthTokenTest: test_verify_algorithm +-------------------------------------------  (0.1ms) rollback transaction