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 @@ -  (2.9ms) 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) +  (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)  (0.1ms) select sqlite_version(*) -  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations" -  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713101607') +  (1.5ms) 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$0mPmVn/CmWZkmHf15VY.JuVDRXH5EhKuCzFpsKH7.ySvtGWM4WLhW', '2015-07-23 14:58:31', '2015-07-23 14:58:31', 980190962) - Fixture Insert (0.1ms) INSERT 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) -  (45.0ms) commit transaction + 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  (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]] +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) +  (0.1ms) rollback transaction +  (0.1ms) 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]] +  (0.1ms) rollback transaction +  (0.1ms) 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 ----------------------------------------------------------------- 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 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_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 ------------------------------------------------------------------------------ -ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ------------------------------------------------------------------------------ - User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] +------------------------------------------------------------------------------ +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 2ms (ActiveRecord: 0.1ms) +Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction -  (0.0ms) begin 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.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] -Completed 200 OK in 0ms (ActiveRecord: 0.0ms) + 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 ------------------------------------------------------- -Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- +--------------------------------------------------------------------------------------- +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 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.0ms) 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 ------------------------------------------------------------------------------ -Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ +Processing by ProtectedResourcesController#index as HTML 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.0ms) 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) +Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- -KnockTest: test_setup_block_yields_self ---------------------------------------- -  (0.0ms) rollback 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 ---------------------------------------------------------------- -  (0.1ms) rollback transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------- +KnockTest: test_setup_block_yields_self +--------------------------------------- +  (0.1ms) rollback transaction