(138.3ms) DROP DATABASE IF EXISTS "fotogallery_test"  (252.8ms) CREATE DATABASE "fotogallery_test" ENCODING = 'unicode' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.3ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE  (51.7ms) CREATE TABLE "active_storage_attachments" ("id" bigserial primary key, "name" character varying NOT NULL, "record_type" character varying NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL)  (1.5ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")  (1.9ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")  (0.3ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE  (5.8ms) CREATE TABLE "active_storage_blobs" ("id" bigserial primary key, "key" character varying NOT NULL, "filename" character varying NOT NULL, "content_type" character varying, "metadata" text, "service_name" character varying NOT NULL, "byte_size" bigint NOT NULL, "checksum" character varying, "created_at" timestamp(6) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")  (0.3ms) DROP TABLE IF EXISTS "active_storage_variant_records" CASCADE  (5.3ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL)  (2.3ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest")  (0.3ms) DROP TABLE IF EXISTS "articles" CASCADE  (5.0ms) CREATE TABLE "articles" ("id" bigserial primary key, "title" character varying, "body" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)  (4.2ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057" FOREIGN KEY ("blob_id") REFERENCES "active_storage_blobs" ("id")   (1.6ms) ALTER TABLE "active_storage_variant_records" ADD CONSTRAINT "fk_rails_993965df05" FOREIGN KEY ("blob_id") REFERENCES "active_storage_blobs" ("id")   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) ActiveRecord::SchemaMigration Pluck (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (124.8ms) INSERT INTO "schema_migrations" (version) VALUES (20221102174351)  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (20221102143208);   (5.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] TRANSACTION (0.2ms) BEGIN ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2022-11-02 21:41:31.817077"], ["updated_at", "2022-11-02 21:41:31.817077"]] TRANSACTION (40.7ms) COMMIT ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]] TRANSACTION (0.2ms) BEGIN ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "d0b1ba3812a4269dc9faf934fd2488ad549b117b"], ["created_at", "2022-11-02 21:41:31.865269"], ["updated_at", "2022-11-02 21:41:31.865269"]] TRANSACTION (0.6ms) COMMIT ActiveRecord::SchemaMigration Pluck (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC TRANSACTION (0.2ms) BEGIN  (0.8ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "articles" DISABLE TRIGGER ALL;ALTER TABLE "active_storage_blobs" DISABLE TRIGGER ALL;ALTER TABLE "active_storage_attachments" DISABLE TRIGGER ALL;ALTER TABLE "active_storage_variant_records" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL TRANSACTION (39.9ms) COMMIT TRANSACTION (0.2ms) BEGIN  (1.3ms) DELETE FROM "articles"; INSERT INTO "articles" ("id", "title", "body", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyText', '2022-11-02 21:41:32.049868', '2022-11-02 21:41:32.049868'), (298486374, 'MyString', 'MyText', '2022-11-02 21:41:32.049868', '2022-11-02 21:41:32.049868') TRANSACTION (1.1ms) COMMIT TRANSACTION (0.7ms) BEGIN  (4.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "articles" ENABLE TRIGGER ALL;ALTER TABLE "active_storage_blobs" ENABLE TRIGGER ALL;ALTER TABLE "active_storage_attachments" ENABLE TRIGGER ALL;ALTER TABLE "active_storage_variant_records" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL TRANSACTION (1.2ms) COMMIT TRANSACTION (0.2ms) BEGIN  (106.8ms) do $$ declare r record; BEGIN FOR r IN ( SELECT FORMAT( 'UPDATE pg_constraint SET convalidated=false WHERE conname = ''%I'' AND connamespace::regnamespace = ''%I''::regnamespace; ALTER TABLE %I.%I VALIDATE CONSTRAINT %I;', constraint_name, table_schema, table_schema, table_name, constraint_name ) AS constraint_check FROM information_schema.table_constraints WHERE constraint_type = 'FOREIGN KEY' ) LOOP EXECUTE (r.constraint_check); END LOOP; END; $$;  TRANSACTION (0.7ms) COMMIT TRANSACTION (0.2ms) BEGIN ------------------------------------------------ ArticlesControllerTest: test_should_show_article ------------------------------------------------ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Started GET "/articles/980190962" for 127.0.0.1 at 2022-11-02 22:41:32 +0100 Processing by ArticlesController#show as HTML Parameters: {"id"=>"980190962"} Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Rendering layout layouts/application.html.erb Rendering articles/show.html.erb within layouts/application Rendered articles/_article.html.erb (Duration: 1.0ms | Allocations: 244) ActiveStorage::Attachment Load (0.4ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 980190962], ["record_type", "Article"], ["name", "photos"]] Rendered articles/show.html.erb within layouts/application (Duration: 33.5ms | Allocations: 6110) Rendered layout layouts/application.html.erb (Duration: 9288.0ms | Allocations: 141188) Completed 200 OK in 9307ms (Views: 9292.4ms | ActiveRecord: 2.1ms | Allocations: 144997) TRANSACTION (0.5ms) ROLLBACK TRANSACTION (0.1ms) BEGIN --------------------------------------------- ArticlesControllerTest: test_should_get_index --------------------------------------------- Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Started GET "/articles" for 127.0.0.1 at 2022-11-02 22:41:41 +0100 Processing by ArticlesController#index as HTML Rendering layout layouts/application.html.erb Rendering articles/index.html.erb within layouts/application Article Load (0.3ms) SELECT "articles".* FROM "articles" Rendered articles/_article.html.erb (Duration: 0.1ms | Allocations: 24) Rendered articles/_article.html.erb (Duration: 0.0ms | Allocations: 15) Rendered articles/index.html.erb within layouts/application (Duration: 10.4ms | Allocations: 2387) Rendered layout layouts/application.html.erb (Duration: 11.8ms | Allocations: 3977) Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.3ms | Allocations: 4351) TRANSACTION (0.3ms) ROLLBACK TRANSACTION (0.1ms) BEGIN ------------------------------------------- ArticlesControllerTest: test_should_get_new ------------------------------------------- Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Started GET "/articles/new" for 127.0.0.1 at 2022-11-02 22:41:41 +0100 Processing by ArticlesController#new as HTML Rendering layout layouts/application.html.erb Rendering articles/new.html.erb within layouts/application Rendered articles/_form.html.erb (Duration: 139.0ms | Allocations: 28947) Rendered articles/new.html.erb within layouts/application (Duration: 140.4ms | Allocations: 29255) Rendered layout layouts/application.html.erb (Duration: 143.2ms | Allocations: 30845) Completed 200 OK in 145ms (Views: 141.1ms | ActiveRecord: 2.6ms | Allocations: 31248) TRANSACTION (0.3ms) ROLLBACK TRANSACTION (0.2ms) BEGIN --------------------------------------------------- ArticlesControllerTest: test_should_destroy_article --------------------------------------------------- Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Article Count (41.1ms) SELECT COUNT(*) FROM "articles" Started DELETE "/articles/980190962" for 127.0.0.1 at 2022-11-02 22:41:42 +0100 Processing by ArticlesController#destroy as HTML Parameters: {"id"=>"980190962"} Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] TRANSACTION (0.2ms) SAVEPOINT active_record_1 ActiveStorage::Attachment Load (0.3ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 980190962], ["record_type", "Article"], ["name", "photos"]] Article Destroy (0.4ms) DELETE FROM "articles" WHERE "articles"."id" = $1 [["id", 980190962]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/articles Completed 302 Found in 8ms (ActiveRecord: 1.5ms | Allocations: 1493) Article Count (0.4ms) SELECT COUNT(*) FROM "articles" TRANSACTION (0.2ms) ROLLBACK TRANSACTION (0.1ms) BEGIN -------------------------------------------------- ArticlesControllerTest: test_should_update_article -------------------------------------------------- Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Started PATCH "/articles/980190962" for 127.0.0.1 at 2022-11-02 22:41:42 +0100 Processing by ArticlesController#update as HTML Parameters: {"article"=>{"body"=>"MyText", "title"=>"MyString"}, "id"=>"980190962"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Redirected to http://www.example.com/articles/980190962 Completed 302 Found in 3ms (ActiveRecord: 0.2ms | Allocations: 1004) TRANSACTION (0.2ms) ROLLBACK TRANSACTION (0.1ms) BEGIN -------------------------------------------- ArticlesControllerTest: test_should_get_edit -------------------------------------------- Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Started GET "/articles/980190962/edit" for 127.0.0.1 at 2022-11-02 22:41:42 +0100 Processing by ArticlesController#edit as HTML Parameters: {"id"=>"980190962"} Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Rendering layout layouts/application.html.erb Rendering articles/edit.html.erb within layouts/application ActiveStorage::Attachment Exists? (0.4ms) SELECT 1 AS one FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 980190962], ["record_type", "Article"], ["name", "photos"], ["LIMIT", 1]] CACHE ActiveStorage::Attachment Exists? (0.0ms) SELECT 1 AS one FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 980190962], ["record_type", "Article"], ["name", "photos"], ["LIMIT", 1]] Rendered articles/_form.html.erb (Duration: 6.4ms | Allocations: 3204) Rendered articles/edit.html.erb within layouts/application (Duration: 7.6ms | Allocations: 3488) Rendered layout layouts/application.html.erb (Duration: 8.9ms | Allocations: 5059) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms | Allocations: 5510) TRANSACTION (0.2ms) ROLLBACK TRANSACTION (0.1ms) BEGIN -------------------------------------------------- ArticlesControllerTest: test_should_create_article -------------------------------------------------- Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] Article Count (0.3ms) SELECT COUNT(*) FROM "articles" Started POST "/articles" for 127.0.0.1 at 2022-11-02 22:41:42 +0100 Processing by ArticlesController#create as HTML Parameters: {"article"=>{"body"=>"MyText", "title"=>"MyString"}} TRANSACTION (0.3ms) SAVEPOINT active_record_1 Article Create (0.3ms) INSERT INTO "articles" ("title", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "MyString"], ["body", "MyText"], ["created_at", "2022-11-02 21:41:42.136368"], ["updated_at", "2022-11-02 21:41:42.136368"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/articles/980190963 Completed 302 Found in 3ms (ActiveRecord: 0.7ms | Allocations: 1038) Article Count (0.3ms) SELECT COUNT(*) FROM "articles" Article Load (0.2ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT $1 [["LIMIT", 1]] TRANSACTION (0.3ms) ROLLBACK