fogged 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fogged.rb +4 -4
- data/lib/fogged/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +3069 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 265b396d59da61488ba11b7d9ab9ab944f0258a4
|
|
4
|
+
data.tar.gz: 736569ff7e8fd7627c3a93c04065a9e315447e4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cef14588abf7d1cac4215e19e412e1da03855b06c04014d3a3fdb70949c6fe912abc3738cb6d2bac92f0f3e15f6c2f4d1c35b2f3ca71cee6a84c8cc0ee53c450
|
|
7
|
+
data.tar.gz: 64daa48361e73b98826a7916bf40c2d7c6a265db4e041e979634f4ba0313c50eec93d1aee2661368b8bc8e96c20b1f7f66a5b6939b479ac81f7083dc7494d04f
|
data/lib/fogged.rb
CHANGED
|
@@ -62,11 +62,11 @@ module Fogged
|
|
|
62
62
|
Fog.mock!
|
|
63
63
|
storage = Fog::Storage.new(
|
|
64
64
|
:provider => "AWS",
|
|
65
|
-
:aws_access_key_id => "
|
|
66
|
-
:aws_secret_access_key => "
|
|
65
|
+
:aws_access_key_id => "XXX",
|
|
66
|
+
:aws_secret_access_key => "XXX"
|
|
67
67
|
)
|
|
68
|
-
@@aws_key = "
|
|
69
|
-
@@
|
|
68
|
+
@@aws_key = "XXX"
|
|
69
|
+
@@aws_secret = "XXX"
|
|
70
70
|
@@aws_bucket = "test"
|
|
71
71
|
storage.directories.create(:key => "test")
|
|
72
72
|
end
|
data/lib/fogged/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
data/test/dummy/log/test.log
CHANGED
|
@@ -31490,3 +31490,3072 @@ Processing by Fogged::ResourcesController#destroy as HTML
|
|
|
31490
31490
|
Completed 404 Not Found in 1ms
|
|
31491
31491
|
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
31492
31492
|
[1m[35m (0.1ms)[0m rollback transaction
|
|
31493
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
31494
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
31495
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31496
|
+
[1m[35mFixture Delete (1.0ms)[0m DELETE FROM "fogged_resources"
|
|
31497
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 517391740)[0m
|
|
31498
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 701625837)
|
|
31499
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 819504217)[0m
|
|
31500
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 132093124)
|
|
31501
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 431685987)[0m
|
|
31502
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 68463692)
|
|
31503
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 591498715)[0m
|
|
31504
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:03:45', '2014-12-22 08:03:45', 538821867)
|
|
31505
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
31506
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 579229346)
|
|
31507
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 153115190)[0m
|
|
31508
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "movie_fogged_resources"
|
|
31509
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 419883833, 624739301, 701625837)[0m
|
|
31510
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 849405871, 624739301, 819504217)
|
|
31511
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 98413728, 245026679, 784085492)[0m
|
|
31512
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 779853880, 245026679, 431685987)
|
|
31513
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "movies"[0m
|
|
31514
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 624739301)
|
|
31515
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 245026679)[0m
|
|
31516
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 948421225)
|
|
31517
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
31518
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31519
|
+
--------------------------------------------------------------------------------------
|
|
31520
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
|
31521
|
+
--------------------------------------------------------------------------------------
|
|
31522
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
31523
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
31524
|
+
Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
|
|
31525
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
31526
|
+
Completed 404 Not Found in 1ms
|
|
31527
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
31528
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31529
|
+
------------------------------------------------------------------
|
|
31530
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
|
31531
|
+
------------------------------------------------------------------
|
|
31532
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
31533
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
31534
|
+
Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
|
|
31535
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
31536
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31537
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-12-22 08:03:45.366957"]]
|
|
31538
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
31539
|
+
Completed 200 OK in 118ms (Views: 75.1ms | ActiveRecord: 0.6ms)
|
|
31540
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
31541
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
31542
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31543
|
+
-------------------------------------------------------------
|
|
31544
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
|
31545
|
+
-------------------------------------------------------------
|
|
31546
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
31547
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
31548
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837[0m [["updated_at", "2014-12-22 08:03:45.486444"], ["uploading", "t"]]
|
|
31549
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31550
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31551
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
31552
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
31553
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31554
|
+
--------------------------------------------------------
|
|
31555
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
|
31556
|
+
--------------------------------------------------------
|
|
31557
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
31558
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
31559
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:03:45.502956"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:03:45.502956"]]
|
|
31560
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31561
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
31562
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31563
|
+
--------------------------------------------------
|
|
31564
|
+
ImageTest: test_should_save_image_without_resource
|
|
31565
|
+
--------------------------------------------------
|
|
31566
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31567
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:03:45.505402"], ["name", "test"], ["updated_at", "2014-12-22 08:03:45.505402"]]
|
|
31568
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
31569
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
31570
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
31571
|
+
---------------------------------------------------
|
|
31572
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
|
31573
|
+
---------------------------------------------------
|
|
31574
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
31575
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'aae9805f4a911ca63dd72088139f35f7' LIMIT 1[0m
|
|
31576
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.512538"], ["extension", "txt"], ["name", "Test"], ["token", "aae9805f4a911ca63dd72088139f35f7"], ["updated_at", "2014-12-22 08:03:45.512538"], ["uploading", "f"]]
|
|
31577
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
31578
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
31579
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
31580
|
+
----------------------------------------------------------------------------
|
|
31581
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
|
31582
|
+
----------------------------------------------------------------------------
|
|
31583
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
31584
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e1cb9e10cb2df7aa122fae9fbd364bd3' LIMIT 1[0m
|
|
31585
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.515510"], ["extension", "txt"], ["name", "Test"], ["token", "e1cb9e10cb2df7aa122fae9fbd364bd3"], ["updated_at", "2014-12-22 08:03:45.515510"], ["uploading", "f"]]
|
|
31586
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
31587
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
31588
|
+
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 819504218]]
|
|
31589
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31590
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
31591
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31592
|
+
-------------------------------------------------------------------------
|
|
31593
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
|
31594
|
+
-------------------------------------------------------------------------
|
|
31595
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31596
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1e550738e3afdd3df43966e77db5eda3' LIMIT 1
|
|
31597
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.520891"], ["extension", "txt"], ["name", "Test"], ["token", "1e550738e3afdd3df43966e77db5eda3"], ["updated_at", "2014-12-22 08:03:45.520891"], ["uploading", "f"]]
|
|
31598
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31599
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
31600
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31601
|
+
-------------------------------------------------------------
|
|
31602
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
|
31603
|
+
-------------------------------------------------------------
|
|
31604
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31605
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c92c998e89ac1d035472c8d02ff6e826' LIMIT 1
|
|
31606
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.523387"], ["extension", "txt"], ["name", "Test"], ["token", "c92c998e89ac1d035472c8d02ff6e826"], ["updated_at", "2014-12-22 08:03:45.523387"], ["uploading", "f"]]
|
|
31607
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31608
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
31609
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31610
|
+
------------------------------------------------------
|
|
31611
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
|
31612
|
+
------------------------------------------------------
|
|
31613
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31614
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '62f6f5bb0bc85593611859136f9a5d46' LIMIT 1
|
|
31615
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.526597"], ["extension", "txt"], ["name", "Test"], ["token", "62f6f5bb0bc85593611859136f9a5d46"], ["updated_at", "2014-12-22 08:03:45.526597"], ["uploading", "f"]]
|
|
31616
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31617
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
31618
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31619
|
+
----------------------------------------------------------------------------
|
|
31620
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
|
31621
|
+
----------------------------------------------------------------------------
|
|
31622
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31623
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
31624
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
31625
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31626
|
+
-------------------------------------------------------------------------
|
|
31627
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
|
31628
|
+
-------------------------------------------------------------------------
|
|
31629
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31630
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
31631
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
31632
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31633
|
+
--------------------------------------------------------
|
|
31634
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
|
31635
|
+
--------------------------------------------------------
|
|
31636
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
31637
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
31638
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715[0m [["height", 600], ["updated_at", "2014-12-22 08:03:45.533525"], ["width", 800]]
|
|
31639
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31640
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
31641
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31642
|
+
--------------------------------------------------------
|
|
31643
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
|
31644
|
+
--------------------------------------------------------
|
|
31645
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
31646
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
31647
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31648
|
+
------------------------------------------------------------------------------
|
|
31649
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
|
31650
|
+
------------------------------------------------------------------------------
|
|
31651
|
+
[1m[35mFogged::Resource Load (0.7ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
31652
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
31653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31654
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:03:45.647901"]]
|
|
31655
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
31656
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31657
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:45.668485"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:03:45.667766"], ["updated_at", "2014-12-22 08:03:45.668485"]]
|
|
31658
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
31659
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
31660
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
31661
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
31662
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 517391740)
|
|
31663
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 701625837)[0m
|
|
31664
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 819504217)
|
|
31665
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 132093124)[0m
|
|
31666
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 431685987)
|
|
31667
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 68463692)[0m
|
|
31668
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 591498715)
|
|
31669
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:03:45', '2014-12-22 08:03:45', 538821867)[0m
|
|
31670
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
31671
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 579229346)[0m
|
|
31672
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 153115190)
|
|
31673
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
31674
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 419883833, 624739301, 701625837)
|
|
31675
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 849405871, 624739301, 819504217)[0m
|
|
31676
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 98413728, 245026679, 784085492)
|
|
31677
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 779853880, 245026679, 431685987)[0m
|
|
31678
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
31679
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 624739301)[0m
|
|
31680
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 245026679)
|
|
31681
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 948421225)[0m
|
|
31682
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
31683
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31684
|
+
-------------------------------------------------------
|
|
31685
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
|
31686
|
+
-------------------------------------------------------
|
|
31687
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
31688
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
31689
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31690
|
+
-------------------------------------------------------------
|
|
31691
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
|
31692
|
+
-------------------------------------------------------------
|
|
31693
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
31694
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
|
31695
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 431685987]]
|
|
31696
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
31697
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987[0m [["updated_at", "2014-12-22 08:03:45.856109"], ["uploading", "t"]]
|
|
31698
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31699
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31700
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
31701
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
31702
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31703
|
+
---------------------------------------------------
|
|
31704
|
+
MovieTest: test_should_save_movie_with_no_resources
|
|
31705
|
+
---------------------------------------------------
|
|
31706
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31707
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:03:45.861440"], ["name", "test"], ["updated_at", "2014-12-22 08:03:45.861440"]]
|
|
31708
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
31709
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
31710
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31711
|
+
--------------------------------------------------------
|
|
31712
|
+
MovieTest: test_should_save_movie_with_several_resources
|
|
31713
|
+
--------------------------------------------------------
|
|
31714
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
31715
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
|
31716
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
31717
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-12-22 08:03:45.866341"], ["name", "test"], ["updated_at", "2014-12-22 08:03:45.866341"]]
|
|
31718
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:45.867287"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:03:45.867287"]]
|
|
31719
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:03:45.868296"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:03:45.868296"]]
|
|
31720
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31721
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
31722
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31723
|
+
----------------------
|
|
31724
|
+
FoggedTest: test_truth
|
|
31725
|
+
----------------------
|
|
31726
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
31727
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31728
|
+
------------------------------------------------------------------------
|
|
31729
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
|
31730
|
+
------------------------------------------------------------------------
|
|
31731
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
31732
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
31733
|
+
Parameters: {"type"=>"movie"}
|
|
31734
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies"
|
|
31735
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
31736
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
31737
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 948421225]]
|
|
31738
|
+
Completed 200 OK in 15ms (Views: 1.1ms | ActiveRecord: 0.4ms)
|
|
31739
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies"
|
|
31740
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
31741
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
31742
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 948421225]]
|
|
31743
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
31744
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31745
|
+
---------------------------------------------------------------------
|
|
31746
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
|
31747
|
+
---------------------------------------------------------------------
|
|
31748
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
31749
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
31750
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
|
31751
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)[0m
|
|
31752
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
31753
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
|
31754
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
31755
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
31756
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
31757
|
+
-----------------------------------------------------------------------------------------------
|
|
31758
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
|
31759
|
+
-----------------------------------------------------------------------------------------------
|
|
31760
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
31761
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31762
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a79f2026dda9a84b59d689e112ba5c5e' LIMIT 1
|
|
31763
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.903082"], ["extension", "txt"], ["name", "footest barish"], ["token", "a79f2026dda9a84b59d689e112ba5c5e"], ["updated_at", "2014-12-22 08:03:45.903082"]]
|
|
31764
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
31765
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31766
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:45.905313"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:03:45.905313"]]
|
|
31767
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
31768
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
31769
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
|
31770
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
|
|
31771
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%')[0m [["movie_id", 624739301]]
|
|
31772
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
|
31773
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
31774
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
31775
|
+
--------------------------------------------------------------------
|
|
31776
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
|
31777
|
+
--------------------------------------------------------------------
|
|
31778
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
31779
|
+
[1m[36mMovie Load (0.0ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 245026679]]
|
|
31780
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
31781
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
31782
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
31783
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
|
31784
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
|
|
31785
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
31786
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
31787
|
+
Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
|
|
31788
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
31789
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31790
|
+
-------------------------------------------------------------------------------
|
|
31791
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
|
31792
|
+
-------------------------------------------------------------------------------
|
|
31793
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
31794
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
31795
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
|
31796
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)
|
|
31797
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
|
31798
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
31799
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31800
|
+
-----------------------------------------------------------------------------------
|
|
31801
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
|
|
31802
|
+
-----------------------------------------------------------------------------------
|
|
31803
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31804
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
31805
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31807
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867[0m [["encoding_progress", 55], ["updated_at", "2014-12-22 08:03:46.004068"]]
|
|
31808
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
31809
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31810
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:46.022635"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:03:45.000000000 Z\n updated_at: 2014-12-22 08:03:46.004068000 Z\n"], ["run_at", "2014-12-22 08:03:56.007451"], ["updated_at", "2014-12-22 08:03:46.022635"]]
|
|
31811
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
31812
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
31813
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31814
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
31815
|
+
--------------------------------------------------------------------------------
|
|
31816
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
|
|
31817
|
+
--------------------------------------------------------------------------------
|
|
31818
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31819
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
31820
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31821
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31822
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867[0m [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:03:46.257981"], ["width", 800]]
|
|
31823
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
31824
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
31825
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
31826
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
31827
|
+
--------------------------------------------------------------------------------
|
|
31828
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
|
|
31829
|
+
--------------------------------------------------------------------------------
|
|
31830
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31831
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
31832
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31833
|
+
[1m[35m (0.7ms)[0m begin transaction
|
|
31834
|
+
--------------------------------------------------------------------------------
|
|
31835
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
|
|
31836
|
+
--------------------------------------------------------------------------------
|
|
31837
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31838
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
31839
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31840
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31841
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867[0m [["encoding_progress", 55], ["updated_at", "2014-12-22 08:03:46.736767"]]
|
|
31842
|
+
[1m[35m (5.3ms)[0m commit transaction
|
|
31843
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31844
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:46.763270"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:03:45.000000000 Z\n updated_at: 2014-12-22 08:03:46.736767000 Z\n"], ["run_at", "2014-12-22 08:03:56.744964"], ["updated_at", "2014-12-22 08:03:46.763270"]]
|
|
31845
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
31846
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
31847
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
31848
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
31849
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
31850
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 517391740)
|
|
31851
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 701625837)[0m
|
|
31852
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 819504217)
|
|
31853
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 132093124)[0m
|
|
31854
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 431685987)
|
|
31855
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 68463692)[0m
|
|
31856
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 591498715)
|
|
31857
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:03:46', '2014-12-22 08:03:46', 538821867)[0m
|
|
31858
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
31859
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 579229346)[0m
|
|
31860
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 153115190)
|
|
31861
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
31862
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:46', '2014-12-22 08:03:46', 419883833, 624739301, 701625837)
|
|
31863
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:46', '2014-12-22 08:03:46', 849405871, 624739301, 819504217)[0m
|
|
31864
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:46', '2014-12-22 08:03:46', 98413728, 245026679, 784085492)
|
|
31865
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:46', '2014-12-22 08:03:46', 779853880, 245026679, 431685987)[0m
|
|
31866
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
31867
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 624739301)[0m
|
|
31868
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 245026679)
|
|
31869
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 948421225)[0m
|
|
31870
|
+
[1m[35m (1.0ms)[0m commit transaction
|
|
31871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31872
|
+
--------------------------------------------------------------------
|
|
31873
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
|
31874
|
+
--------------------------------------------------------------------
|
|
31875
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
31876
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
31877
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
31878
|
+
Parameters: {"id"=>"591498715"}
|
|
31879
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
31880
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
31881
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]
|
|
31882
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
31883
|
+
Completed 204 No Content in 3ms (ActiveRecord: 0.4ms)
|
|
31884
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
31885
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
31886
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31887
|
+
----------------------------------------------------------------------------------------
|
|
31888
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
|
31889
|
+
----------------------------------------------------------------------------------------
|
|
31890
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
31891
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
31892
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
31893
|
+
Parameters: {"id"=>"123456"}
|
|
31894
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
|
31895
|
+
Completed 404 Not Found in 1ms
|
|
31896
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
31897
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
31898
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31899
|
+
------------------------------------------------------------------
|
|
31900
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
|
31901
|
+
------------------------------------------------------------------
|
|
31902
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
31903
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
31904
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
31905
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
31906
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '341973d2c70a26952089f48d5bbc1d7f' LIMIT 1[0m
|
|
31907
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-12-22 08:03:46.947685"], ["extension", "png"], ["name", "Dummy"], ["token", "341973d2c70a26952089f48d5bbc1d7f"], ["updated_at", "2014-12-22 08:03:46.947685"], ["uploading", "t"]]
|
|
31908
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
31909
|
+
Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.6ms)
|
|
31910
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
31911
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
|
31912
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
|
31913
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
31914
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31915
|
+
--------------------------------------------------------------------------------------------
|
|
31916
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
|
31917
|
+
--------------------------------------------------------------------------------------------
|
|
31918
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
31919
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
31920
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
|
31921
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
31922
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
31923
|
+
Completed 422 Unprocessable Entity in 2ms
|
|
31924
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
31925
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
31926
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31927
|
+
-------------------------------------------------------------------------------------------
|
|
31928
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
|
31929
|
+
-------------------------------------------------------------------------------------------
|
|
31930
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
31931
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
31932
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
|
31933
|
+
Completed 400 Bad Request in 0ms
|
|
31934
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
31935
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
31936
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31937
|
+
---------------------------------------------------------------------------------------
|
|
31938
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
|
31939
|
+
---------------------------------------------------------------------------------------
|
|
31940
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
31941
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
31942
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
|
|
31943
|
+
Completed 400 Bad Request in 0ms
|
|
31944
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
31945
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
31946
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31947
|
+
-----------------------------------------------------------------------------------
|
|
31948
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
|
31949
|
+
-----------------------------------------------------------------------------------
|
|
31950
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
31951
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
31952
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
31953
|
+
Completed 400 Bad Request in 0ms
|
|
31954
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
31955
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
31956
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31957
|
+
-------------------------------------------------------------------------------------------------
|
|
31958
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
|
31959
|
+
-------------------------------------------------------------------------------------------------
|
|
31960
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
31961
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
31962
|
+
Completed 400 Bad Request in 0ms
|
|
31963
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
31964
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
31965
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
31966
|
+
----------------------------------------------------------------
|
|
31967
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
|
31968
|
+
----------------------------------------------------------------
|
|
31969
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
31970
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
31971
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
31972
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:03:47.050753"]]
|
|
31973
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
31974
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
31975
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:03:47.068158"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:03:47.067821"], ["updated_at", "2014-12-22 08:03:47.068158"]]
|
|
31976
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
31977
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
31978
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
31979
|
+
--------------------------------------------------------------------
|
|
31980
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
|
|
31981
|
+
--------------------------------------------------------------------
|
|
31982
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
31983
|
+
[1m[35mFogged::Resource Load (0.8ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
31984
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
31985
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
31986
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
31987
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
31988
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 517391740)
|
|
31989
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 701625837)[0m
|
|
31990
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 819504217)
|
|
31991
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 132093124)[0m
|
|
31992
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 431685987)
|
|
31993
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 68463692)[0m
|
|
31994
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 591498715)
|
|
31995
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:03:47', '2014-12-22 08:03:47', 538821867)[0m
|
|
31996
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
31997
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 579229346)[0m
|
|
31998
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 153115190)
|
|
31999
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
32000
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:47', '2014-12-22 08:03:47', 419883833, 624739301, 701625837)
|
|
32001
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:47', '2014-12-22 08:03:47', 849405871, 624739301, 819504217)[0m
|
|
32002
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:47', '2014-12-22 08:03:47', 98413728, 245026679, 784085492)
|
|
32003
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:47', '2014-12-22 08:03:47', 779853880, 245026679, 431685987)[0m
|
|
32004
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
32005
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 624739301)[0m
|
|
32006
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 245026679)
|
|
32007
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 948421225)[0m
|
|
32008
|
+
[1m[35m (5.4ms)[0m commit transaction
|
|
32009
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32010
|
+
----------------------------------------------------------------------------------
|
|
32011
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
|
32012
|
+
----------------------------------------------------------------------------------
|
|
32013
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
32014
|
+
Parameters: {"id"=>"1234567890"}
|
|
32015
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
32016
|
+
Completed 404 Not Found in 1ms
|
|
32017
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
32018
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32019
|
+
--------------------------------------------------------------------
|
|
32020
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
|
32021
|
+
--------------------------------------------------------------------
|
|
32022
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32023
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
32024
|
+
Parameters: {"id"=>"591498715"}
|
|
32025
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
32026
|
+
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
|
|
32027
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
32028
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32029
|
+
--------------------------------------------------------------
|
|
32030
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
|
32031
|
+
--------------------------------------------------------------
|
|
32032
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
32033
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
32034
|
+
Parameters: {"id"=>"701625837"}
|
|
32035
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
32036
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
|
32037
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
32038
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
32039
|
+
--------------------------------------------------------------------
|
|
32040
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
|
32041
|
+
--------------------------------------------------------------------
|
|
32042
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
32043
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
32044
|
+
Parameters: {"id"=>"68463692"}
|
|
32045
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
32046
|
+
Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
|
32047
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
32048
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32049
|
+
--------------------------------------------------------------------
|
|
32050
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
|
32051
|
+
--------------------------------------------------------------------
|
|
32052
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32053
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
32054
|
+
Parameters: {"id"=>"591498715"}
|
|
32055
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
32056
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32057
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:03:47.486569"], ["width", 800]]
|
|
32058
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32059
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
32060
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32061
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
|
|
32062
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
32063
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
32064
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32065
|
+
------------------------------------------------------------------------------------------------
|
|
32066
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
|
32067
|
+
------------------------------------------------------------------------------------------------
|
|
32068
|
+
[1m[36mFogged::Resource Load (1.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
32069
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32070
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
32071
|
+
Parameters: {"id"=>"68463692"}
|
|
32072
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
32073
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32074
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:03:47.573956"]]
|
|
32075
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
32076
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32077
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:47.589776"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:03:47.589343"], ["updated_at", "2014-12-22 08:03:47.589776"]]
|
|
32078
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
32079
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32080
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
32081
|
+
Completed 200 OK in 27ms (Views: 2.5ms | ActiveRecord: 3.6ms)
|
|
32082
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32083
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
32084
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
32085
|
+
----------------------------------------------------------------------------------------
|
|
32086
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
|
32087
|
+
----------------------------------------------------------------------------------------
|
|
32088
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
32089
|
+
Parameters: {"id"=>"123456"}
|
|
32090
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
32091
|
+
Completed 404 Not Found in 1ms
|
|
32092
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
32093
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
32094
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
32095
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32096
|
+
[1m[35mFixture Delete (1.1ms)[0m DELETE FROM "fogged_resources"
|
|
32097
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 517391740)[0m
|
|
32098
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 701625837)
|
|
32099
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 819504217)[0m
|
|
32100
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 132093124)
|
|
32101
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 431685987)[0m
|
|
32102
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 68463692)
|
|
32103
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 591498715)[0m
|
|
32104
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:16:22', '2014-12-22 08:16:22', 538821867)
|
|
32105
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
32106
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 579229346)
|
|
32107
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 153115190)[0m
|
|
32108
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "movie_fogged_resources"
|
|
32109
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:22', '2014-12-22 08:16:22', 419883833, 624739301, 701625837)[0m
|
|
32110
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:22', '2014-12-22 08:16:22', 849405871, 624739301, 819504217)
|
|
32111
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:22', '2014-12-22 08:16:22', 98413728, 245026679, 784085492)[0m
|
|
32112
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:22', '2014-12-22 08:16:22', 779853880, 245026679, 431685987)
|
|
32113
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "movies"[0m
|
|
32114
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 624739301)
|
|
32115
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 245026679)[0m
|
|
32116
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 948421225)
|
|
32117
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
32118
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32119
|
+
--------------------------------------------------------------------
|
|
32120
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
|
32121
|
+
--------------------------------------------------------------------
|
|
32122
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32123
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
32124
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
32125
|
+
Parameters: {"id"=>"591498715"}
|
|
32126
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32127
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
|
32128
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 591498715]]
|
|
32129
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32130
|
+
Completed 204 No Content in 136ms (ActiveRecord: 1.2ms)
|
|
32131
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
32132
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
32133
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
32134
|
+
----------------------------------------------------------------------------------------
|
|
32135
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
|
32136
|
+
----------------------------------------------------------------------------------------
|
|
32137
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
32138
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
32139
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
32140
|
+
Parameters: {"id"=>"123456"}
|
|
32141
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
32142
|
+
Completed 404 Not Found in 0ms
|
|
32143
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
32144
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32145
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32146
|
+
----------------------------------------------------------------
|
|
32147
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
|
32148
|
+
----------------------------------------------------------------
|
|
32149
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
32150
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
32151
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32152
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:16:22.607277"]]
|
|
32153
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
32154
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
32155
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:22.638186"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:16:22.636962"], ["updated_at", "2014-12-22 08:16:22.638186"]]
|
|
32156
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
32157
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32158
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
|
32159
|
+
--------------------------------------------------------------------
|
|
32160
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
|
|
32161
|
+
--------------------------------------------------------------------
|
|
32162
|
+
[1m[35mFogged::Resource Load (0.4ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
32163
|
+
[1m[36mFogged::Resource Load (1.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32164
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32165
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
32166
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
32167
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
|
32168
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 517391740)[0m
|
|
32169
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 701625837)
|
|
32170
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 819504217)[0m
|
|
32171
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 132093124)
|
|
32172
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 431685987)[0m
|
|
32173
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 68463692)
|
|
32174
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 591498715)[0m
|
|
32175
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:16:23', '2014-12-22 08:16:23', 538821867)
|
|
32176
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
32177
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 579229346)
|
|
32178
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 153115190)[0m
|
|
32179
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
32180
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:23', '2014-12-22 08:16:23', 419883833, 624739301, 701625837)[0m
|
|
32181
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:23', '2014-12-22 08:16:23', 849405871, 624739301, 819504217)
|
|
32182
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:23', '2014-12-22 08:16:23', 98413728, 245026679, 784085492)[0m
|
|
32183
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:23', '2014-12-22 08:16:23', 779853880, 245026679, 431685987)
|
|
32184
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
32185
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 624739301)
|
|
32186
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 245026679)[0m
|
|
32187
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 948421225)
|
|
32188
|
+
[1m[36m (5.0ms)[0m [1mcommit transaction[0m
|
|
32189
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
32190
|
+
-------------------------------------------------------------
|
|
32191
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
|
32192
|
+
-------------------------------------------------------------
|
|
32193
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
32194
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
|
32195
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 431685987]]
|
|
32196
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
32197
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987[0m [["updated_at", "2014-12-22 08:16:23.127300"], ["uploading", "t"]]
|
|
32198
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32199
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32200
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
32201
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
32202
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32203
|
+
---------------------------------------------------
|
|
32204
|
+
MovieTest: test_should_save_movie_with_no_resources
|
|
32205
|
+
---------------------------------------------------
|
|
32206
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32207
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:16:23.150742"], ["name", "test"], ["updated_at", "2014-12-22 08:16:23.150742"]]
|
|
32208
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32209
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
32210
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32211
|
+
--------------------------------------------------------
|
|
32212
|
+
MovieTest: test_should_save_movie_with_several_resources
|
|
32213
|
+
--------------------------------------------------------
|
|
32214
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
32215
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
|
32216
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
32217
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-12-22 08:16:23.158521"], ["name", "test"], ["updated_at", "2014-12-22 08:16:23.158521"]]
|
|
32218
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:23.161345"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:16:23.161345"]]
|
|
32219
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:16:23.162844"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:16:23.162844"]]
|
|
32220
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32221
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
32222
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32223
|
+
-----------------------------------------------------------------------------------
|
|
32224
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
|
|
32225
|
+
-----------------------------------------------------------------------------------
|
|
32226
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32227
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32228
|
+
[1m[36mFogged::Resource Load (0.5ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32229
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32230
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867[0m [["encoding_progress", 55], ["updated_at", "2014-12-22 08:16:23.301125"]]
|
|
32231
|
+
[1m[35m (1.0ms)[0m commit transaction
|
|
32232
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32233
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:23.336762"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:16:23.000000000 Z\n updated_at: 2014-12-22 08:16:23.301125000 Z\n"], ["run_at", "2014-12-22 08:16:33.310246"], ["updated_at", "2014-12-22 08:16:23.336762"]]
|
|
32234
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
|
32235
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32236
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32237
|
+
[1m[35m (0.7ms)[0m begin transaction
|
|
32238
|
+
--------------------------------------------------------------------------------
|
|
32239
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
|
|
32240
|
+
--------------------------------------------------------------------------------
|
|
32241
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32242
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32243
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32244
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32245
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867[0m [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:16:23.605294"], ["width", 800]]
|
|
32246
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
32247
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
32248
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
32249
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
32250
|
+
--------------------------------------------------------------------------------
|
|
32251
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
|
|
32252
|
+
--------------------------------------------------------------------------------
|
|
32253
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32254
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32255
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32256
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
32257
|
+
--------------------------------------------------------------------------------
|
|
32258
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
|
|
32259
|
+
--------------------------------------------------------------------------------
|
|
32260
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32261
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32262
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32263
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32264
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867[0m [["encoding_progress", 55], ["updated_at", "2014-12-22 08:16:24.125993"]]
|
|
32265
|
+
[1m[35m (5.1ms)[0m commit transaction
|
|
32266
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32267
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:24.149591"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:16:23.000000000 Z\n updated_at: 2014-12-22 08:16:24.125993000 Z\n"], ["run_at", "2014-12-22 08:16:34.134519"], ["updated_at", "2014-12-22 08:16:24.149591"]]
|
|
32268
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
32269
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32270
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32271
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
32272
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
32273
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 517391740)
|
|
32274
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 701625837)[0m
|
|
32275
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 819504217)
|
|
32276
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 132093124)[0m
|
|
32277
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 431685987)
|
|
32278
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 68463692)[0m
|
|
32279
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 591498715)
|
|
32280
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:16:24', '2014-12-22 08:16:24', 538821867)[0m
|
|
32281
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
32282
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 579229346)[0m
|
|
32283
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 153115190)
|
|
32284
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
32285
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 419883833, 624739301, 701625837)
|
|
32286
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 849405871, 624739301, 819504217)[0m
|
|
32287
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 98413728, 245026679, 784085492)
|
|
32288
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 779853880, 245026679, 431685987)[0m
|
|
32289
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
32290
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 624739301)[0m
|
|
32291
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 245026679)
|
|
32292
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 948421225)[0m
|
|
32293
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
32294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
32295
|
+
--------------------------------------------------------------------
|
|
32296
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
|
32297
|
+
--------------------------------------------------------------------
|
|
32298
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
32299
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
32300
|
+
Parameters: {"id"=>"591498715"}
|
|
32301
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32302
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32303
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715[0m [["height", 600], ["updated_at", "2014-12-22 08:16:24.320254"], ["width", 800]]
|
|
32304
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32305
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32306
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32307
|
+
Completed 200 OK in 10ms (Views: 2.6ms | ActiveRecord: 0.8ms)
|
|
32308
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32309
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
|
32310
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32311
|
+
------------------------------------------------------------------------------------------------
|
|
32312
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
|
32313
|
+
------------------------------------------------------------------------------------------------
|
|
32314
|
+
[1m[35mFogged::Resource Load (0.6ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
32315
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
32316
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
32317
|
+
Parameters: {"id"=>"68463692"}
|
|
32318
|
+
[1m[35mFogged::Resource Load (0.4ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
32319
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32320
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:16:24.461861"]]
|
|
32321
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
32322
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
32323
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:16:24.483528"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:16:24.482731"], ["updated_at", "2014-12-22 08:16:24.483528"]]
|
|
32324
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
32325
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
32326
|
+
[1m[35m (0.0ms)[0m commit transaction
|
|
32327
|
+
Completed 200 OK in 36ms (Views: 1.6ms | ActiveRecord: 3.7ms)
|
|
32328
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
32329
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
32330
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
32331
|
+
----------------------------------------------------------------------------------------
|
|
32332
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
|
32333
|
+
----------------------------------------------------------------------------------------
|
|
32334
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
32335
|
+
Parameters: {"id"=>"123456"}
|
|
32336
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
|
32337
|
+
Completed 404 Not Found in 1ms
|
|
32338
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32340
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "fogged_resources"
|
|
32341
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 517391740)[0m
|
|
32342
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 701625837)
|
|
32343
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 819504217)[0m
|
|
32344
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 132093124)
|
|
32345
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 431685987)[0m
|
|
32346
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 68463692)
|
|
32347
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 591498715)[0m
|
|
32348
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:16:24', '2014-12-22 08:16:24', 538821867)
|
|
32349
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
32350
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 579229346)
|
|
32351
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 153115190)[0m
|
|
32352
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
32353
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 419883833, 624739301, 701625837)[0m
|
|
32354
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 849405871, 624739301, 819504217)
|
|
32355
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 98413728, 245026679, 784085492)[0m
|
|
32356
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 779853880, 245026679, 431685987)
|
|
32357
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
32358
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 624739301)
|
|
32359
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 245026679)[0m
|
|
32360
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 948421225)
|
|
32361
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
32362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32363
|
+
----------------------------------------------------------------------------------
|
|
32364
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
|
32365
|
+
----------------------------------------------------------------------------------
|
|
32366
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
32367
|
+
Parameters: {"id"=>"1234567890"}
|
|
32368
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
|
32369
|
+
Completed 404 Not Found in 1ms
|
|
32370
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32371
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32372
|
+
--------------------------------------------------------------------
|
|
32373
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
|
32374
|
+
--------------------------------------------------------------------
|
|
32375
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
32376
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
32377
|
+
Parameters: {"id"=>"591498715"}
|
|
32378
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32379
|
+
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
|
32380
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
32381
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32382
|
+
--------------------------------------------------------------
|
|
32383
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
|
32384
|
+
--------------------------------------------------------------
|
|
32385
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
32386
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
32387
|
+
Parameters: {"id"=>"701625837"}
|
|
32388
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
32389
|
+
Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.2ms)
|
|
32390
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32391
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
32392
|
+
--------------------------------------------------------------------
|
|
32393
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
|
32394
|
+
--------------------------------------------------------------------
|
|
32395
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
32396
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
32397
|
+
Parameters: {"id"=>"68463692"}
|
|
32398
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
32399
|
+
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
|
32400
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
32401
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32402
|
+
---------------------------------------------------
|
|
32403
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
|
32404
|
+
---------------------------------------------------
|
|
32405
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32406
|
+
[1m[36mFogged::Resource Load (0.5ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c098d80903dc76b135b72ff8a5d79e3b' LIMIT 1[0m
|
|
32407
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.691941"], ["extension", "txt"], ["name", "Test"], ["token", "c098d80903dc76b135b72ff8a5d79e3b"], ["updated_at", "2014-12-22 08:16:24.691941"], ["uploading", "f"]]
|
|
32408
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32409
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
|
32410
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32411
|
+
----------------------------------------------------------------------------
|
|
32412
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
|
32413
|
+
----------------------------------------------------------------------------
|
|
32414
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32415
|
+
[1m[36mFogged::Resource Load (0.4ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'aa59babe49709db27156aab2ead02e6b' LIMIT 1[0m
|
|
32416
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.699110"], ["extension", "txt"], ["name", "Test"], ["token", "aa59babe49709db27156aab2ead02e6b"], ["updated_at", "2014-12-22 08:16:24.699110"], ["uploading", "f"]]
|
|
32417
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32418
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32419
|
+
[1m[36mSQL (1.2ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 819504218]]
|
|
32420
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32421
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
|
32422
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
32423
|
+
-------------------------------------------------------------------------
|
|
32424
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
|
32425
|
+
-------------------------------------------------------------------------
|
|
32426
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32427
|
+
[1m[35mFogged::Resource Load (0.6ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fa973dfb936ce6dbdc76c9a83084f681' LIMIT 1
|
|
32428
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.710825"], ["extension", "txt"], ["name", "Test"], ["token", "fa973dfb936ce6dbdc76c9a83084f681"], ["updated_at", "2014-12-22 08:16:24.710825"], ["uploading", "f"]]
|
|
32429
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32430
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
|
32431
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32432
|
+
-------------------------------------------------------------
|
|
32433
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
|
32434
|
+
-------------------------------------------------------------
|
|
32435
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32436
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e26a2dbc7efb953441fe136cb7c02f97' LIMIT 1
|
|
32437
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.718249"], ["extension", "txt"], ["name", "Test"], ["token", "e26a2dbc7efb953441fe136cb7c02f97"], ["updated_at", "2014-12-22 08:16:24.718249"], ["uploading", "f"]]
|
|
32438
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32439
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
32440
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32441
|
+
------------------------------------------------------
|
|
32442
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
|
32443
|
+
------------------------------------------------------
|
|
32444
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32445
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c6eef367bbc073c40ea0d5be18c69242' LIMIT 1
|
|
32446
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.723386"], ["extension", "txt"], ["name", "Test"], ["token", "c6eef367bbc073c40ea0d5be18c69242"], ["updated_at", "2014-12-22 08:16:24.723386"], ["uploading", "f"]]
|
|
32447
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32448
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
32449
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32450
|
+
----------------------------------------------------------------------------
|
|
32451
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
|
32452
|
+
----------------------------------------------------------------------------
|
|
32453
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32454
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
32455
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
32456
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
32457
|
+
-------------------------------------------------------------------------
|
|
32458
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
|
32459
|
+
-------------------------------------------------------------------------
|
|
32460
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32461
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
32462
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
32463
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
32464
|
+
--------------------------------------------------------
|
|
32465
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
|
32466
|
+
--------------------------------------------------------
|
|
32467
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32468
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32469
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715[0m [["height", 600], ["updated_at", "2014-12-22 08:16:24.734604"], ["width", 800]]
|
|
32470
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32471
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
32472
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32473
|
+
--------------------------------------------------------
|
|
32474
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
|
32475
|
+
--------------------------------------------------------
|
|
32476
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
32477
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
32478
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32479
|
+
------------------------------------------------------------------------------
|
|
32480
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
|
32481
|
+
------------------------------------------------------------------------------
|
|
32482
|
+
[1m[35mFogged::Resource Load (0.8ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
32483
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
32484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32485
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:16:24.842853"]]
|
|
32486
|
+
[1m[35m (0.6ms)[0m commit transaction
|
|
32487
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32488
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:24.859242"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:16:24.858845"], ["updated_at", "2014-12-22 08:16:24.859242"]]
|
|
32489
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
32490
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32491
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
32492
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
32493
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 517391740)
|
|
32494
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 701625837)[0m
|
|
32495
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 819504217)
|
|
32496
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 132093124)[0m
|
|
32497
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 431685987)
|
|
32498
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 68463692)[0m
|
|
32499
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 591498715)
|
|
32500
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:16:25', '2014-12-22 08:16:25', 538821867)[0m
|
|
32501
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
32502
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 579229346)[0m
|
|
32503
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 153115190)
|
|
32504
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
32505
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:25', '2014-12-22 08:16:25', 419883833, 624739301, 701625837)
|
|
32506
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:25', '2014-12-22 08:16:25', 849405871, 624739301, 819504217)[0m
|
|
32507
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:25', '2014-12-22 08:16:25', 98413728, 245026679, 784085492)
|
|
32508
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:25', '2014-12-22 08:16:25', 779853880, 245026679, 431685987)[0m
|
|
32509
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
32510
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 624739301)[0m
|
|
32511
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 245026679)
|
|
32512
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 948421225)[0m
|
|
32513
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
32514
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32515
|
+
----------------------
|
|
32516
|
+
FoggedTest: test_truth
|
|
32517
|
+
----------------------
|
|
32518
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
32519
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
32520
|
+
-------------------------------------------------------------
|
|
32521
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
|
32522
|
+
-------------------------------------------------------------
|
|
32523
|
+
[1m[35mFogged::Resource Load (0.4ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
32524
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32525
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-12-22 08:16:25.061803"], ["uploading", "t"]]
|
|
32526
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32527
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
32528
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
32529
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
32530
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32531
|
+
--------------------------------------------------------
|
|
32532
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
|
32533
|
+
--------------------------------------------------------
|
|
32534
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
32535
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32536
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:25.070919"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:16:25.070919"]]
|
|
32537
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32538
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
32539
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32540
|
+
--------------------------------------------------
|
|
32541
|
+
ImageTest: test_should_save_image_without_resource
|
|
32542
|
+
--------------------------------------------------
|
|
32543
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32544
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-12-22 08:16:25.077552"], ["name", "test"], ["updated_at", "2014-12-22 08:16:25.077552"]]
|
|
32545
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32546
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
32547
|
+
[1m[35m (0.3ms)[0m begin transaction
|
|
32548
|
+
------------------------------------------------------------------------
|
|
32549
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
|
32550
|
+
------------------------------------------------------------------------
|
|
32551
|
+
[1m[36mMovie Load (0.4ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
32552
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32553
|
+
Parameters: {"type"=>"movie"}
|
|
32554
|
+
[1m[35mMovie Load (0.7ms)[0m SELECT "movies".* FROM "movies"
|
|
32555
|
+
[1m[36mFogged::Resource Load (0.4ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
32556
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32557
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 948421225]]
|
|
32558
|
+
Completed 200 OK in 27ms (Views: 1.6ms | ActiveRecord: 1.5ms)
|
|
32559
|
+
[1m[35mMovie Load (0.3ms)[0m SELECT "movies".* FROM "movies"
|
|
32560
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
32561
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32562
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 948421225]]
|
|
32563
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32564
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
32565
|
+
---------------------------------------------------------------------
|
|
32566
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
|
32567
|
+
---------------------------------------------------------------------
|
|
32568
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
32569
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32570
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
|
32571
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)[0m
|
|
32572
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32573
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
|
32574
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
32575
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32576
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
32577
|
+
-----------------------------------------------------------------------------------------------
|
|
32578
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
|
32579
|
+
-----------------------------------------------------------------------------------------------
|
|
32580
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
32581
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32582
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e7dd5fd7d5f5313051ad024cc285aa81' LIMIT 1
|
|
32583
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:25.130168"], ["extension", "txt"], ["name", "footest barish"], ["token", "e7dd5fd7d5f5313051ad024cc285aa81"], ["updated_at", "2014-12-22 08:16:25.130168"]]
|
|
32584
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32585
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32586
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:25.136642"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:16:25.136642"]]
|
|
32587
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32588
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32589
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
|
32590
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
|
|
32591
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%')[0m [["movie_id", 624739301]]
|
|
32592
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
|
32593
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
|
32594
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32595
|
+
--------------------------------------------------------------------
|
|
32596
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
|
32597
|
+
--------------------------------------------------------------------
|
|
32598
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
32599
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 245026679]]
|
|
32600
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32601
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
32602
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32603
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
|
32604
|
+
[1m[35mMovie Load (0.5ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
|
|
32605
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
32606
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32607
|
+
Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 0.9ms)
|
|
32608
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
32609
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
32610
|
+
-------------------------------------------------------------------------------
|
|
32611
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
|
32612
|
+
-------------------------------------------------------------------------------
|
|
32613
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
32614
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32615
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
|
32616
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)
|
|
32617
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
|
32618
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
32619
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32620
|
+
--------------------------------------------------------------------------------------
|
|
32621
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
|
32622
|
+
--------------------------------------------------------------------------------------
|
|
32623
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32624
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
32625
|
+
Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
|
|
32626
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
32627
|
+
Completed 404 Not Found in 1ms
|
|
32628
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
32629
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32630
|
+
------------------------------------------------------------------
|
|
32631
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
|
32632
|
+
------------------------------------------------------------------
|
|
32633
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
32634
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
32635
|
+
Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
|
|
32636
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
32637
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32638
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-12-22 08:16:25.184297"]]
|
|
32639
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32640
|
+
Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
|
32641
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
32642
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
32643
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32644
|
+
-------------------------------------------------------
|
|
32645
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
|
32646
|
+
-------------------------------------------------------
|
|
32647
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
32648
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32649
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32650
|
+
------------------------------------------------------------------
|
|
32651
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
|
32652
|
+
------------------------------------------------------------------
|
|
32653
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
32654
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
32655
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
32656
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32657
|
+
[1m[35mFogged::Resource Load (0.4ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '92e359227fbc7ded0857e3268dbf9ef4' LIMIT 1
|
|
32658
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "image/png"], ["created_at", "2014-12-22 08:16:25.202238"], ["extension", "png"], ["name", "Dummy"], ["token", "92e359227fbc7ded0857e3268dbf9ef4"], ["updated_at", "2014-12-22 08:16:25.202238"], ["uploading", "t"]]
|
|
32659
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32660
|
+
Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.2ms)
|
|
32661
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
32662
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
|
32663
|
+
[1m[36mFogged::Resource Load (0.4ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
|
32664
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
|
32665
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32666
|
+
--------------------------------------------------------------------------------------------
|
|
32667
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
|
32668
|
+
--------------------------------------------------------------------------------------------
|
|
32669
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
32670
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
32671
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
|
32672
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32673
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
32674
|
+
Completed 422 Unprocessable Entity in 5ms
|
|
32675
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
32676
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32677
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32678
|
+
-------------------------------------------------------------------------------------------
|
|
32679
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
|
32680
|
+
-------------------------------------------------------------------------------------------
|
|
32681
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
32682
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
32683
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
|
32684
|
+
Completed 400 Bad Request in 1ms
|
|
32685
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
32686
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32687
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
32688
|
+
---------------------------------------------------------------------------------------
|
|
32689
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
|
32690
|
+
---------------------------------------------------------------------------------------
|
|
32691
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
32692
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
32693
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
|
|
32694
|
+
Completed 400 Bad Request in 0ms
|
|
32695
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
32696
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
32697
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32698
|
+
-----------------------------------------------------------------------------------
|
|
32699
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
|
32700
|
+
-----------------------------------------------------------------------------------
|
|
32701
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
32702
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
32703
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
32704
|
+
Completed 400 Bad Request in 1ms
|
|
32705
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
32706
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32707
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32708
|
+
-------------------------------------------------------------------------------------------------
|
|
32709
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
|
32710
|
+
-------------------------------------------------------------------------------------------------
|
|
32711
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
32712
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
32713
|
+
Completed 400 Bad Request in 0ms
|
|
32714
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
32715
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32716
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
32717
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
32718
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32719
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "fogged_resources"
|
|
32720
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 517391740)[0m
|
|
32721
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 701625837)
|
|
32722
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 819504217)[0m
|
|
32723
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 132093124)
|
|
32724
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 431685987)[0m
|
|
32725
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 68463692)
|
|
32726
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 591498715)[0m
|
|
32727
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:18:25', '2014-12-22 08:18:25', 538821867)
|
|
32728
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
32729
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 579229346)
|
|
32730
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 153115190)[0m
|
|
32731
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
32732
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 419883833, 624739301, 701625837)[0m
|
|
32733
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 849405871, 624739301, 819504217)
|
|
32734
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 98413728, 245026679, 784085492)[0m
|
|
32735
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 779853880, 245026679, 431685987)
|
|
32736
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
32737
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 624739301)
|
|
32738
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 245026679)[0m
|
|
32739
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 948421225)
|
|
32740
|
+
[1m[36m (5.3ms)[0m [1mcommit transaction[0m
|
|
32741
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32742
|
+
---------------------------------------------------
|
|
32743
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
|
32744
|
+
---------------------------------------------------
|
|
32745
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32746
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5e8f8f4ed993a379fb0ce332d38dfeef' LIMIT 1
|
|
32747
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.259474"], ["extension", "txt"], ["name", "Test"], ["token", "5e8f8f4ed993a379fb0ce332d38dfeef"], ["updated_at", "2014-12-22 08:18:25.259474"], ["uploading", "f"]]
|
|
32748
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32749
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
32750
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32751
|
+
----------------------------------------------------------------------------
|
|
32752
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
|
32753
|
+
----------------------------------------------------------------------------
|
|
32754
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32755
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '8af0db50ca23e1e543832092d13e2a8d' LIMIT 1
|
|
32756
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.264469"], ["extension", "txt"], ["name", "Test"], ["token", "8af0db50ca23e1e543832092d13e2a8d"], ["updated_at", "2014-12-22 08:18:25.264469"], ["uploading", "f"]]
|
|
32757
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32758
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32759
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]
|
|
32760
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32761
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
32762
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32763
|
+
-------------------------------------------------------------------------
|
|
32764
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
|
32765
|
+
-------------------------------------------------------------------------
|
|
32766
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
32767
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b74953472442e43feb2c405e7e36d18a' LIMIT 1[0m
|
|
32768
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.313579"], ["extension", "txt"], ["name", "Test"], ["token", "b74953472442e43feb2c405e7e36d18a"], ["updated_at", "2014-12-22 08:18:25.313579"], ["uploading", "f"]]
|
|
32769
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32770
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
32771
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32772
|
+
-------------------------------------------------------------
|
|
32773
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
|
32774
|
+
-------------------------------------------------------------
|
|
32775
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32776
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '0d690706dafc58bfea84225d6458715a' LIMIT 1[0m
|
|
32777
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.317533"], ["extension", "txt"], ["name", "Test"], ["token", "0d690706dafc58bfea84225d6458715a"], ["updated_at", "2014-12-22 08:18:25.317533"], ["uploading", "f"]]
|
|
32778
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32779
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
32780
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32781
|
+
------------------------------------------------------
|
|
32782
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
|
32783
|
+
------------------------------------------------------
|
|
32784
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32785
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c293d263f0ab3741f408849447553258' LIMIT 1[0m
|
|
32786
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.385711"], ["extension", "txt"], ["name", "Test"], ["token", "c293d263f0ab3741f408849447553258"], ["updated_at", "2014-12-22 08:18:25.385711"], ["uploading", "f"]]
|
|
32787
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32788
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
32789
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32790
|
+
----------------------------------------------------------------------------
|
|
32791
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
|
32792
|
+
----------------------------------------------------------------------------
|
|
32793
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
32794
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
32795
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32796
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32797
|
+
-------------------------------------------------------------------------
|
|
32798
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
|
32799
|
+
-------------------------------------------------------------------------
|
|
32800
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32801
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
32802
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32803
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32804
|
+
--------------------------------------------------------
|
|
32805
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
|
32806
|
+
--------------------------------------------------------
|
|
32807
|
+
[1m[35mFogged::Resource Load (0.5ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
32808
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32809
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:18:25.404042"], ["width", 800]]
|
|
32810
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32811
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
32812
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32813
|
+
--------------------------------------------------------
|
|
32814
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
|
32815
|
+
--------------------------------------------------------
|
|
32816
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
32817
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
32818
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
32819
|
+
------------------------------------------------------------------------------
|
|
32820
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
|
32821
|
+
------------------------------------------------------------------------------
|
|
32822
|
+
[1m[36mFogged::Resource Load (1.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
32823
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32824
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32825
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:18:25.545553"]]
|
|
32826
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
32827
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
32828
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:18:25.579827"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:18:25.579220"], ["updated_at", "2014-12-22 08:18:25.579827"]]
|
|
32829
|
+
[1m[35m (1.4ms)[0m commit transaction
|
|
32830
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
32831
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
32832
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "fogged_resources"
|
|
32833
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 517391740)[0m
|
|
32834
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 701625837)
|
|
32835
|
+
[1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 819504217)[0m
|
|
32836
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 132093124)
|
|
32837
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 431685987)[0m
|
|
32838
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 68463692)
|
|
32839
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 591498715)[0m
|
|
32840
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:18:25', '2014-12-22 08:18:25', 538821867)
|
|
32841
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
32842
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 579229346)
|
|
32843
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 153115190)[0m
|
|
32844
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "movie_fogged_resources"
|
|
32845
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 419883833, 624739301, 701625837)[0m
|
|
32846
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 849405871, 624739301, 819504217)
|
|
32847
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 98413728, 245026679, 784085492)[0m
|
|
32848
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 779853880, 245026679, 431685987)
|
|
32849
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
32850
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 624739301)
|
|
32851
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 245026679)[0m
|
|
32852
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 948421225)
|
|
32853
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
|
32854
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
32855
|
+
------------------------------------------------------------------------
|
|
32856
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
|
32857
|
+
------------------------------------------------------------------------
|
|
32858
|
+
[1m[36mMovie Load (0.5ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
32859
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32860
|
+
Parameters: {"type"=>"movie"}
|
|
32861
|
+
[1m[35mMovie Load (0.4ms)[0m SELECT "movies".* FROM "movies"
|
|
32862
|
+
[1m[36mFogged::Resource Load (0.4ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
32863
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32864
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 948421225]]
|
|
32865
|
+
Completed 200 OK in 55ms (Views: 2.4ms | ActiveRecord: 0.9ms)
|
|
32866
|
+
[1m[35mMovie Load (0.4ms)[0m SELECT "movies".* FROM "movies"
|
|
32867
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
32868
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32869
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 948421225]]
|
|
32870
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32872
|
+
---------------------------------------------------------------------
|
|
32873
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
|
32874
|
+
---------------------------------------------------------------------
|
|
32875
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
32876
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32877
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
|
32878
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)[0m
|
|
32879
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32880
|
+
Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.3ms)
|
|
32881
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
32882
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
32883
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
32884
|
+
-----------------------------------------------------------------------------------------------
|
|
32885
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
|
32886
|
+
-----------------------------------------------------------------------------------------------
|
|
32887
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
32888
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32889
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5617162e72cfbe75fba53346eacba380' LIMIT 1
|
|
32890
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.891481"], ["extension", "txt"], ["name", "footest barish"], ["token", "5617162e72cfbe75fba53346eacba380"], ["updated_at", "2014-12-22 08:18:25.891481"]]
|
|
32891
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
32892
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
32893
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:25.904779"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:18:25.904779"]]
|
|
32894
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
32895
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32896
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
|
32897
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
|
|
32898
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%')[0m [["movie_id", 624739301]]
|
|
32899
|
+
Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.4ms)
|
|
32900
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
|
32901
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32902
|
+
--------------------------------------------------------------------
|
|
32903
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
|
32904
|
+
--------------------------------------------------------------------
|
|
32905
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
32906
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 245026679]]
|
|
32907
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32908
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
32909
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32910
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
|
32911
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
|
|
32912
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
|
32913
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
32914
|
+
Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 0.4ms)
|
|
32915
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
32916
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32917
|
+
-------------------------------------------------------------------------------
|
|
32918
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
|
32919
|
+
-------------------------------------------------------------------------------
|
|
32920
|
+
[1m[36mMovie Load (0.3ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
32921
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
32922
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
|
32923
|
+
[1m[35mMovie Load (0.3ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)
|
|
32924
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.3ms)
|
|
32925
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
32926
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32927
|
+
-----------------------------------------------------------------------------------
|
|
32928
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
|
|
32929
|
+
-----------------------------------------------------------------------------------
|
|
32930
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32931
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32932
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32933
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32934
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867[0m [["encoding_progress", 55], ["updated_at", "2014-12-22 08:18:26.112453"]]
|
|
32935
|
+
[1m[35m (1.2ms)[0m commit transaction
|
|
32936
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32937
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:26.131612"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:18:25.000000000 Z\n updated_at: 2014-12-22 08:18:26.112453000 Z\n"], ["run_at", "2014-12-22 08:18:36.116918"], ["updated_at", "2014-12-22 08:18:26.131612"]]
|
|
32938
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
|
32939
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32940
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32941
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
32942
|
+
--------------------------------------------------------------------------------
|
|
32943
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
|
|
32944
|
+
--------------------------------------------------------------------------------
|
|
32945
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32946
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32947
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32948
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32949
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867[0m [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:18:26.397963"], ["width", 800]]
|
|
32950
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
32951
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
32952
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
32953
|
+
[1m[35m (0.3ms)[0m begin transaction
|
|
32954
|
+
--------------------------------------------------------------------------------
|
|
32955
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
|
|
32956
|
+
--------------------------------------------------------------------------------
|
|
32957
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32958
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32959
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32960
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
32961
|
+
--------------------------------------------------------------------------------
|
|
32962
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
|
|
32963
|
+
--------------------------------------------------------------------------------
|
|
32964
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32965
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32966
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32967
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
32968
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867[0m [["encoding_progress", 55], ["updated_at", "2014-12-22 08:18:26.924180"]]
|
|
32969
|
+
[1m[35m (4.8ms)[0m commit transaction
|
|
32970
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32971
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:26.959818"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:18:25.000000000 Z\n updated_at: 2014-12-22 08:18:26.924180000 Z\n"], ["run_at", "2014-12-22 08:18:36.931730"], ["updated_at", "2014-12-22 08:18:26.959818"]]
|
|
32972
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
|
32973
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
32974
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
32975
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
32976
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
32977
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 517391740)
|
|
32978
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 701625837)[0m
|
|
32979
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 819504217)
|
|
32980
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 132093124)[0m
|
|
32981
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 431685987)
|
|
32982
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 68463692)[0m
|
|
32983
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 591498715)
|
|
32984
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:18:27', '2014-12-22 08:18:27', 538821867)[0m
|
|
32985
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
32986
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 579229346)[0m
|
|
32987
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 153115190)
|
|
32988
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
32989
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 419883833, 624739301, 701625837)
|
|
32990
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 849405871, 624739301, 819504217)[0m
|
|
32991
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 98413728, 245026679, 784085492)
|
|
32992
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 779853880, 245026679, 431685987)[0m
|
|
32993
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
32994
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 624739301)[0m
|
|
32995
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 245026679)
|
|
32996
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 948421225)[0m
|
|
32997
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
32998
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
32999
|
+
-------------------------------------------------------------
|
|
33000
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
|
33001
|
+
-------------------------------------------------------------
|
|
33002
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
33003
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33004
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-12-22 08:18:27.169958"], ["uploading", "t"]]
|
|
33005
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33006
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
33007
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
33008
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
|
33009
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
33010
|
+
--------------------------------------------------------
|
|
33011
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
|
33012
|
+
--------------------------------------------------------
|
|
33013
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
33014
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33015
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:27.180749"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:18:27.180749"]]
|
|
33016
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33017
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
|
33018
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
33019
|
+
--------------------------------------------------
|
|
33020
|
+
ImageTest: test_should_save_image_without_resource
|
|
33021
|
+
--------------------------------------------------
|
|
33022
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
33023
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-12-22 08:18:27.187360"], ["name", "test"], ["updated_at", "2014-12-22 08:18:27.187360"]]
|
|
33024
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33025
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
|
33026
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
33027
|
+
--------------------------------------------------------------------------------------
|
|
33028
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
|
33029
|
+
--------------------------------------------------------------------------------------
|
|
33030
|
+
[1m[36mFogged::Resource Load (0.4ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33031
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
33032
|
+
Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
|
|
33033
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
33034
|
+
Completed 404 Not Found in 2ms
|
|
33035
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
33036
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
33037
|
+
------------------------------------------------------------------
|
|
33038
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
|
33039
|
+
------------------------------------------------------------------
|
|
33040
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33041
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
33042
|
+
Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
|
|
33043
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33044
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33045
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-12-22 08:18:27.216025"]]
|
|
33046
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33047
|
+
Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.0ms)
|
|
33048
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33049
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
|
33050
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33051
|
+
--------------------------------------------------------------------
|
|
33052
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
|
33053
|
+
--------------------------------------------------------------------
|
|
33054
|
+
[1m[36mFogged::Resource Load (0.4ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33055
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33056
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
33057
|
+
Parameters: {"id"=>"591498715"}
|
|
33058
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33059
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
33060
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 591498715]]
|
|
33061
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33062
|
+
Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)
|
|
33063
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33064
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
33065
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33066
|
+
----------------------------------------------------------------------------------------
|
|
33067
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
|
33068
|
+
----------------------------------------------------------------------------------------
|
|
33069
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33070
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33071
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
33072
|
+
Parameters: {"id"=>"123456"}
|
|
33073
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
33074
|
+
Completed 404 Not Found in 1ms
|
|
33075
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33076
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33077
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
33078
|
+
------------------------------------------------------------------
|
|
33079
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
|
33080
|
+
------------------------------------------------------------------
|
|
33081
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33082
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33083
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
33084
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33085
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a6abfb9b36f00ab0182700faad04ab49' LIMIT 1
|
|
33086
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "image/png"], ["created_at", "2014-12-22 08:18:27.250650"], ["extension", "png"], ["name", "Dummy"], ["token", "a6abfb9b36f00ab0182700faad04ab49"], ["updated_at", "2014-12-22 08:18:27.250650"], ["uploading", "t"]]
|
|
33087
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33088
|
+
Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.6ms)
|
|
33089
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33090
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
|
33091
|
+
[1m[36mFogged::Resource Load (0.5ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
|
33092
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
|
33093
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
33094
|
+
--------------------------------------------------------------------------------------------
|
|
33095
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
|
33096
|
+
--------------------------------------------------------------------------------------------
|
|
33097
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33098
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33099
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
|
33100
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33101
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
33102
|
+
Completed 422 Unprocessable Entity in 6ms
|
|
33103
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33104
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
33105
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33106
|
+
-------------------------------------------------------------------------------------------
|
|
33107
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
|
33108
|
+
-------------------------------------------------------------------------------------------
|
|
33109
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33110
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33111
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
|
33112
|
+
Completed 400 Bad Request in 1ms
|
|
33113
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33114
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
33115
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
33116
|
+
---------------------------------------------------------------------------------------
|
|
33117
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
|
33118
|
+
---------------------------------------------------------------------------------------
|
|
33119
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33120
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33121
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
|
|
33122
|
+
Completed 400 Bad Request in 1ms
|
|
33123
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33124
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
33125
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33126
|
+
-----------------------------------------------------------------------------------
|
|
33127
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
|
33128
|
+
-----------------------------------------------------------------------------------
|
|
33129
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33130
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33131
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
33132
|
+
Completed 400 Bad Request in 0ms
|
|
33133
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33134
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33135
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33136
|
+
-------------------------------------------------------------------------------------------------
|
|
33137
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
|
33138
|
+
-------------------------------------------------------------------------------------------------
|
|
33139
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33140
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33141
|
+
Completed 400 Bad Request in 0ms
|
|
33142
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33143
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33144
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33145
|
+
-------------------------------------------------------
|
|
33146
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
|
33147
|
+
-------------------------------------------------------
|
|
33148
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
33149
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
33150
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33151
|
+
----------------------------------------------------------------
|
|
33152
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
|
33153
|
+
----------------------------------------------------------------
|
|
33154
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33155
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33156
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33157
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:18:27.411968"]]
|
|
33158
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
33159
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33160
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:18:27.429351"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:18:27.429071"], ["updated_at", "2014-12-22 08:18:27.429351"]]
|
|
33161
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
33162
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
33163
|
+
[1m[35m (0.7ms)[0m begin transaction
|
|
33164
|
+
--------------------------------------------------------------------
|
|
33165
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
|
|
33166
|
+
--------------------------------------------------------------------
|
|
33167
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33168
|
+
[1m[35mFogged::Resource Load (0.8ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33169
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
33170
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33171
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
33172
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
33173
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 517391740)
|
|
33174
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 701625837)[0m
|
|
33175
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 819504217)
|
|
33176
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 132093124)[0m
|
|
33177
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 431685987)
|
|
33178
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 68463692)[0m
|
|
33179
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 591498715)
|
|
33180
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:18:27', '2014-12-22 08:18:27', 538821867)[0m
|
|
33181
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
33182
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 579229346)[0m
|
|
33183
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 153115190)
|
|
33184
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
33185
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 419883833, 624739301, 701625837)
|
|
33186
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 849405871, 624739301, 819504217)[0m
|
|
33187
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 98413728, 245026679, 784085492)
|
|
33188
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 779853880, 245026679, 431685987)[0m
|
|
33189
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
33190
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 624739301)[0m
|
|
33191
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 245026679)
|
|
33192
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 948421225)[0m
|
|
33193
|
+
[1m[35m (5.1ms)[0m commit transaction
|
|
33194
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33195
|
+
----------------------
|
|
33196
|
+
FoggedTest: test_truth
|
|
33197
|
+
----------------------
|
|
33198
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
33199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33200
|
+
-------------------------------------------------------------
|
|
33201
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
|
33202
|
+
-------------------------------------------------------------
|
|
33203
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
33204
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
|
33205
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
|
|
33206
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33207
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-12-22 08:18:27.881881"], ["uploading", "t"]]
|
|
33208
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33209
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
33210
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
33211
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
33212
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
33213
|
+
---------------------------------------------------
|
|
33214
|
+
MovieTest: test_should_save_movie_with_no_resources
|
|
33215
|
+
---------------------------------------------------
|
|
33216
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
33217
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-12-22 08:18:27.891893"], ["name", "test"], ["updated_at", "2014-12-22 08:18:27.891893"]]
|
|
33218
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33219
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
|
33220
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33221
|
+
--------------------------------------------------------
|
|
33222
|
+
MovieTest: test_should_save_movie_with_several_resources
|
|
33223
|
+
--------------------------------------------------------
|
|
33224
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
33225
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
|
33226
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33227
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:18:27.904623"], ["name", "test"], ["updated_at", "2014-12-22 08:18:27.904623"]]
|
|
33228
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:18:27.908399"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:18:27.908399"]]
|
|
33229
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:27.911349"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:18:27.911349"]]
|
|
33230
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33231
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
|
33232
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
33233
|
+
--------------------------------------------------------------------
|
|
33234
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
|
33235
|
+
--------------------------------------------------------------------
|
|
33236
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33237
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
33238
|
+
Parameters: {"id"=>"591498715"}
|
|
33239
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33240
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
33241
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715[0m [["height", 600], ["updated_at", "2014-12-22 08:18:27.926629"], ["width", 800]]
|
|
33242
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33243
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33244
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33245
|
+
Completed 200 OK in 11ms (Views: 2.0ms | ActiveRecord: 1.8ms)
|
|
33246
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33247
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
33248
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33249
|
+
------------------------------------------------------------------------------------------------
|
|
33250
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
|
33251
|
+
------------------------------------------------------------------------------------------------
|
|
33252
|
+
[1m[35mFogged::Resource Load (0.9ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
33253
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
33254
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
33255
|
+
Parameters: {"id"=>"68463692"}
|
|
33256
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
33257
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33258
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:18:28.058584"]]
|
|
33259
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
|
33260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33261
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:18:28.082635"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:18:28.082364"], ["updated_at", "2014-12-22 08:18:28.082635"]]
|
|
33262
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
33263
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33264
|
+
[1m[35m (0.1ms)[0m commit transaction
|
|
33265
|
+
Completed 200 OK in 34ms (Views: 2.8ms | ActiveRecord: 4.7ms)
|
|
33266
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
33267
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
33268
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
33269
|
+
----------------------------------------------------------------------------------------
|
|
33270
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
|
33271
|
+
----------------------------------------------------------------------------------------
|
|
33272
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
33273
|
+
Parameters: {"id"=>"123456"}
|
|
33274
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
|
33275
|
+
Completed 404 Not Found in 1ms
|
|
33276
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33278
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "fogged_resources"
|
|
33279
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 517391740)[0m
|
|
33280
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 701625837)
|
|
33281
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 819504217)[0m
|
|
33282
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 132093124)
|
|
33283
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 431685987)[0m
|
|
33284
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 68463692)
|
|
33285
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 591498715)[0m
|
|
33286
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:18:28', '2014-12-22 08:18:28', 538821867)
|
|
33287
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
33288
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 579229346)
|
|
33289
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 153115190)[0m
|
|
33290
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
33291
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:28', '2014-12-22 08:18:28', 419883833, 624739301, 701625837)[0m
|
|
33292
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:28', '2014-12-22 08:18:28', 849405871, 624739301, 819504217)
|
|
33293
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:28', '2014-12-22 08:18:28', 98413728, 245026679, 784085492)[0m
|
|
33294
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:28', '2014-12-22 08:18:28', 779853880, 245026679, 431685987)
|
|
33295
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
33296
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 624739301)
|
|
33297
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 245026679)[0m
|
|
33298
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 948421225)
|
|
33299
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
33300
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33301
|
+
----------------------------------------------------------------------------------
|
|
33302
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
|
33303
|
+
----------------------------------------------------------------------------------
|
|
33304
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
33305
|
+
Parameters: {"id"=>"1234567890"}
|
|
33306
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
|
33307
|
+
Completed 404 Not Found in 1ms
|
|
33308
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33309
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33310
|
+
--------------------------------------------------------------------
|
|
33311
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
|
33312
|
+
--------------------------------------------------------------------
|
|
33313
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33314
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
33315
|
+
Parameters: {"id"=>"591498715"}
|
|
33316
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33317
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
|
|
33318
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33319
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
33320
|
+
--------------------------------------------------------------
|
|
33321
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
|
33322
|
+
--------------------------------------------------------------
|
|
33323
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
33324
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
33325
|
+
Parameters: {"id"=>"701625837"}
|
|
33326
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
33327
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
|
33328
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33329
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
33330
|
+
--------------------------------------------------------------------
|
|
33331
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
|
33332
|
+
--------------------------------------------------------------------
|
|
33333
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
33334
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
33335
|
+
Parameters: {"id"=>"68463692"}
|
|
33336
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33337
|
+
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
|
33338
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33339
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
33340
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
33341
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33342
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "fogged_resources"
|
|
33343
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 517391740)[0m
|
|
33344
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 701625837)
|
|
33345
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 819504217)[0m
|
|
33346
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 132093124)
|
|
33347
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 431685987)[0m
|
|
33348
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 68463692)
|
|
33349
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 591498715)[0m
|
|
33350
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:49:38', '2014-12-22 08:49:38', 538821867)
|
|
33351
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
33352
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 579229346)
|
|
33353
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 153115190)[0m
|
|
33354
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
33355
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:38', '2014-12-22 08:49:38', 419883833, 624739301, 701625837)[0m
|
|
33356
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:38', '2014-12-22 08:49:38', 849405871, 624739301, 819504217)
|
|
33357
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:38', '2014-12-22 08:49:38', 98413728, 245026679, 784085492)[0m
|
|
33358
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:38', '2014-12-22 08:49:38', 779853880, 245026679, 431685987)
|
|
33359
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
33360
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 624739301)
|
|
33361
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 245026679)[0m
|
|
33362
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 948421225)
|
|
33363
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
|
33364
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33365
|
+
----------------------
|
|
33366
|
+
FoggedTest: test_truth
|
|
33367
|
+
----------------------
|
|
33368
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
33369
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33370
|
+
----------------------------------------------------------------
|
|
33371
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
|
33372
|
+
----------------------------------------------------------------
|
|
33373
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33374
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33375
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33376
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:49:38.655695"]]
|
|
33377
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
33378
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33379
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:49:38.672132"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:49:38.671776"], ["updated_at", "2014-12-22 08:49:38.672132"]]
|
|
33380
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
33381
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
33382
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
33383
|
+
--------------------------------------------------------------------
|
|
33384
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
|
|
33385
|
+
--------------------------------------------------------------------
|
|
33386
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33387
|
+
[1m[35mFogged::Resource Load (1.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33388
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
33389
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33390
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
33391
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
33392
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 517391740)
|
|
33393
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 701625837)[0m
|
|
33394
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 819504217)
|
|
33395
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 132093124)[0m
|
|
33396
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 431685987)
|
|
33397
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 68463692)[0m
|
|
33398
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 591498715)
|
|
33399
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:49:39', '2014-12-22 08:49:39', 538821867)[0m
|
|
33400
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
33401
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 579229346)[0m
|
|
33402
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 153115190)
|
|
33403
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
33404
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 419883833, 624739301, 701625837)
|
|
33405
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 849405871, 624739301, 819504217)[0m
|
|
33406
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 98413728, 245026679, 784085492)
|
|
33407
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 779853880, 245026679, 431685987)[0m
|
|
33408
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
33409
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 624739301)[0m
|
|
33410
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 245026679)
|
|
33411
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 948421225)[0m
|
|
33412
|
+
[1m[35m (5.3ms)[0m commit transaction
|
|
33413
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33414
|
+
------------------------------------------------------------------------
|
|
33415
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
|
33416
|
+
------------------------------------------------------------------------
|
|
33417
|
+
[1m[35mMovie Load (0.3ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
33418
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
33419
|
+
Parameters: {"type"=>"movie"}
|
|
33420
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
|
33421
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
|
|
33422
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
33423
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
|
|
33424
|
+
Completed 200 OK in 106ms (Views: 71.8ms | ActiveRecord: 0.6ms)
|
|
33425
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
|
33426
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
|
|
33427
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
33428
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
|
|
33429
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
33430
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33431
|
+
---------------------------------------------------------------------
|
|
33432
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
|
33433
|
+
---------------------------------------------------------------------
|
|
33434
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
33435
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
33436
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
|
33437
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
|
|
33438
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
33439
|
+
Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.3ms)
|
|
33440
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
33441
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
33442
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
33443
|
+
-----------------------------------------------------------------------------------------------
|
|
33444
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
|
33445
|
+
-----------------------------------------------------------------------------------------------
|
|
33446
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
33447
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
33448
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '71d857c8f9fbffbbef60538ce041e892' LIMIT 1[0m
|
|
33449
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:39.286066"], ["extension", "txt"], ["name", "footest barish"], ["token", "71d857c8f9fbffbbef60538ce041e892"], ["updated_at", "2014-12-22 08:49:39.286066"]]
|
|
33450
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33451
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
33452
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:49:39.294367"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:49:39.294367"]]
|
|
33453
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33454
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
33455
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
|
33456
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)[0m
|
|
33457
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%') [["movie_id", 624739301]]
|
|
33458
|
+
Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
|
|
33459
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
|
33460
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33461
|
+
--------------------------------------------------------------------
|
|
33462
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
|
33463
|
+
--------------------------------------------------------------------
|
|
33464
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
33465
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
|
|
33466
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
33467
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
|
|
33468
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
33469
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
|
33470
|
+
[1m[36mMovie Load (0.3ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)[0m
|
|
33471
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
|
|
33472
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
33473
|
+
Completed 200 OK in 10ms (Views: 1.6ms | ActiveRecord: 0.7ms)
|
|
33474
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
33475
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33476
|
+
-------------------------------------------------------------------------------
|
|
33477
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
|
33478
|
+
-------------------------------------------------------------------------------
|
|
33479
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
33480
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
33481
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
|
33482
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)[0m
|
|
33483
|
+
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
|
33484
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33485
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33486
|
+
----------------------------------------------------------------------------------
|
|
33487
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
|
33488
|
+
----------------------------------------------------------------------------------
|
|
33489
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
33490
|
+
Parameters: {"id"=>"1234567890"}
|
|
33491
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
33492
|
+
Completed 404 Not Found in 1ms
|
|
33493
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
33494
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33495
|
+
--------------------------------------------------------------------
|
|
33496
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
|
33497
|
+
--------------------------------------------------------------------
|
|
33498
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33499
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
33500
|
+
Parameters: {"id"=>"591498715"}
|
|
33501
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33502
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)
|
|
33503
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
33504
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33505
|
+
--------------------------------------------------------------
|
|
33506
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
|
33507
|
+
--------------------------------------------------------------
|
|
33508
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
33509
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
33510
|
+
Parameters: {"id"=>"701625837"}
|
|
33511
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
33512
|
+
Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)
|
|
33513
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
33514
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33515
|
+
--------------------------------------------------------------------
|
|
33516
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
|
33517
|
+
--------------------------------------------------------------------
|
|
33518
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33519
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
33520
|
+
Parameters: {"id"=>"68463692"}
|
|
33521
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
33522
|
+
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
|
33523
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
33524
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
33525
|
+
-------------------------------------------------------------
|
|
33526
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
|
33527
|
+
-------------------------------------------------------------
|
|
33528
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
33529
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
33530
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837[0m [["updated_at", "2014-12-22 08:49:39.369427"], ["uploading", "t"]]
|
|
33531
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33532
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33533
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
33534
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
33535
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33536
|
+
--------------------------------------------------------
|
|
33537
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
|
33538
|
+
--------------------------------------------------------
|
|
33539
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
33540
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
33541
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:49:39.387387"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:49:39.387387"]]
|
|
33542
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33543
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
|
33544
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
33545
|
+
--------------------------------------------------
|
|
33546
|
+
ImageTest: test_should_save_image_without_resource
|
|
33547
|
+
--------------------------------------------------
|
|
33548
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33549
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:49:39.394818"], ["name", "test"], ["updated_at", "2014-12-22 08:49:39.394818"]]
|
|
33550
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33551
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
33552
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33553
|
+
--------------------------------------------------------------------
|
|
33554
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
|
33555
|
+
--------------------------------------------------------------------
|
|
33556
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33557
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33558
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
33559
|
+
Parameters: {"id"=>"591498715"}
|
|
33560
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33561
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33562
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]
|
|
33563
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33564
|
+
Completed 204 No Content in 3ms (ActiveRecord: 0.6ms)
|
|
33565
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33566
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
33567
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
33568
|
+
----------------------------------------------------------------------------------------
|
|
33569
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
|
33570
|
+
----------------------------------------------------------------------------------------
|
|
33571
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33572
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33573
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
33574
|
+
Parameters: {"id"=>"123456"}
|
|
33575
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
|
33576
|
+
Completed 404 Not Found in 1ms
|
|
33577
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33578
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
33579
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33580
|
+
--------------------------------------------------------------------
|
|
33581
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
|
33582
|
+
--------------------------------------------------------------------
|
|
33583
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33584
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
33585
|
+
Parameters: {"id"=>"591498715"}
|
|
33586
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33587
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33588
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:49:39.418404"], ["width", 800]]
|
|
33589
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33590
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
33591
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33592
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
|
|
33593
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33594
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
|
33595
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33596
|
+
------------------------------------------------------------------------------------------------
|
|
33597
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
|
33598
|
+
------------------------------------------------------------------------------------------------
|
|
33599
|
+
[1m[36mFogged::Resource Load (0.8ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33600
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33601
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
33602
|
+
Parameters: {"id"=>"68463692"}
|
|
33603
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33604
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33605
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:49:39.574533"]]
|
|
33606
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
33607
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33608
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:39.595890"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:49:39.595592"], ["updated_at", "2014-12-22 08:49:39.595890"]]
|
|
33609
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
33610
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
33611
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
33612
|
+
Completed 200 OK in 32ms (Views: 1.7ms | ActiveRecord: 3.3ms)
|
|
33613
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33614
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33615
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
|
33616
|
+
----------------------------------------------------------------------------------------
|
|
33617
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
|
33618
|
+
----------------------------------------------------------------------------------------
|
|
33619
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
33620
|
+
Parameters: {"id"=>"123456"}
|
|
33621
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
33622
|
+
Completed 404 Not Found in 2ms
|
|
33623
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
33624
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33625
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
33626
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 517391740)
|
|
33627
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 701625837)[0m
|
|
33628
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 819504217)
|
|
33629
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 132093124)[0m
|
|
33630
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 431685987)
|
|
33631
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 68463692)[0m
|
|
33632
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 591498715)
|
|
33633
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:49:39', '2014-12-22 08:49:39', 538821867)[0m
|
|
33634
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
33635
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 579229346)[0m
|
|
33636
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 153115190)
|
|
33637
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
33638
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 419883833, 624739301, 701625837)
|
|
33639
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 849405871, 624739301, 819504217)[0m
|
|
33640
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 98413728, 245026679, 784085492)
|
|
33641
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 779853880, 245026679, 431685987)[0m
|
|
33642
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
33643
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 624739301)[0m
|
|
33644
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 245026679)
|
|
33645
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 948421225)[0m
|
|
33646
|
+
[1m[35m (1.0ms)[0m commit transaction
|
|
33647
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
33648
|
+
-------------------------------------------------------------
|
|
33649
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
|
33650
|
+
-------------------------------------------------------------
|
|
33651
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
33652
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
|
33653
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
|
|
33654
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33655
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-12-22 08:49:39.821979"], ["uploading", "t"]]
|
|
33656
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33657
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
33658
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
33659
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
|
33660
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33661
|
+
---------------------------------------------------
|
|
33662
|
+
MovieTest: test_should_save_movie_with_no_resources
|
|
33663
|
+
---------------------------------------------------
|
|
33664
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
|
33665
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-12-22 08:49:39.834540"], ["name", "test"], ["updated_at", "2014-12-22 08:49:39.834540"]]
|
|
33666
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33667
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
|
33668
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
33669
|
+
--------------------------------------------------------
|
|
33670
|
+
MovieTest: test_should_save_movie_with_several_resources
|
|
33671
|
+
--------------------------------------------------------
|
|
33672
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
33673
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
|
33674
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33675
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:49:39.845791"], ["name", "test"], ["updated_at", "2014-12-22 08:49:39.845791"]]
|
|
33676
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:49:39.848862"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:49:39.848862"]]
|
|
33677
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:39.851525"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:49:39.851525"]]
|
|
33678
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33679
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
33680
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33681
|
+
--------------------------------------------------------------------------------------
|
|
33682
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
|
33683
|
+
--------------------------------------------------------------------------------------
|
|
33684
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33685
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
33686
|
+
Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
|
|
33687
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
|
33688
|
+
Completed 404 Not Found in 1ms
|
|
33689
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33690
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33691
|
+
------------------------------------------------------------------
|
|
33692
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
|
33693
|
+
------------------------------------------------------------------
|
|
33694
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
33695
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
33696
|
+
Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
|
|
33697
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33698
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
33699
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715[0m [["name", "Update"], ["updated_at", "2014-12-22 08:49:39.872346"]]
|
|
33700
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33701
|
+
Completed 200 OK in 7ms (Views: 1.7ms | ActiveRecord: 1.0ms)
|
|
33702
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33703
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
33704
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
33705
|
+
------------------------------------------------------------------
|
|
33706
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
|
33707
|
+
------------------------------------------------------------------
|
|
33708
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33709
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33710
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
33711
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33712
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2d32de6e13efb96224c61ea2cf64d915' LIMIT 1
|
|
33713
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "image/png"], ["created_at", "2014-12-22 08:49:39.891839"], ["extension", "png"], ["name", "Dummy"], ["token", "2d32de6e13efb96224c61ea2cf64d915"], ["updated_at", "2014-12-22 08:49:39.891839"], ["uploading", "t"]]
|
|
33714
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33715
|
+
Completed 200 OK in 9ms (Views: 2.4ms | ActiveRecord: 1.3ms)
|
|
33716
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33717
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
|
33718
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
|
33719
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
33720
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33721
|
+
--------------------------------------------------------------------------------------------
|
|
33722
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
|
33723
|
+
--------------------------------------------------------------------------------------------
|
|
33724
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33725
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33726
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
|
33727
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33728
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
33729
|
+
Completed 422 Unprocessable Entity in 5ms
|
|
33730
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33731
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33732
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
33733
|
+
-------------------------------------------------------------------------------------------
|
|
33734
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
|
33735
|
+
-------------------------------------------------------------------------------------------
|
|
33736
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33737
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33738
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
|
33739
|
+
Completed 400 Bad Request in 1ms
|
|
33740
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33741
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33743
|
+
---------------------------------------------------------------------------------------
|
|
33744
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
|
33745
|
+
---------------------------------------------------------------------------------------
|
|
33746
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33747
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33748
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
|
|
33749
|
+
Completed 400 Bad Request in 0ms
|
|
33750
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33751
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33752
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
33753
|
+
-----------------------------------------------------------------------------------
|
|
33754
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
|
33755
|
+
-----------------------------------------------------------------------------------
|
|
33756
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33757
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33758
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
33759
|
+
Completed 400 Bad Request in 1ms
|
|
33760
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33761
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33762
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33763
|
+
-------------------------------------------------------------------------------------------------
|
|
33764
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
|
33765
|
+
-------------------------------------------------------------------------------------------------
|
|
33766
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
33767
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
33768
|
+
Completed 400 Bad Request in 0ms
|
|
33769
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
33770
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33771
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33772
|
+
-------------------------------------------------------
|
|
33773
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
|
33774
|
+
-------------------------------------------------------
|
|
33775
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
33776
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
33777
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33778
|
+
-----------------------------------------------------------------------------------
|
|
33779
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
|
|
33780
|
+
-----------------------------------------------------------------------------------
|
|
33781
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33782
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33783
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33784
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33785
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867[0m [["encoding_progress", 55], ["updated_at", "2014-12-22 08:49:40.041944"]]
|
|
33786
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
33787
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33788
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:40.061142"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:49:39.000000000 Z\n updated_at: 2014-12-22 08:49:40.041944000 Z\n"], ["run_at", "2014-12-22 08:49:50.045142"], ["updated_at", "2014-12-22 08:49:40.061142"]]
|
|
33789
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
33790
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33791
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33792
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
33793
|
+
--------------------------------------------------------------------------------
|
|
33794
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
|
|
33795
|
+
--------------------------------------------------------------------------------
|
|
33796
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33797
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33798
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33799
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33800
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867[0m [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:49:40.313288"], ["width", 800]]
|
|
33801
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
33802
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
33803
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
33804
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
33805
|
+
--------------------------------------------------------------------------------
|
|
33806
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
|
|
33807
|
+
--------------------------------------------------------------------------------
|
|
33808
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33809
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33810
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33811
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
33812
|
+
--------------------------------------------------------------------------------
|
|
33813
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
|
|
33814
|
+
--------------------------------------------------------------------------------
|
|
33815
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33816
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33817
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33818
|
+
[1m[35m (0.3ms)[0m begin transaction
|
|
33819
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867[0m [["encoding_progress", 55], ["updated_at", "2014-12-22 08:49:40.836019"]]
|
|
33820
|
+
[1m[35m (4.9ms)[0m commit transaction
|
|
33821
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
33822
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:40.873546"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:49:39.000000000 Z\n updated_at: 2014-12-22 08:49:40.836019000 Z\n"], ["run_at", "2014-12-22 08:49:50.845286"], ["updated_at", "2014-12-22 08:49:40.873546"]]
|
|
33823
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
|
33824
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33825
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
33826
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
33827
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
33828
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 517391740)
|
|
33829
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 701625837)[0m
|
|
33830
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 819504217)
|
|
33831
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 132093124)[0m
|
|
33832
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 431685987)
|
|
33833
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 68463692)[0m
|
|
33834
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 591498715)
|
|
33835
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:49:41', '2014-12-22 08:49:41', 538821867)[0m
|
|
33836
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
33837
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 579229346)[0m
|
|
33838
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 153115190)
|
|
33839
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
33840
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:41', '2014-12-22 08:49:41', 419883833, 624739301, 701625837)
|
|
33841
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:41', '2014-12-22 08:49:41', 849405871, 624739301, 819504217)[0m
|
|
33842
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:41', '2014-12-22 08:49:41', 98413728, 245026679, 784085492)
|
|
33843
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:41', '2014-12-22 08:49:41', 779853880, 245026679, 431685987)[0m
|
|
33844
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
33845
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 624739301)[0m
|
|
33846
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 245026679)
|
|
33847
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 948421225)[0m
|
|
33848
|
+
[1m[35m (1.0ms)[0m commit transaction
|
|
33849
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33850
|
+
---------------------------------------------------
|
|
33851
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
|
33852
|
+
---------------------------------------------------
|
|
33853
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
33854
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c7cf9b9948846e1871c5c770dc3a5ffb' LIMIT 1[0m
|
|
33855
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.074179"], ["extension", "txt"], ["name", "Test"], ["token", "c7cf9b9948846e1871c5c770dc3a5ffb"], ["updated_at", "2014-12-22 08:49:41.074179"], ["uploading", "f"]]
|
|
33856
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33857
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
33858
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
33859
|
+
----------------------------------------------------------------------------
|
|
33860
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
|
33861
|
+
----------------------------------------------------------------------------
|
|
33862
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
33863
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '93291f86f01f0f4dc67295c4cef8e614' LIMIT 1[0m
|
|
33864
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.079381"], ["extension", "txt"], ["name", "Test"], ["token", "93291f86f01f0f4dc67295c4cef8e614"], ["updated_at", "2014-12-22 08:49:41.079381"], ["uploading", "f"]]
|
|
33865
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33866
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
33867
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 819504218]]
|
|
33868
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33869
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
|
33870
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33871
|
+
-------------------------------------------------------------------------
|
|
33872
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
|
33873
|
+
-------------------------------------------------------------------------
|
|
33874
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33875
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c70f7ef155dc2acd64a03dbcfa3536b3' LIMIT 1
|
|
33876
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.090129"], ["extension", "txt"], ["name", "Test"], ["token", "c70f7ef155dc2acd64a03dbcfa3536b3"], ["updated_at", "2014-12-22 08:49:41.090129"], ["uploading", "f"]]
|
|
33877
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33878
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
33879
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
33880
|
+
-------------------------------------------------------------
|
|
33881
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
|
33882
|
+
-------------------------------------------------------------
|
|
33883
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33884
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '96f144fff790341fea1b243cdee10b88' LIMIT 1
|
|
33885
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.095709"], ["extension", "txt"], ["name", "Test"], ["token", "96f144fff790341fea1b243cdee10b88"], ["updated_at", "2014-12-22 08:49:41.095709"], ["uploading", "f"]]
|
|
33886
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33887
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
|
33888
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
33889
|
+
------------------------------------------------------
|
|
33890
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
|
33891
|
+
------------------------------------------------------
|
|
33892
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33893
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '652754bd40248d89439aa848559392b6' LIMIT 1
|
|
33894
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.102573"], ["extension", "txt"], ["name", "Test"], ["token", "652754bd40248d89439aa848559392b6"], ["updated_at", "2014-12-22 08:49:41.102573"], ["uploading", "f"]]
|
|
33895
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33896
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
33897
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33898
|
+
----------------------------------------------------------------------------
|
|
33899
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
|
33900
|
+
----------------------------------------------------------------------------
|
|
33901
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33902
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
33903
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
33904
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33905
|
+
-------------------------------------------------------------------------
|
|
33906
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
|
33907
|
+
-------------------------------------------------------------------------
|
|
33908
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33909
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
33910
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
33911
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
33912
|
+
--------------------------------------------------------
|
|
33913
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
|
33914
|
+
--------------------------------------------------------
|
|
33915
|
+
[1m[36mFogged::Resource Load (0.6ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
33916
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
|
33917
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715[0m [["height", 600], ["updated_at", "2014-12-22 08:49:41.118416"], ["width", 800]]
|
|
33918
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33919
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
|
33920
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
33921
|
+
--------------------------------------------------------
|
|
33922
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
|
33923
|
+
--------------------------------------------------------
|
|
33924
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
33925
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
33926
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33927
|
+
------------------------------------------------------------------------------
|
|
33928
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
|
33929
|
+
------------------------------------------------------------------------------
|
|
33930
|
+
[1m[35mFogged::Resource Load (0.9ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
33931
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
33932
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33933
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:49:41.228607"]]
|
|
33934
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
33935
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33936
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:41.248393"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:49:41.248099"], ["updated_at", "2014-12-22 08:49:41.248393"]]
|
|
33937
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
33938
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
33939
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
33940
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
33941
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
33942
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "fogged_resources"
|
|
33943
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 517391740)[0m
|
|
33944
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 701625837)
|
|
33945
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 819504217)[0m
|
|
33946
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 132093124)
|
|
33947
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 431685987)[0m
|
|
33948
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 68463692)
|
|
33949
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 591498715)[0m
|
|
33950
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:51:56', '2014-12-22 08:51:56', 538821867)
|
|
33951
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
33952
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 579229346)
|
|
33953
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 153115190)[0m
|
|
33954
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
33955
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:56', '2014-12-22 08:51:56', 419883833, 624739301, 701625837)[0m
|
|
33956
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:56', '2014-12-22 08:51:56', 849405871, 624739301, 819504217)
|
|
33957
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:56', '2014-12-22 08:51:56', 98413728, 245026679, 784085492)[0m
|
|
33958
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:56', '2014-12-22 08:51:56', 779853880, 245026679, 431685987)
|
|
33959
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
33960
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 624739301)
|
|
33961
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 245026679)[0m
|
|
33962
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 948421225)
|
|
33963
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
33964
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
33965
|
+
-------------------------------------------------------------
|
|
33966
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
|
33967
|
+
-------------------------------------------------------------
|
|
33968
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
33969
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
|
33970
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 431685987]]
|
|
33971
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
33972
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987[0m [["updated_at", "2014-12-22 08:51:56.914927"], ["uploading", "t"]]
|
|
33973
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33974
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33975
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
33976
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
33977
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
33978
|
+
---------------------------------------------------
|
|
33979
|
+
MovieTest: test_should_save_movie_with_no_resources
|
|
33980
|
+
---------------------------------------------------
|
|
33981
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
33982
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:51:56.926461"], ["name", "test"], ["updated_at", "2014-12-22 08:51:56.926461"]]
|
|
33983
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
33984
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
33985
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
33986
|
+
--------------------------------------------------------
|
|
33987
|
+
MovieTest: test_should_save_movie_with_several_resources
|
|
33988
|
+
--------------------------------------------------------
|
|
33989
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
33990
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
|
33991
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
33992
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-12-22 08:51:56.931722"], ["name", "test"], ["updated_at", "2014-12-22 08:51:56.931722"]]
|
|
33993
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:56.932725"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:51:56.932725"]]
|
|
33994
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:51:56.933825"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:51:56.933825"]]
|
|
33995
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
33996
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
|
33997
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
33998
|
+
----------------------
|
|
33999
|
+
FoggedTest: test_truth
|
|
34000
|
+
----------------------
|
|
34001
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
34002
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
34003
|
+
--------------------------------------------------------------------
|
|
34004
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
|
34005
|
+
--------------------------------------------------------------------
|
|
34006
|
+
[1m[36mFogged::Resource Load (0.4ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
34007
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
34008
|
+
Parameters: {"id"=>"591498715"}
|
|
34009
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
34010
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
34011
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:51:56.951025"], ["width", 800]]
|
|
34012
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34013
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
34014
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34015
|
+
Completed 200 OK in 67ms (Views: 62.7ms | ActiveRecord: 0.5ms)
|
|
34016
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
34017
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
|
34018
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34019
|
+
------------------------------------------------------------------------------------------------
|
|
34020
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
|
34021
|
+
------------------------------------------------------------------------------------------------
|
|
34022
|
+
[1m[36mFogged::Resource Load (1.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
34023
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
34024
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
34025
|
+
Parameters: {"id"=>"68463692"}
|
|
34026
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
34027
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34028
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:51:57.150027"]]
|
|
34029
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
34030
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34031
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:57.178215"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:51:57.177917"], ["updated_at", "2014-12-22 08:51:57.178215"]]
|
|
34032
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
34033
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34034
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
34035
|
+
Completed 200 OK in 42ms (Views: 2.7ms | ActiveRecord: 3.5ms)
|
|
34036
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
34037
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
34038
|
+
[1m[36m (1.0ms)[0m [1mbegin transaction[0m
|
|
34039
|
+
----------------------------------------------------------------------------------------
|
|
34040
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
|
34041
|
+
----------------------------------------------------------------------------------------
|
|
34042
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
34043
|
+
Parameters: {"id"=>"123456"}
|
|
34044
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
34045
|
+
Completed 404 Not Found in 2ms
|
|
34046
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34047
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34048
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
34049
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 517391740)
|
|
34050
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 701625837)[0m
|
|
34051
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 819504217)
|
|
34052
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 132093124)[0m
|
|
34053
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 431685987)
|
|
34054
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 68463692)[0m
|
|
34055
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 591498715)
|
|
34056
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:51:57', '2014-12-22 08:51:57', 538821867)[0m
|
|
34057
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
34058
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 579229346)[0m
|
|
34059
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 153115190)
|
|
34060
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
34061
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:57', '2014-12-22 08:51:57', 419883833, 624739301, 701625837)
|
|
34062
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:57', '2014-12-22 08:51:57', 849405871, 624739301, 819504217)[0m
|
|
34063
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:57', '2014-12-22 08:51:57', 98413728, 245026679, 784085492)
|
|
34064
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:57', '2014-12-22 08:51:57', 779853880, 245026679, 431685987)[0m
|
|
34065
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
34066
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 624739301)[0m
|
|
34067
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 245026679)
|
|
34068
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 948421225)[0m
|
|
34069
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
34070
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34071
|
+
-----------------------------------------------------------------------------------
|
|
34072
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
|
|
34073
|
+
-----------------------------------------------------------------------------------
|
|
34074
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34075
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
34076
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34077
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34078
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:51:57.486908"]]
|
|
34079
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
34080
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34081
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:51:57.518675"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:51:57.000000000 Z\n updated_at: 2014-12-22 08:51:57.486908000 Z\n"], ["run_at", "2014-12-22 08:52:07.490621"], ["updated_at", "2014-12-22 08:51:57.518675"]]
|
|
34082
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
34083
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
34084
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34085
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
|
34086
|
+
--------------------------------------------------------------------------------
|
|
34087
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
|
|
34088
|
+
--------------------------------------------------------------------------------
|
|
34089
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34090
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
34091
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34092
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34093
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:51:57.792198"], ["width", 800]]
|
|
34094
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
34095
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
34096
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 538821867]]
|
|
34097
|
+
[1m[36m (1.0ms)[0m [1mbegin transaction[0m
|
|
34098
|
+
--------------------------------------------------------------------------------
|
|
34099
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
|
|
34100
|
+
--------------------------------------------------------------------------------
|
|
34101
|
+
[1m[35mFogged::Resource Load (0.4ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34102
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
34103
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34104
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
34105
|
+
--------------------------------------------------------------------------------
|
|
34106
|
+
Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
|
|
34107
|
+
--------------------------------------------------------------------------------
|
|
34108
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34109
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
34110
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34111
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34112
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:51:58.294049"]]
|
|
34113
|
+
[1m[36m (4.8ms)[0m [1mcommit transaction[0m
|
|
34114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34115
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:51:58.321287"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:51:57.000000000 Z\n updated_at: 2014-12-22 08:51:58.294049000 Z\n"], ["run_at", "2014-12-22 08:52:08.302277"], ["updated_at", "2014-12-22 08:51:58.321287"]]
|
|
34116
|
+
[1m[35m (1.3ms)[0m commit transaction
|
|
34117
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
34118
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
|
|
34119
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
34120
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
|
34121
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 517391740)[0m
|
|
34122
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 701625837)
|
|
34123
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 819504217)[0m
|
|
34124
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 132093124)
|
|
34125
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 431685987)[0m
|
|
34126
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 68463692)
|
|
34127
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 591498715)[0m
|
|
34128
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:51:58', '2014-12-22 08:51:58', 538821867)
|
|
34129
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
34130
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 579229346)
|
|
34131
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 153115190)[0m
|
|
34132
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
34133
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 419883833, 624739301, 701625837)[0m
|
|
34134
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 849405871, 624739301, 819504217)
|
|
34135
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 98413728, 245026679, 784085492)[0m
|
|
34136
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 779853880, 245026679, 431685987)
|
|
34137
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
34138
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 624739301)
|
|
34139
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 245026679)[0m
|
|
34140
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 948421225)
|
|
34141
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
34142
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
34143
|
+
-------------------------------------------------------
|
|
34144
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
|
34145
|
+
-------------------------------------------------------
|
|
34146
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
34147
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
34148
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34149
|
+
----------------------------------------------------------------------------------
|
|
34150
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
|
34151
|
+
----------------------------------------------------------------------------------
|
|
34152
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
34153
|
+
Parameters: {"id"=>"1234567890"}
|
|
34154
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
34155
|
+
Completed 404 Not Found in 1ms
|
|
34156
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34157
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
34158
|
+
--------------------------------------------------------------------
|
|
34159
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
|
34160
|
+
--------------------------------------------------------------------
|
|
34161
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
34162
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
34163
|
+
Parameters: {"id"=>"591498715"}
|
|
34164
|
+
[1m[35mFogged::Resource Load (0.4ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
34165
|
+
Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.4ms)
|
|
34166
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34167
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34168
|
+
--------------------------------------------------------------
|
|
34169
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
|
34170
|
+
--------------------------------------------------------------
|
|
34171
|
+
[1m[36mFogged::Resource Load (0.4ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
34172
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
34173
|
+
Parameters: {"id"=>"701625837"}
|
|
34174
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
34175
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.3ms)
|
|
34176
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34177
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
34178
|
+
--------------------------------------------------------------------
|
|
34179
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
|
34180
|
+
--------------------------------------------------------------------
|
|
34181
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
34182
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
34183
|
+
Parameters: {"id"=>"68463692"}
|
|
34184
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
34185
|
+
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
|
34186
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
34187
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
34188
|
+
---------------------------------------------------
|
|
34189
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
|
34190
|
+
---------------------------------------------------
|
|
34191
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
34192
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'aa2249eb18591d68a802219c57b6b1b5' LIMIT 1
|
|
34193
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.564901"], ["extension", "txt"], ["name", "Test"], ["token", "aa2249eb18591d68a802219c57b6b1b5"], ["updated_at", "2014-12-22 08:51:58.564901"], ["uploading", "f"]]
|
|
34194
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
34195
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
34196
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34197
|
+
----------------------------------------------------------------------------
|
|
34198
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
|
34199
|
+
----------------------------------------------------------------------------
|
|
34200
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
34201
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '08bf1efaad0e5622259fff0022f8c6e4' LIMIT 1
|
|
34202
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.569178"], ["extension", "txt"], ["name", "Test"], ["token", "08bf1efaad0e5622259fff0022f8c6e4"], ["updated_at", "2014-12-22 08:51:58.569178"], ["uploading", "f"]]
|
|
34203
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
34204
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
34205
|
+
[1m[35mSQL (1.3ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]
|
|
34206
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34207
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
34208
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
34209
|
+
-------------------------------------------------------------------------
|
|
34210
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
|
34211
|
+
-------------------------------------------------------------------------
|
|
34212
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
34213
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2e95e4b25fc17fa5b6846c926f2c813d' LIMIT 1[0m
|
|
34214
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.577657"], ["extension", "txt"], ["name", "Test"], ["token", "2e95e4b25fc17fa5b6846c926f2c813d"], ["updated_at", "2014-12-22 08:51:58.577657"], ["uploading", "f"]]
|
|
34215
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34216
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
34217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34218
|
+
-------------------------------------------------------------
|
|
34219
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
|
34220
|
+
-------------------------------------------------------------
|
|
34221
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
34222
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a43983409218b772271b8a2490f783d7' LIMIT 1[0m
|
|
34223
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.581000"], ["extension", "txt"], ["name", "Test"], ["token", "a43983409218b772271b8a2490f783d7"], ["updated_at", "2014-12-22 08:51:58.581000"], ["uploading", "f"]]
|
|
34224
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34225
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
|
34226
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34227
|
+
------------------------------------------------------
|
|
34228
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
|
34229
|
+
------------------------------------------------------
|
|
34230
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
34231
|
+
[1m[36mFogged::Resource Load (0.7ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e0c6e1bc9638327fce1a86741383504b' LIMIT 1[0m
|
|
34232
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.589267"], ["extension", "txt"], ["name", "Test"], ["token", "e0c6e1bc9638327fce1a86741383504b"], ["updated_at", "2014-12-22 08:51:58.589267"], ["uploading", "f"]]
|
|
34233
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34234
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
34235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34236
|
+
----------------------------------------------------------------------------
|
|
34237
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
|
34238
|
+
----------------------------------------------------------------------------
|
|
34239
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
34240
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
34241
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
34242
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34243
|
+
-------------------------------------------------------------------------
|
|
34244
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
|
34245
|
+
-------------------------------------------------------------------------
|
|
34246
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
34247
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
34248
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
34249
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
34250
|
+
--------------------------------------------------------
|
|
34251
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
|
34252
|
+
--------------------------------------------------------
|
|
34253
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
34254
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
34255
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:51:58.602710"], ["width", 800]]
|
|
34256
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34257
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
34258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34259
|
+
--------------------------------------------------------
|
|
34260
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
|
34261
|
+
--------------------------------------------------------
|
|
34262
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
|
|
34263
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34264
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34265
|
+
------------------------------------------------------------------------------
|
|
34266
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
|
34267
|
+
------------------------------------------------------------------------------
|
|
34268
|
+
[1m[36mFogged::Resource Load (0.7ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
34269
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
34270
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34271
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:51:58.708229"]]
|
|
34272
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
34273
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34274
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:51:58.726036"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:51:58.725762"], ["updated_at", "2014-12-22 08:51:58.726036"]]
|
|
34275
|
+
[1m[35m (0.6ms)[0m commit transaction
|
|
34276
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
34277
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
|
34278
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "fogged_resources"
|
|
34279
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 517391740)[0m
|
|
34280
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 701625837)
|
|
34281
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 819504217)[0m
|
|
34282
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 132093124)
|
|
34283
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 431685987)[0m
|
|
34284
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 68463692)
|
|
34285
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 591498715)[0m
|
|
34286
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:51:58', '2014-12-22 08:51:58', 538821867)
|
|
34287
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
34288
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 579229346)
|
|
34289
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 153115190)[0m
|
|
34290
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
34291
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 419883833, 624739301, 701625837)[0m
|
|
34292
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 849405871, 624739301, 819504217)
|
|
34293
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 98413728, 245026679, 784085492)[0m
|
|
34294
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 779853880, 245026679, 431685987)
|
|
34295
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
34296
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 624739301)
|
|
34297
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 245026679)[0m
|
|
34298
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 948421225)
|
|
34299
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
34300
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34301
|
+
------------------------------------------------------------------
|
|
34302
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
|
34303
|
+
------------------------------------------------------------------
|
|
34304
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
34305
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
34306
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
34307
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
34308
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'efc84f3d6518195c454f6abdb43e12c6' LIMIT 1[0m
|
|
34309
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-12-22 08:51:58.926025"], ["extension", "png"], ["name", "Dummy"], ["token", "efc84f3d6518195c454f6abdb43e12c6"], ["updated_at", "2014-12-22 08:51:58.926025"], ["uploading", "t"]]
|
|
34310
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34311
|
+
Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.6ms)
|
|
34312
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
34313
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
|
34314
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
|
34315
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
34316
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34317
|
+
--------------------------------------------------------------------------------------------
|
|
34318
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
|
34319
|
+
--------------------------------------------------------------------------------------------
|
|
34320
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
34321
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
34322
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
|
34323
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
34324
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
34325
|
+
Completed 422 Unprocessable Entity in 5ms
|
|
34326
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
34327
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34328
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34329
|
+
-------------------------------------------------------------------------------------------
|
|
34330
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
|
34331
|
+
-------------------------------------------------------------------------------------------
|
|
34332
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
34333
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
34334
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
|
34335
|
+
Completed 400 Bad Request in 1ms
|
|
34336
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
34337
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34339
|
+
---------------------------------------------------------------------------------------
|
|
34340
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
|
34341
|
+
---------------------------------------------------------------------------------------
|
|
34342
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
34343
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
34344
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
|
|
34345
|
+
Completed 400 Bad Request in 1ms
|
|
34346
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
34347
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34348
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34349
|
+
-----------------------------------------------------------------------------------
|
|
34350
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
|
34351
|
+
-----------------------------------------------------------------------------------
|
|
34352
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
34353
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
34354
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
34355
|
+
Completed 400 Bad Request in 1ms
|
|
34356
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
34357
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34358
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
34359
|
+
-------------------------------------------------------------------------------------------------
|
|
34360
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
|
34361
|
+
-------------------------------------------------------------------------------------------------
|
|
34362
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
34363
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
34364
|
+
Completed 400 Bad Request in 0ms
|
|
34365
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
34366
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34367
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34368
|
+
----------------------------------------------------------------
|
|
34369
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
|
34370
|
+
----------------------------------------------------------------
|
|
34371
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
34372
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
34373
|
+
[1m[36m (1.3ms)[0m [1mbegin transaction[0m
|
|
34374
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:51:59.062908"]]
|
|
34375
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
34376
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
34377
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:51:59.081942"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:51:59.081384"], ["updated_at", "2014-12-22 08:51:59.081942"]]
|
|
34378
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
34379
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
34380
|
+
[1m[35m (0.7ms)[0m begin transaction
|
|
34381
|
+
--------------------------------------------------------------------
|
|
34382
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
|
|
34383
|
+
--------------------------------------------------------------------
|
|
34384
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 68463692]]
|
|
34385
|
+
[1m[35mFogged::Resource Load (0.7ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
34386
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
34387
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
34388
|
+
[1m[35m (0.7ms)[0m begin transaction
|
|
34389
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
34390
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 517391740)
|
|
34391
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 701625837)[0m
|
|
34392
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 819504217)
|
|
34393
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 132093124)[0m
|
|
34394
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 431685987)
|
|
34395
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 68463692)[0m
|
|
34396
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 591498715)
|
|
34397
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', 1234567890, 10, '2014-12-22 08:51:59', '2014-12-22 08:51:59', 538821867)[0m
|
|
34398
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
34399
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 579229346)[0m
|
|
34400
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 153115190)
|
|
34401
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
34402
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:59', '2014-12-22 08:51:59', 419883833, 624739301, 701625837)
|
|
34403
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:59', '2014-12-22 08:51:59', 849405871, 624739301, 819504217)[0m
|
|
34404
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:59', '2014-12-22 08:51:59', 98413728, 245026679, 784085492)
|
|
34405
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:59', '2014-12-22 08:51:59', 779853880, 245026679, 431685987)[0m
|
|
34406
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
34407
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 624739301)[0m
|
|
34408
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 245026679)
|
|
34409
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 948421225)[0m
|
|
34410
|
+
[1m[35m (1.0ms)[0m commit transaction
|
|
34411
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34412
|
+
------------------------------------------------------------------------
|
|
34413
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
|
34414
|
+
------------------------------------------------------------------------
|
|
34415
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
34416
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
34417
|
+
Parameters: {"type"=>"movie"}
|
|
34418
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
|
34419
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
|
|
34420
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
34421
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
|
|
34422
|
+
Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.4ms)
|
|
34423
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
|
34424
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
|
|
34425
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
34426
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
|
|
34427
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
34428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34429
|
+
---------------------------------------------------------------------
|
|
34430
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
|
34431
|
+
---------------------------------------------------------------------
|
|
34432
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
34433
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
34434
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
|
34435
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
|
|
34436
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
34437
|
+
Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
|
34438
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
|
|
34439
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
34440
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
34441
|
+
-----------------------------------------------------------------------------------------------
|
|
34442
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
|
34443
|
+
-----------------------------------------------------------------------------------------------
|
|
34444
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
34445
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
34446
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5f6956d8c169c122c8a1c626b80933ec' LIMIT 1[0m
|
|
34447
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:59.539957"], ["extension", "txt"], ["name", "footest barish"], ["token", "5f6956d8c169c122c8a1c626b80933ec"], ["updated_at", "2014-12-22 08:51:59.539957"]]
|
|
34448
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34449
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
34450
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-12-22 08:51:59.548672"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:51:59.548672"]]
|
|
34451
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
34452
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
34453
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
|
34454
|
+
[1m[36mMovie Load (0.3ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)[0m
|
|
34455
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%') [["movie_id", 624739301]]
|
|
34456
|
+
Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.6ms)
|
|
34457
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
|
34458
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34459
|
+
--------------------------------------------------------------------
|
|
34460
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
|
34461
|
+
--------------------------------------------------------------------
|
|
34462
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
34463
|
+
[1m[35mMovie Load (0.0ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
|
|
34464
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
34465
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
|
|
34466
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
34467
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
|
34468
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)[0m
|
|
34469
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
|
|
34470
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 624739301]]
|
|
34471
|
+
Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.4ms)
|
|
34472
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
34473
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
34474
|
+
-------------------------------------------------------------------------------
|
|
34475
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
|
34476
|
+
-------------------------------------------------------------------------------
|
|
34477
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
34478
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
34479
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
|
34480
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)[0m
|
|
34481
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
|
34482
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
34483
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34484
|
+
-------------------------------------------------------------
|
|
34485
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
|
34486
|
+
-------------------------------------------------------------
|
|
34487
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
34488
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
34489
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-12-22 08:51:59.585274"], ["uploading", "t"]]
|
|
34490
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
34492
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
34493
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
34494
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34495
|
+
--------------------------------------------------------
|
|
34496
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
|
34497
|
+
--------------------------------------------------------
|
|
34498
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
34499
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
34500
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:59.591623"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:51:59.591623"]]
|
|
34501
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
34502
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
34503
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34504
|
+
--------------------------------------------------
|
|
34505
|
+
ImageTest: test_should_save_image_without_resource
|
|
34506
|
+
--------------------------------------------------
|
|
34507
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
34508
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-12-22 08:51:59.596107"], ["name", "test"], ["updated_at", "2014-12-22 08:51:59.596107"]]
|
|
34509
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
34510
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
|
34511
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
34512
|
+
--------------------------------------------------------------------
|
|
34513
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
|
34514
|
+
--------------------------------------------------------------------
|
|
34515
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
34516
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
34517
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
34518
|
+
Parameters: {"id"=>"591498715"}
|
|
34519
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
34520
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
|
34521
|
+
[1m[36mSQL (0.8ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 591498715]]
|
|
34522
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
34523
|
+
Completed 204 No Content in 7ms (ActiveRecord: 1.4ms)
|
|
34524
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
34525
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
|
34526
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34527
|
+
----------------------------------------------------------------------------------------
|
|
34528
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
|
34529
|
+
----------------------------------------------------------------------------------------
|
|
34530
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
34531
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
34532
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
34533
|
+
Parameters: {"id"=>"123456"}
|
|
34534
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
34535
|
+
Completed 404 Not Found in 1ms
|
|
34536
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
34537
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
34538
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
34539
|
+
--------------------------------------------------------------------------------------
|
|
34540
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
|
34541
|
+
--------------------------------------------------------------------------------------
|
|
34542
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
34543
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
34544
|
+
Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
|
|
34545
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
|
34546
|
+
Completed 404 Not Found in 1ms
|
|
34547
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
34548
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
34549
|
+
------------------------------------------------------------------
|
|
34550
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
|
34551
|
+
------------------------------------------------------------------
|
|
34552
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
|
|
34553
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
34554
|
+
Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
|
|
34555
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
34556
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
34557
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715[0m [["name", "Update"], ["updated_at", "2014-12-22 08:51:59.636192"]]
|
|
34558
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
34559
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)
|
|
34560
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 591498715]]
|
|
34561
|
+
[1m[35m (0.4ms)[0m rollback transaction
|