fogged 0.0.6 → 0.0.7
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad646f9f7cfd9be779ae57ca7f2ebe24f2d5ec74
|
|
4
|
+
data.tar.gz: 0abe6f9c1f91769501a60a71cd598ac0523d5679
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2daa02f2ed3e3e81ddf3bb0217b8ff09a2608856247629abe67d00f3be7e5f8a3677fff781c7baf2f884dcdf0e83c610cbb239660d8695bf84a4b2e58e444ce0
|
|
7
|
+
data.tar.gz: f064beb63c69298f3d2c37f8ff96a53c098dda15af9efe34931bc7d2f29bad8a1c1bd9db826d038dfc388edf25df3281f5304b09cabcbc8d4e704b3f424bbf5b
|
data/lib/fogged/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
data/test/dummy/log/test.log
CHANGED
|
@@ -107983,3 +107983,2534 @@ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
|
|
107983
107983
|
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d311dfb4-45ef-44fa-99ff-cb6e55b9e304] [1m[35m (0.1ms)[0m commit transaction
|
|
107984
107984
|
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d311dfb4-45ef-44fa-99ff-cb6e55b9e304] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 2002.06ms
|
|
107985
107985
|
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
107986
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
107987
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
107988
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
107989
|
+
[1m[35mFixture Insert (0.4ms)[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', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 517391740)
|
|
107990
|
+
[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', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 701625837)[0m
|
|
107991
|
+
[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', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 819504217)
|
|
107992
|
+
[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', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 132093124)[0m
|
|
107993
|
+
[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', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 431685987)
|
|
107994
|
+
[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 0', 'mov0', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 620280917)[0m
|
|
107995
|
+
[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', 'mov1', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 335514824)
|
|
107996
|
+
[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 2', 'mov2', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 183950720)[0m
|
|
107997
|
+
[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 3', 'mov3', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 1039265257)
|
|
107998
|
+
[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 4', 'mov4', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 596998220)[0m
|
|
107999
|
+
[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 0', 'png0', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 433078596)
|
|
108000
|
+
[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', 'png1', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 785871319)[0m
|
|
108001
|
+
[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 2', 'png2', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 937304175)
|
|
108002
|
+
[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 3', 'png3', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 14225656)[0m
|
|
108003
|
+
[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 4', 'png4', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 515736925)
|
|
108004
|
+
[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, '2016-01-18 14:28:30', '2016-01-18 14:28:30', 538821867)[0m
|
|
108005
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:30', '2016-01-18 14:28:30', 731805050)
|
|
108006
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "images"[0m
|
|
108007
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 579229346)
|
|
108008
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 153115190)[0m
|
|
108009
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "movie_fogged_resources"
|
|
108010
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:30', '2016-01-18 14:28:30', 419883833, 624739301, 701625837)[0m
|
|
108011
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:30', '2016-01-18 14:28:30', 849405871, 624739301, 819504217)
|
|
108012
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:30', '2016-01-18 14:28:30', 98413728, 245026679, 784085492)[0m
|
|
108013
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:30', '2016-01-18 14:28:30', 779853880, 245026679, 431685987)
|
|
108014
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "movies"[0m
|
|
108015
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 624739301)
|
|
108016
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 245026679)[0m
|
|
108017
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 948421225)
|
|
108018
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
|
108019
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108020
|
+
------------------------------------------------------------------------
|
|
108021
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
|
108022
|
+
------------------------------------------------------------------------
|
|
108023
|
+
[1m[36mMovie Load (0.3ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
108024
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
108025
|
+
Parameters: {"type"=>"movie"}
|
|
108026
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies"
|
|
108027
|
+
[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]]
|
|
108028
|
+
[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]]
|
|
108029
|
+
[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]]
|
|
108030
|
+
Completed 200 OK in 44ms (Views: 3.9ms | ActiveRecord: 0.5ms)
|
|
108031
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies"
|
|
108032
|
+
[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]]
|
|
108033
|
+
[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]]
|
|
108034
|
+
[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]]
|
|
108035
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
108036
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108037
|
+
---------------------------------------------------------------------
|
|
108038
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
|
108039
|
+
---------------------------------------------------------------------
|
|
108040
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
108041
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
108042
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
|
108043
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301[0m
|
|
108044
|
+
[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]]
|
|
108045
|
+
Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
|
108046
|
+
[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]]
|
|
108047
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
108048
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
108049
|
+
-----------------------------------------------------------------------------------------------
|
|
108050
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
|
108051
|
+
-----------------------------------------------------------------------------------------------
|
|
108052
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
108053
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108054
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "eb15a7befba1dd85bc576c3ca189c8e7"]]
|
|
108055
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("name", "extension", "content_type", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "footest barish"], ["extension", "txt"], ["content_type", "text/plain"], ["token", "eb15a7befba1dd85bc576c3ca189c8e7"], ["created_at", "2016-01-18 14:28:30.817338"], ["updated_at", "2016-01-18 14:28:30.817338"]]
|
|
108056
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108057
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108058
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265258], ["created_at", "2016-01-18 14:28:30.827386"], ["updated_at", "2016-01-18 14:28:30.827386"]]
|
|
108059
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108060
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
108061
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
|
108062
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
|
|
108063
|
+
[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]]
|
|
108064
|
+
Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)
|
|
108065
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
|
108066
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108067
|
+
--------------------------------------------------------------------
|
|
108068
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
|
108069
|
+
--------------------------------------------------------------------
|
|
108070
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
108071
|
+
[1m[36mMovie Load (0.0ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 245026679]]
|
|
108072
|
+
[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]]
|
|
108073
|
+
[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]]
|
|
108074
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
108075
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
|
108076
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
|
|
108077
|
+
[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]]
|
|
108078
|
+
[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]]
|
|
108079
|
+
Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.3ms)
|
|
108080
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
108081
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108082
|
+
-------------------------------------------------------------------------------
|
|
108083
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
|
108084
|
+
-------------------------------------------------------------------------------
|
|
108085
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
108086
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
108087
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
|
108088
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
|
|
108089
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
|
108090
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108091
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108092
|
+
------------------------------------------------------------------
|
|
108093
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
|
108094
|
+
------------------------------------------------------------------
|
|
108095
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
108096
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
108097
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
108098
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
108099
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "501b85960e2e59976ff143dd335b7cf9"]]
|
|
108100
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("name", "extension", "content_type", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["extension", "png"], ["content_type", "image/png"], ["uploading", "t"], ["token", "501b85960e2e59976ff143dd335b7cf9"], ["created_at", "2016-01-18 14:28:30.859244"], ["updated_at", "2016-01-18 14:28:30.859244"]]
|
|
108101
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108102
|
+
Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.5ms)
|
|
108103
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
108104
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
|
108105
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
|
108106
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
108107
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108108
|
+
--------------------------------------------------------------------------------------------
|
|
108109
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
|
108110
|
+
--------------------------------------------------------------------------------------------
|
|
108111
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
108112
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
108113
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
|
108114
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108115
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
108116
|
+
Completed 422 Unprocessable Entity in 10ms (ActiveRecord: 0.1ms)
|
|
108117
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
108118
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108119
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108120
|
+
-------------------------------------------------------------------------------------------
|
|
108121
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
|
108122
|
+
-------------------------------------------------------------------------------------------
|
|
108123
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
108124
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
108125
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
|
108126
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
|
108127
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
108128
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
108129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108130
|
+
---------------------------------------------------------------------------------------
|
|
108131
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
|
108132
|
+
---------------------------------------------------------------------------------------
|
|
108133
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
108134
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
108135
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
|
|
108136
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
|
108137
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
108138
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108139
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108140
|
+
-----------------------------------------------------------------------------------
|
|
108141
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
|
108142
|
+
-----------------------------------------------------------------------------------
|
|
108143
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
108144
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
108145
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
108146
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
|
108147
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
108148
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108150
|
+
-------------------------------------------------------------------------------------------------
|
|
108151
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
|
108152
|
+
-------------------------------------------------------------------------------------------------
|
|
108153
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
108154
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
108155
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
|
108156
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
108157
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
108158
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108159
|
+
--------------------------------------------------------------------
|
|
108160
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
|
108161
|
+
--------------------------------------------------------------------
|
|
108162
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
108163
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
108164
|
+
Parameters: {"id"=>"785871319"}
|
|
108165
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
108166
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108167
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:28:30.892881"], ["id", 785871319]]
|
|
108168
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108169
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
108170
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108171
|
+
Completed 200 OK in 7ms (Views: 1.2ms | ActiveRecord: 0.7ms)
|
|
108172
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
108173
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
108174
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108175
|
+
------------------------------------------------------------------------------------------------
|
|
108176
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
|
108177
|
+
------------------------------------------------------------------------------------------------
|
|
108178
|
+
[1m[36mFogged::Resource Load (0.9ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
108179
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
108180
|
+
Parameters: {"id"=>"335514824"}
|
|
108181
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
108182
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108183
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:28:30.958489"], ["id", 335514824]]
|
|
108184
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
108185
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108186
|
+
[1m[36m (0.2ms)[0m [1mcommit transaction[0m
|
|
108187
|
+
Completed 200 OK in 14ms (Views: 3.4ms | ActiveRecord: 1.8ms)
|
|
108188
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
108189
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
108190
|
+
----------------------------------------------------------------------------------------
|
|
108191
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
|
108192
|
+
----------------------------------------------------------------------------------------
|
|
108193
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
108194
|
+
Parameters: {"id"=>"123456"}
|
|
108195
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
108196
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
|
108197
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108198
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108199
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
108200
|
+
[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', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 517391740)
|
|
108201
|
+
[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', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 701625837)[0m
|
|
108202
|
+
[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', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 819504217)
|
|
108203
|
+
[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', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 132093124)[0m
|
|
108204
|
+
[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', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 431685987)
|
|
108205
|
+
[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 0', 'mov0', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 620280917)[0m
|
|
108206
|
+
[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', 'mov1', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 335514824)
|
|
108207
|
+
[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 2', 'mov2', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 183950720)[0m
|
|
108208
|
+
[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 3', 'mov3', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 1039265257)
|
|
108209
|
+
[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 4', 'mov4', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 596998220)[0m
|
|
108210
|
+
[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 0', 'png0', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 433078596)
|
|
108211
|
+
[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', 'png1', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 785871319)[0m
|
|
108212
|
+
[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 2', 'png2', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 937304175)
|
|
108213
|
+
[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 3', 'png3', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 14225656)[0m
|
|
108214
|
+
[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 4', 'png4', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 515736925)
|
|
108215
|
+
[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, '2016-01-18 14:28:31', '2016-01-18 14:28:31', 538821867)[0m
|
|
108216
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:31', '2016-01-18 14:28:31', 731805050)
|
|
108217
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
108218
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 579229346)
|
|
108219
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 153115190)[0m
|
|
108220
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
108221
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:31', '2016-01-18 14:28:31', 419883833, 624739301, 701625837)[0m
|
|
108222
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:31', '2016-01-18 14:28:31', 849405871, 624739301, 819504217)
|
|
108223
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:31', '2016-01-18 14:28:31', 98413728, 245026679, 784085492)[0m
|
|
108224
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:31', '2016-01-18 14:28:31', 779853880, 245026679, 431685987)
|
|
108225
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
108226
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 624739301)
|
|
108227
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 245026679)[0m
|
|
108228
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 948421225)
|
|
108229
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
108230
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108231
|
+
-------------------------------------------------------
|
|
108232
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
|
108233
|
+
-------------------------------------------------------
|
|
108234
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
108235
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
108236
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
108237
|
+
----------------------------------------------------------------------------------
|
|
108238
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
|
108239
|
+
----------------------------------------------------------------------------------
|
|
108240
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
108241
|
+
Parameters: {"id"=>"1234567890"}
|
|
108242
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
108243
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
|
108244
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108245
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
108246
|
+
--------------------------------------------------------------------
|
|
108247
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
|
108248
|
+
--------------------------------------------------------------------
|
|
108249
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
108250
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
108251
|
+
Parameters: {"id"=>"785871319"}
|
|
108252
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
108253
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
|
108254
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108256
|
+
--------------------------------------------------------------
|
|
108257
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
|
108258
|
+
--------------------------------------------------------------
|
|
108259
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
108260
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
108261
|
+
Parameters: {"id"=>"701625837"}
|
|
108262
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
108263
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
|
108264
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108265
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108266
|
+
--------------------------------------------------------------------
|
|
108267
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
|
108268
|
+
--------------------------------------------------------------------
|
|
108269
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
108270
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
108271
|
+
Parameters: {"id"=>"335514824"}
|
|
108272
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
108273
|
+
Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
|
|
108274
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108275
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108276
|
+
----------------------------------------------------------------
|
|
108277
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
|
|
108278
|
+
----------------------------------------------------------------
|
|
108279
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 14225656]]
|
|
108280
|
+
[1m[35m (1.3ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
108281
|
+
[ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 4fbc05f2-0bb1-408b-9a8f-ac59d9c06660) to DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
|
108282
|
+
[ActiveJob] [1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
108283
|
+
[ActiveJob] [1m[35mSQL (1.2ms)[0m INSERT INTO "delayed_jobs" ("queue", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["queue", "default"], ["handler", "--- !ruby/object:ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper\njob_data:\n job_class: Fogged::Resources::AWSThumbnailJob\n job_id: 4fbc05f2-0bb1-408b-9a8f-ac59d9c06660\n queue_name: default\n arguments:\n - _aj_globalid: gid://dummy/Fogged::Resource/14225656\n"], ["run_at", "2016-01-18 14:28:31.328815"], ["created_at", "2016-01-18 14:28:31.329458"], ["updated_at", "2016-01-18 14:28:31.329458"]]
|
|
108284
|
+
[ActiveJob] [1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
108285
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108286
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 0], ["updated_at", "2016-01-18 14:28:31.335118"], ["id", 14225656]]
|
|
108287
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
108288
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
108289
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108290
|
+
----------------------------------------------------------------
|
|
108291
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
|
108292
|
+
----------------------------------------------------------------
|
|
108293
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
108294
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
108295
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:28:31.572218"], ["id", 1039265257]]
|
|
108296
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
108297
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
108298
|
+
-----------------------------------------------------------------------------------
|
|
108299
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
|
|
108300
|
+
-----------------------------------------------------------------------------------
|
|
108301
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
108302
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108303
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
108304
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108305
|
+
------------------------------------------------------------------------------------------
|
|
108306
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
|
|
108307
|
+
------------------------------------------------------------------------------------------
|
|
108308
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
108309
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108310
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
108311
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
108312
|
+
----------------------------------------------------------------------------------------
|
|
108313
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
|
|
108314
|
+
----------------------------------------------------------------------------------------
|
|
108315
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
108316
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
108317
|
+
---------------------------------------------------------------------------------------
|
|
108318
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
|
|
108319
|
+
---------------------------------------------------------------------------------------
|
|
108320
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 937304175]]
|
|
108321
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
108322
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
108323
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
108324
|
+
----------------------------------------------------------------------------------------
|
|
108325
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
|
|
108326
|
+
----------------------------------------------------------------------------------------
|
|
108327
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
108328
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108329
|
+
-------------------------------------------------------------------------------------
|
|
108330
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
|
|
108331
|
+
-------------------------------------------------------------------------------------
|
|
108332
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 183950720]]
|
|
108333
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
108334
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
108335
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108336
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
108337
|
+
[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', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 517391740)
|
|
108338
|
+
[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', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 701625837)[0m
|
|
108339
|
+
[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', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 819504217)
|
|
108340
|
+
[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', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 132093124)[0m
|
|
108341
|
+
[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', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 431685987)
|
|
108342
|
+
[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 0', 'mov0', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 620280917)[0m
|
|
108343
|
+
[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', 'mov1', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 335514824)
|
|
108344
|
+
[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 2', 'mov2', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 183950720)[0m
|
|
108345
|
+
[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 3', 'mov3', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 1039265257)
|
|
108346
|
+
[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 4', 'mov4', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 596998220)[0m
|
|
108347
|
+
[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 0', 'png0', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 433078596)
|
|
108348
|
+
[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', 'png1', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 785871319)[0m
|
|
108349
|
+
[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 2', 'png2', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 937304175)
|
|
108350
|
+
[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 3', 'png3', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 14225656)[0m
|
|
108351
|
+
[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 4', 'png4', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 515736925)
|
|
108352
|
+
[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, '2016-01-18 14:28:33', '2016-01-18 14:28:33', 538821867)[0m
|
|
108353
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:33', '2016-01-18 14:28:33', 731805050)
|
|
108354
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
108355
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 579229346)
|
|
108356
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 153115190)[0m
|
|
108357
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
108358
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:33', '2016-01-18 14:28:33', 419883833, 624739301, 701625837)[0m
|
|
108359
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:33', '2016-01-18 14:28:33', 849405871, 624739301, 819504217)
|
|
108360
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:33', '2016-01-18 14:28:33', 98413728, 245026679, 784085492)[0m
|
|
108361
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:33', '2016-01-18 14:28:33', 779853880, 245026679, 431685987)
|
|
108362
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
108363
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 624739301)
|
|
108364
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 245026679)[0m
|
|
108365
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 948421225)
|
|
108366
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
|
108367
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108368
|
+
------------------------------------------------------------------------------------
|
|
108369
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
|
108370
|
+
------------------------------------------------------------------------------------
|
|
108371
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108372
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [58c36199-e8ce-4b3b-9fed-e5e64af5a238] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108373
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [58c36199-e8ce-4b3b-9fed-e5e64af5a238] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 51.28ms
|
|
108374
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
108375
|
+
-----------------------------------------------------------------------
|
|
108376
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
|
108377
|
+
-----------------------------------------------------------------------
|
|
108378
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108379
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108380
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] [1m[35m (0.5ms)[0m begin transaction
|
|
108381
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] [1m[36mSQL (0.5ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 50], ["updated_at", "2016-01-18 14:28:34.350950"], ["id", 731805050]]
|
|
108382
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] [1m[35m (0.7ms)[0m commit transaction
|
|
108383
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108384
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] [1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:28:34.536023"], ["id", 731805050]]
|
|
108385
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] [1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
108386
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] [1m[35m (0.0ms)[0m begin transaction
|
|
108387
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
108388
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 1004.97ms
|
|
108389
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108390
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
108391
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 517391740)
|
|
108392
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 701625837)[0m
|
|
108393
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 819504217)
|
|
108394
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 132093124)[0m
|
|
108395
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 431685987)
|
|
108396
|
+
[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 0', 'mov0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 620280917)[0m
|
|
108397
|
+
[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', 'mov1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 335514824)
|
|
108398
|
+
[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 2', 'mov2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 183950720)[0m
|
|
108399
|
+
[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 3', 'mov3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 1039265257)
|
|
108400
|
+
[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 4', 'mov4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 596998220)[0m
|
|
108401
|
+
[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 0', 'png0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 433078596)
|
|
108402
|
+
[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', 'png1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 785871319)[0m
|
|
108403
|
+
[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 2', 'png2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 937304175)
|
|
108404
|
+
[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 3', 'png3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 14225656)[0m
|
|
108405
|
+
[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 4', 'png4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 515736925)
|
|
108406
|
+
[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, '2016-01-18 14:28:35', '2016-01-18 14:28:35', 538821867)[0m
|
|
108407
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:35', '2016-01-18 14:28:35', 731805050)
|
|
108408
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
108409
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 579229346)
|
|
108410
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 153115190)[0m
|
|
108411
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
108412
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 419883833, 624739301, 701625837)[0m
|
|
108413
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 849405871, 624739301, 819504217)
|
|
108414
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 98413728, 245026679, 784085492)[0m
|
|
108415
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 779853880, 245026679, 431685987)
|
|
108416
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
108417
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 624739301)
|
|
108418
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 245026679)[0m
|
|
108419
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 948421225)
|
|
108420
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
108421
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108422
|
+
---------------------------------------------------
|
|
108423
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
|
108424
|
+
---------------------------------------------------
|
|
108425
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108426
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "30c921df55e8e50f390225a0b71d43ba"]]
|
|
108427
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "30c921df55e8e50f390225a0b71d43ba"], ["created_at", "2016-01-18 14:28:35.018438"], ["updated_at", "2016-01-18 14:28:35.018438"]]
|
|
108428
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108429
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
108430
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108431
|
+
----------------------------------------------------------------------------
|
|
108432
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
|
108433
|
+
----------------------------------------------------------------------------
|
|
108434
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108435
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "873ba2b732f9bd69e55160ae5f2d2392"]]
|
|
108436
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "873ba2b732f9bd69e55160ae5f2d2392"], ["created_at", "2016-01-18 14:28:35.022460"], ["updated_at", "2016-01-18 14:28:35.022460"]]
|
|
108437
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108438
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108439
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265258]]
|
|
108440
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108441
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
108442
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108443
|
+
-------------------------------------------------------------------------
|
|
108444
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
|
108445
|
+
-------------------------------------------------------------------------
|
|
108446
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108447
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "af4ee7932d00978be249f68956701603"]]
|
|
108448
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "af4ee7932d00978be249f68956701603"], ["created_at", "2016-01-18 14:28:35.027962"], ["updated_at", "2016-01-18 14:28:35.027962"]]
|
|
108449
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108450
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
108451
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
108452
|
+
-------------------------------------------------------------
|
|
108453
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
|
108454
|
+
-------------------------------------------------------------
|
|
108455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108456
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "faef51ad7852992209b6d232fef1b2b6"]]
|
|
108457
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "faef51ad7852992209b6d232fef1b2b6"], ["created_at", "2016-01-18 14:28:35.030607"], ["updated_at", "2016-01-18 14:28:35.030607"]]
|
|
108458
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108459
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
108460
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108461
|
+
------------------------------------------------------
|
|
108462
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
|
108463
|
+
------------------------------------------------------
|
|
108464
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108465
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "d0eed4bd9c1ca5db20e00987c1616955"]]
|
|
108466
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "d0eed4bd9c1ca5db20e00987c1616955"], ["created_at", "2016-01-18 14:28:35.034440"], ["updated_at", "2016-01-18 14:28:35.034440"]]
|
|
108467
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108468
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
108469
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108470
|
+
----------------------------------------------------------------------------
|
|
108471
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
|
108472
|
+
----------------------------------------------------------------------------
|
|
108473
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
108474
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
108475
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
108476
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
108477
|
+
-------------------------------------------------------------------------
|
|
108478
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
|
108479
|
+
-------------------------------------------------------------------------
|
|
108480
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108481
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
108482
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
108483
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
108484
|
+
--------------------------------------------------------
|
|
108485
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
|
108486
|
+
--------------------------------------------------------
|
|
108487
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
108488
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108489
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:28:35.041603"], ["id", 785871319]]
|
|
108490
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108491
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
108492
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
108493
|
+
--------------------------------------------------------
|
|
108494
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
|
108495
|
+
--------------------------------------------------------
|
|
108496
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
108497
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108498
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108499
|
+
------------------------------------------------------------------------------
|
|
108500
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
|
108501
|
+
------------------------------------------------------------------------------
|
|
108502
|
+
[1m[36mFogged::Resource Load (0.6ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
108503
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108504
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:28:35.137497"], ["id", 335514824]]
|
|
108505
|
+
[1m[35m (0.6ms)[0m commit transaction
|
|
108506
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
108507
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "fogged_resources"
|
|
108508
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 517391740)[0m
|
|
108509
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 701625837)
|
|
108510
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 819504217)[0m
|
|
108511
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 132093124)
|
|
108512
|
+
[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', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 431685987)[0m
|
|
108513
|
+
[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 0', 'mov0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 620280917)
|
|
108514
|
+
[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', 'mov1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 335514824)[0m
|
|
108515
|
+
[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 2', 'mov2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 183950720)
|
|
108516
|
+
[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 3', 'mov3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 1039265257)[0m
|
|
108517
|
+
[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 4', 'mov4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 596998220)
|
|
108518
|
+
[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 0', 'png0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 433078596)[0m
|
|
108519
|
+
[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', 'png1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 785871319)
|
|
108520
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 937304175)[0m
|
|
108521
|
+
[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 3', 'png3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 14225656)
|
|
108522
|
+
[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 4', 'png4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 515736925)[0m
|
|
108523
|
+
[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, '2016-01-18 14:28:35', '2016-01-18 14:28:35', 538821867)
|
|
108524
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:35', '2016-01-18 14:28:35', 731805050)[0m
|
|
108525
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "images"
|
|
108526
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 579229346)[0m
|
|
108527
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 153115190)
|
|
108528
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
108529
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 419883833, 624739301, 701625837)
|
|
108530
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 849405871, 624739301, 819504217)[0m
|
|
108531
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 98413728, 245026679, 784085492)
|
|
108532
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 779853880, 245026679, 431685987)[0m
|
|
108533
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
108534
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 624739301)[0m
|
|
108535
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 245026679)
|
|
108536
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 948421225)[0m
|
|
108537
|
+
[1m[35m (1.0ms)[0m commit transaction
|
|
108538
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108539
|
+
--------------------------------------------
|
|
108540
|
+
FoggedTest: test_should_check_if_file_exists
|
|
108541
|
+
--------------------------------------------
|
|
108542
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
108543
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108544
|
+
---------------------------------------------------
|
|
108545
|
+
FoggedTest: test_should_return_directory_public_url
|
|
108546
|
+
---------------------------------------------------
|
|
108547
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
108548
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
108549
|
+
---------------------------------------------------
|
|
108550
|
+
FoggedTest: test_should_return_resources_public_url
|
|
108551
|
+
---------------------------------------------------
|
|
108552
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
108553
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
108554
|
+
----------------------
|
|
108555
|
+
FoggedTest: test_truth
|
|
108556
|
+
----------------------
|
|
108557
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
108558
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
108559
|
+
--------------------------------------------------------------------------------------
|
|
108560
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
|
108561
|
+
--------------------------------------------------------------------------------------
|
|
108562
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
108563
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
108564
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
|
|
108565
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
|
108566
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
|
108567
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
108568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108569
|
+
------------------------------------------------------------------
|
|
108570
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
|
108571
|
+
------------------------------------------------------------------
|
|
108572
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
108573
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
108574
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
|
|
108575
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
108576
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
108577
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["name", "Update"], ["updated_at", "2016-01-18 14:28:35.332079"], ["id", 785871319]]
|
|
108578
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108579
|
+
Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.5ms)
|
|
108580
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
108581
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
108582
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108583
|
+
-------------------------------------------------------------
|
|
108584
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
|
108585
|
+
-------------------------------------------------------------
|
|
108586
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
108587
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
|
108588
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
|
|
108589
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108590
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:28:35.346516"], ["id", 431685987]]
|
|
108591
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108592
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108593
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
108594
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
108595
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108596
|
+
---------------------------------------------------
|
|
108597
|
+
MovieTest: test_should_save_movie_with_no_resources
|
|
108598
|
+
---------------------------------------------------
|
|
108599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108600
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-01-18 14:28:35.352157"], ["updated_at", "2016-01-18 14:28:35.352157"]]
|
|
108601
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108602
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
108603
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108604
|
+
--------------------------------------------------------
|
|
108605
|
+
MovieTest: test_should_save_movie_with_several_resources
|
|
108606
|
+
--------------------------------------------------------
|
|
108607
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
108608
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
|
108609
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108610
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:28:35.359561"], ["updated_at", "2016-01-18 14:28:35.359561"]]
|
|
108611
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["resource_id", 701625837], ["movie_id", 948421226], ["created_at", "2016-01-18 14:28:35.361116"], ["updated_at", "2016-01-18 14:28:35.361116"]]
|
|
108612
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421226], ["created_at", "2016-01-18 14:28:35.362512"], ["updated_at", "2016-01-18 14:28:35.362512"]]
|
|
108613
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108614
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
108615
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108616
|
+
--------------------------------------------------------------------
|
|
108617
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
|
108618
|
+
--------------------------------------------------------------------
|
|
108619
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
108620
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
108621
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
108622
|
+
Parameters: {"id"=>"785871319"}
|
|
108623
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
108624
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108625
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 785871319]]
|
|
108626
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108627
|
+
Completed 204 No Content in 2ms (ActiveRecord: 0.5ms)
|
|
108628
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
108629
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
108630
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108631
|
+
----------------------------------------------------------------------------------------
|
|
108632
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
|
108633
|
+
----------------------------------------------------------------------------------------
|
|
108634
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
108635
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
108636
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
108637
|
+
Parameters: {"id"=>"123456"}
|
|
108638
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
|
108639
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
|
108640
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
108641
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
108642
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108643
|
+
----------------------------------------------------------------------------------------------
|
|
108644
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
|
|
108645
|
+
----------------------------------------------------------------------------------------------
|
|
108646
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
108647
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108648
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:28:35.380147"], ["id", 1039265257]]
|
|
108649
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108650
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
108651
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
|
108652
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1[0m [["encoding_job_id", "1234565434567890"]]
|
|
108653
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108654
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "width" = ?, "height" = ?, "duration" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 100], ["width", 640], ["height", 480], ["duration", 85], ["updated_at", "2016-01-18 14:28:35.384721"], ["id", 1039265257]]
|
|
108655
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108656
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
|
|
108657
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
108658
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
108659
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108660
|
+
--------------------------------------------------------------------------------------------------------------
|
|
108661
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
|
|
108662
|
+
--------------------------------------------------------------------------------------------------------------
|
|
108663
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
108664
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108665
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:28:35.389738"], ["id", 1039265257]]
|
|
108666
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108667
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
108668
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
|
108669
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
|
|
108670
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
|
108671
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
108672
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
108673
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108674
|
+
--------------------------------------------------------------------------------------------------------------
|
|
108675
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
|
|
108676
|
+
--------------------------------------------------------------------------------------------------------------
|
|
108677
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
108678
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108679
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:28:35.397072"], ["id", 1039265257]]
|
|
108680
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108681
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
108682
|
+
Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
|
108683
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
|
|
108684
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
|
108685
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
108686
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108687
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
108688
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
|
|
108689
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
108690
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
108691
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108692
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:28:35.402928"], ["id", 1039265257]]
|
|
108693
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108694
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
108695
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
|
|
108696
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1[0m [["encoding_job_id", "1234565434567890"]]
|
|
108697
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
|
108698
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
108699
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
108700
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108701
|
+
---------------------------------------------------
|
|
108702
|
+
ImageTest: test_image_url_changing_the_storage_name
|
|
108703
|
+
---------------------------------------------------
|
|
108704
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
108705
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
108706
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-01-18 14:28:35.414210"], ["updated_at", "2016-01-18 14:28:35.414210"]]
|
|
108707
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108708
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
108709
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108710
|
+
-------------------------------------------------------------
|
|
108711
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
|
108712
|
+
-------------------------------------------------------------
|
|
108713
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
108714
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
108715
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["uploading", "t"], ["updated_at", "2016-01-18 14:28:35.419269"], ["id", 701625837]]
|
|
108716
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108717
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108718
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
108719
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
108720
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
108721
|
+
--------------------------------------------------------
|
|
108722
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
|
108723
|
+
--------------------------------------------------------
|
|
108724
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
108725
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
108726
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-01-18 14:28:35.424134"], ["updated_at", "2016-01-18 14:28:35.424134"]]
|
|
108727
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
108728
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
108729
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108730
|
+
--------------------------------------------------
|
|
108731
|
+
ImageTest: test_should_save_image_without_resource
|
|
108732
|
+
--------------------------------------------------
|
|
108733
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
108734
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:28:35.428012"], ["updated_at", "2016-01-18 14:28:35.428012"]]
|
|
108735
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
108736
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
108737
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
108738
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108739
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
108740
|
+
[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', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 517391740)
|
|
108741
|
+
[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', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 701625837)[0m
|
|
108742
|
+
[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', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 819504217)
|
|
108743
|
+
[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', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 132093124)[0m
|
|
108744
|
+
[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', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 431685987)
|
|
108745
|
+
[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 0', 'mov0', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 620280917)[0m
|
|
108746
|
+
[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', 'mov1', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 335514824)
|
|
108747
|
+
[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 2', 'mov2', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 183950720)[0m
|
|
108748
|
+
[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 3', 'mov3', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 1039265257)
|
|
108749
|
+
[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 4', 'mov4', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 596998220)[0m
|
|
108750
|
+
[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 0', 'png0', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 433078596)
|
|
108751
|
+
[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', 'png1', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 785871319)[0m
|
|
108752
|
+
[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 2', 'png2', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 937304175)
|
|
108753
|
+
[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 3', 'png3', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 14225656)[0m
|
|
108754
|
+
[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 4', 'png4', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 515736925)
|
|
108755
|
+
[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, '2016-01-18 14:28:54', '2016-01-18 14:28:54', 538821867)[0m
|
|
108756
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:54', '2016-01-18 14:28:54', 731805050)
|
|
108757
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
108758
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 579229346)
|
|
108759
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 153115190)[0m
|
|
108760
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
108761
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:54', '2016-01-18 14:28:54', 419883833, 624739301, 701625837)[0m
|
|
108762
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:54', '2016-01-18 14:28:54', 849405871, 624739301, 819504217)
|
|
108763
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:54', '2016-01-18 14:28:54', 98413728, 245026679, 784085492)[0m
|
|
108764
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:54', '2016-01-18 14:28:54', 779853880, 245026679, 431685987)
|
|
108765
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
108766
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 624739301)
|
|
108767
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 245026679)[0m
|
|
108768
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 948421225)
|
|
108769
|
+
[1m[36m (5.3ms)[0m [1mcommit transaction[0m
|
|
108770
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108771
|
+
------------------------------------------------------------------------------------
|
|
108772
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
|
108773
|
+
------------------------------------------------------------------------------------
|
|
108774
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108775
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [602ff661-0b8c-4326-9a4f-07a362239b23] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108776
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [602ff661-0b8c-4326-9a4f-07a362239b23] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 27.44ms
|
|
108777
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108778
|
+
-----------------------------------------------------------------------
|
|
108779
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
|
108780
|
+
-----------------------------------------------------------------------
|
|
108781
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108782
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108783
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] [1m[35m (0.1ms)[0m begin transaction
|
|
108784
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] [1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 50], ["updated_at", "2016-01-18 14:28:55.236114"], ["id", 731805050]]
|
|
108785
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] [1m[35m (0.9ms)[0m commit transaction
|
|
108786
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108787
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] [1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:28:55.407162"], ["id", 731805050]]
|
|
108788
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] [1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
|
108789
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] [1m[35m (0.1ms)[0m begin transaction
|
|
108790
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
108791
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 367.44ms
|
|
108792
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
108793
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108794
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
108795
|
+
[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', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 517391740)
|
|
108796
|
+
[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', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 701625837)[0m
|
|
108797
|
+
[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', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 819504217)
|
|
108798
|
+
[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', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 132093124)[0m
|
|
108799
|
+
[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', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 431685987)
|
|
108800
|
+
[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 0', 'mov0', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 620280917)[0m
|
|
108801
|
+
[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', 'mov1', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 335514824)
|
|
108802
|
+
[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 2', 'mov2', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 183950720)[0m
|
|
108803
|
+
[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 3', 'mov3', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 1039265257)
|
|
108804
|
+
[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 4', 'mov4', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 596998220)[0m
|
|
108805
|
+
[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 0', 'png0', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 433078596)
|
|
108806
|
+
[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', 'png1', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 785871319)[0m
|
|
108807
|
+
[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 2', 'png2', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 937304175)
|
|
108808
|
+
[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 3', 'png3', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 14225656)[0m
|
|
108809
|
+
[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 4', 'png4', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 515736925)
|
|
108810
|
+
[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, '2016-01-18 14:29:49', '2016-01-18 14:29:49', 538821867)[0m
|
|
108811
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:29:49', '2016-01-18 14:29:49', 731805050)
|
|
108812
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
108813
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 579229346)
|
|
108814
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 153115190)[0m
|
|
108815
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
108816
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:29:49', '2016-01-18 14:29:49', 419883833, 624739301, 701625837)[0m
|
|
108817
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:29:49', '2016-01-18 14:29:49', 849405871, 624739301, 819504217)
|
|
108818
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:29:49', '2016-01-18 14:29:49', 98413728, 245026679, 784085492)[0m
|
|
108819
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:29:49', '2016-01-18 14:29:49', 779853880, 245026679, 431685987)
|
|
108820
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
108821
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 624739301)
|
|
108822
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 245026679)[0m
|
|
108823
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 948421225)
|
|
108824
|
+
[1m[36m (5.4ms)[0m [1mcommit transaction[0m
|
|
108825
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108826
|
+
------------------------------------------------------------------------------------
|
|
108827
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
|
108828
|
+
------------------------------------------------------------------------------------
|
|
108829
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108830
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2bee758b-5ebf-4a01-b2cb-a280dd119eae] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108831
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2bee758b-5ebf-4a01-b2cb-a280dd119eae] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 26.66ms
|
|
108832
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108833
|
+
-----------------------------------------------------------------------
|
|
108834
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
|
108835
|
+
-----------------------------------------------------------------------
|
|
108836
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108837
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108838
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] [1m[35m (0.1ms)[0m begin transaction
|
|
108839
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] [1m[36mSQL (0.5ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 50], ["updated_at", "2016-01-18 14:29:50.335211"], ["id", 731805050]]
|
|
108840
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] [1m[35m (0.7ms)[0m commit transaction
|
|
108841
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108842
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] [1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:29:50.519243"], ["id", 731805050]]
|
|
108843
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] [1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
108844
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] [1m[35m (0.1ms)[0m begin transaction
|
|
108845
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] [1m[36m (0.2ms)[0m [1mcommit transaction[0m
|
|
108846
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 388.68ms
|
|
108847
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
108848
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108849
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
108850
|
+
[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', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 517391740)
|
|
108851
|
+
[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', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 701625837)[0m
|
|
108852
|
+
[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', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 819504217)
|
|
108853
|
+
[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', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 132093124)[0m
|
|
108854
|
+
[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', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 431685987)
|
|
108855
|
+
[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 0', 'mov0', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 620280917)[0m
|
|
108856
|
+
[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', 'mov1', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 335514824)
|
|
108857
|
+
[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 2', 'mov2', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 183950720)[0m
|
|
108858
|
+
[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 3', 'mov3', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 1039265257)
|
|
108859
|
+
[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 4', 'mov4', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 596998220)[0m
|
|
108860
|
+
[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 0', 'png0', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 433078596)
|
|
108861
|
+
[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', 'png1', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 785871319)[0m
|
|
108862
|
+
[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 2', 'png2', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 937304175)
|
|
108863
|
+
[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 3', 'png3', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 14225656)[0m
|
|
108864
|
+
[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 4', 'png4', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 515736925)
|
|
108865
|
+
[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, '2016-01-18 14:30:34', '2016-01-18 14:30:34', 538821867)[0m
|
|
108866
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:30:34', '2016-01-18 14:30:34', 731805050)
|
|
108867
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
108868
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 579229346)
|
|
108869
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 153115190)[0m
|
|
108870
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
108871
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:30:34', '2016-01-18 14:30:34', 419883833, 624739301, 701625837)[0m
|
|
108872
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:30:34', '2016-01-18 14:30:34', 849405871, 624739301, 819504217)
|
|
108873
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:30:34', '2016-01-18 14:30:34', 98413728, 245026679, 784085492)[0m
|
|
108874
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:30:34', '2016-01-18 14:30:34', 779853880, 245026679, 431685987)
|
|
108875
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
108876
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 624739301)
|
|
108877
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 245026679)[0m
|
|
108878
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 948421225)
|
|
108879
|
+
[1m[36m (5.3ms)[0m [1mcommit transaction[0m
|
|
108880
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108881
|
+
------------------------------------------------------------------------------------
|
|
108882
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
|
108883
|
+
------------------------------------------------------------------------------------
|
|
108884
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108885
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [0f66ecb2-9369-4256-92b8-2eee6b1c0a8d] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108886
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [0f66ecb2-9369-4256-92b8-2eee6b1c0a8d] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 27.22ms
|
|
108887
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
108888
|
+
-----------------------------------------------------------------------
|
|
108889
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
|
108890
|
+
-----------------------------------------------------------------------
|
|
108891
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108892
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108893
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] [1m[35m (0.2ms)[0m begin transaction
|
|
108894
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] [1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 50], ["updated_at", "2016-01-18 14:30:34.976424"], ["id", 731805050]]
|
|
108895
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] [1m[35m (0.7ms)[0m commit transaction
|
|
108896
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
108897
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] [1m[35mSQL (0.5ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:30:35.156430"], ["id", 731805050]]
|
|
108898
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] [1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
108899
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] [1m[35m (0.1ms)[0m begin transaction
|
|
108900
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
108901
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 381.84ms
|
|
108902
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
108903
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108904
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
108905
|
+
[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', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 517391740)
|
|
108906
|
+
[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', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 701625837)[0m
|
|
108907
|
+
[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', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 819504217)
|
|
108908
|
+
[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', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 132093124)[0m
|
|
108909
|
+
[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', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 431685987)
|
|
108910
|
+
[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 0', 'mov0', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 620280917)[0m
|
|
108911
|
+
[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', 'mov1', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 335514824)
|
|
108912
|
+
[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 2', 'mov2', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 183950720)[0m
|
|
108913
|
+
[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 3', 'mov3', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 1039265257)
|
|
108914
|
+
[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 4', 'mov4', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 596998220)[0m
|
|
108915
|
+
[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 0', 'png0', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 433078596)
|
|
108916
|
+
[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', 'png1', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 785871319)[0m
|
|
108917
|
+
[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 2', 'png2', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 937304175)
|
|
108918
|
+
[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 3', 'png3', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 14225656)[0m
|
|
108919
|
+
[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 4', 'png4', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 515736925)
|
|
108920
|
+
[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, '2016-01-18 14:31:08', '2016-01-18 14:31:08', 538821867)[0m
|
|
108921
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:31:08', '2016-01-18 14:31:08', 731805050)
|
|
108922
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
108923
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 579229346)
|
|
108924
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 153115190)[0m
|
|
108925
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
108926
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:31:08', '2016-01-18 14:31:08', 419883833, 624739301, 701625837)[0m
|
|
108927
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:31:08', '2016-01-18 14:31:08', 849405871, 624739301, 819504217)
|
|
108928
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:31:08', '2016-01-18 14:31:08', 98413728, 245026679, 784085492)[0m
|
|
108929
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:31:08', '2016-01-18 14:31:08', 779853880, 245026679, 431685987)
|
|
108930
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
108931
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 624739301)
|
|
108932
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 245026679)[0m
|
|
108933
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 948421225)
|
|
108934
|
+
[1m[36m (5.3ms)[0m [1mcommit transaction[0m
|
|
108935
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108936
|
+
------------------------------------------------------------------------------------
|
|
108937
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
|
108938
|
+
------------------------------------------------------------------------------------
|
|
108939
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108940
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [17c5cbbb-9478-4a67-b131-ece4d03ff6f8] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108941
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [17c5cbbb-9478-4a67-b131-ece4d03ff6f8] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 26.86ms
|
|
108942
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
108943
|
+
-----------------------------------------------------------------------
|
|
108944
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
|
108945
|
+
-----------------------------------------------------------------------
|
|
108946
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108947
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108948
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] [1m[35m (0.2ms)[0m begin transaction
|
|
108949
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] [1m[36mSQL (0.6ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 50], ["updated_at", "2016-01-18 14:31:09.393915"], ["id", 731805050]]
|
|
108950
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] [1m[35m (1.3ms)[0m commit transaction
|
|
108951
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] [1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
108952
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] [1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:31:09.582713"], ["id", 731805050]]
|
|
108953
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] [1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
108954
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] [1m[35m (0.1ms)[0m begin transaction
|
|
108955
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
108956
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 382.43ms
|
|
108957
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
108958
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108959
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
108960
|
+
[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', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 517391740)
|
|
108961
|
+
[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', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 701625837)[0m
|
|
108962
|
+
[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', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 819504217)
|
|
108963
|
+
[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', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 132093124)[0m
|
|
108964
|
+
[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', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 431685987)
|
|
108965
|
+
[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 0', 'mov0', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 620280917)[0m
|
|
108966
|
+
[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', 'mov1', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 335514824)
|
|
108967
|
+
[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 2', 'mov2', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 183950720)[0m
|
|
108968
|
+
[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 3', 'mov3', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 1039265257)
|
|
108969
|
+
[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 4', 'mov4', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 596998220)[0m
|
|
108970
|
+
[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 0', 'png0', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 433078596)
|
|
108971
|
+
[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', 'png1', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 785871319)[0m
|
|
108972
|
+
[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 2', 'png2', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 937304175)
|
|
108973
|
+
[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 3', 'png3', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 14225656)[0m
|
|
108974
|
+
[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 4', 'png4', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 515736925)
|
|
108975
|
+
[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, '2016-01-18 14:32:17', '2016-01-18 14:32:17', 538821867)[0m
|
|
108976
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:17', '2016-01-18 14:32:17', 731805050)
|
|
108977
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
108978
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 579229346)
|
|
108979
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 153115190)[0m
|
|
108980
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
108981
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:17', '2016-01-18 14:32:17', 419883833, 624739301, 701625837)[0m
|
|
108982
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:17', '2016-01-18 14:32:17', 849405871, 624739301, 819504217)
|
|
108983
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:17', '2016-01-18 14:32:17', 98413728, 245026679, 784085492)[0m
|
|
108984
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:17', '2016-01-18 14:32:17', 779853880, 245026679, 431685987)
|
|
108985
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
108986
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 624739301)
|
|
108987
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 245026679)[0m
|
|
108988
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 948421225)
|
|
108989
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
108990
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
108991
|
+
------------------------------------------------------------------------------------
|
|
108992
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
|
108993
|
+
------------------------------------------------------------------------------------
|
|
108994
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
108995
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [654eacb1-4f23-4919-849b-b5572837581e] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
108996
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [654eacb1-4f23-4919-849b-b5572837581e] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 32.68ms
|
|
108997
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
108998
|
+
-----------------------------------------------------------------------
|
|
108999
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
|
109000
|
+
-----------------------------------------------------------------------
|
|
109001
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
109002
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
109003
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] [1m[35m (0.1ms)[0m begin transaction
|
|
109004
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] [1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 50], ["updated_at", "2016-01-18 14:32:18.993000"], ["id", 731805050]]
|
|
109005
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] [1m[35m (0.7ms)[0m commit transaction
|
|
109006
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109007
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] [1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:32:19.452707"], ["id", 731805050]]
|
|
109008
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] [1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
109009
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] [1m[35m (0.0ms)[0m begin transaction
|
|
109010
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
109011
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 1492.57ms
|
|
109012
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
|
109013
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
109014
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109015
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
109016
|
+
[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', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 517391740)
|
|
109017
|
+
[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', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 701625837)[0m
|
|
109018
|
+
[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', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 819504217)
|
|
109019
|
+
[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', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 132093124)[0m
|
|
109020
|
+
[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', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 431685987)
|
|
109021
|
+
[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 0', 'mov0', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 620280917)[0m
|
|
109022
|
+
[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', 'mov1', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 335514824)
|
|
109023
|
+
[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 2', 'mov2', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 183950720)[0m
|
|
109024
|
+
[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 3', 'mov3', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 1039265257)
|
|
109025
|
+
[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 4', 'mov4', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 596998220)[0m
|
|
109026
|
+
[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 0', 'png0', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 433078596)
|
|
109027
|
+
[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', 'png1', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 785871319)[0m
|
|
109028
|
+
[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 2', 'png2', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 937304175)
|
|
109029
|
+
[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 3', 'png3', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 14225656)[0m
|
|
109030
|
+
[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 4', 'png4', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 515736925)
|
|
109031
|
+
[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, '2016-01-18 14:32:26', '2016-01-18 14:32:26', 538821867)[0m
|
|
109032
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:26', '2016-01-18 14:32:26', 731805050)
|
|
109033
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
109034
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 579229346)
|
|
109035
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 153115190)[0m
|
|
109036
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
109037
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:26', '2016-01-18 14:32:26', 419883833, 624739301, 701625837)[0m
|
|
109038
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:26', '2016-01-18 14:32:26', 849405871, 624739301, 819504217)
|
|
109039
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:26', '2016-01-18 14:32:26', 98413728, 245026679, 784085492)[0m
|
|
109040
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:26', '2016-01-18 14:32:26', 779853880, 245026679, 431685987)
|
|
109041
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
109042
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 624739301)
|
|
109043
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 245026679)[0m
|
|
109044
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 948421225)
|
|
109045
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
109046
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109047
|
+
--------------------------------------------
|
|
109048
|
+
FoggedTest: test_should_check_if_file_exists
|
|
109049
|
+
--------------------------------------------
|
|
109050
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109051
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109052
|
+
---------------------------------------------------
|
|
109053
|
+
FoggedTest: test_should_return_directory_public_url
|
|
109054
|
+
---------------------------------------------------
|
|
109055
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109056
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109057
|
+
---------------------------------------------------
|
|
109058
|
+
FoggedTest: test_should_return_resources_public_url
|
|
109059
|
+
---------------------------------------------------
|
|
109060
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
109061
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109062
|
+
----------------------
|
|
109063
|
+
FoggedTest: test_truth
|
|
109064
|
+
----------------------
|
|
109065
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
109066
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109067
|
+
------------------------------------------------------------------
|
|
109068
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
|
109069
|
+
------------------------------------------------------------------
|
|
109070
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109071
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
109072
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
109073
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109074
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "cfb68307f69090b46cfe6663d396a59d"]]
|
|
109075
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("name", "extension", "content_type", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["extension", "png"], ["content_type", "image/png"], ["uploading", "t"], ["token", "cfb68307f69090b46cfe6663d396a59d"], ["created_at", "2016-01-18 14:32:26.701680"], ["updated_at", "2016-01-18 14:32:26.701680"]]
|
|
109076
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109077
|
+
Completed 200 OK in 20ms (Views: 1.5ms | ActiveRecord: 0.6ms)
|
|
109078
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
109079
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
|
109080
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
|
109081
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
109082
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109083
|
+
--------------------------------------------------------------------------------------------
|
|
109084
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
|
109085
|
+
--------------------------------------------------------------------------------------------
|
|
109086
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109087
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
109088
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
|
109089
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109090
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
109091
|
+
Completed 422 Unprocessable Entity in 7ms (ActiveRecord: 0.1ms)
|
|
109092
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
109093
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109094
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109095
|
+
-------------------------------------------------------------------------------------------
|
|
109096
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
|
109097
|
+
-------------------------------------------------------------------------------------------
|
|
109098
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109099
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
109100
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
|
109101
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
|
109102
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
109103
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109104
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109105
|
+
---------------------------------------------------------------------------------------
|
|
109106
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
|
109107
|
+
---------------------------------------------------------------------------------------
|
|
109108
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109109
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
109110
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
|
|
109111
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
|
109112
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
109113
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109114
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109115
|
+
-----------------------------------------------------------------------------------
|
|
109116
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
|
109117
|
+
-----------------------------------------------------------------------------------
|
|
109118
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109119
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
109120
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
109121
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
|
109122
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
109123
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109124
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109125
|
+
-------------------------------------------------------------------------------------------------
|
|
109126
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
|
109127
|
+
-------------------------------------------------------------------------------------------------
|
|
109128
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109129
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
109130
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
|
109131
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
109132
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109133
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109134
|
+
----------------------------------------------------------------
|
|
109135
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
|
|
109136
|
+
----------------------------------------------------------------
|
|
109137
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 14225656]]
|
|
109138
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
109139
|
+
[ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 38a45fad-f891-4781-9d94-34e773615869) to DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
|
109140
|
+
[ActiveJob] [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109141
|
+
[ActiveJob] [1m[35mSQL (0.4ms)[0m INSERT INTO "delayed_jobs" ("queue", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["queue", "default"], ["handler", "--- !ruby/object:ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper\njob_data:\n job_class: Fogged::Resources::AWSThumbnailJob\n job_id: 38a45fad-f891-4781-9d94-34e773615869\n queue_name: default\n arguments:\n - _aj_globalid: gid://dummy/Fogged::Resource/14225656\n"], ["run_at", "2016-01-18 14:32:26.848415"], ["created_at", "2016-01-18 14:32:26.848853"], ["updated_at", "2016-01-18 14:32:26.848853"]]
|
|
109142
|
+
[ActiveJob] [1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
109143
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109144
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:26.852887"], ["id", 14225656]]
|
|
109145
|
+
[1m[35m (0.5ms)[0m commit transaction
|
|
109146
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
109147
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
109148
|
+
----------------------------------------------------------------
|
|
109149
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
|
109150
|
+
----------------------------------------------------------------
|
|
109151
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109152
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
109153
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:27.084118"], ["id", 1039265257]]
|
|
109154
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
109155
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
109156
|
+
-----------------------------------------------------------------------------------
|
|
109157
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
|
|
109158
|
+
-----------------------------------------------------------------------------------
|
|
109159
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109160
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
109161
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
109162
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
109163
|
+
------------------------------------------------------------------------------------------
|
|
109164
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
|
|
109165
|
+
------------------------------------------------------------------------------------------
|
|
109166
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109167
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
109168
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
109169
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
109170
|
+
----------------------------------------------------------------------------------------
|
|
109171
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
|
|
109172
|
+
----------------------------------------------------------------------------------------
|
|
109173
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109174
|
+
[1m[35m (0.6ms)[0m begin transaction
|
|
109175
|
+
---------------------------------------------------------------------------------------
|
|
109176
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
|
|
109177
|
+
---------------------------------------------------------------------------------------
|
|
109178
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 937304175]]
|
|
109179
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
109180
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
109181
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
109182
|
+
----------------------------------------------------------------------------------------
|
|
109183
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
|
|
109184
|
+
----------------------------------------------------------------------------------------
|
|
109185
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
109186
|
+
[1m[35m (0.5ms)[0m begin transaction
|
|
109187
|
+
-------------------------------------------------------------------------------------
|
|
109188
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
|
|
109189
|
+
-------------------------------------------------------------------------------------
|
|
109190
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 183950720]]
|
|
109191
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
109192
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
109193
|
+
[1m[35m (0.4ms)[0m begin transaction
|
|
109194
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
109195
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 517391740)
|
|
109196
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 701625837)[0m
|
|
109197
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 819504217)
|
|
109198
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 132093124)[0m
|
|
109199
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 431685987)
|
|
109200
|
+
[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 0', 'mov0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 620280917)[0m
|
|
109201
|
+
[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', 'mov1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 335514824)
|
|
109202
|
+
[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 2', 'mov2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 183950720)[0m
|
|
109203
|
+
[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 3', 'mov3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 1039265257)
|
|
109204
|
+
[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 4', 'mov4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 596998220)[0m
|
|
109205
|
+
[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 0', 'png0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 433078596)
|
|
109206
|
+
[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', 'png1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 785871319)[0m
|
|
109207
|
+
[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 2', 'png2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 937304175)
|
|
109208
|
+
[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 3', 'png3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 14225656)[0m
|
|
109209
|
+
[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 4', 'png4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 515736925)
|
|
109210
|
+
[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, '2016-01-18 14:32:28', '2016-01-18 14:32:28', 538821867)[0m
|
|
109211
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:28', '2016-01-18 14:32:28', 731805050)
|
|
109212
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
109213
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 579229346)
|
|
109214
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 153115190)[0m
|
|
109215
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
109216
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 419883833, 624739301, 701625837)[0m
|
|
109217
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 849405871, 624739301, 819504217)
|
|
109218
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 98413728, 245026679, 784085492)[0m
|
|
109219
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 779853880, 245026679, 431685987)
|
|
109220
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
109221
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 624739301)
|
|
109222
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 245026679)[0m
|
|
109223
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 948421225)
|
|
109224
|
+
[1m[36m (5.4ms)[0m [1mcommit transaction[0m
|
|
109225
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
109226
|
+
----------------------------------------------------------------------------------------------
|
|
109227
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
|
|
109228
|
+
----------------------------------------------------------------------------------------------
|
|
109229
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109230
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109231
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:28.631479"], ["id", 1039265257]]
|
|
109232
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109233
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
109234
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
|
109235
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1[0m [["encoding_job_id", "1234565434567890"]]
|
|
109236
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109237
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "width" = ?, "height" = ?, "duration" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 100], ["width", 640], ["height", 480], ["duration", 85], ["updated_at", "2016-01-18 14:32:28.639241"], ["id", 1039265257]]
|
|
109238
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109239
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.8ms)
|
|
109240
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109241
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
109242
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109243
|
+
--------------------------------------------------------------------------------------------------------------
|
|
109244
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
|
|
109245
|
+
--------------------------------------------------------------------------------------------------------------
|
|
109246
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
109247
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109248
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:28.645539"], ["id", 1039265257]]
|
|
109249
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109250
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
109251
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
|
109252
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
|
|
109253
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
|
109254
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109255
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
109256
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109257
|
+
--------------------------------------------------------------------------------------------------------------
|
|
109258
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
|
|
109259
|
+
--------------------------------------------------------------------------------------------------------------
|
|
109260
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
109261
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109262
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:28.653131"], ["id", 1039265257]]
|
|
109263
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109264
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
109265
|
+
Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
|
109266
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
|
|
109267
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
|
109268
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
109269
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109270
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
109271
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
|
|
109272
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
109273
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109274
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109275
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:28.659749"], ["id", 1039265257]]
|
|
109276
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109277
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
109278
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
|
|
109279
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1[0m [["encoding_job_id", "1234565434567890"]]
|
|
109280
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
|
109281
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
109282
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
109283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109284
|
+
---------------------------------------------------
|
|
109285
|
+
ImageTest: test_image_url_changing_the_storage_name
|
|
109286
|
+
---------------------------------------------------
|
|
109287
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109288
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109289
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-01-18 14:32:28.674933"], ["updated_at", "2016-01-18 14:32:28.674933"]]
|
|
109290
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109291
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
109292
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109293
|
+
-------------------------------------------------------------
|
|
109294
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
|
109295
|
+
-------------------------------------------------------------
|
|
109296
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
109297
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109298
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["uploading", "t"], ["updated_at", "2016-01-18 14:32:28.679866"], ["id", 701625837]]
|
|
109299
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109300
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109301
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
109302
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
109303
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109304
|
+
--------------------------------------------------------
|
|
109305
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
|
109306
|
+
--------------------------------------------------------
|
|
109307
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
109308
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109309
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-01-18 14:32:28.684695"], ["updated_at", "2016-01-18 14:32:28.684695"]]
|
|
109310
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109311
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
109312
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109313
|
+
--------------------------------------------------
|
|
109314
|
+
ImageTest: test_should_save_image_without_resource
|
|
109315
|
+
--------------------------------------------------
|
|
109316
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109317
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:32:28.687630"], ["updated_at", "2016-01-18 14:32:28.687630"]]
|
|
109318
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109319
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
109320
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109321
|
+
----------------------------------------------------------------------------------
|
|
109322
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
|
109323
|
+
----------------------------------------------------------------------------------
|
|
109324
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
109325
|
+
Parameters: {"id"=>"1234567890"}
|
|
109326
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
109327
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
|
109328
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109329
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109330
|
+
--------------------------------------------------------------------
|
|
109331
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
|
109332
|
+
--------------------------------------------------------------------
|
|
109333
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109334
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
109335
|
+
Parameters: {"id"=>"785871319"}
|
|
109336
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109337
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
|
109338
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109339
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109340
|
+
--------------------------------------------------------------
|
|
109341
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
|
109342
|
+
--------------------------------------------------------------
|
|
109343
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
109344
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
109345
|
+
Parameters: {"id"=>"701625837"}
|
|
109346
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
109347
|
+
Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
|
|
109348
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109349
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109350
|
+
--------------------------------------------------------------------
|
|
109351
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
|
109352
|
+
--------------------------------------------------------------------
|
|
109353
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
109354
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
109355
|
+
Parameters: {"id"=>"335514824"}
|
|
109356
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
109357
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
|
109358
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109359
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109360
|
+
---------------------------------------------------
|
|
109361
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
|
109362
|
+
---------------------------------------------------
|
|
109363
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109364
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "25e4ce9999e6ce1a6ff1586a192fd521"]]
|
|
109365
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "25e4ce9999e6ce1a6ff1586a192fd521"], ["created_at", "2016-01-18 14:32:28.713128"], ["updated_at", "2016-01-18 14:32:28.713128"]]
|
|
109366
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109367
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
109368
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109369
|
+
----------------------------------------------------------------------------
|
|
109370
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
|
109371
|
+
----------------------------------------------------------------------------
|
|
109372
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109373
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "c3a2528d7426ee9f4c8efcf7947f7f64"]]
|
|
109374
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "c3a2528d7426ee9f4c8efcf7947f7f64"], ["created_at", "2016-01-18 14:32:28.716762"], ["updated_at", "2016-01-18 14:32:28.716762"]]
|
|
109375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109377
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265258]]
|
|
109378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109379
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
109380
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109381
|
+
-------------------------------------------------------------------------
|
|
109382
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
|
109383
|
+
-------------------------------------------------------------------------
|
|
109384
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109385
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "0cb5db9b3149ed7402341c4554ec6931"]]
|
|
109386
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "0cb5db9b3149ed7402341c4554ec6931"], ["created_at", "2016-01-18 14:32:28.721918"], ["updated_at", "2016-01-18 14:32:28.721918"]]
|
|
109387
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109388
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
109389
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109390
|
+
-------------------------------------------------------------
|
|
109391
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
|
109392
|
+
-------------------------------------------------------------
|
|
109393
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109394
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "bd3edde39f2c014fcdf7ae14e6be311b"]]
|
|
109395
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "bd3edde39f2c014fcdf7ae14e6be311b"], ["created_at", "2016-01-18 14:32:28.724609"], ["updated_at", "2016-01-18 14:32:28.724609"]]
|
|
109396
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109397
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
109398
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109399
|
+
------------------------------------------------------
|
|
109400
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
|
109401
|
+
------------------------------------------------------
|
|
109402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109403
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "53f09c4b3a3d271c1556ada009aa9c49"]]
|
|
109404
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "53f09c4b3a3d271c1556ada009aa9c49"], ["created_at", "2016-01-18 14:32:28.728112"], ["updated_at", "2016-01-18 14:32:28.728112"]]
|
|
109405
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109406
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
109407
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109408
|
+
----------------------------------------------------------------------------
|
|
109409
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
|
109410
|
+
----------------------------------------------------------------------------
|
|
109411
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109412
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
109413
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
109414
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109415
|
+
-------------------------------------------------------------------------
|
|
109416
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
|
109417
|
+
-------------------------------------------------------------------------
|
|
109418
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109419
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
109420
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
109421
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109422
|
+
--------------------------------------------------------
|
|
109423
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
|
109424
|
+
--------------------------------------------------------
|
|
109425
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109426
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109427
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:32:28.734865"], ["id", 785871319]]
|
|
109428
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109429
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
109430
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109431
|
+
--------------------------------------------------------
|
|
109432
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
|
109433
|
+
--------------------------------------------------------
|
|
109434
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
109435
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109436
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109437
|
+
------------------------------------------------------------------------------
|
|
109438
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
|
109439
|
+
------------------------------------------------------------------------------
|
|
109440
|
+
[1m[36mFogged::Resource Load (0.5ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
109441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109442
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:28.823291"], ["id", 335514824]]
|
|
109443
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
109444
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
109445
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
|
109446
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 517391740)[0m
|
|
109447
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 701625837)
|
|
109448
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 819504217)[0m
|
|
109449
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 132093124)
|
|
109450
|
+
[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', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 431685987)[0m
|
|
109451
|
+
[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 0', 'mov0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 620280917)
|
|
109452
|
+
[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', 'mov1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 335514824)[0m
|
|
109453
|
+
[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 2', 'mov2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 183950720)
|
|
109454
|
+
[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 3', 'mov3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 1039265257)[0m
|
|
109455
|
+
[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 4', 'mov4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 596998220)
|
|
109456
|
+
[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 0', 'png0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 433078596)[0m
|
|
109457
|
+
[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', 'png1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 785871319)
|
|
109458
|
+
[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 2', 'png2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 937304175)[0m
|
|
109459
|
+
[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 3', 'png3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 14225656)
|
|
109460
|
+
[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 4', 'png4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 515736925)[0m
|
|
109461
|
+
[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, '2016-01-18 14:32:28', '2016-01-18 14:32:28', 538821867)
|
|
109462
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:28', '2016-01-18 14:32:28', 731805050)[0m
|
|
109463
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
109464
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 579229346)[0m
|
|
109465
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 153115190)
|
|
109466
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
109467
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 419883833, 624739301, 701625837)
|
|
109468
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 849405871, 624739301, 819504217)[0m
|
|
109469
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 98413728, 245026679, 784085492)
|
|
109470
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 779853880, 245026679, 431685987)[0m
|
|
109471
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
109472
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 624739301)[0m
|
|
109473
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 245026679)
|
|
109474
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 948421225)[0m
|
|
109475
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
109476
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109477
|
+
------------------------------------------------------------------------------------
|
|
109478
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
|
109479
|
+
------------------------------------------------------------------------------------
|
|
109480
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
|
109481
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [71bd71ae-5c9c-490c-a967-0be064243f90] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
109482
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [71bd71ae-5c9c-490c-a967-0be064243f90] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 26.83ms
|
|
109483
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
109484
|
+
-----------------------------------------------------------------------
|
|
109485
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
|
109486
|
+
-----------------------------------------------------------------------
|
|
109487
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
|
109488
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
109489
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] [1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
|
109490
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] [1m[35mSQL (0.5ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:32:29.570683"], ["id", 731805050]]
|
|
109491
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] [1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
109492
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] [1m[35m (0.3ms)[0m begin transaction
|
|
109493
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] [1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 100], ["updated_at", "2016-01-18 14:32:29.752975"], ["id", 731805050]]
|
|
109494
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] [1m[35m (1.1ms)[0m commit transaction
|
|
109495
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109496
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] [1m[35m (0.1ms)[0m commit transaction
|
|
109497
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 386.18ms
|
|
109498
|
+
[1m[36mFogged::Resource Load (0.5ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
109499
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
109500
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
|
109501
|
+
[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', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 517391740)[0m
|
|
109502
|
+
[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', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 701625837)
|
|
109503
|
+
[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', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 819504217)[0m
|
|
109504
|
+
[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', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 132093124)
|
|
109505
|
+
[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', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 431685987)[0m
|
|
109506
|
+
[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 0', 'mov0', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 620280917)
|
|
109507
|
+
[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', 'mov1', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 335514824)[0m
|
|
109508
|
+
[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 2', 'mov2', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 183950720)
|
|
109509
|
+
[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 3', 'mov3', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 1039265257)[0m
|
|
109510
|
+
[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 4', 'mov4', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 596998220)
|
|
109511
|
+
[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 0', 'png0', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 433078596)[0m
|
|
109512
|
+
[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', 'png1', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 785871319)
|
|
109513
|
+
[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 2', 'png2', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 937304175)[0m
|
|
109514
|
+
[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 3', 'png3', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 14225656)
|
|
109515
|
+
[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 4', 'png4', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 515736925)[0m
|
|
109516
|
+
[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, '2016-01-18 14:32:29', '2016-01-18 14:32:29', 538821867)
|
|
109517
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:29', '2016-01-18 14:32:29', 731805050)[0m
|
|
109518
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
109519
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 579229346)[0m
|
|
109520
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 153115190)
|
|
109521
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
109522
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:29', '2016-01-18 14:32:29', 419883833, 624739301, 701625837)
|
|
109523
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:29', '2016-01-18 14:32:29', 849405871, 624739301, 819504217)[0m
|
|
109524
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:29', '2016-01-18 14:32:29', 98413728, 245026679, 784085492)
|
|
109525
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:29', '2016-01-18 14:32:29', 779853880, 245026679, 431685987)[0m
|
|
109526
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
109527
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 624739301)[0m
|
|
109528
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 245026679)
|
|
109529
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 948421225)[0m
|
|
109530
|
+
[1m[35m (1.1ms)[0m commit transaction
|
|
109531
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109532
|
+
--------------------------------------------------------------------------------------
|
|
109533
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
|
109534
|
+
--------------------------------------------------------------------------------------
|
|
109535
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109536
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
109537
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
|
|
109538
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
|
109539
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
|
109540
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
109541
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109542
|
+
------------------------------------------------------------------
|
|
109543
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
|
109544
|
+
------------------------------------------------------------------
|
|
109545
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109546
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
109547
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
|
|
109548
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109549
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109550
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["name", "Update"], ["updated_at", "2016-01-18 14:32:29.947624"], ["id", 785871319]]
|
|
109551
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109552
|
+
Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.4ms)
|
|
109553
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109554
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
109555
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109556
|
+
------------------------------------------------------------------------
|
|
109557
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
|
109558
|
+
------------------------------------------------------------------------
|
|
109559
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
109560
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
109561
|
+
Parameters: {"type"=>"movie"}
|
|
109562
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
|
109563
|
+
[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]]
|
|
109564
|
+
[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]]
|
|
109565
|
+
[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]]
|
|
109566
|
+
Completed 200 OK in 26ms (Views: 3.4ms | ActiveRecord: 0.4ms)
|
|
109567
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
|
109568
|
+
[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", 245026679]]
|
|
109569
|
+
[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]]
|
|
109570
|
+
[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]]
|
|
109571
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109572
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109573
|
+
---------------------------------------------------------------------
|
|
109574
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
|
109575
|
+
---------------------------------------------------------------------
|
|
109576
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
109577
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
109578
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
|
109579
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
|
|
109580
|
+
[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]]
|
|
109581
|
+
Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
|
109582
|
+
[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]]
|
|
109583
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
109584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109585
|
+
-----------------------------------------------------------------------------------------------
|
|
109586
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
|
109587
|
+
-----------------------------------------------------------------------------------------------
|
|
109588
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
109589
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109590
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "5a9276544d7bfb88ceeb868482579332"]]
|
|
109591
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("name", "extension", "content_type", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "footest barish"], ["extension", "txt"], ["content_type", "text/plain"], ["token", "5a9276544d7bfb88ceeb868482579332"], ["created_at", "2016-01-18 14:32:30.019279"], ["updated_at", "2016-01-18 14:32:30.019279"]]
|
|
109592
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109593
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109594
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["movie_id", 624739301], ["resource_id", 1039265258], ["created_at", "2016-01-18 14:32:30.027524"], ["updated_at", "2016-01-18 14:32:30.027524"]]
|
|
109595
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109596
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
109597
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
|
109598
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301[0m
|
|
109599
|
+
[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]]
|
|
109600
|
+
Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.3ms)
|
|
109601
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
|
109602
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109603
|
+
--------------------------------------------------------------------
|
|
109604
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
|
109605
|
+
--------------------------------------------------------------------
|
|
109606
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
109607
|
+
[1m[35mMovie Load (0.0ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
|
|
109608
|
+
[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]]
|
|
109609
|
+
[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", 245026679]]
|
|
109610
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
109611
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
|
109612
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)[0m
|
|
109613
|
+
[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", 245026679]]
|
|
109614
|
+
[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]]
|
|
109615
|
+
Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.3ms)
|
|
109616
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
109617
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109618
|
+
-------------------------------------------------------------------------------
|
|
109619
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
|
109620
|
+
-------------------------------------------------------------------------------
|
|
109621
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
109622
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
109623
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
|
109624
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890[0m
|
|
109625
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
|
109626
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
109627
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109628
|
+
-------------------------------------------------------------
|
|
109629
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
|
109630
|
+
-------------------------------------------------------------
|
|
109631
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
109632
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
|
109633
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
|
|
109634
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109635
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:32:30.062629"], ["id", 431685987]]
|
|
109636
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109637
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109638
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
109639
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
109640
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109641
|
+
---------------------------------------------------
|
|
109642
|
+
MovieTest: test_should_save_movie_with_no_resources
|
|
109643
|
+
---------------------------------------------------
|
|
109644
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109645
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-01-18 14:32:30.069163"], ["updated_at", "2016-01-18 14:32:30.069163"]]
|
|
109646
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109647
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
109648
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109649
|
+
--------------------------------------------------------
|
|
109650
|
+
MovieTest: test_should_save_movie_with_several_resources
|
|
109651
|
+
--------------------------------------------------------
|
|
109652
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
109653
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
|
109654
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109655
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:32:30.077093"], ["updated_at", "2016-01-18 14:32:30.077093"]]
|
|
109656
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["resource_id", 701625837], ["movie_id", 948421226], ["created_at", "2016-01-18 14:32:30.078711"], ["updated_at", "2016-01-18 14:32:30.078711"]]
|
|
109657
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421226], ["created_at", "2016-01-18 14:32:30.080356"], ["updated_at", "2016-01-18 14:32:30.080356"]]
|
|
109658
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109659
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
109660
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109661
|
+
-------------------------------------------------------
|
|
109662
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
|
109663
|
+
-------------------------------------------------------
|
|
109664
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
109665
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109666
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109667
|
+
--------------------------------------------------------------------
|
|
109668
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
|
109669
|
+
--------------------------------------------------------------------
|
|
109670
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109671
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
109672
|
+
Parameters: {"id"=>"785871319"}
|
|
109673
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109674
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109675
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:32:30.091116"], ["id", 785871319]]
|
|
109676
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109677
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109678
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109679
|
+
Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 0.7ms)
|
|
109680
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109681
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
109682
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109683
|
+
------------------------------------------------------------------------------------------------
|
|
109684
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
|
109685
|
+
------------------------------------------------------------------------------------------------
|
|
109686
|
+
[1m[36mFogged::Resource Load (0.6ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
109687
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
109688
|
+
Parameters: {"id"=>"335514824"}
|
|
109689
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
109690
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
109691
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:30.149385"], ["id", 335514824]]
|
|
109692
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
109693
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109694
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
109695
|
+
Completed 200 OK in 14ms (Views: 3.0ms | ActiveRecord: 1.6ms)
|
|
109696
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
109697
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
109698
|
+
----------------------------------------------------------------------------------------
|
|
109699
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
|
109700
|
+
----------------------------------------------------------------------------------------
|
|
109701
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
109702
|
+
Parameters: {"id"=>"123456"}
|
|
109703
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
109704
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
|
109705
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109706
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109707
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
109708
|
+
[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', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 517391740)
|
|
109709
|
+
[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', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 701625837)[0m
|
|
109710
|
+
[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', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 819504217)
|
|
109711
|
+
[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', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 132093124)[0m
|
|
109712
|
+
[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', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 431685987)
|
|
109713
|
+
[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 0', 'mov0', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 620280917)[0m
|
|
109714
|
+
[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', 'mov1', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 335514824)
|
|
109715
|
+
[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 2', 'mov2', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 183950720)[0m
|
|
109716
|
+
[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 3', 'mov3', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 1039265257)
|
|
109717
|
+
[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 4', 'mov4', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 596998220)[0m
|
|
109718
|
+
[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 0', 'png0', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 433078596)
|
|
109719
|
+
[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', 'png1', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 785871319)[0m
|
|
109720
|
+
[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 2', 'png2', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 937304175)
|
|
109721
|
+
[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 3', 'png3', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 14225656)[0m
|
|
109722
|
+
[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 4', 'png4', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 515736925)
|
|
109723
|
+
[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, '2016-01-18 14:32:30', '2016-01-18 14:32:30', 538821867)[0m
|
|
109724
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:30', '2016-01-18 14:32:30', 731805050)
|
|
109725
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
109726
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 579229346)
|
|
109727
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 153115190)[0m
|
|
109728
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
109729
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:30', '2016-01-18 14:32:30', 419883833, 624739301, 701625837)[0m
|
|
109730
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:30', '2016-01-18 14:32:30', 849405871, 624739301, 819504217)
|
|
109731
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:30', '2016-01-18 14:32:30', 98413728, 245026679, 784085492)[0m
|
|
109732
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:30', '2016-01-18 14:32:30', 779853880, 245026679, 431685987)
|
|
109733
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
109734
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 624739301)
|
|
109735
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 245026679)[0m
|
|
109736
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 948421225)
|
|
109737
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
|
109738
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109739
|
+
--------------------------------------------------------------------
|
|
109740
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
|
109741
|
+
--------------------------------------------------------------------
|
|
109742
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109743
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
109744
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
109745
|
+
Parameters: {"id"=>"785871319"}
|
|
109746
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109747
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109748
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 785871319]]
|
|
109749
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109750
|
+
Completed 204 No Content in 3ms (ActiveRecord: 0.6ms)
|
|
109751
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109752
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
109753
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109754
|
+
----------------------------------------------------------------------------------------
|
|
109755
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
|
109756
|
+
----------------------------------------------------------------------------------------
|
|
109757
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109758
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109759
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
109760
|
+
Parameters: {"id"=>"123456"}
|
|
109761
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
109762
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
|
109763
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109764
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
109765
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
109766
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109767
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
|
109768
|
+
[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', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 517391740)
|
|
109769
|
+
[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', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 701625837)[0m
|
|
109770
|
+
[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', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 819504217)
|
|
109771
|
+
[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', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 132093124)[0m
|
|
109772
|
+
[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', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 431685987)
|
|
109773
|
+
[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 0', 'mov0', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 620280917)[0m
|
|
109774
|
+
[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', 'mov1', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 335514824)
|
|
109775
|
+
[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 2', 'mov2', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 183950720)[0m
|
|
109776
|
+
[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 3', 'mov3', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 1039265257)
|
|
109777
|
+
[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 4', 'mov4', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 596998220)[0m
|
|
109778
|
+
[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 0', 'png0', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 433078596)
|
|
109779
|
+
[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', 'png1', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 785871319)[0m
|
|
109780
|
+
[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 2', 'png2', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 937304175)
|
|
109781
|
+
[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 3', 'png3', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 14225656)[0m
|
|
109782
|
+
[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 4', 'png4', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 515736925)
|
|
109783
|
+
[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, '2016-01-18 14:32:38', '2016-01-18 14:32:38', 538821867)[0m
|
|
109784
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:38', '2016-01-18 14:32:38', 731805050)
|
|
109785
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
|
109786
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 579229346)
|
|
109787
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 153115190)[0m
|
|
109788
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
|
109789
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:38', '2016-01-18 14:32:38', 419883833, 624739301, 701625837)[0m
|
|
109790
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:38', '2016-01-18 14:32:38', 849405871, 624739301, 819504217)
|
|
109791
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:38', '2016-01-18 14:32:38', 98413728, 245026679, 784085492)[0m
|
|
109792
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:38', '2016-01-18 14:32:38', 779853880, 245026679, 431685987)
|
|
109793
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
|
109794
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 624739301)
|
|
109795
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 245026679)[0m
|
|
109796
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 948421225)
|
|
109797
|
+
[1m[36m (5.0ms)[0m [1mcommit transaction[0m
|
|
109798
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109799
|
+
--------------------------------------------------------------------------------------
|
|
109800
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
|
109801
|
+
--------------------------------------------------------------------------------------
|
|
109802
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109803
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
109804
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
|
|
109805
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
109806
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
|
109807
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109808
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109809
|
+
------------------------------------------------------------------
|
|
109810
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
|
109811
|
+
------------------------------------------------------------------
|
|
109812
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109813
|
+
Processing by Fogged::ResourcesController#update as HTML
|
|
109814
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
|
|
109815
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109816
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109817
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-01-18 14:32:38.615846"], ["id", 785871319]]
|
|
109818
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109819
|
+
Completed 200 OK in 8ms (Views: 1.8ms | ActiveRecord: 0.5ms)
|
|
109820
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109821
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
|
109822
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109823
|
+
----------------------------------------------------------------------------------------------
|
|
109824
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
|
|
109825
|
+
----------------------------------------------------------------------------------------------
|
|
109826
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109827
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109828
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:38.627566"], ["id", 1039265257]]
|
|
109829
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109830
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
109831
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
|
109832
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1[0m [["encoding_job_id", "1234565434567890"]]
|
|
109833
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109834
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "width" = ?, "height" = ?, "duration" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 100], ["width", 640], ["height", 480], ["duration", 85], ["updated_at", "2016-01-18 14:32:38.632448"], ["id", 1039265257]]
|
|
109835
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109836
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
|
|
109837
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109838
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
|
109839
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109840
|
+
--------------------------------------------------------------------------------------------------------------
|
|
109841
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
|
|
109842
|
+
--------------------------------------------------------------------------------------------------------------
|
|
109843
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
109844
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109845
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:38.638153"], ["id", 1039265257]]
|
|
109846
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109847
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
109848
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
|
109849
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
|
|
109850
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
|
109851
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109852
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
109853
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109854
|
+
--------------------------------------------------------------------------------------------------------------
|
|
109855
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
|
|
109856
|
+
--------------------------------------------------------------------------------------------------------------
|
|
109857
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
109858
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109859
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:38.644767"], ["id", 1039265257]]
|
|
109860
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
109861
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
109862
|
+
Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
|
109863
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
|
|
109864
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
|
109865
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
109866
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109867
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
109868
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
|
|
109869
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
109870
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
|
109871
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
109872
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:38.650074"], ["id", 1039265257]]
|
|
109873
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109874
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
|
109875
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
|
|
109876
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1[0m [["encoding_job_id", "1234565434567890"]]
|
|
109877
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
|
109878
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
109879
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
|
109880
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109881
|
+
-------------------------------------------------------
|
|
109882
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
|
109883
|
+
-------------------------------------------------------
|
|
109884
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
109885
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
109886
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109887
|
+
----------------------------------------------------------------------------------
|
|
109888
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
|
109889
|
+
----------------------------------------------------------------------------------
|
|
109890
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
109891
|
+
Parameters: {"id"=>"1234567890"}
|
|
109892
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
|
109893
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
|
109894
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
109895
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109896
|
+
--------------------------------------------------------------------
|
|
109897
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
|
109898
|
+
--------------------------------------------------------------------
|
|
109899
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109900
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
109901
|
+
Parameters: {"id"=>"785871319"}
|
|
109902
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109903
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
|
109904
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109905
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
109906
|
+
--------------------------------------------------------------
|
|
109907
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
|
109908
|
+
--------------------------------------------------------------
|
|
109909
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
109910
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
109911
|
+
Parameters: {"id"=>"701625837"}
|
|
109912
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
109913
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
|
109914
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109915
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109916
|
+
--------------------------------------------------------------------
|
|
109917
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
|
109918
|
+
--------------------------------------------------------------------
|
|
109919
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
109920
|
+
Processing by Fogged::ResourcesController#show as HTML
|
|
109921
|
+
Parameters: {"id"=>"335514824"}
|
|
109922
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
109923
|
+
Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
|
|
109924
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
109925
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
109926
|
+
--------------------------------------------------------------------
|
|
109927
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
|
109928
|
+
--------------------------------------------------------------------
|
|
109929
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109930
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
109931
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
109932
|
+
Parameters: {"id"=>"785871319"}
|
|
109933
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
109934
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
109935
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 785871319]]
|
|
109936
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
109937
|
+
Completed 204 No Content in 2ms (ActiveRecord: 0.4ms)
|
|
109938
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109939
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
109940
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109941
|
+
----------------------------------------------------------------------------------------
|
|
109942
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
|
109943
|
+
----------------------------------------------------------------------------------------
|
|
109944
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109945
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109946
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
|
109947
|
+
Parameters: {"id"=>"123456"}
|
|
109948
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
|
109949
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
|
109950
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
109951
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
109952
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
109953
|
+
----------------------------------------------------------------
|
|
109954
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
|
|
109955
|
+
----------------------------------------------------------------
|
|
109956
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
|
|
109957
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
109958
|
+
[ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 5a970c66-a44f-4312-b299-a477bcc795cc) to DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
|
109959
|
+
[ActiveJob] [1m[35m (0.2ms)[0m begin transaction
|
|
109960
|
+
[ActiveJob] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "delayed_jobs" ("queue", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["queue", "default"], ["handler", "--- !ruby/object:ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper\njob_data:\n job_class: Fogged::Resources::AWSThumbnailJob\n job_id: 5a970c66-a44f-4312-b299-a477bcc795cc\n queue_name: default\n arguments:\n - _aj_globalid: gid://dummy/Fogged::Resource/14225656\n"], ["run_at", "2016-01-18 14:32:38.799837"], ["created_at", "2016-01-18 14:32:38.800439"], ["updated_at", "2016-01-18 14:32:38.800439"]]
|
|
109961
|
+
[ActiveJob] [1m[35m (1.0ms)[0m commit transaction
|
|
109962
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
109963
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:38.804923"], ["id", 14225656]]
|
|
109964
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
109965
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
109966
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
|
109967
|
+
----------------------------------------------------------------
|
|
109968
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
|
109969
|
+
----------------------------------------------------------------
|
|
109970
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
109971
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
109972
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:39.039588"], ["id", 1039265257]]
|
|
109973
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
|
109974
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
109975
|
+
-----------------------------------------------------------------------------------
|
|
109976
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
|
|
109977
|
+
-----------------------------------------------------------------------------------
|
|
109978
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
109979
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
109980
|
+
[1m[35m (0.0ms)[0m commit transaction
|
|
109981
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
|
109982
|
+
------------------------------------------------------------------------------------------
|
|
109983
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
|
|
109984
|
+
------------------------------------------------------------------------------------------
|
|
109985
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
|
109986
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
109987
|
+
[1m[35m (0.1ms)[0m commit transaction
|
|
109988
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
109989
|
+
----------------------------------------------------------------------------------------
|
|
109990
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
|
|
109991
|
+
----------------------------------------------------------------------------------------
|
|
109992
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
109993
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
|
109994
|
+
---------------------------------------------------------------------------------------
|
|
109995
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
|
|
109996
|
+
---------------------------------------------------------------------------------------
|
|
109997
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 937304175]]
|
|
109998
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
109999
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
110000
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
|
110001
|
+
----------------------------------------------------------------------------------------
|
|
110002
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
|
|
110003
|
+
----------------------------------------------------------------------------------------
|
|
110004
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
110005
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
110006
|
+
-------------------------------------------------------------------------------------
|
|
110007
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
|
|
110008
|
+
-------------------------------------------------------------------------------------
|
|
110009
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 183950720]]
|
|
110010
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
|
110011
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
|
110012
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
110013
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
|
110014
|
+
[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', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 517391740)[0m
|
|
110015
|
+
[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', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 701625837)
|
|
110016
|
+
[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', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 819504217)[0m
|
|
110017
|
+
[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', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 132093124)
|
|
110018
|
+
[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', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 431685987)[0m
|
|
110019
|
+
[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 0', 'mov0', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 620280917)
|
|
110020
|
+
[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', 'mov1', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 335514824)[0m
|
|
110021
|
+
[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 2', 'mov2', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 183950720)
|
|
110022
|
+
[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 3', 'mov3', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 1039265257)[0m
|
|
110023
|
+
[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 4', 'mov4', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 596998220)
|
|
110024
|
+
[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 0', 'png0', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 433078596)[0m
|
|
110025
|
+
[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', 'png1', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 785871319)
|
|
110026
|
+
[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 2', 'png2', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 937304175)[0m
|
|
110027
|
+
[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 3', 'png3', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 14225656)
|
|
110028
|
+
[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 4', 'png4', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 515736925)[0m
|
|
110029
|
+
[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, '2016-01-18 14:32:40', '2016-01-18 14:32:40', 538821867)
|
|
110030
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:40', '2016-01-18 14:32:40', 731805050)[0m
|
|
110031
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
110032
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 579229346)[0m
|
|
110033
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 153115190)
|
|
110034
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
110035
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:40', '2016-01-18 14:32:40', 419883833, 624739301, 701625837)
|
|
110036
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:40', '2016-01-18 14:32:40', 849405871, 624739301, 819504217)[0m
|
|
110037
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:40', '2016-01-18 14:32:40', 98413728, 245026679, 784085492)
|
|
110038
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:40', '2016-01-18 14:32:40', 779853880, 245026679, 431685987)[0m
|
|
110039
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
110040
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 624739301)[0m
|
|
110041
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 245026679)
|
|
110042
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 948421225)[0m
|
|
110043
|
+
[1m[35m (5.1ms)[0m commit transaction
|
|
110044
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110045
|
+
------------------------------------------------------------------------------------
|
|
110046
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
|
110047
|
+
------------------------------------------------------------------------------------
|
|
110048
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
|
110049
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c559060d-3c86-4964-9393-746ea1b3c202] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
110050
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c559060d-3c86-4964-9393-746ea1b3c202] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 27.12ms
|
|
110051
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
110052
|
+
-----------------------------------------------------------------------
|
|
110053
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
|
110054
|
+
-----------------------------------------------------------------------
|
|
110055
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
|
110056
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
|
110057
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] [1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
|
110058
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] [1m[35mSQL (0.6ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:32:41.139730"], ["id", 731805050]]
|
|
110059
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] [1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
110060
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] [1m[35m (0.1ms)[0m begin transaction
|
|
110061
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] [1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 100], ["updated_at", "2016-01-18 14:32:41.425632"], ["id", 731805050]]
|
|
110062
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] [1m[35m (0.7ms)[0m commit transaction
|
|
110063
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] [1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110064
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] [1m[35m (0.0ms)[0m commit transaction
|
|
110065
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 497.04ms
|
|
110066
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
|
110067
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
110068
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "fogged_resources"
|
|
110069
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 517391740)[0m
|
|
110070
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 701625837)
|
|
110071
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 819504217)[0m
|
|
110072
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 132093124)
|
|
110073
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 431685987)[0m
|
|
110074
|
+
[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 0', 'mov0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 620280917)
|
|
110075
|
+
[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', 'mov1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 335514824)[0m
|
|
110076
|
+
[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 2', 'mov2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 183950720)
|
|
110077
|
+
[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 3', 'mov3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 1039265257)[0m
|
|
110078
|
+
[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 4', 'mov4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 596998220)
|
|
110079
|
+
[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 0', 'png0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 433078596)[0m
|
|
110080
|
+
[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', 'png1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 785871319)
|
|
110081
|
+
[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 2', 'png2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 937304175)[0m
|
|
110082
|
+
[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 3', 'png3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 14225656)
|
|
110083
|
+
[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 4', 'png4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 515736925)[0m
|
|
110084
|
+
[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, '2016-01-18 14:32:41', '2016-01-18 14:32:41', 538821867)
|
|
110085
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:41', '2016-01-18 14:32:41', 731805050)[0m
|
|
110086
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
110087
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 579229346)[0m
|
|
110088
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 153115190)
|
|
110089
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
110090
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 419883833, 624739301, 701625837)
|
|
110091
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 849405871, 624739301, 819504217)[0m
|
|
110092
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 98413728, 245026679, 784085492)
|
|
110093
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 779853880, 245026679, 431685987)[0m
|
|
110094
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
110095
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 624739301)[0m
|
|
110096
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 245026679)
|
|
110097
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 948421225)[0m
|
|
110098
|
+
[1m[35m (1.1ms)[0m commit transaction
|
|
110099
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110100
|
+
--------------------------------------------
|
|
110101
|
+
FoggedTest: test_should_check_if_file_exists
|
|
110102
|
+
--------------------------------------------
|
|
110103
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
110104
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110105
|
+
---------------------------------------------------
|
|
110106
|
+
FoggedTest: test_should_return_directory_public_url
|
|
110107
|
+
---------------------------------------------------
|
|
110108
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
110109
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110110
|
+
---------------------------------------------------
|
|
110111
|
+
FoggedTest: test_should_return_resources_public_url
|
|
110112
|
+
---------------------------------------------------
|
|
110113
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
110114
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110115
|
+
----------------------
|
|
110116
|
+
FoggedTest: test_truth
|
|
110117
|
+
----------------------
|
|
110118
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
110119
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110120
|
+
------------------------------------------------------------------------
|
|
110121
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
|
110122
|
+
------------------------------------------------------------------------
|
|
110123
|
+
[1m[35mMovie Load (0.3ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
110124
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
110125
|
+
Parameters: {"type"=>"movie"}
|
|
110126
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
|
110127
|
+
[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]]
|
|
110128
|
+
[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]]
|
|
110129
|
+
[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]]
|
|
110130
|
+
Completed 200 OK in 27ms (Views: 3.5ms | ActiveRecord: 0.3ms)
|
|
110131
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
|
110132
|
+
[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]]
|
|
110133
|
+
[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]]
|
|
110134
|
+
[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]]
|
|
110135
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
110136
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
110137
|
+
---------------------------------------------------------------------
|
|
110138
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
|
110139
|
+
---------------------------------------------------------------------
|
|
110140
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
110141
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
110142
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
|
110143
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
|
|
110144
|
+
[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]]
|
|
110145
|
+
Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms)
|
|
110146
|
+
[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]]
|
|
110147
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
110148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
110149
|
+
-----------------------------------------------------------------------------------------------
|
|
110150
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
|
110151
|
+
-----------------------------------------------------------------------------------------------
|
|
110152
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
110153
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
110154
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "f4ceb15a18ae512fc20488081cbdf593"]]
|
|
110155
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("name", "extension", "content_type", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "footest barish"], ["extension", "txt"], ["content_type", "text/plain"], ["token", "f4ceb15a18ae512fc20488081cbdf593"], ["created_at", "2016-01-18 14:32:41.663516"], ["updated_at", "2016-01-18 14:32:41.663516"]]
|
|
110156
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110157
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
110158
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["movie_id", 624739301], ["resource_id", 1039265258], ["created_at", "2016-01-18 14:32:41.671664"], ["updated_at", "2016-01-18 14:32:41.671664"]]
|
|
110159
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
110160
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
110161
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
|
110162
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301[0m
|
|
110163
|
+
[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" = ? AND (fogged_resources.name LIKE '%test%') [["movie_id", 624739301]]
|
|
110164
|
+
Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)
|
|
110165
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
|
110166
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
110167
|
+
--------------------------------------------------------------------
|
|
110168
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
|
110169
|
+
--------------------------------------------------------------------
|
|
110170
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
|
110171
|
+
[1m[35mMovie Load (0.0ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
|
|
110172
|
+
[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]]
|
|
110173
|
+
[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", 245026679]]
|
|
110174
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
110175
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
|
110176
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)[0m
|
|
110177
|
+
[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]]
|
|
110178
|
+
[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]]
|
|
110179
|
+
Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.3ms)
|
|
110180
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
110181
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110182
|
+
-------------------------------------------------------------------------------
|
|
110183
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
|
110184
|
+
-------------------------------------------------------------------------------
|
|
110185
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
|
110186
|
+
Processing by Fogged::ResourcesController#index as HTML
|
|
110187
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
|
110188
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890[0m
|
|
110189
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
|
110190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
110191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110192
|
+
--------------------------------------------------------------------
|
|
110193
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
|
110194
|
+
--------------------------------------------------------------------
|
|
110195
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
110196
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
110197
|
+
Parameters: {"id"=>"785871319"}
|
|
110198
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
110199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
110200
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:32:41.699978"], ["id", 785871319]]
|
|
110201
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
110202
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110203
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
110204
|
+
Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.5ms)
|
|
110205
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
|
110206
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
110207
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110208
|
+
------------------------------------------------------------------------------------------------
|
|
110209
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
|
110210
|
+
------------------------------------------------------------------------------------------------
|
|
110211
|
+
[1m[35mFogged::Resource Load (0.7ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
110212
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
110213
|
+
Parameters: {"id"=>"335514824"}
|
|
110214
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
110215
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
110216
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:41.762369"], ["id", 335514824]]
|
|
110217
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
110218
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110219
|
+
[1m[35m (0.1ms)[0m commit transaction
|
|
110220
|
+
Completed 200 OK in 14ms (Views: 3.3ms | ActiveRecord: 1.8ms)
|
|
110221
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
110222
|
+
[1m[35m (0.7ms)[0m begin transaction
|
|
110223
|
+
----------------------------------------------------------------------------------------
|
|
110224
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
|
110225
|
+
----------------------------------------------------------------------------------------
|
|
110226
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
|
110227
|
+
Parameters: {"id"=>"123456"}
|
|
110228
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
|
110229
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
|
110230
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
110231
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110232
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
|
110233
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 517391740)[0m
|
|
110234
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 701625837)
|
|
110235
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 819504217)[0m
|
|
110236
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 132093124)
|
|
110237
|
+
[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', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 431685987)[0m
|
|
110238
|
+
[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 0', 'mov0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 620280917)
|
|
110239
|
+
[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', 'mov1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 335514824)[0m
|
|
110240
|
+
[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 2', 'mov2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 183950720)
|
|
110241
|
+
[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 3', 'mov3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 1039265257)[0m
|
|
110242
|
+
[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 4', 'mov4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 596998220)
|
|
110243
|
+
[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 0', 'png0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 433078596)[0m
|
|
110244
|
+
[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', 'png1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 785871319)
|
|
110245
|
+
[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 2', 'png2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 937304175)[0m
|
|
110246
|
+
[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 3', 'png3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 14225656)
|
|
110247
|
+
[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 4', 'png4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 515736925)[0m
|
|
110248
|
+
[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, '2016-01-18 14:32:41', '2016-01-18 14:32:41', 538821867)
|
|
110249
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:41', '2016-01-18 14:32:41', 731805050)[0m
|
|
110250
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
110251
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 579229346)[0m
|
|
110252
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 153115190)
|
|
110253
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
110254
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 419883833, 624739301, 701625837)
|
|
110255
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 849405871, 624739301, 819504217)[0m
|
|
110256
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 98413728, 245026679, 784085492)
|
|
110257
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 779853880, 245026679, 431685987)[0m
|
|
110258
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
|
110259
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 624739301)[0m
|
|
110260
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 245026679)
|
|
110261
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 948421225)[0m
|
|
110262
|
+
[1m[35m (0.9ms)[0m commit transaction
|
|
110263
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110264
|
+
------------------------------------------------------------------
|
|
110265
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
|
110266
|
+
------------------------------------------------------------------
|
|
110267
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
110268
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
110269
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
110270
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110271
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "84f77d4fbe99cd05466c6b943c6ad0bf"]]
|
|
110272
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("name", "extension", "content_type", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["name", "Dummy"], ["extension", "png"], ["content_type", "image/png"], ["uploading", "t"], ["token", "84f77d4fbe99cd05466c6b943c6ad0bf"], ["created_at", "2016-01-18 14:32:41.966137"], ["updated_at", "2016-01-18 14:32:41.966137"]]
|
|
110273
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
110274
|
+
Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.6ms)
|
|
110275
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
110276
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
|
110277
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
|
110278
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
110279
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110280
|
+
--------------------------------------------------------------------------------------------
|
|
110281
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
|
110282
|
+
--------------------------------------------------------------------------------------------
|
|
110283
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
110284
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
110285
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
|
110286
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110287
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
110288
|
+
Completed 422 Unprocessable Entity in 9ms (ActiveRecord: 0.1ms)
|
|
110289
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
110290
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
110291
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110292
|
+
-------------------------------------------------------------------------------------------
|
|
110293
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
|
110294
|
+
-------------------------------------------------------------------------------------------
|
|
110295
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
110296
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
110297
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
|
110298
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
|
110299
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
110300
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
110301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110302
|
+
---------------------------------------------------------------------------------------
|
|
110303
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
|
110304
|
+
---------------------------------------------------------------------------------------
|
|
110305
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
110306
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
110307
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
|
|
110308
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
|
110309
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
110310
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
110311
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110312
|
+
-----------------------------------------------------------------------------------
|
|
110313
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
|
110314
|
+
-----------------------------------------------------------------------------------
|
|
110315
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
110316
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
110317
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
|
110318
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
|
110319
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
110320
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
110321
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110322
|
+
-------------------------------------------------------------------------------------------------
|
|
110323
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
|
110324
|
+
-------------------------------------------------------------------------------------------------
|
|
110325
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
|
110326
|
+
Processing by Fogged::ResourcesController#create as HTML
|
|
110327
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
|
110328
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
|
110329
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
110330
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110331
|
+
---------------------------------------------------
|
|
110332
|
+
ImageTest: test_image_url_changing_the_storage_name
|
|
110333
|
+
---------------------------------------------------
|
|
110334
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
110335
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110336
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-01-18 14:32:42.002525"], ["updated_at", "2016-01-18 14:32:42.002525"]]
|
|
110337
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110338
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
110339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110340
|
+
-------------------------------------------------------------
|
|
110341
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
|
110342
|
+
-------------------------------------------------------------
|
|
110343
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
110344
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110345
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:32:42.006863"], ["id", 701625837]]
|
|
110346
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110347
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
110348
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
110349
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
110350
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110351
|
+
--------------------------------------------------------
|
|
110352
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
|
110353
|
+
--------------------------------------------------------
|
|
110354
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
110355
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110356
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-01-18 14:32:42.011552"], ["updated_at", "2016-01-18 14:32:42.011552"]]
|
|
110357
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110358
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
110359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110360
|
+
--------------------------------------------------
|
|
110361
|
+
ImageTest: test_should_save_image_without_resource
|
|
110362
|
+
--------------------------------------------------
|
|
110363
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
110364
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-01-18 14:32:42.014091"], ["updated_at", "2016-01-18 14:32:42.014091"]]
|
|
110365
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
110366
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
110367
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
110368
|
+
---------------------------------------------------
|
|
110369
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
|
110370
|
+
---------------------------------------------------
|
|
110371
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110372
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "54e59026b35e6ccdef5e2e7e986d25e5"]]
|
|
110373
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "54e59026b35e6ccdef5e2e7e986d25e5"], ["created_at", "2016-01-18 14:32:42.018303"], ["updated_at", "2016-01-18 14:32:42.018303"]]
|
|
110374
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
110375
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
110376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
110377
|
+
----------------------------------------------------------------------------
|
|
110378
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
|
110379
|
+
----------------------------------------------------------------------------
|
|
110380
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110381
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "5d0d30170526bdddeb8cd6172f0459b1"]]
|
|
110382
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "5d0d30170526bdddeb8cd6172f0459b1"], ["created_at", "2016-01-18 14:32:42.021770"], ["updated_at", "2016-01-18 14:32:42.021770"]]
|
|
110383
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
110384
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110385
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265258]]
|
|
110386
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110387
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
110388
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110389
|
+
-------------------------------------------------------------------------
|
|
110390
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
|
110391
|
+
-------------------------------------------------------------------------
|
|
110392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
110393
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "0dc1bbb8902b6201855e2df183233974"]]
|
|
110394
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "0dc1bbb8902b6201855e2df183233974"], ["created_at", "2016-01-18 14:32:42.026948"], ["updated_at", "2016-01-18 14:32:42.026948"]]
|
|
110395
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110396
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
110397
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110398
|
+
-------------------------------------------------------------
|
|
110399
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
|
110400
|
+
-------------------------------------------------------------
|
|
110401
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
110402
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "da4243675a6daca543cb4da2b3865d22"]]
|
|
110403
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "da4243675a6daca543cb4da2b3865d22"], ["created_at", "2016-01-18 14:32:42.029426"], ["updated_at", "2016-01-18 14:32:42.029426"]]
|
|
110404
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110405
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
110406
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110407
|
+
------------------------------------------------------
|
|
110408
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
|
110409
|
+
------------------------------------------------------
|
|
110410
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
110411
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "f229c16ffecbab2048add61cfd58641d"]]
|
|
110412
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "f229c16ffecbab2048add61cfd58641d"], ["created_at", "2016-01-18 14:32:42.033283"], ["updated_at", "2016-01-18 14:32:42.033283"]]
|
|
110413
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110414
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
110415
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110416
|
+
----------------------------------------------------------------------------
|
|
110417
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
|
110418
|
+
----------------------------------------------------------------------------
|
|
110419
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
110420
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
110421
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
110422
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110423
|
+
-------------------------------------------------------------------------
|
|
110424
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
|
110425
|
+
-------------------------------------------------------------------------
|
|
110426
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
110427
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
110428
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
110429
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110430
|
+
--------------------------------------------------------
|
|
110431
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
|
110432
|
+
--------------------------------------------------------
|
|
110433
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
|
110434
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110435
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:32:42.040347"], ["id", 785871319]]
|
|
110436
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110437
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
110438
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110439
|
+
--------------------------------------------------------
|
|
110440
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
|
110441
|
+
--------------------------------------------------------
|
|
110442
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
|
110443
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
110444
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
110445
|
+
------------------------------------------------------------------------------
|
|
110446
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
|
110447
|
+
------------------------------------------------------------------------------
|
|
110448
|
+
[1m[36mFogged::Resource Load (0.6ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
|
110449
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
110450
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:42.135991"], ["id", 335514824]]
|
|
110451
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
110452
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
110453
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
|
110454
|
+
[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', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 517391740)[0m
|
|
110455
|
+
[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', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 701625837)
|
|
110456
|
+
[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', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 819504217)[0m
|
|
110457
|
+
[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', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 132093124)
|
|
110458
|
+
[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', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 431685987)[0m
|
|
110459
|
+
[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 0', 'mov0', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 620280917)
|
|
110460
|
+
[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', 'mov1', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 335514824)[0m
|
|
110461
|
+
[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 2', 'mov2', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 183950720)
|
|
110462
|
+
[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 3', 'mov3', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 1039265257)[0m
|
|
110463
|
+
[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 4', 'mov4', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 596998220)
|
|
110464
|
+
[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 0', 'png0', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 433078596)[0m
|
|
110465
|
+
[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', 'png1', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 785871319)
|
|
110466
|
+
[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 2', 'png2', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 937304175)[0m
|
|
110467
|
+
[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 3', 'png3', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 14225656)
|
|
110468
|
+
[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 4', 'png4', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 515736925)[0m
|
|
110469
|
+
[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, '2016-01-18 14:32:42', '2016-01-18 14:32:42', 538821867)
|
|
110470
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:42', '2016-01-18 14:32:42', 731805050)[0m
|
|
110471
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
|
110472
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 579229346)[0m
|
|
110473
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 153115190)
|
|
110474
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
|
110475
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:42', '2016-01-18 14:32:42', 419883833, 624739301, 701625837)
|
|
110476
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:42', '2016-01-18 14:32:42', 849405871, 624739301, 819504217)[0m
|
|
110477
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:42', '2016-01-18 14:32:42', 98413728, 245026679, 784085492)
|
|
110478
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:42', '2016-01-18 14:32:42', 779853880, 245026679, 431685987)[0m
|
|
110479
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "movies"
|
|
110480
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 624739301)[0m
|
|
110481
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 245026679)
|
|
110482
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 948421225)[0m
|
|
110483
|
+
[1m[35m (1.0ms)[0m commit transaction
|
|
110484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
110485
|
+
-------------------------------------------------------------
|
|
110486
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
|
110487
|
+
-------------------------------------------------------------
|
|
110488
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
|
110489
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
|
110490
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
|
|
110491
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110492
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:32:42.306555"], ["id", 431685987]]
|
|
110493
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110494
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
110495
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
110496
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
110497
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
110498
|
+
---------------------------------------------------
|
|
110499
|
+
MovieTest: test_should_save_movie_with_no_resources
|
|
110500
|
+
---------------------------------------------------
|
|
110501
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
110502
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-01-18 14:32:42.313543"], ["updated_at", "2016-01-18 14:32:42.313543"]]
|
|
110503
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
110504
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
110505
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
110506
|
+
--------------------------------------------------------
|
|
110507
|
+
MovieTest: test_should_save_movie_with_several_resources
|
|
110508
|
+
--------------------------------------------------------
|
|
110509
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
|
110510
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
|
110511
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
110512
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:32:42.321343"], ["updated_at", "2016-01-18 14:32:42.321343"]]
|
|
110513
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["resource_id", 701625837], ["movie_id", 948421226], ["created_at", "2016-01-18 14:32:42.322573"], ["updated_at", "2016-01-18 14:32:42.322573"]]
|
|
110514
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421226], ["created_at", "2016-01-18 14:32:42.323786"], ["updated_at", "2016-01-18 14:32:42.323786"]]
|
|
110515
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
110516
|
+
[1m[35m (0.5ms)[0m rollback transaction
|