s3_relay 0.3.2 → 0.4.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 +1 -7
- data/lib/s3_relay/model.rb +1 -4
- data/lib/s3_relay/version.rb +1 -1
- data/test/dummy/log/development.log +14 -0
- data/test/dummy/log/test.log +1105 -0
- data/test/lib/s3_relay/model_test.rb +2 -17
- metadata +4 -2
data/test/dummy/log/test.log
CHANGED
@@ -383,6 +383,1111 @@ S3Relay::Upload::validations::filename: test_0001_validates presence
|
|
383
383
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
384
384
|
-----------------------------------------------------------------------
|
385
385
|
S3Relay::Upload::validations::upload_type: test_0001_validates presence
|
386
|
+
-----------------------------------------------------------------------
|
387
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
388
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
389
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
390
|
+
[1m[35m (14.5ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp)
|
391
|
+
[1m[36m (3.7ms)[0m [1mCREATE TABLE "s3_relay_uploads" ("id" serial primary key, "uuid" bytea, "user_id" integer, "parent_type" character varying(255), "parent_id" integer, "upload_type" character varying(255), "filename" text, "content_type" character varying(255), "state" character varying(255), "data" json DEFAULT '{}', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
392
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
393
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
394
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
395
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141021002149')[0m
|
396
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141009000804')
|
397
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
398
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
399
|
+
[1m[36m (1.1ms)[0m [1mselect table_name from information_schema.views where table_schema = 's3_relay_test'[0m
|
400
|
+
[1m[35m (3.2ms)[0m TRUNCATE TABLE "products", "s3_relay_uploads" RESTART IDENTITY CASCADE;
|
401
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" ENABLE TRIGGER ALL[0m
|
402
|
+
[1m[35m (0.2ms)[0m BEGIN
|
403
|
+
---------------------------------------------------------------------------------------------------------------------
|
404
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::not matching an object: test_0001_anonymous
|
405
|
+
---------------------------------------------------------------------------------------------------------------------
|
406
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
407
|
+
Processing by S3Relay::UploadsController#create as HTML
|
408
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"0e5c4bfe-2c72-4ab5-80c5-7819430e7348", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"10000000"}
|
409
|
+
[1m[35mProduct Load (0.4ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = 10000000 LIMIT 1
|
410
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
411
|
+
[1m[35mS3Relay::Upload Exists (0.5ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
412
|
+
:value: 0e5c4bfe-2c72-4ab5-80c5-7819430e7348
|
413
|
+
:format: 1
|
414
|
+
' LIMIT 1
|
415
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.419053"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:33:45.407270"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.419053"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
416
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
417
|
+
Completed 201 Created in 36ms (Views: 0.2ms | ActiveRecord: 3.1ms)
|
418
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
419
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
420
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
421
|
+
----------------------------------------------------------------
|
422
|
+
S3Relay::Upload::validations::uuid: test_0001_validates presence
|
423
|
+
----------------------------------------------------------------
|
424
|
+
[1m[35mS3Relay::Upload Exists (0.4ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
425
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
426
|
+
[1m[35m (0.1ms)[0m BEGIN
|
427
|
+
------------------------------------------------------------------
|
428
|
+
S3Relay::Upload::validations::uuid: test_0002_validates uniqueness
|
429
|
+
------------------------------------------------------------------
|
430
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
431
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-09-07 16:33:45.439905"], ["pending_at", "2016-09-07 16:33:45.439498"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.439905"]]
|
432
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
433
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
434
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
435
|
+
[1m[35m (0.1ms)[0m BEGIN
|
436
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
437
|
+
[1m[35m (0.1ms)[0m BEGIN
|
438
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
439
|
+
[1m[35m (0.1ms)[0m BEGIN
|
440
|
+
--------------------------------------------------------
|
441
|
+
S3Relay::UploadsController::GET new: test_0001_anonymous
|
442
|
+
--------------------------------------------------------
|
443
|
+
Processing by S3Relay::UploadsController#new as HTML
|
444
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
445
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
446
|
+
[1m[35m (0.2ms)[0m BEGIN
|
447
|
+
-------------------------------------------------------
|
448
|
+
S3Relay::Upload::upon finalization: test_0001_anonymous
|
449
|
+
-------------------------------------------------------
|
450
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
451
|
+
[1m[35m (0.1ms)[0m BEGIN
|
452
|
+
-----------------------------------------------
|
453
|
+
S3Relay::Upload::#imported: test_0001_anonymous
|
454
|
+
-----------------------------------------------
|
455
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
456
|
+
[1m[35m (0.1ms)[0m BEGIN
|
457
|
+
-----------------------------------------------
|
458
|
+
S3Relay::Upload::#pending?: test_0001_anonymous
|
459
|
+
-----------------------------------------------
|
460
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
461
|
+
[1m[35m (0.1ms)[0m BEGIN
|
462
|
+
--------------------------------------------------
|
463
|
+
S3Relay::Upload::#private_url: test_0001_anonymous
|
464
|
+
--------------------------------------------------
|
465
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
466
|
+
[1m[35m (0.1ms)[0m BEGIN
|
467
|
+
---------------------------------------------------------------------------------
|
468
|
+
S3Relay::UploadsHelper::#s3_relay_field::with multiple: true: test_0001_anonymous
|
469
|
+
---------------------------------------------------------------------------------
|
470
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
471
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:33:45.467004"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:33:45.467004"]]
|
472
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
473
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
474
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
475
|
+
----------------------------------------------------------
|
476
|
+
S3Relay::Upload::associations::parent: test_0001_anonymous
|
477
|
+
----------------------------------------------------------
|
478
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
479
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
480
|
+
------------------------------------------------------------------------------------------
|
481
|
+
S3Relay::UploadsHelper::#s3_relay_field::with disposition: attachment: test_0001_anonymous
|
482
|
+
------------------------------------------------------------------------------------------
|
483
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
484
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:33:45.475544"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:33:45.475544"]]
|
485
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
486
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
487
|
+
[1m[35m (0.1ms)[0m BEGIN
|
488
|
+
-----------------------------------------------------------------------------------
|
489
|
+
S3Relay::Upload::#notify_parent::when the parent is associated: test_0001_anonymous
|
490
|
+
-----------------------------------------------------------------------------------
|
491
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
492
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:33:45.480164"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:33:45.480164"]]
|
493
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
494
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
495
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
496
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
497
|
+
:format: 1
|
498
|
+
' LIMIT 1[0m
|
499
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.483102"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:33:45.479441"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.483102"], ["upload_type", "FileUpload"], ["uuid", "<36 bytes of binary data>"]]
|
500
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
501
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
502
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
503
|
+
[1m[35m (0.1ms)[0m COMMIT
|
504
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
505
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
506
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:33:45.486877"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:33:45.486877"]]
|
507
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
508
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
509
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
510
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
511
|
+
:format: 1
|
512
|
+
' LIMIT 1
|
513
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.489710"], ["filename", "cat.png"], ["parent_id", 4], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:33:45.488176"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.489710"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
514
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
515
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
516
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
517
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
518
|
+
:format: 1
|
519
|
+
' LIMIT 1
|
520
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.492641"], ["filename", "cat.png"], ["parent_id", 4], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:33:45.491298"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.492641"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
522
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
523
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
524
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
525
|
+
:format: 1
|
526
|
+
' LIMIT 1
|
527
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.495423"], ["filename", "cat.png"], ["parent_id", 4], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:33:45.494078"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.495423"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
528
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
529
|
+
[1m[36m (0.3ms)[0m [1mSELECT "s3_relay_uploads"."id" FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 4 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
530
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
531
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
532
|
+
-----------------------------------------------------------------------------------------------------------------
|
533
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::matching an object: test_0001_anonymous
|
534
|
+
-----------------------------------------------------------------------------------------------------------------
|
535
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
536
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:33:45.501210"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:33:45.501210"]]
|
537
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
538
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) 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
|
539
|
+
Processing by S3Relay::UploadsController#create as HTML
|
540
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"c4ccd03c-c40b-45a1-b3fd-30189c243c74", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"5"}
|
541
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = 5 LIMIT 1
|
542
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
543
|
+
[1m[35mS3Relay::Upload Exists (0.4ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
544
|
+
:value: c4ccd03c-c40b-45a1-b3fd-30189c243c74
|
545
|
+
:format: 1
|
546
|
+
' LIMIT 1
|
547
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.508279"], ["filename", "cat.png"], ["parent_id", 5], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:33:45.506024"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.508279"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
548
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
549
|
+
Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
|
550
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) 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
|
551
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
552
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
553
|
+
--------------------------------------------------------------------
|
554
|
+
S3Relay::Upload::validations::filename: test_0001_validates presence
|
555
|
+
--------------------------------------------------------------------
|
556
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
557
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
558
|
+
[1m[35m (0.1ms)[0m BEGIN
|
559
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
560
|
+
[1m[35m (0.1ms)[0m BEGIN
|
561
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
562
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:33:45.516854"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:33:45.516854"]]
|
563
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
564
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
565
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
566
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
567
|
+
:format: 1
|
568
|
+
' LIMIT 1[0m
|
569
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.519653"], ["filename", "cat.png"], ["parent_id", 6], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:33:45.518088"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.519653"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
570
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
571
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
572
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
573
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
574
|
+
:format: 1
|
575
|
+
' LIMIT 1[0m
|
576
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.522536"], ["filename", "cat.png"], ["parent_id", 6], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:33:45.521159"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.522536"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
577
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
578
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
579
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
580
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
581
|
+
:format: 1
|
582
|
+
' LIMIT 1[0m
|
583
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.525076"], ["filename", "cat.png"], ["parent_id", 6], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:33:45.523819"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.525076"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
584
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
585
|
+
[1m[35mS3Relay::Upload Load (0.5ms)[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" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1
|
586
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
587
|
+
[1m[35m (0.1ms)[0m BEGIN
|
588
|
+
-------------------------------------------------------------------
|
589
|
+
S3Relay::UploadsController::POST create::error: test_0001_anonymous
|
590
|
+
-------------------------------------------------------------------
|
591
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
592
|
+
Processing by S3Relay::UploadsController#create as HTML
|
593
|
+
Parameters: {"uuid"=>"d19d0438-4df4-47b1-8a5e-2ed27bacf32a", "filename"=>"cat.png", "content_type"=>"image/png"}
|
594
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
595
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
596
|
+
:value: d19d0438-4df4-47b1-8a5e-2ed27bacf32a
|
597
|
+
:format: 1
|
598
|
+
' LIMIT 1[0m
|
599
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
600
|
+
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
|
601
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
602
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
603
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
604
|
+
[1m[35m (0.1ms)[0m COMMIT
|
605
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
606
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
607
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:33:45.536751"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:33:45.536751"]]
|
608
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
609
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
610
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
611
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
612
|
+
:format: 1
|
613
|
+
' LIMIT 1
|
614
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.539221"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:33:45.537947"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.539221"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
615
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
616
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
617
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
618
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
619
|
+
:format: 1
|
620
|
+
' LIMIT 1
|
621
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.541626"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:33:45.540488"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.541626"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
622
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
623
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
624
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
625
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
626
|
+
:format: 1
|
627
|
+
' LIMIT 1
|
628
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.543980"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:33:45.542841"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.543980"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
629
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
630
|
+
[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" = 7 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
631
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "s3_relay_uploads" SET "parent_type" = 'Product', "parent_id" = 7 WHERE "s3_relay_uploads"."uuid" IN ('356d4976-4484-4656-a052-48da223b71c3', '356d4976-4484-4656-a052-48da223b71c3') AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
632
|
+
[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" = 7 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
633
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
634
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
635
|
+
[1m[35m (0.1ms)[0m COMMIT
|
636
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
637
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
638
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:33:45.548658"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:33:45.548658"]]
|
639
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
640
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
641
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
642
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
643
|
+
:format: 1
|
644
|
+
' LIMIT 1
|
645
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.550952"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:33:45.549783"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.550952"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
646
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
647
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
648
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
649
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
650
|
+
:format: 1
|
651
|
+
' LIMIT 1
|
652
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.553251"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:33:45.552150"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.553251"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
653
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
654
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
655
|
+
[1m[35mS3Relay::Upload Exists (0.3ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
656
|
+
:value: 356d4976-4484-4656-a052-48da223b71c3
|
657
|
+
:format: 1
|
658
|
+
' LIMIT 1
|
659
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.556822"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:33:45.554746"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.556822"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
660
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
661
|
+
[1m[36mS3Relay::Upload Load (0.3ms)[0m [1mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 8 AND "s3_relay_uploads"."upload_type" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1[0m
|
662
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
663
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
664
|
+
[1m[35m (0.1ms)[0m COMMIT
|
665
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
666
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
667
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
668
|
+
-----------------------------------------------------------------------
|
669
|
+
S3Relay::Upload::validations::upload_type: test_0001_validates presence
|
670
|
+
-----------------------------------------------------------------------
|
671
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
672
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
673
|
+
[1m[35m (0.1ms)[0m BEGIN
|
674
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
675
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::with a current_user: test_0001_associates the upload with the user
|
676
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
677
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
678
|
+
Processing by S3Relay::UploadsController#create as HTML
|
679
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"0f88c4e6-2ca2-489b-9636-8375f181c9c6", "filename"=>"cat.png", "content_type"=>"image/png"}
|
680
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
681
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
682
|
+
:value: 0f88c4e6-2ca2-489b-9636-8375f181c9c6
|
683
|
+
:format: 1
|
684
|
+
' LIMIT 1[0m
|
685
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "user_id", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.573298"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:33:45.571989"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.573298"], ["upload_type", "PhotoUpload"], ["user_id", 123], ["uuid", "<36 bytes of binary data>"]]
|
686
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
687
|
+
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
688
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
689
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
690
|
+
[1m[35m (0.1ms)[0m BEGIN
|
691
|
+
-----------------------------------------------------
|
692
|
+
S3Relay::Upload::#mark_imported!: test_0001_anonymous
|
693
|
+
-----------------------------------------------------
|
694
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
695
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
696
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
697
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
698
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
699
|
+
-----------------------------------------------------
|
700
|
+
S3Relay::Upload::scopes::pending: test_0001_anonymous
|
701
|
+
-----------------------------------------------------
|
702
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
703
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-09-07 16:33:45.581791"], ["pending_at", "2016-09-07 16:33:45.581566"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.581791"]]
|
704
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
705
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
706
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-09-07 16:33:45.583119"], ["pending_at", "2016-09-07 16:33:45.582860"], ["state", "imported"], ["updated_at", "2016-09-07 16:33:45.583119"]]
|
707
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
708
|
+
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'pending'
|
709
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
710
|
+
[1m[35m (0.1ms)[0m BEGIN
|
711
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
712
|
+
[1m[35m (0.1ms)[0m BEGIN
|
713
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
714
|
+
[1m[35m (0.1ms)[0m BEGIN
|
715
|
+
----------------------------------------------------------------------
|
716
|
+
S3Relay::Upload::validations::pending_at: test_0001_validates presence
|
717
|
+
----------------------------------------------------------------------
|
718
|
+
[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
|
719
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
720
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
721
|
+
-----------------------------------------------------------------------------
|
722
|
+
S3Relay::UploadsHelper::#s3_relay_field::without options: test_0001_anonymous
|
723
|
+
-----------------------------------------------------------------------------
|
724
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
725
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:33:45.593913"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:33:45.593913"]]
|
726
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
727
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
728
|
+
[1m[35m (0.1ms)[0m BEGIN
|
729
|
+
------------------------------------------------------
|
730
|
+
S3Relay::Upload::scopes::imported: test_0001_anonymous
|
731
|
+
------------------------------------------------------
|
732
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
733
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-09-07 16:33:45.596650"], ["pending_at", "2016-09-07 16:33:45.596420"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.596650"]]
|
734
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
735
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
736
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-09-07 16:33:45.598046"], ["pending_at", "2016-09-07 16:33:45.597776"], ["state", "imported"], ["updated_at", "2016-09-07 16:33:45.598046"]]
|
737
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
738
|
+
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'imported'[0m
|
739
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
740
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
741
|
+
[1m[35m (0.1ms)[0m COMMIT
|
742
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
743
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
744
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
745
|
+
[1m[35m (0.1ms)[0m COMMIT
|
746
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
747
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
748
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
749
|
+
---------------------------------------------------------------------
|
750
|
+
S3Relay::UploadsController::POST create::success: test_0001_anonymous
|
751
|
+
---------------------------------------------------------------------
|
752
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
753
|
+
Processing by S3Relay::UploadsController#create as HTML
|
754
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"a233b082-5ac9-4aa9-9e7f-9691d061d2d6", "filename"=>"cat.png", "content_type"=>"image/png"}
|
755
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
756
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
757
|
+
:value: a233b082-5ac9-4aa9-9e7f-9691d061d2d6
|
758
|
+
:format: 1
|
759
|
+
' LIMIT 1
|
760
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:33:45.607065"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:33:45.605776"], ["state", "pending"], ["updated_at", "2016-09-07 16:33:45.607065"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
761
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
762
|
+
Completed 201 Created in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
763
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
764
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
765
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
766
|
+
[1m[35m (0.1ms)[0m COMMIT
|
767
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
768
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
769
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
770
|
+
------------------------------------------------------------------------
|
771
|
+
S3Relay::Upload::validations::content_type: test_0001_validates presence
|
772
|
+
------------------------------------------------------------------------
|
773
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
774
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
775
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
776
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" DISABLE TRIGGER ALL
|
777
|
+
[1m[36m (1.2ms)[0m [1mselect table_name from information_schema.views where table_schema = 's3_relay_test'[0m
|
778
|
+
[1m[35m (5.5ms)[0m TRUNCATE TABLE "products", "s3_relay_uploads" RESTART IDENTITY CASCADE;
|
779
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" ENABLE TRIGGER ALL[0m
|
780
|
+
[1m[35m (0.2ms)[0m BEGIN
|
781
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
782
|
+
[1m[35m (0.1ms)[0m BEGIN
|
783
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
784
|
+
[1m[35m (0.1ms)[0m BEGIN
|
785
|
+
-----------------------------------------------------------------------
|
786
|
+
S3Relay::Upload::validations::upload_type: test_0001_validates presence
|
787
|
+
-----------------------------------------------------------------------
|
788
|
+
[1m[36mS3Relay::Upload Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
789
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
790
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
791
|
+
----------------------------------------------------------------------
|
792
|
+
S3Relay::Upload::validations::pending_at: test_0001_validates presence
|
793
|
+
----------------------------------------------------------------------
|
794
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
795
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
796
|
+
[1m[35m (0.1ms)[0m BEGIN
|
797
|
+
--------------------------------------------------
|
798
|
+
S3Relay::Upload::#private_url: test_0001_anonymous
|
799
|
+
--------------------------------------------------
|
800
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
801
|
+
[1m[35m (0.1ms)[0m BEGIN
|
802
|
+
--------------------------------------------------------------------
|
803
|
+
S3Relay::Upload::validations::filename: test_0001_validates presence
|
804
|
+
--------------------------------------------------------------------
|
805
|
+
[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
|
806
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
807
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
808
|
+
------------------------------------------------------------------------
|
809
|
+
S3Relay::Upload::validations::content_type: test_0001_validates presence
|
810
|
+
------------------------------------------------------------------------
|
811
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
812
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
813
|
+
[1m[35m (0.1ms)[0m BEGIN
|
814
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
815
|
+
[1m[35m (0.1ms)[0m BEGIN
|
816
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
817
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:34:53.062528"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:34:53.062528"]]
|
818
|
+
[1m[36m (0.2ms)[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: bb66867f-e23a-4b65-93cd-61cab6718c14
|
822
|
+
:format: 1
|
823
|
+
' LIMIT 1[0m
|
824
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.067985"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:34:53.066150"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.067985"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
825
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
826
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
827
|
+
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
828
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
829
|
+
:format: 1
|
830
|
+
' LIMIT 1[0m
|
831
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.076411"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:34:53.074689"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.076411"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
832
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
833
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
834
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
835
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
836
|
+
:format: 1
|
837
|
+
' LIMIT 1[0m
|
838
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.079223"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:34:53.077950"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.079223"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
839
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
840
|
+
[1m[35mS3Relay::Upload Load (0.4ms)[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" = 'PhotoUpload'
|
841
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "s3_relay_uploads" SET "parent_type" = 'Product', "parent_id" = 1 WHERE "s3_relay_uploads"."uuid" IN ('bb66867f-e23a-4b65-93cd-61cab6718c14', 'bb66867f-e23a-4b65-93cd-61cab6718c14') AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
842
|
+
[1m[35mS3Relay::Upload Load (0.3ms)[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" = 'PhotoUpload'
|
843
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
844
|
+
[1m[35m (0.1ms)[0m BEGIN
|
845
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
846
|
+
[1m[35m (0.1ms)[0m BEGIN
|
847
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
848
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:34:53.087866"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:34:53.087866"]]
|
849
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
850
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
851
|
+
[1m[36mS3Relay::Upload Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
852
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
853
|
+
:format: 1
|
854
|
+
' LIMIT 1[0m
|
855
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.091528"], ["filename", "cat.png"], ["parent_id", 2], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:34:53.089356"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.091528"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
856
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
857
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
858
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
859
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
860
|
+
:format: 1
|
861
|
+
' LIMIT 1[0m
|
862
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.095508"], ["filename", "cat.png"], ["parent_id", 2], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:34:53.093949"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.095508"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
863
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
864
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
865
|
+
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
866
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
867
|
+
:format: 1
|
868
|
+
' LIMIT 1[0m
|
869
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.098932"], ["filename", "cat.png"], ["parent_id", 2], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:34:53.097102"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.098932"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
870
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
871
|
+
[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" = 2 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
872
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
873
|
+
[1m[35m (0.1ms)[0m BEGIN
|
874
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
875
|
+
[1m[35m (0.1ms)[0m BEGIN
|
876
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
877
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:34:53.104227"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:34:53.104227"]]
|
878
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
879
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
880
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
881
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
882
|
+
:format: 1
|
883
|
+
' LIMIT 1[0m
|
884
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.108076"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:34:53.106180"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.108076"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
885
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
886
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
887
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
888
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
889
|
+
:format: 1
|
890
|
+
' LIMIT 1[0m
|
891
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.111773"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:34:53.110134"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.111773"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
892
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
893
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
894
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
895
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
896
|
+
:format: 1
|
897
|
+
' LIMIT 1[0m
|
898
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.114633"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:34:53.113260"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.114633"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
899
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
900
|
+
[1m[35mS3Relay::Upload Load (0.5ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 3 AND "s3_relay_uploads"."upload_type" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1
|
901
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
902
|
+
[1m[35m (0.2ms)[0m BEGIN
|
903
|
+
------------------------------------------------------
|
904
|
+
S3Relay::Upload::scopes::imported: test_0001_anonymous
|
905
|
+
------------------------------------------------------
|
906
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
907
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-09-07 16:34:53.119514"], ["pending_at", "2016-09-07 16:34:53.119013"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.119514"]]
|
908
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
909
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
910
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-09-07 16:34:53.121838"], ["pending_at", "2016-09-07 16:34:53.121463"], ["state", "imported"], ["updated_at", "2016-09-07 16:34:53.121838"]]
|
911
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
912
|
+
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'imported'[0m
|
913
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
914
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
915
|
+
-----------------------------------------------------
|
916
|
+
S3Relay::Upload::scopes::pending: test_0001_anonymous
|
917
|
+
-----------------------------------------------------
|
918
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
919
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-09-07 16:34:53.126702"], ["pending_at", "2016-09-07 16:34:53.126384"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.126702"]]
|
920
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
921
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
922
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-09-07 16:34:53.128365"], ["pending_at", "2016-09-07 16:34:53.128075"], ["state", "imported"], ["updated_at", "2016-09-07 16:34:53.128365"]]
|
923
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
924
|
+
[1m[35mS3Relay::Upload Load (0.3ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'pending'
|
925
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
926
|
+
[1m[35m (0.1ms)[0m BEGIN
|
927
|
+
---------------------------------------------------------------------------------
|
928
|
+
S3Relay::UploadsHelper::#s3_relay_field::with multiple: true: test_0001_anonymous
|
929
|
+
---------------------------------------------------------------------------------
|
930
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
931
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:34:53.134199"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:34:53.134199"]]
|
932
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
933
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
934
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
935
|
+
--------------------------------------------------------
|
936
|
+
S3Relay::UploadsController::GET new: test_0001_anonymous
|
937
|
+
--------------------------------------------------------
|
938
|
+
Processing by S3Relay::UploadsController#new as HTML
|
939
|
+
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
940
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
941
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
942
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
943
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::with a current_user: test_0001_associates the upload with the user
|
944
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
945
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
946
|
+
Processing by S3Relay::UploadsController#create as HTML
|
947
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"f6cb3d96-1e8a-497a-9150-ea7b28ad06be", "filename"=>"cat.png", "content_type"=>"image/png"}
|
948
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
949
|
+
[1m[35mS3Relay::Upload Exists (0.4ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
950
|
+
:value: f6cb3d96-1e8a-497a-9150-ea7b28ad06be
|
951
|
+
:format: 1
|
952
|
+
' LIMIT 1
|
953
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "user_id", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.152389"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:34:53.149758"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.152389"], ["upload_type", "PhotoUpload"], ["user_id", 123], ["uuid", "<36 bytes of binary data>"]]
|
954
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
955
|
+
Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)
|
956
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
957
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
958
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
959
|
+
[1m[35m (0.1ms)[0m COMMIT
|
960
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
961
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
962
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:34:53.158187"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:34:53.158187"]]
|
963
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
964
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
965
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
966
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
967
|
+
:format: 1
|
968
|
+
' LIMIT 1
|
969
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.160684"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:34:53.159378"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.160684"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
970
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
971
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
972
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
973
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
974
|
+
:format: 1
|
975
|
+
' LIMIT 1
|
976
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.162961"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:34:53.161939"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.162961"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
977
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
978
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
979
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
980
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
981
|
+
:format: 1
|
982
|
+
' LIMIT 1
|
983
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.165307"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:34:53.164193"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.165307"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
984
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
985
|
+
[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" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1[0m
|
986
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
987
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
988
|
+
-------------------------------------------------------
|
989
|
+
S3Relay::Upload::upon finalization: test_0001_anonymous
|
990
|
+
-------------------------------------------------------
|
991
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
992
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
993
|
+
-----------------------------------------------
|
994
|
+
S3Relay::Upload::#imported: test_0001_anonymous
|
995
|
+
-----------------------------------------------
|
996
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
997
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
998
|
+
-----------------------------------------------------------------------------------------------------------------
|
999
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::matching an object: test_0001_anonymous
|
1000
|
+
-----------------------------------------------------------------------------------------------------------------
|
1001
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1002
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:34:53.173573"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:34:53.173573"]]
|
1003
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1004
|
+
[1m[36m (0.4ms)[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
|
1005
|
+
Processing by S3Relay::UploadsController#create as HTML
|
1006
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"3aa3d439-ed71-44c1-91e4-18499be8a080", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"6"}
|
1007
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = 6 LIMIT 1
|
1008
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1009
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1010
|
+
:value: 3aa3d439-ed71-44c1-91e4-18499be8a080
|
1011
|
+
:format: 1
|
1012
|
+
' LIMIT 1
|
1013
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.180270"], ["filename", "cat.png"], ["parent_id", 6], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:34:53.178717"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.180270"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1014
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1015
|
+
Completed 201 Created in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
|
1016
|
+
[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
|
1017
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1019
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1020
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1021
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1022
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1023
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1024
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1025
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1026
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1027
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1028
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1029
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1030
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1031
|
+
-----------------------------------------------
|
1032
|
+
S3Relay::Upload::#pending?: test_0001_anonymous
|
1033
|
+
-----------------------------------------------
|
1034
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1035
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1036
|
+
-----------------------------------------------------
|
1037
|
+
S3Relay::Upload::#mark_imported!: test_0001_anonymous
|
1038
|
+
-----------------------------------------------------
|
1039
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1040
|
+
[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
|
1041
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1042
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1043
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1044
|
+
-----------------------------------------------------------------------------------
|
1045
|
+
S3Relay::Upload::#notify_parent::when the parent is associated: test_0001_anonymous
|
1046
|
+
-----------------------------------------------------------------------------------
|
1047
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1048
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:34:53.195608"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:34:53.195608"]]
|
1049
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1050
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1051
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1052
|
+
:value: bb66867f-e23a-4b65-93cd-61cab6718c14
|
1053
|
+
:format: 1
|
1054
|
+
' LIMIT 1[0m
|
1055
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.198154"], ["filename", "cat.png"], ["parent_id", 7], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:34:53.194984"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.198154"], ["upload_type", "FileUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1056
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1057
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1058
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1059
|
+
-----------------------------------------------------------------------------
|
1060
|
+
S3Relay::UploadsHelper::#s3_relay_field::without options: test_0001_anonymous
|
1061
|
+
-----------------------------------------------------------------------------
|
1062
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1063
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:34:53.201558"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:34:53.201558"]]
|
1064
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1065
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1066
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1067
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
1068
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1069
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1070
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1071
|
+
------------------------------------------------------------------------------------------
|
1072
|
+
S3Relay::UploadsHelper::#s3_relay_field::with disposition: attachment: test_0001_anonymous
|
1073
|
+
------------------------------------------------------------------------------------------
|
1074
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1075
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:34:53.206480"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:34:53.206480"]]
|
1076
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1077
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1078
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1079
|
+
---------------------------------------------------------------------
|
1080
|
+
S3Relay::UploadsController::POST create::success: test_0001_anonymous
|
1081
|
+
---------------------------------------------------------------------
|
1082
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
1083
|
+
Processing by S3Relay::UploadsController#create as HTML
|
1084
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"01988f6c-3e2a-4d19-8b54-f53e01c3b1c7", "filename"=>"cat.png", "content_type"=>"image/png"}
|
1085
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1086
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1087
|
+
:value: 01988f6c-3e2a-4d19-8b54-f53e01c3b1c7
|
1088
|
+
:format: 1
|
1089
|
+
' LIMIT 1
|
1090
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.214229"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:34:53.212902"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.214229"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1091
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1092
|
+
Completed 201 Created in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
1093
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
1094
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1095
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1096
|
+
----------------------------------------------------------------
|
1097
|
+
S3Relay::Upload::validations::uuid: test_0001_validates presence
|
1098
|
+
----------------------------------------------------------------
|
1099
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
1100
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1101
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1102
|
+
------------------------------------------------------------------
|
1103
|
+
S3Relay::Upload::validations::uuid: test_0002_validates uniqueness
|
1104
|
+
------------------------------------------------------------------
|
1105
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1106
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-09-07 16:34:53.223765"], ["pending_at", "2016-09-07 16:34:53.223475"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.223765"]]
|
1107
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1108
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
1109
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1110
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1111
|
+
---------------------------------------------------------------------------------------------------------------------
|
1112
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::not matching an object: test_0001_anonymous
|
1113
|
+
---------------------------------------------------------------------------------------------------------------------
|
1114
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
1115
|
+
Processing by S3Relay::UploadsController#create as HTML
|
1116
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"7add59ac-43d1-4762-b858-9f002d363c02", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"10000000"}
|
1117
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = 10000000 LIMIT 1
|
1118
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1119
|
+
[1m[35mS3Relay::Upload Exists (0.3ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1120
|
+
:value: 7add59ac-43d1-4762-b858-9f002d363c02
|
1121
|
+
:format: 1
|
1122
|
+
' LIMIT 1
|
1123
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:34:53.235583"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:34:53.233235"], ["state", "pending"], ["updated_at", "2016-09-07 16:34:53.235583"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1124
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1125
|
+
Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
|
1126
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
1127
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1128
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1129
|
+
-------------------------------------------------------------------
|
1130
|
+
S3Relay::UploadsController::POST create::error: test_0001_anonymous
|
1131
|
+
-------------------------------------------------------------------
|
1132
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
1133
|
+
Processing by S3Relay::UploadsController#create as HTML
|
1134
|
+
Parameters: {"uuid"=>"2f57f99e-d3b3-4226-a4d2-7c438bd0e6fd", "filename"=>"cat.png", "content_type"=>"image/png"}
|
1135
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1136
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1137
|
+
:value: 2f57f99e-d3b3-4226-a4d2-7c438bd0e6fd
|
1138
|
+
:format: 1
|
1139
|
+
' LIMIT 1
|
1140
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1141
|
+
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
|
1142
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
1143
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1144
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1145
|
+
----------------------------------------------------------
|
1146
|
+
S3Relay::Upload::associations::parent: test_0001_anonymous
|
1147
|
+
----------------------------------------------------------
|
1148
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1149
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1150
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" DISABLE TRIGGER ALL
|
1151
|
+
[1m[36m (2.2ms)[0m [1mselect table_name from information_schema.views where table_schema = 's3_relay_test'[0m
|
1152
|
+
[1m[35m (4.6ms)[0m TRUNCATE TABLE "products", "s3_relay_uploads" RESTART IDENTITY CASCADE;
|
1153
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" ENABLE TRIGGER ALL[0m
|
1154
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1155
|
+
--------------------------------------------------------
|
1156
|
+
S3Relay::UploadsController::GET new: test_0001_anonymous
|
1157
|
+
--------------------------------------------------------
|
1158
|
+
Processing by S3Relay::UploadsController#new as HTML
|
1159
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
1160
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1161
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1162
|
+
-----------------------------------------------------------------------------
|
1163
|
+
S3Relay::UploadsHelper::#s3_relay_field::without options: test_0001_anonymous
|
1164
|
+
-----------------------------------------------------------------------------
|
1165
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1166
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:35:33.408574"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:35:33.408574"]]
|
1167
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1168
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1169
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1170
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1171
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1172
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1173
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:35:33.415759"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:35:33.415759"]]
|
1174
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1175
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1176
|
+
[1m[35mS3Relay::Upload Exists (0.5ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1177
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1178
|
+
:format: 1
|
1179
|
+
' LIMIT 1
|
1180
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.436619"], ["filename", "cat.png"], ["parent_id", 2], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:35:33.426094"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.436619"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1181
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1182
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1183
|
+
[1m[35mS3Relay::Upload Exists (0.3ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1184
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1185
|
+
:format: 1
|
1186
|
+
' LIMIT 1
|
1187
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.441855"], ["filename", "cat.png"], ["parent_id", 2], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:35:33.439746"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.441855"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1188
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1189
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1190
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1191
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1192
|
+
:format: 1
|
1193
|
+
' LIMIT 1
|
1194
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.445236"], ["filename", "cat.png"], ["parent_id", 2], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:35:33.443662"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.445236"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1195
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1196
|
+
[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" = 2 AND "s3_relay_uploads"."upload_type" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1[0m
|
1197
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1198
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1199
|
+
-----------------------------------------------
|
1200
|
+
S3Relay::Upload::#pending?: test_0001_anonymous
|
1201
|
+
-----------------------------------------------
|
1202
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1203
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1204
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1205
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1206
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1207
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:35:33.454415"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:35:33.454415"]]
|
1208
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1209
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1210
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1211
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1212
|
+
:format: 1
|
1213
|
+
' LIMIT 1
|
1214
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.457570"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:35:33.455878"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.457570"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1215
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1216
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1217
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1218
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1219
|
+
:format: 1
|
1220
|
+
' LIMIT 1
|
1221
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.460805"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:35:33.459175"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.460805"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1222
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1223
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1224
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1225
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1226
|
+
:format: 1
|
1227
|
+
' LIMIT 1
|
1228
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.463621"], ["filename", "cat.png"], ["parent_id", 3], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:35:33.462331"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.463621"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1229
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1230
|
+
[1m[36m (0.2ms)[0m [1mSELECT "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'[0m
|
1231
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1232
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1233
|
+
-------------------------------------------------------
|
1234
|
+
S3Relay::Upload::upon finalization: test_0001_anonymous
|
1235
|
+
-------------------------------------------------------
|
1236
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1237
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1238
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1239
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1240
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1241
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:35:33.468578"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:35:33.468578"]]
|
1242
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1243
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1244
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1245
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1246
|
+
:format: 1
|
1247
|
+
' LIMIT 1
|
1248
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.470943"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:35:33.469673"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.470943"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1249
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1250
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1251
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1252
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1253
|
+
:format: 1
|
1254
|
+
' LIMIT 1
|
1255
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.473517"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:35:33.472414"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.473517"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1256
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1257
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1258
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1259
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1260
|
+
:format: 1
|
1261
|
+
' LIMIT 1
|
1262
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.475884"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:35:33.474755"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.475884"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1263
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1264
|
+
[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" = 4 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
1265
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "s3_relay_uploads" SET "parent_type" = 'Product', "parent_id" = 4 WHERE "s3_relay_uploads"."uuid" IN ('0c3a7abe-8821-4e0b-a423-99a1c2fa2e57', '0c3a7abe-8821-4e0b-a423-99a1c2fa2e57') AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
1266
|
+
[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" = 4 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
1267
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1268
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1269
|
+
----------------------------------------------------------------------
|
1270
|
+
S3Relay::Upload::validations::pending_at: test_0001_validates presence
|
1271
|
+
----------------------------------------------------------------------
|
1272
|
+
[1m[35mS3Relay::Upload Exists (0.3ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
1273
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1274
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1275
|
+
----------------------------------------------------------------
|
1276
|
+
S3Relay::Upload::validations::uuid: test_0001_validates presence
|
1277
|
+
----------------------------------------------------------------
|
1278
|
+
[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
|
1279
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1280
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1281
|
+
------------------------------------------------------------------
|
1282
|
+
S3Relay::Upload::validations::uuid: test_0002_validates uniqueness
|
1283
|
+
------------------------------------------------------------------
|
1284
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1285
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-09-07 16:35:33.494259"], ["pending_at", "2016-09-07 16:35:33.493873"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.494259"]]
|
1286
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1287
|
+
[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
|
1288
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1289
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1290
|
+
--------------------------------------------------
|
1291
|
+
S3Relay::Upload::#private_url: test_0001_anonymous
|
1292
|
+
--------------------------------------------------
|
1293
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1294
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1295
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1296
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1297
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1298
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1299
|
+
-----------------------------------------------------
|
1300
|
+
S3Relay::Upload::scopes::pending: test_0001_anonymous
|
1301
|
+
-----------------------------------------------------
|
1302
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1303
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-09-07 16:35:33.504025"], ["pending_at", "2016-09-07 16:35:33.503768"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.504025"]]
|
1304
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1305
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1306
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-09-07 16:35:33.505527"], ["pending_at", "2016-09-07 16:35:33.505255"], ["state", "imported"], ["updated_at", "2016-09-07 16:35:33.505527"]]
|
1307
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1308
|
+
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'pending'
|
1309
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1310
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1311
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
1312
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1313
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1314
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1315
|
+
-----------------------------------------------------------------------------------------------------------------
|
1316
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::matching an object: test_0001_anonymous
|
1317
|
+
-----------------------------------------------------------------------------------------------------------------
|
1318
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1319
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:35:33.514731"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:35:33.514731"]]
|
1320
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1321
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) 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'
|
1322
|
+
Processing by S3Relay::UploadsController#create as HTML
|
1323
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"6df49f66-b480-4815-8593-c5f01772f657", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"5"}
|
1324
|
+
[1m[36mProduct Load (0.3ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = 5 LIMIT 1[0m
|
1325
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1326
|
+
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1327
|
+
:value: 6df49f66-b480-4815-8593-c5f01772f657
|
1328
|
+
:format: 1
|
1329
|
+
' LIMIT 1[0m
|
1330
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.522707"], ["filename", "cat.png"], ["parent_id", 5], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:35:33.519992"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.522707"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1331
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1332
|
+
Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 1.1ms)
|
1333
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) 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'
|
1334
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1335
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1336
|
+
---------------------------------------------------------------------
|
1337
|
+
S3Relay::UploadsController::POST create::success: test_0001_anonymous
|
1338
|
+
---------------------------------------------------------------------
|
1339
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
1340
|
+
Processing by S3Relay::UploadsController#create as HTML
|
1341
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"000a20e4-ed14-4254-b6a1-dd299691c292", "filename"=>"cat.png", "content_type"=>"image/png"}
|
1342
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1343
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1344
|
+
:value: 000a20e4-ed14-4254-b6a1-dd299691c292
|
1345
|
+
:format: 1
|
1346
|
+
' LIMIT 1[0m
|
1347
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.533674"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:35:33.532364"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.533674"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1348
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1349
|
+
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
1350
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
1351
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1352
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1353
|
+
----------------------------------------------------------
|
1354
|
+
S3Relay::Upload::associations::parent: test_0001_anonymous
|
1355
|
+
----------------------------------------------------------
|
1356
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1357
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1358
|
+
--------------------------------------------------------------------
|
1359
|
+
S3Relay::Upload::validations::filename: test_0001_validates presence
|
1360
|
+
--------------------------------------------------------------------
|
1361
|
+
[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
|
1362
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1363
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1364
|
+
-------------------------------------------------------------------
|
1365
|
+
S3Relay::UploadsController::POST create::error: test_0001_anonymous
|
1366
|
+
-------------------------------------------------------------------
|
1367
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
1368
|
+
Processing by S3Relay::UploadsController#create as HTML
|
1369
|
+
Parameters: {"uuid"=>"958b443a-ebd0-49cf-a23f-263dc9810bc3", "filename"=>"cat.png", "content_type"=>"image/png"}
|
1370
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1371
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1372
|
+
:value: 958b443a-ebd0-49cf-a23f-263dc9810bc3
|
1373
|
+
:format: 1
|
1374
|
+
' LIMIT 1
|
1375
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1376
|
+
Completed 422 Unprocessable Entity in 2ms (Views: 0.1ms | ActiveRecord: 0.4ms)
|
1377
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
1378
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1379
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1380
|
+
---------------------------------------------------------------------------------
|
1381
|
+
S3Relay::UploadsHelper::#s3_relay_field::with multiple: true: test_0001_anonymous
|
1382
|
+
---------------------------------------------------------------------------------
|
1383
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1384
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:35:33.552314"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:35:33.552314"]]
|
1385
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1386
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1387
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1388
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1389
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1390
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1391
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1392
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1393
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1394
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1395
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1396
|
+
------------------------------------------------------------------------------------------
|
1397
|
+
S3Relay::UploadsHelper::#s3_relay_field::with disposition: attachment: test_0001_anonymous
|
1398
|
+
------------------------------------------------------------------------------------------
|
1399
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1400
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-09-07 16:35:33.557755"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:35:33.557755"]]
|
1401
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1402
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1403
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1404
|
+
-----------------------------------------------------------------------------------
|
1405
|
+
S3Relay::Upload::#notify_parent::when the parent is associated: test_0001_anonymous
|
1406
|
+
-----------------------------------------------------------------------------------
|
1407
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1408
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-09-07 16:35:33.561051"], ["name", "Flux Capacitor"], ["updated_at", "2016-09-07 16:35:33.561051"]]
|
1409
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1410
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1411
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1412
|
+
:value: 0c3a7abe-8821-4e0b-a423-99a1c2fa2e57
|
1413
|
+
:format: 1
|
1414
|
+
' LIMIT 1[0m
|
1415
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.563692"], ["filename", "cat.png"], ["parent_id", 8], ["parent_type", "Product"], ["pending_at", "2016-09-07 16:35:33.560469"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.563692"], ["upload_type", "FileUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1416
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1417
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1418
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1419
|
+
------------------------------------------------------
|
1420
|
+
S3Relay::Upload::scopes::imported: test_0001_anonymous
|
1421
|
+
------------------------------------------------------
|
1422
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1423
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-09-07 16:35:33.566544"], ["pending_at", "2016-09-07 16:35:33.566261"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.566544"]]
|
1424
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1425
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1426
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-09-07 16:35:33.567892"], ["pending_at", "2016-09-07 16:35:33.567623"], ["state", "imported"], ["updated_at", "2016-09-07 16:35:33.567892"]]
|
1427
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1428
|
+
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'imported'
|
1429
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1430
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1431
|
+
-----------------------------------------------
|
1432
|
+
S3Relay::Upload::#imported: test_0001_anonymous
|
1433
|
+
-----------------------------------------------
|
1434
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1435
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1436
|
+
-----------------------------------------------------
|
1437
|
+
S3Relay::Upload::#mark_imported!: test_0001_anonymous
|
1438
|
+
-----------------------------------------------------
|
1439
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1440
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
1441
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1442
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1443
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1444
|
+
[1m[35m (0.1ms)[0m COMMIT
|
1445
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1446
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1447
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1448
|
+
------------------------------------------------------------------------
|
1449
|
+
S3Relay::Upload::validations::content_type: test_0001_validates presence
|
1450
|
+
------------------------------------------------------------------------
|
1451
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
1452
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1453
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1454
|
+
---------------------------------------------------------------------------------------------------------------------
|
1455
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::not matching an object: test_0001_anonymous
|
1456
|
+
---------------------------------------------------------------------------------------------------------------------
|
1457
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
1458
|
+
Processing by S3Relay::UploadsController#create as HTML
|
1459
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"0d4facb1-717b-45cc-b423-a4d79c931a0c", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"10000000"}
|
1460
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = 10000000 LIMIT 1
|
1461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1462
|
+
[1m[35mS3Relay::Upload Exists (0.3ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1463
|
+
:value: 0d4facb1-717b-45cc-b423-a4d79c931a0c
|
1464
|
+
:format: 1
|
1465
|
+
' LIMIT 1
|
1466
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.587219"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:35:33.585031"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.587219"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
1467
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1468
|
+
Completed 201 Created in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
|
1469
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
1470
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1471
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1472
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
1473
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::with a current_user: test_0001_associates the upload with the user
|
1474
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
1475
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
1476
|
+
Processing by S3Relay::UploadsController#create as HTML
|
1477
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"6544b507-91fc-4418-ad95-aecda6a72b5b", "filename"=>"cat.png", "content_type"=>"image/png"}
|
1478
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1479
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
1480
|
+
:value: 6544b507-91fc-4418-ad95-aecda6a72b5b
|
1481
|
+
:format: 1
|
1482
|
+
' LIMIT 1
|
1483
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "user_id", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-09-07 16:35:33.598839"], ["filename", "cat.png"], ["pending_at", "2016-09-07 16:35:33.597471"], ["state", "pending"], ["updated_at", "2016-09-07 16:35:33.598839"], ["upload_type", "PhotoUpload"], ["user_id", 123], ["uuid", "<36 bytes of binary data>"]]
|
1484
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1485
|
+
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
1486
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
1487
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1488
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1489
|
+
-----------------------------------------------------------------------
|
1490
|
+
S3Relay::Upload::validations::upload_type: test_0001_validates presence
|
386
1491
|
-----------------------------------------------------------------------
|
387
1492
|
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
388
1493
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|