s3_relay 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/controllers/s3_relay/uploads_controller.rb +8 -2
- data/app/models/s3_relay/upload.rb +1 -1
- data/lib/s3_relay/private_url.rb +1 -1
- data/lib/s3_relay/version.rb +1 -1
- data/test/controllers/s3_relay/uploads_controller_test.rb +17 -11
- data/test/dummy/{README.rdoc → README.md} +1 -5
- data/test/dummy/Rakefile +1 -1
- data/test/dummy/app/assets/config/manifest.js +3 -0
- data/test/dummy/app/assets/javascripts/application.js +6 -4
- data/test/dummy/app/assets/javascripts/cable.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +5 -5
- data/test/dummy/app/channels/application_cable/channel.rb +4 -0
- data/test/dummy/app/channels/application_cable/connection.rb +4 -0
- data/test/dummy/app/controllers/application_controller.rb +0 -2
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/application_record.rb +3 -0
- data/test/dummy/app/models/product.rb +1 -1
- data/test/dummy/app/views/layouts/application.html.erb +9 -9
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/rails +6 -1
- data/test/dummy/bin/rake +5 -0
- data/test/dummy/bin/setup +38 -0
- data/test/dummy/bin/spring +17 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/bin/yarn +11 -0
- data/test/dummy/config/application.rb +7 -11
- data/test/dummy/config/boot.rb +2 -4
- data/test/dummy/config/cable.yml +10 -0
- data/test/dummy/config/environment.rb +1 -1
- data/test/dummy/config/environments/development.rb +24 -7
- data/test/dummy/config/environments/production.rb +35 -22
- data/test/dummy/config/environments/test.rb +6 -3
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +8 -2
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -1
- data/test/dummy/config/initializers/wrap_parameters.rb +2 -2
- data/test/dummy/config/locales/en.yml +10 -0
- data/test/dummy/config/puma.rb +56 -0
- data/test/dummy/config/secrets.yml +15 -5
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/config.ru +2 -1
- data/test/dummy/db/seeds.rb +7 -0
- data/test/dummy/package.json +5 -0
- data/test/dummy/public/404.html +6 -6
- data/test/dummy/public/422.html +6 -6
- data/test/dummy/public/500.html +6 -6
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/robots.txt +1 -0
- data/test/dummy/test/application_system_test_case.rb +5 -0
- data/test/dummy/test/test_helper.rb +9 -0
- data/test/factories/uploads.rb +10 -3
- data/test/helpers/s3_relay/uploads_helper_test.rb +3 -3
- data/test/models/s3_relay/upload_test.rb +6 -5
- data/test/test_helper.rb +1 -0
- metadata +89 -33
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/log/development.log +0 -26
- data/test/dummy/log/test.log +0 -988
data/test/dummy/log/test.log
DELETED
@@ -1,988 +0,0 @@
|
|
1
|
-
[1m[35m (201.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "s3_relay_test"[0m
|
2
|
-
[1m[35m (396.9ms)[0m [1m[35mCREATE DATABASE "s3_relay_test" ENCODING = 'unicode'[0m
|
3
|
-
[1m[35mSQL (0.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
4
|
-
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp)[0m
|
5
|
-
[1m[35m (3.4ms)[0m [1m[35mCREATE TABLE "s3_relay_uploads" ("id" serial primary key, "uuid" bytea, "user_id" integer, "parent_type" character varying, "parent_id" integer, "upload_type" character varying, "filename" text, "content_type" character varying, "state" character varying, "data" json DEFAULT '{}', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp)[0m
|
6
|
-
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
7
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
8
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20141021002149')[0m
|
9
|
-
[1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
10
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
11
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2016-12-30 06:31:00 UTC], ["updated_at", 2016-12-30 06:31:00 UTC]]
|
13
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
14
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
15
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
16
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
17
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
20
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
21
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
23
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
24
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
25
|
-
[1m[35m (173.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "s3_relay_test"[0m
|
26
|
-
[1m[35m (397.9ms)[0m [1m[35mCREATE DATABASE "s3_relay_test" ENCODING = 'unicode'[0m
|
27
|
-
[1m[35mSQL (0.2ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
28
|
-
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp)[0m
|
29
|
-
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "s3_relay_uploads" ("id" serial primary key, "uuid" bytea, "user_id" integer, "parent_type" character varying, "parent_id" integer, "upload_type" character varying, "filename" text, "content_type" character varying, "state" character varying, "data" json DEFAULT '"{}"', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp)[0m
|
30
|
-
[1m[35m (2.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
31
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
32
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20141021002149')[0m
|
33
|
-
[1m[35m (2.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
34
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
35
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
36
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2016-12-30 06:31:27 UTC], ["updated_at", 2016-12-30 06:31:27 UTC]]
|
37
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
38
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
39
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
41
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
42
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(5551432892130617310);[0m
|
43
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
-
Migrating to CreateS3RelayUploads (20141009000804)
|
45
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
46
|
-
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "s3_relay_uploads" ("id" serial primary key, "uuid" bytea, "user_id" integer, "parent_type" character varying, "parent_id" integer, "upload_type" character varying, "filename" text, "content_type" character varying, "state" character varying, "data" json DEFAULT '"{}"', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp)[0m
|
47
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
48
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(5551432892130617310)[0m
|
49
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(5551432892130617310);[0m
|
50
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
51
|
-
Migrating to CreateS3RelayUploads (20141009000804)
|
52
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
53
|
-
[1m[35m (3.1ms)[0m [1m[35mCREATE TABLE "s3_relay_uploads" ("id" serial primary key, "uuid" bytea, "user_id" integer, "parent_type" character varying, "parent_id" integer, "upload_type" character varying, "filename" text, "content_type" character varying, "state" character varying, "data" json DEFAULT '"{}"', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp)[0m
|
54
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
55
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(5551432892130617310)[0m
|
56
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
57
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
58
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
60
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
61
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
62
|
-
[1m[35mSQL (0.2ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
63
|
-
[1m[35m (4.1ms)[0m [1m[35mDROP TABLE "products" CASCADE[0m
|
64
|
-
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp)[0m
|
65
|
-
[1m[35m (1.7ms)[0m [1m[35mDROP TABLE "s3_relay_uploads" CASCADE[0m
|
66
|
-
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "s3_relay_uploads" ("id" serial primary key, "uuid" bytea, "user_id" integer, "parent_type" character varying, "parent_id" integer, "upload_type" character varying, "filename" text, "content_type" character varying, "state" character varying, "data" json DEFAULT '"{}"', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp)[0m
|
67
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
68
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
69
|
-
('20141009000804');
|
70
|
-
|
71
|
-
[0m
|
72
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
73
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
74
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
75
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
76
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
77
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
78
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
79
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
80
|
-
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" DISABLE TRIGGER ALL[0m
|
81
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
82
|
-
[1m[35m (1.1ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
83
|
-
FROM pg_tables
|
84
|
-
WHERE
|
85
|
-
tablename !~ '_prt_' AND
|
86
|
-
tablename <> 'schema_migrations' AND
|
87
|
-
schemaname = ANY (current_schemas(false))
|
88
|
-
[0m
|
89
|
-
[1m[35m (0.9ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 's3_relay_test'[0m
|
90
|
-
[1m[35m (9.6ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."products", "public"."s3_relay_uploads" RESTART IDENTITY CASCADE;[0m
|
91
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
92
|
-
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" ENABLE TRIGGER ALL[0m
|
93
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
94
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
95
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
96
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99
|
-
-----------------------------------------------------
|
100
|
-
S3Relay::Upload::scopes::pending: test_0001_anonymous
|
101
|
-
-----------------------------------------------------
|
102
|
-
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
103
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["state", "pending"], ["pending_at", 2016-12-30 06:33:12 UTC], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
104
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
105
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
106
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["state", "imported"], ["pending_at", 2016-12-30 06:33:12 UTC], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
107
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
108
|
-
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1m[34mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = $1[0m [["state", "pending"]]
|
109
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
110
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
111
|
-
-----------------------------------------------------------------------
|
112
|
-
S3Relay::Upload::validations::upload_type: test_0001_validates presence
|
113
|
-
-----------------------------------------------------------------------
|
114
|
-
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
115
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
116
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
117
|
-
---------------------------------------------------------------------------------------------------------------------
|
118
|
-
S3Relay::UploadsController::POST create::success::with parent attributes::not matching an object: test_0001_anonymous
|
119
|
-
---------------------------------------------------------------------------------------------------------------------
|
120
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
121
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
122
|
-
--------------------------------------------------
|
123
|
-
S3Relay::Upload::#private_url: test_0001_anonymous
|
124
|
-
--------------------------------------------------
|
125
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
126
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
127
|
-
------------------------------------------------------------------------
|
128
|
-
S3Relay::Upload::validations::content_type: test_0001_validates presence
|
129
|
-
------------------------------------------------------------------------
|
130
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
131
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
132
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
133
|
-
----------------------------------------------------------
|
134
|
-
S3Relay::Upload::associations::parent: test_0001_anonymous
|
135
|
-
----------------------------------------------------------
|
136
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
137
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
138
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
139
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
140
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
141
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
142
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
143
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
144
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
145
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
146
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
147
|
-
---------------------------------------------------------------------------------
|
148
|
-
S3Relay::UploadsHelper::#s3_relay_field::with multiple: true: test_0001_anonymous
|
149
|
-
---------------------------------------------------------------------------------
|
150
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
151
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
152
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
153
|
-
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
154
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
155
|
-
---------------------------------------------------------------------
|
156
|
-
S3Relay::UploadsController::POST create::success: test_0001_anonymous
|
157
|
-
---------------------------------------------------------------------
|
158
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
159
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
160
|
-
-----------------------------------------------------------------------------------
|
161
|
-
S3Relay::Upload::#notify_parent::when the parent is associated: test_0001_anonymous
|
162
|
-
-----------------------------------------------------------------------------------
|
163
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
164
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
165
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
166
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
167
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
168
|
-
----------------------------------------------------------------------
|
169
|
-
S3Relay::Upload::validations::pending_at: test_0001_validates presence
|
170
|
-
----------------------------------------------------------------------
|
171
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
172
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
173
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
174
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
175
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
176
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
177
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
178
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
179
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
180
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
181
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
182
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
183
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
184
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
185
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
186
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
187
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
188
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
189
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
190
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
191
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
192
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
193
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
194
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
195
|
-
-----------------------------------------------
|
196
|
-
S3Relay::Upload::#pending?: test_0001_anonymous
|
197
|
-
-----------------------------------------------
|
198
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
199
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
200
|
-
-----------------------------------------------
|
201
|
-
S3Relay::Upload::#imported: test_0001_anonymous
|
202
|
-
-----------------------------------------------
|
203
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
204
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
205
|
-
-----------------------------------------------------------------------------
|
206
|
-
S3Relay::UploadsHelper::#s3_relay_field::without options: test_0001_anonymous
|
207
|
-
-----------------------------------------------------------------------------
|
208
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
209
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
210
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
211
|
-
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
212
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
213
|
-
------------------------------------------------------
|
214
|
-
S3Relay::Upload::scopes::imported: test_0001_anonymous
|
215
|
-
------------------------------------------------------
|
216
|
-
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
217
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["state", "pending"], ["pending_at", 2016-12-30 06:33:12 UTC], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
218
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
219
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
220
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["state", "imported"], ["pending_at", 2016-12-30 06:33:12 UTC], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
221
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
222
|
-
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1m[34mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = $1[0m [["state", "imported"]]
|
223
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
224
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
225
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
226
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
227
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
228
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
229
|
-
------------------------------------------------------------------------------------------
|
230
|
-
S3Relay::UploadsHelper::#s3_relay_field::with disposition: attachment: test_0001_anonymous
|
231
|
-
------------------------------------------------------------------------------------------
|
232
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
233
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
234
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
235
|
-
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
236
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
237
|
-
--------------------------------------------------------------------
|
238
|
-
S3Relay::Upload::validations::filename: test_0001_validates presence
|
239
|
-
--------------------------------------------------------------------
|
240
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
241
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
242
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
243
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
244
|
-
S3Relay::UploadsController::POST create::success::with parent attributes::with a current_user: test_0001_associates the upload with the user
|
245
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
246
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
247
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
248
|
-
--------------------------------------------------------
|
249
|
-
S3Relay::UploadsController::GET new: test_0001_anonymous
|
250
|
-
--------------------------------------------------------
|
251
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
252
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
253
|
-
-----------------------------------------------------
|
254
|
-
S3Relay::Upload::#mark_imported!: test_0001_anonymous
|
255
|
-
-----------------------------------------------------
|
256
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
257
|
-
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
258
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
259
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
260
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
261
|
-
-------------------------------------------------------
|
262
|
-
S3Relay::Upload::upon finalization: test_0001_anonymous
|
263
|
-
-------------------------------------------------------
|
264
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
265
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
266
|
-
----------------------------------------------------------------
|
267
|
-
S3Relay::Upload::validations::uuid: test_0001_validates presence
|
268
|
-
----------------------------------------------------------------
|
269
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
270
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
271
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
272
|
-
------------------------------------------------------------------
|
273
|
-
S3Relay::Upload::validations::uuid: test_0002_validates uniqueness
|
274
|
-
------------------------------------------------------------------
|
275
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
276
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["state", "pending"], ["pending_at", 2016-12-30 06:33:12 UTC], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
277
|
-
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
278
|
-
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
279
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
280
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
281
|
-
[1m[35m (0.0ms)[0m [1m[35mCOMMIT[0m
|
282
|
-
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
283
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
284
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", 2016-12-30 06:33:12 UTC], ["updated_at", 2016-12-30 06:33:12 UTC]]
|
285
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
286
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
287
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
288
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
289
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
290
|
-
-------------------------------------------------------------------
|
291
|
-
S3Relay::UploadsController::POST create::error: test_0001_anonymous
|
292
|
-
-------------------------------------------------------------------
|
293
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
294
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
295
|
-
-----------------------------------------------------------------------------------------------------------------
|
296
|
-
S3Relay::UploadsController::POST create::success::with parent attributes::matching an object: test_0001_anonymous
|
297
|
-
-----------------------------------------------------------------------------------------------------------------
|
298
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
299
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
300
|
-
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" DISABLE TRIGGER ALL
|
301
|
-
[1m[36m (1.0ms)[0m [1mselect table_name from information_schema.views where table_schema = 's3_relay_test'[0m
|
302
|
-
[1m[35m (10.6ms)[0m TRUNCATE TABLE "ar_internal_metadata", "products", "s3_relay_uploads" RESTART IDENTITY CASCADE;
|
303
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" ENABLE TRIGGER ALL[0m
|
304
|
-
[1m[35m (0.1ms)[0m BEGIN
|
305
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
306
|
-
[1m[35m (0.1ms)[0m BEGIN
|
307
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
308
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-12-30 06:50:36.807336"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 06:50:36.807336"]]
|
309
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
310
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
311
|
-
[1m[36mS3Relay::Upload Exists (2.5ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
312
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
313
|
-
:format: 1
|
314
|
-
' LIMIT 1[0m
|
315
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.831936"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 1], ["parent_type", "Product"], ["pending_at", "2016-12-30 06:50:36.818698"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.831936"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
316
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
317
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
318
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
319
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
320
|
-
:format: 1
|
321
|
-
' LIMIT 1[0m
|
322
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.837536"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 1], ["parent_type", "Product"], ["pending_at", "2016-12-30 06:50:36.834981"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.837536"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
323
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
325
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
326
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
327
|
-
:format: 1
|
328
|
-
' LIMIT 1[0m
|
329
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.840710"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 1], ["parent_type", "Product"], ["pending_at", "2016-12-30 06:50:36.839167"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.840710"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
330
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
331
|
-
[1m[35mS3Relay::Upload Load (0.9ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 1 AND "s3_relay_uploads"."upload_type" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1
|
332
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
333
|
-
[1m[35m (0.1ms)[0m BEGIN
|
334
|
-
----------------------------------------------------------------------
|
335
|
-
S3Relay::Upload::validations::pending_at: test_0001_validates presence
|
336
|
-
----------------------------------------------------------------------
|
337
|
-
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
338
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
339
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
340
|
-
-----------------------------------------------
|
341
|
-
S3Relay::Upload::#pending?: test_0001_anonymous
|
342
|
-
-----------------------------------------------
|
343
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
344
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
345
|
-
---------------------------------------------------------------------------------
|
346
|
-
S3Relay::UploadsHelper::#s3_relay_field::with multiple: true: test_0001_anonymous
|
347
|
-
---------------------------------------------------------------------------------
|
348
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
349
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-12-30 06:50:36.862657"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 06:50:36.862657"]]
|
350
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
351
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
352
|
-
[1m[35m (0.1ms)[0m BEGIN
|
353
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
354
|
-
[1m[35m (0.1ms)[0m BEGIN
|
355
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
356
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-12-30 06:50:36.866235"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 06:50:36.866235"]]
|
357
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
358
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
359
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
360
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
361
|
-
:format: 1
|
362
|
-
' LIMIT 1[0m
|
363
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.869235"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-12-30 06:50:36.867608"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.869235"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
364
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
365
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
366
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
367
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
368
|
-
:format: 1
|
369
|
-
' LIMIT 1[0m
|
370
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.872292"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-12-30 06:50:36.870845"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.872292"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
371
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
372
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
373
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
374
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
375
|
-
:format: 1
|
376
|
-
' LIMIT 1[0m
|
377
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.875168"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-12-30 06:50:36.873791"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.875168"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
378
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
379
|
-
[1m[35m (0.2ms)[0m SELECT "s3_relay_uploads"."id" FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 3 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
380
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
381
|
-
[1m[35m (0.1ms)[0m BEGIN
|
382
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
383
|
-
[1m[35m (0.1ms)[0m BEGIN
|
384
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
385
|
-
[1m[35m (0.1ms)[0m BEGIN
|
386
|
-
--------------------------------------------------------
|
387
|
-
S3Relay::UploadsController::GET new: test_0001_anonymous
|
388
|
-
--------------------------------------------------------
|
389
|
-
Processing by S3Relay::UploadsController#new as HTML
|
390
|
-
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
391
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
392
|
-
[1m[35m (0.1ms)[0m BEGIN
|
393
|
-
-----------------------------------------------------------------------------
|
394
|
-
S3Relay::UploadsHelper::#s3_relay_field::without options: test_0001_anonymous
|
395
|
-
-----------------------------------------------------------------------------
|
396
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
397
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-12-30 06:50:36.893511"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 06:50:36.893511"]]
|
398
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
399
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
400
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
401
|
-
---------------------------------------------------------------------
|
402
|
-
S3Relay::UploadsController::POST create::success: test_0001_anonymous
|
403
|
-
---------------------------------------------------------------------
|
404
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
405
|
-
Processing by S3Relay::UploadsController#create as HTML
|
406
|
-
Parameters: {"association"=>"photo_uploads", "uuid"=>"df927d35-a844-4712-8444-438d2058da38", "filename"=>"cat.png", "content_type"=>"image/png"}
|
407
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
408
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
409
|
-
:value: df927d35-a844-4712-8444-438d2058da38
|
410
|
-
:format: 1
|
411
|
-
' LIMIT 1
|
412
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.902055"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 06:50:36.900650"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.902055"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
413
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
414
|
-
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
415
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
416
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
417
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
418
|
-
-----------------------------------------------------------------------
|
419
|
-
S3Relay::Upload::validations::upload_type: test_0001_validates presence
|
420
|
-
-----------------------------------------------------------------------
|
421
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
422
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
423
|
-
[1m[35m (0.1ms)[0m BEGIN
|
424
|
-
----------------------------------------------------------------
|
425
|
-
S3Relay::Upload::validations::uuid: test_0001_validates presence
|
426
|
-
----------------------------------------------------------------
|
427
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
428
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
429
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
430
|
-
------------------------------------------------------------------
|
431
|
-
S3Relay::Upload::validations::uuid: test_0002_validates uniqueness
|
432
|
-
------------------------------------------------------------------
|
433
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
434
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-12-30 06:50:36.914403"], ["data", "{}"], ["pending_at", "2016-12-30 06:50:36.914115"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.914403"]]
|
435
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
436
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
437
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
438
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
439
|
-
-------------------------------------------------------
|
440
|
-
S3Relay::Upload::upon finalization: test_0001_anonymous
|
441
|
-
-------------------------------------------------------
|
442
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
443
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
444
|
-
------------------------------------------------------
|
445
|
-
S3Relay::Upload::scopes::imported: test_0001_anonymous
|
446
|
-
------------------------------------------------------
|
447
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
448
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-12-30 06:50:36.921707"], ["data", "{}"], ["pending_at", "2016-12-30 06:50:36.921407"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.921707"]]
|
449
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
450
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
451
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-12-30 06:50:36.923295"], ["data", "{}"], ["pending_at", "2016-12-30 06:50:36.923025"], ["state", "imported"], ["updated_at", "2016-12-30 06:50:36.923295"]]
|
452
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
453
|
-
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'imported'
|
454
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
455
|
-
[1m[35m (0.1ms)[0m BEGIN
|
456
|
-
-----------------------------------------------------
|
457
|
-
S3Relay::Upload::#mark_imported!: test_0001_anonymous
|
458
|
-
-----------------------------------------------------
|
459
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
460
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
461
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
462
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
463
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
464
|
-
[1m[35m (0.1ms)[0m COMMIT
|
465
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
466
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
467
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-12-30 06:50:36.932377"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 06:50:36.932377"]]
|
468
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
469
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
470
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
471
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
472
|
-
:format: 1
|
473
|
-
' LIMIT 1
|
474
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.935135"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 06:50:36.933718"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.935135"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
475
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
476
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
477
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
478
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
479
|
-
:format: 1
|
480
|
-
' LIMIT 1
|
481
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.937819"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 06:50:36.936573"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.937819"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
482
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
483
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
484
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
485
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
486
|
-
:format: 1
|
487
|
-
' LIMIT 1
|
488
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.940505"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 06:50:36.939215"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.940505"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
489
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
490
|
-
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 5 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
491
|
-
[1m[35mSQL (0.3ms)[0m UPDATE "s3_relay_uploads" SET "parent_type" = 'Product', "parent_id" = 5 WHERE "s3_relay_uploads"."uuid" IN ('b1b5b5e9-157f-415a-892d-1e0e84fcb336', 'b1b5b5e9-157f-415a-892d-1e0e84fcb336') AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
492
|
-
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 5 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
493
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
494
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
495
|
-
-----------------------------------------------
|
496
|
-
S3Relay::Upload::#imported: test_0001_anonymous
|
497
|
-
-----------------------------------------------
|
498
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
499
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
500
|
-
-----------------------------------------------------------------------------------------------------------------
|
501
|
-
S3Relay::UploadsController::POST create::success::with parent attributes::matching an object: test_0001_anonymous
|
502
|
-
-----------------------------------------------------------------------------------------------------------------
|
503
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
504
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-12-30 06:50:36.949745"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 06:50:36.949745"]]
|
505
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
506
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 6 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
507
|
-
Processing by S3Relay::UploadsController#create as HTML
|
508
|
-
Parameters: {"association"=>"photo_uploads", "uuid"=>"2b478a2e-e6e2-49f6-a226-e375fd58541f", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"6"}
|
509
|
-
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = 6 LIMIT 1
|
510
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
511
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
512
|
-
:value: 2b478a2e-e6e2-49f6-a226-e375fd58541f
|
513
|
-
:format: 1
|
514
|
-
' LIMIT 1
|
515
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.956132"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 6], ["parent_type", "Product"], ["pending_at", "2016-12-30 06:50:36.954605"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.956132"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
516
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
517
|
-
Completed 201 Created in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
|
518
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 6 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
519
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
520
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
521
|
-
-----------------------------------------------------
|
522
|
-
S3Relay::Upload::scopes::pending: test_0001_anonymous
|
523
|
-
-----------------------------------------------------
|
524
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
525
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-12-30 06:50:36.961353"], ["data", "{}"], ["pending_at", "2016-12-30 06:50:36.961050"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.961353"]]
|
526
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
527
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
528
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-12-30 06:50:36.962869"], ["data", "{}"], ["pending_at", "2016-12-30 06:50:36.962621"], ["state", "imported"], ["updated_at", "2016-12-30 06:50:36.962869"]]
|
529
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
530
|
-
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'pending'
|
531
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
532
|
-
[1m[35m (0.1ms)[0m BEGIN
|
533
|
-
--------------------------------------------------------------------
|
534
|
-
S3Relay::Upload::validations::filename: test_0001_validates presence
|
535
|
-
--------------------------------------------------------------------
|
536
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
537
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
538
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
539
|
-
[1m[35m (0.1ms)[0m COMMIT
|
540
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
541
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
542
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
543
|
-
[1m[35m (0.1ms)[0m COMMIT
|
544
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
545
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
546
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
547
|
-
---------------------------------------------------------------------------------------------------------------------
|
548
|
-
S3Relay::UploadsController::POST create::success::with parent attributes::not matching an object: test_0001_anonymous
|
549
|
-
---------------------------------------------------------------------------------------------------------------------
|
550
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
551
|
-
Processing by S3Relay::UploadsController#create as HTML
|
552
|
-
Parameters: {"association"=>"photo_uploads", "uuid"=>"58cd1837-8d87-4dca-ae7e-c612080d5380", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"10000000"}
|
553
|
-
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = 10000000 LIMIT 1[0m
|
554
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
555
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
556
|
-
:value: 58cd1837-8d87-4dca-ae7e-c612080d5380
|
557
|
-
:format: 1
|
558
|
-
' LIMIT 1[0m
|
559
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.978191"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 06:50:36.976949"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.978191"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
560
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
561
|
-
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
|
562
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
563
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
564
|
-
[1m[35m (0.1ms)[0m BEGIN
|
565
|
-
--------------------------------------------------
|
566
|
-
S3Relay::Upload::#private_url: test_0001_anonymous
|
567
|
-
--------------------------------------------------
|
568
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
569
|
-
[1m[35m (0.1ms)[0m BEGIN
|
570
|
-
-------------------------------------------------------------------
|
571
|
-
S3Relay::UploadsController::POST create::error: test_0001_anonymous
|
572
|
-
-------------------------------------------------------------------
|
573
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
574
|
-
Processing by S3Relay::UploadsController#create as HTML
|
575
|
-
Parameters: {"uuid"=>"8fc5811d-89be-4a64-a33c-eddd4d328915", "filename"=>"cat.png", "content_type"=>"image/png"}
|
576
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
577
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
578
|
-
:value: 8fc5811d-89be-4a64-a33c-eddd4d328915
|
579
|
-
:format: 1
|
580
|
-
' LIMIT 1[0m
|
581
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
582
|
-
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
|
583
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
584
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
585
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
586
|
-
-----------------------------------------------------------------------------------
|
587
|
-
S3Relay::Upload::#notify_parent::when the parent is associated: test_0001_anonymous
|
588
|
-
-----------------------------------------------------------------------------------
|
589
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
590
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-12-30 06:50:36.995144"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 06:50:36.995144"]]
|
591
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
592
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
593
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
594
|
-
:value: b1b5b5e9-157f-415a-892d-1e0e84fcb336
|
595
|
-
:format: 1
|
596
|
-
' LIMIT 1
|
597
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:36.997828"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 7], ["parent_type", "Product"], ["pending_at", "2016-12-30 06:50:36.994468"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:36.997828"], ["upload_type", "FileUpload"], ["uuid", "<36 bytes of binary data>"]]
|
598
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
599
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
600
|
-
[1m[35m (0.1ms)[0m BEGIN
|
601
|
-
----------------------------------------------------------
|
602
|
-
S3Relay::Upload::associations::parent: test_0001_anonymous
|
603
|
-
----------------------------------------------------------
|
604
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
605
|
-
[1m[35m (0.1ms)[0m BEGIN
|
606
|
-
------------------------------------------------------------------------------------------
|
607
|
-
S3Relay::UploadsHelper::#s3_relay_field::with disposition: attachment: test_0001_anonymous
|
608
|
-
------------------------------------------------------------------------------------------
|
609
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
610
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-12-30 06:50:37.005434"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 06:50:37.005434"]]
|
611
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
612
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
613
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
614
|
-
------------------------------------------------------------------------
|
615
|
-
S3Relay::Upload::validations::content_type: test_0001_validates presence
|
616
|
-
------------------------------------------------------------------------
|
617
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
618
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
619
|
-
[1m[35m (0.1ms)[0m BEGIN
|
620
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
621
|
-
[1m[35m (0.1ms)[0m BEGIN
|
622
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
623
|
-
[1m[35m (0.1ms)[0m BEGIN
|
624
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
625
|
-
[1m[35m (0.1ms)[0m BEGIN
|
626
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
627
|
-
[1m[35m (0.1ms)[0m BEGIN
|
628
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
629
|
-
S3Relay::UploadsController::POST create::success::with parent attributes::with a current_user: test_0001_associates the upload with the user
|
630
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
631
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
632
|
-
Processing by S3Relay::UploadsController#create as HTML
|
633
|
-
Parameters: {"association"=>"photo_uploads", "uuid"=>"ba73948c-98f3-4e82-baa4-ec8654cd4439", "filename"=>"cat.png", "content_type"=>"image/png"}
|
634
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
635
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
636
|
-
:value: ba73948c-98f3-4e82-baa4-ec8654cd4439
|
637
|
-
:format: 1
|
638
|
-
' LIMIT 1[0m
|
639
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "user_id", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 06:50:37.021286"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 06:50:37.019924"], ["state", "pending"], ["updated_at", "2016-12-30 06:50:37.021286"], ["upload_type", "PhotoUpload"], ["user_id", 123], ["uuid", "<36 bytes of binary data>"]]
|
640
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
641
|
-
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
642
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
643
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
644
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
645
|
-
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" DISABLE TRIGGER ALL
|
646
|
-
[1m[36m (0.9ms)[0m [1mselect table_name from information_schema.views where table_schema = 's3_relay_test'[0m
|
647
|
-
[1m[35m (9.5ms)[0m TRUNCATE TABLE "ar_internal_metadata", "products", "s3_relay_uploads" RESTART IDENTITY CASCADE;
|
648
|
-
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" ENABLE TRIGGER ALL[0m
|
649
|
-
[1m[35m (0.2ms)[0m BEGIN
|
650
|
-
-------------------------------------------------------------------
|
651
|
-
S3Relay::UploadsController::POST create::error: test_0001_anonymous
|
652
|
-
-------------------------------------------------------------------
|
653
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
654
|
-
Processing by S3Relay::UploadsController#create as HTML
|
655
|
-
Parameters: {"uuid"=>"5fb67309-12b1-4abb-bd45-edcaa78eeba2", "filename"=>"cat.png", "content_type"=>"image/png"}
|
656
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
657
|
-
[1m[36mS3Relay::Upload Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
658
|
-
:value: 5fb67309-12b1-4abb-bd45-edcaa78eeba2
|
659
|
-
:format: 1
|
660
|
-
' LIMIT 1[0m
|
661
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
662
|
-
Completed 422 Unprocessable Entity in 26ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
663
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
664
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
665
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
666
|
-
[1m[35m (0.1ms)[0m COMMIT
|
667
|
-
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
668
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
669
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-12-30 07:06:22.367700"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 07:06:22.367700"]]
|
670
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
671
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
672
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
673
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
674
|
-
:format: 1
|
675
|
-
' LIMIT 1
|
676
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.375464"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 1], ["parent_type", "Product"], ["pending_at", "2016-12-30 07:06:22.370188"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.375464"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
677
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
678
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
679
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
680
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
681
|
-
:format: 1
|
682
|
-
' LIMIT 1
|
683
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.379096"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 1], ["parent_type", "Product"], ["pending_at", "2016-12-30 07:06:22.377637"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.379096"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
684
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
685
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
686
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
687
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
688
|
-
:format: 1
|
689
|
-
' LIMIT 1
|
690
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.382026"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 1], ["parent_type", "Product"], ["pending_at", "2016-12-30 07:06:22.380642"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.382026"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
691
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
692
|
-
[1m[36mS3Relay::Upload Load (0.6ms)[0m [1mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 1 AND "s3_relay_uploads"."upload_type" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1[0m
|
693
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
694
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
695
|
-
------------------------------------------------------------------------------------------
|
696
|
-
S3Relay::UploadsHelper::#s3_relay_field::with disposition: attachment: test_0001_anonymous
|
697
|
-
------------------------------------------------------------------------------------------
|
698
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
699
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-12-30 07:06:22.389932"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 07:06:22.389932"]]
|
700
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
701
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
702
|
-
[1m[35m (0.1ms)[0m BEGIN
|
703
|
-
-----------------------------------------------------------------------
|
704
|
-
S3Relay::Upload::validations::upload_type: test_0001_validates presence
|
705
|
-
-----------------------------------------------------------------------
|
706
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
707
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
708
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
709
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
710
|
-
S3Relay::UploadsController::POST create::success::with parent attributes::with a current_user: test_0001_associates the upload with the user
|
711
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
712
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
713
|
-
Processing by S3Relay::UploadsController#create as HTML
|
714
|
-
Parameters: {"association"=>"photo_uploads", "uuid"=>"eb4ec2ad-917c-46cd-a1f2-f7ebd02e3372", "filename"=>"cat.png", "content_type"=>"image/png"}
|
715
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
716
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
717
|
-
:value: eb4ec2ad-917c-46cd-a1f2-f7ebd02e3372
|
718
|
-
:format: 1
|
719
|
-
' LIMIT 1
|
720
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "user_id", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.403899"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 07:06:22.402479"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.403899"], ["upload_type", "PhotoUpload"], ["user_id", 123], ["uuid", "<36 bytes of binary data>"]]
|
721
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
722
|
-
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
723
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
724
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
725
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
726
|
-
--------------------------------------------------------
|
727
|
-
S3Relay::UploadsController::GET new: test_0001_anonymous
|
728
|
-
--------------------------------------------------------
|
729
|
-
Processing by S3Relay::UploadsController#new as HTML
|
730
|
-
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
731
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
732
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
733
|
-
----------------------------------------------------------------------
|
734
|
-
S3Relay::Upload::validations::pending_at: test_0001_validates presence
|
735
|
-
----------------------------------------------------------------------
|
736
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
737
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
738
|
-
[1m[35m (0.1ms)[0m BEGIN
|
739
|
-
-----------------------------------------------------------------------------------------------------------------
|
740
|
-
S3Relay::UploadsController::POST create::success::with parent attributes::matching an object: test_0001_anonymous
|
741
|
-
-----------------------------------------------------------------------------------------------------------------
|
742
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
743
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-12-30 07:06:22.422753"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 07:06:22.422753"]]
|
744
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
745
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 3 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
746
|
-
Processing by S3Relay::UploadsController#create as HTML
|
747
|
-
Parameters: {"association"=>"photo_uploads", "uuid"=>"596ed5c9-b7d1-48ea-83bc-dcdb0d96a21f", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"3"}
|
748
|
-
[1m[36mProduct Load (0.3ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = 3 LIMIT 1[0m
|
749
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
750
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
751
|
-
:value: 596ed5c9-b7d1-48ea-83bc-dcdb0d96a21f
|
752
|
-
:format: 1
|
753
|
-
' LIMIT 1[0m
|
754
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.429364"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-12-30 07:06:22.427662"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.429364"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
755
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
756
|
-
Completed 201 Created in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
|
757
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 3 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
758
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
759
|
-
[1m[35m (0.1ms)[0m BEGIN
|
760
|
-
-----------------------------------------------------
|
761
|
-
S3Relay::Upload::scopes::pending: test_0001_anonymous
|
762
|
-
-----------------------------------------------------
|
763
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
764
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-12-30 07:06:22.434385"], ["data", "{}"], ["pending_at", "2016-12-30 07:06:22.434073"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.434385"]]
|
765
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
766
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
767
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-12-30 07:06:22.436014"], ["data", "{}"], ["pending_at", "2016-12-30 07:06:22.435765"], ["state", "imported"], ["updated_at", "2016-12-30 07:06:22.436014"]]
|
768
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
769
|
-
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'pending'[0m
|
770
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
771
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
772
|
-
-----------------------------------------------------------------------------------
|
773
|
-
S3Relay::Upload::#notify_parent::when the parent is associated: test_0001_anonymous
|
774
|
-
-----------------------------------------------------------------------------------
|
775
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
776
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-12-30 07:06:22.440751"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 07:06:22.440751"]]
|
777
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
778
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
779
|
-
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
780
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
781
|
-
:format: 1
|
782
|
-
' LIMIT 1
|
783
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.443534"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 4], ["parent_type", "Product"], ["pending_at", "2016-12-30 07:06:22.440076"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.443534"], ["upload_type", "FileUpload"], ["uuid", "<36 bytes of binary data>"]]
|
784
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
785
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
786
|
-
[1m[35m (0.1ms)[0m BEGIN
|
787
|
-
--------------------------------------------------
|
788
|
-
S3Relay::Upload::#private_url: test_0001_anonymous
|
789
|
-
--------------------------------------------------
|
790
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
791
|
-
[1m[35m (0.1ms)[0m BEGIN
|
792
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
793
|
-
[1m[35m (0.1ms)[0m BEGIN
|
794
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
795
|
-
[1m[35m (0.1ms)[0m BEGIN
|
796
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
797
|
-
[1m[35m (0.1ms)[0m BEGIN
|
798
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
799
|
-
[1m[35m (0.1ms)[0m BEGIN
|
800
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
801
|
-
[1m[35m (0.1ms)[0m BEGIN
|
802
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
803
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-12-30 07:06:22.452610"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 07:06:22.452610"]]
|
804
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
805
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
806
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
807
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
808
|
-
:format: 1
|
809
|
-
' LIMIT 1[0m
|
810
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.455599"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 5], ["parent_type", "Product"], ["pending_at", "2016-12-30 07:06:22.454031"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.455599"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
811
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
812
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
813
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
814
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
815
|
-
:format: 1
|
816
|
-
' LIMIT 1[0m
|
817
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.458536"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 5], ["parent_type", "Product"], ["pending_at", "2016-12-30 07:06:22.457100"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.458536"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
818
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
819
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
820
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
821
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
822
|
-
:format: 1
|
823
|
-
' LIMIT 1[0m
|
824
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.461628"], ["data", "{}"], ["filename", "cat.png"], ["parent_id", 5], ["parent_type", "Product"], ["pending_at", "2016-12-30 07:06:22.460071"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.461628"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
825
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
826
|
-
[1m[35m (0.2ms)[0m SELECT "s3_relay_uploads"."id" FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 5 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
827
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
828
|
-
[1m[35m (0.1ms)[0m BEGIN
|
829
|
-
-----------------------------------------------
|
830
|
-
S3Relay::Upload::#imported: test_0001_anonymous
|
831
|
-
-----------------------------------------------
|
832
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
833
|
-
[1m[35m (0.1ms)[0m BEGIN
|
834
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
835
|
-
[1m[35m (0.1ms)[0m BEGIN
|
836
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
837
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-12-30 07:06:22.467945"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 07:06:22.467945"]]
|
838
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
839
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
840
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
841
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
842
|
-
:format: 1
|
843
|
-
' LIMIT 1[0m
|
844
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.470639"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 07:06:22.469260"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.470639"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
845
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
846
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
847
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
848
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
849
|
-
:format: 1
|
850
|
-
' LIMIT 1[0m
|
851
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.473469"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 07:06:22.472182"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.473469"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
852
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
853
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
854
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
855
|
-
:value: a7c0133c-3182-4f79-a1a5-4eb1276e28d2
|
856
|
-
:format: 1
|
857
|
-
' LIMIT 1[0m
|
858
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.476073"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 07:06:22.474875"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.476073"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
859
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
860
|
-
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 6 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
861
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "s3_relay_uploads" SET "parent_type" = 'Product', "parent_id" = 6 WHERE "s3_relay_uploads"."uuid" IN ('a7c0133c-3182-4f79-a1a5-4eb1276e28d2', 'a7c0133c-3182-4f79-a1a5-4eb1276e28d2') AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
862
|
-
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 6 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
863
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
864
|
-
[1m[35m (0.1ms)[0m BEGIN
|
865
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
866
|
-
[1m[35m (0.1ms)[0m BEGIN
|
867
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
868
|
-
[1m[35m (0.1ms)[0m BEGIN
|
869
|
-
-----------------------------------------------
|
870
|
-
S3Relay::Upload::#pending?: test_0001_anonymous
|
871
|
-
-----------------------------------------------
|
872
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
873
|
-
[1m[35m (0.1ms)[0m BEGIN
|
874
|
-
--------------------------------------------------------------------
|
875
|
-
S3Relay::Upload::validations::filename: test_0001_validates presence
|
876
|
-
--------------------------------------------------------------------
|
877
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
878
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
879
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
880
|
-
[1m[35m (0.1ms)[0m COMMIT
|
881
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
882
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
883
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
884
|
-
---------------------------------------------------------------------------------
|
885
|
-
S3Relay::UploadsHelper::#s3_relay_field::with multiple: true: test_0001_anonymous
|
886
|
-
---------------------------------------------------------------------------------
|
887
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
888
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-12-30 07:06:22.492146"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 07:06:22.492146"]]
|
889
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
890
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
891
|
-
[1m[35m (0.1ms)[0m BEGIN
|
892
|
-
---------------------------------------------------------------------
|
893
|
-
S3Relay::UploadsController::POST create::success: test_0001_anonymous
|
894
|
-
---------------------------------------------------------------------
|
895
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
896
|
-
Processing by S3Relay::UploadsController#create as HTML
|
897
|
-
Parameters: {"association"=>"photo_uploads", "uuid"=>"b297276c-e024-4391-a5a5-b71fc5199c25", "filename"=>"cat.png", "content_type"=>"image/png"}
|
898
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
899
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
900
|
-
:value: b297276c-e024-4391-a5a5-b71fc5199c25
|
901
|
-
:format: 1
|
902
|
-
' LIMIT 1[0m
|
903
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.501753"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 07:06:22.500393"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.501753"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
904
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
905
|
-
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
906
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
907
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
908
|
-
[1m[35m (0.1ms)[0m BEGIN
|
909
|
-
----------------------------------------------------------------
|
910
|
-
S3Relay::Upload::validations::uuid: test_0001_validates presence
|
911
|
-
----------------------------------------------------------------
|
912
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
913
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
914
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
915
|
-
------------------------------------------------------------------
|
916
|
-
S3Relay::Upload::validations::uuid: test_0002_validates uniqueness
|
917
|
-
------------------------------------------------------------------
|
918
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
919
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-12-30 07:06:22.509229"], ["data", "{}"], ["pending_at", "2016-12-30 07:06:22.508956"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.509229"]]
|
920
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
921
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
922
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
923
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
924
|
-
------------------------------------------------------
|
925
|
-
S3Relay::Upload::scopes::imported: test_0001_anonymous
|
926
|
-
------------------------------------------------------
|
927
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
928
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-12-30 07:06:22.515073"], ["data", "{}"], ["pending_at", "2016-12-30 07:06:22.514743"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.515073"]]
|
929
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
930
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
931
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "data", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-12-30 07:06:22.516566"], ["data", "{}"], ["pending_at", "2016-12-30 07:06:22.516321"], ["state", "imported"], ["updated_at", "2016-12-30 07:06:22.516566"]]
|
932
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
933
|
-
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'imported'
|
934
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
935
|
-
[1m[35m (0.1ms)[0m BEGIN
|
936
|
-
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
937
|
-
[1m[35m (0.1ms)[0m BEGIN
|
938
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
939
|
-
[1m[35m (0.2ms)[0m BEGIN
|
940
|
-
-----------------------------------------------------------------------------
|
941
|
-
S3Relay::UploadsHelper::#s3_relay_field::without options: test_0001_anonymous
|
942
|
-
-----------------------------------------------------------------------------
|
943
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
944
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-12-30 07:06:22.525326"], ["name", "Flux Capacitor"], ["updated_at", "2016-12-30 07:06:22.525326"]]
|
945
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
946
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
947
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
948
|
-
---------------------------------------------------------------------------------------------------------------------
|
949
|
-
S3Relay::UploadsController::POST create::success::with parent attributes::not matching an object: test_0001_anonymous
|
950
|
-
---------------------------------------------------------------------------------------------------------------------
|
951
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
952
|
-
Processing by S3Relay::UploadsController#create as HTML
|
953
|
-
Parameters: {"association"=>"photo_uploads", "uuid"=>"1d707eb2-1f02-4a89-ad8e-4d467a3e28ce", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"10000000"}
|
954
|
-
[1m[36mProduct Load (0.2ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = 10000000 LIMIT 1[0m
|
955
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
956
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
957
|
-
:value: 1d707eb2-1f02-4a89-ad8e-4d467a3e28ce
|
958
|
-
:format: 1
|
959
|
-
' LIMIT 1[0m
|
960
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "data", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-12-30 07:06:22.533979"], ["data", "{}"], ["filename", "cat.png"], ["pending_at", "2016-12-30 07:06:22.532714"], ["state", "pending"], ["updated_at", "2016-12-30 07:06:22.533979"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
961
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
962
|
-
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
963
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
964
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
965
|
-
[1m[35m (0.1ms)[0m BEGIN
|
966
|
-
-------------------------------------------------------
|
967
|
-
S3Relay::Upload::upon finalization: test_0001_anonymous
|
968
|
-
-------------------------------------------------------
|
969
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
970
|
-
[1m[35m (0.1ms)[0m BEGIN
|
971
|
-
------------------------------------------------------------------------
|
972
|
-
S3Relay::Upload::validations::content_type: test_0001_validates presence
|
973
|
-
------------------------------------------------------------------------
|
974
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
975
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
976
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
977
|
-
----------------------------------------------------------
|
978
|
-
S3Relay::Upload::associations::parent: test_0001_anonymous
|
979
|
-
----------------------------------------------------------
|
980
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
981
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
982
|
-
-----------------------------------------------------
|
983
|
-
S3Relay::Upload::#mark_imported!: test_0001_anonymous
|
984
|
-
-----------------------------------------------------
|
985
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
986
|
-
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
987
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
988
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|