fogged 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/fogged/resource.rb +2 -1
- data/lib/fogged/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +2804 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceb2197719fd9737a9ebcabbc2645128dcc85822
|
4
|
+
data.tar.gz: 967ee4286c60f10f5e2e2a0503e22f4d651c9c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 326755b4fd2f45a641c8c21e4bb4e56b8c77376a8c1b98977b987bea48bc751712256ce5a3c47440d24e7d01af0a6426e9aa26094c966a5d075a46a99ff53006
|
7
|
+
data.tar.gz: 8e1a4066f384a420c5ef26c36a6159248b83db2a3247f715cb6df5ab7b60232d5da0e0cb6607363279fc176811d01328c8765a9b251f0ea22027c4457be973aa
|
@@ -95,9 +95,10 @@ module Fogged
|
|
95
95
|
@fogged_file = files.get(fogged_name) || files.create(
|
96
96
|
:key => fogged_name,
|
97
97
|
:body => "",
|
98
|
-
:public => true,
|
99
98
|
:content_type => content_type
|
100
99
|
)
|
100
|
+
@fogged_file.public = "public_read"
|
101
|
+
@fogged_file.tap(&:save)
|
101
102
|
end
|
102
103
|
|
103
104
|
def find_size!
|
data/lib/fogged/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -138881,3 +138881,2807 @@ ImageTest: test_should_save_image_without_resource
|
|
138881
138881
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-13 05:38:52.329517"], ["updated_at", "2016-07-13 05:38:52.329517"]]
|
138882
138882
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
138883
138883
|
[1m[35m (0.3ms)[0m rollback transaction
|
138884
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
138885
|
+
[1m[35m (0.1ms)[0m begin transaction
|
138886
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
138887
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 517391740)
|
138888
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 701625837)[0m
|
138889
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 819504217)
|
138890
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 132093124)[0m
|
138891
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 431685987)
|
138892
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 620280917)[0m
|
138893
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 335514824)
|
138894
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 183950720)[0m
|
138895
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 1039265257)
|
138896
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 596998220)[0m
|
138897
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 433078596)
|
138898
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 785871319)[0m
|
138899
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 937304175)
|
138900
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 14225656)[0m
|
138901
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 515736925)
|
138902
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 538821867)[0m
|
138903
|
+
[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-07-15 09:40:43', '2016-07-15 09:40:43', 731805050)
|
138904
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "images"[0m
|
138905
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 579229346)
|
138906
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 153115190)[0m
|
138907
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "movie_fogged_resources"
|
138908
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:43', '2016-07-15 09:40:43', 419883833, 624739301, 701625837)[0m
|
138909
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:43', '2016-07-15 09:40:43', 849405871, 624739301, 819504217)
|
138910
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:43', '2016-07-15 09:40:43', 98413728, 245026679, 784085492)[0m
|
138911
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:43', '2016-07-15 09:40:43', 779853880, 245026679, 431685987)
|
138912
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "movies"[0m
|
138913
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 624739301)
|
138914
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 245026679)[0m
|
138915
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 948421225)
|
138916
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
138917
|
+
[1m[35m (0.1ms)[0m begin transaction
|
138918
|
+
----------------------------------------------------------------
|
138919
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
|
138920
|
+
----------------------------------------------------------------
|
138921
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 14225656]]
|
138922
|
+
spawn> parent PID = 85479
|
138923
|
+
spawn> child PID = 85480
|
138924
|
+
[1m[35m (1.3ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
138925
|
+
[ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: cdf305bf-686e-4b48-94b9-426ca23b8439) to Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
138926
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
138927
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-07-15 09:40:43.805127"], ["id", 14225656]]
|
138928
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
138929
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
138930
|
+
spawn> child[85480] took 0.122607 sec
|
138931
|
+
[1m[35m (0.5ms)[0m begin transaction
|
138932
|
+
-----------------------------------------------------------------------
|
138933
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file_inline
|
138934
|
+
-----------------------------------------------------------------------
|
138935
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 14225656]]
|
138936
|
+
spawn> parent PID = 85479
|
138937
|
+
spawn> child PID = 85481
|
138938
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
138939
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f1239654-f0cf-4fbe-bbe2-9761d67819b5] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
138940
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f1239654-f0cf-4fbe-bbe2-9761d67819b5] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1261.56ms
|
138941
|
+
spawn> Exception in child[85481] - OpenURI::HTTPError: 403 Forbidden
|
138942
|
+
spawn> /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:358:in `open_http'
|
138943
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
|
138944
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
|
138945
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
|
138946
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
|
138947
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
|
138948
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in `open'
|
138949
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in `open'
|
138950
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:13:in `block (3 levels) in perform'
|
138951
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
|
138952
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:12:in `block (2 levels) in perform'
|
138953
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
|
138954
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:11:in `block in perform'
|
138955
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each'
|
138956
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each_with_index'
|
138957
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `perform'
|
138958
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:32:in `block in perform_now'
|
138959
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
138960
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
138961
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
|
138962
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
138963
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
138964
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
|
138965
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `call'
|
138966
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
|
138967
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `call'
|
138968
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
|
138969
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
|
138970
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
138971
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
|
138972
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
|
138973
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `block in tag_logger'
|
138974
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
138975
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
|
138976
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
|
138977
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `tag_logger'
|
138978
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
|
138979
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `instance_exec'
|
138980
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
|
138981
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `call'
|
138982
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `block in simple'
|
138983
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `call'
|
138984
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `block in around'
|
138985
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
138986
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
138987
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
|
138988
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_perform_callbacks'
|
138989
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
138990
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:31:in `perform_now'
|
138991
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:16:in `perform_now'
|
138992
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:19:in `encode_image'
|
138993
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:10:in `encode!'
|
138994
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:115:in `block (3 levels) in <class:AWSEncoderTest>'
|
138995
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:71:in `assert_difference'
|
138996
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:93:in `assert_no_difference'
|
138997
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:114:in `block (2 levels) in <class:AWSEncoderTest>'
|
138998
|
+
/Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
|
138999
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
|
139000
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
|
139001
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
|
139002
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
|
139003
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
|
139004
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
|
139005
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `new'
|
139006
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
|
139007
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:107:in `block in <class:AWSEncoderTest>'
|
139008
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
|
139009
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
|
139010
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
|
139011
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
|
139012
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
|
139013
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139014
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
|
139015
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
|
139016
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
|
139017
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
|
139018
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
|
139019
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
|
139020
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
|
139021
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
|
139022
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139023
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
|
139024
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
|
139025
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
|
139026
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
|
139027
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
|
139028
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
|
139029
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
|
139030
|
+
spawn> child[85481] took 1.356289 sec
|
139031
|
+
[1m[35m (0.5ms)[0m begin transaction
|
139032
|
+
----------------------------------------------------------------
|
139033
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
139034
|
+
----------------------------------------------------------------
|
139035
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
139036
|
+
spawn> parent PID = 85479
|
139037
|
+
spawn> child PID = 85483
|
139038
|
+
spawn> Exception in child[85483] - NoMethodError: undefined method `public=' for nil:NilClass
|
139039
|
+
spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
|
139040
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:83:in `bucket'
|
139041
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:56:in `output'
|
139042
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:29:in `encode_video'
|
139043
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:9:in `encode!'
|
139044
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:48:in `block (2 levels) in <class:AWSEncoderTest>'
|
139045
|
+
/Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
|
139046
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
|
139047
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
|
139048
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
|
139049
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
|
139050
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
|
139051
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
|
139052
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `new'
|
139053
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
|
139054
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:40:in `block in <class:AWSEncoderTest>'
|
139055
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
|
139056
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
|
139057
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
|
139058
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
|
139059
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
|
139060
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139061
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
|
139062
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
|
139063
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
|
139064
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
|
139065
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
|
139066
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
|
139067
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
|
139068
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
|
139069
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139070
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
|
139071
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
|
139072
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
|
139073
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
|
139074
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
|
139075
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
|
139076
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
|
139077
|
+
spawn> child[85483] took 0.084146 sec
|
139078
|
+
[1m[35m (0.6ms)[0m begin transaction
|
139079
|
+
-----------------------------------------------------------------------------------
|
139080
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
|
139081
|
+
-----------------------------------------------------------------------------------
|
139082
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
139083
|
+
spawn> parent PID = 85479
|
139084
|
+
spawn> child PID = 85484
|
139085
|
+
spawn> Exception in child[85484] - NoMethodError: undefined method `public=' for nil:NilClass
|
139086
|
+
spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
|
139087
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:83:in `bucket'
|
139088
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:56:in `output'
|
139089
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:29:in `encode_video'
|
139090
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:9:in `encode!'
|
139091
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:145:in `block (2 levels) in <class:AWSEncoderTest>'
|
139092
|
+
/Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
|
139093
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
|
139094
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
|
139095
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
|
139096
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
|
139097
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
|
139098
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
|
139099
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `new'
|
139100
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
|
139101
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:126:in `block in <class:AWSEncoderTest>'
|
139102
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
|
139103
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
|
139104
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
|
139105
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
|
139106
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
|
139107
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139108
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
|
139109
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
|
139110
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
|
139111
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
|
139112
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
|
139113
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
|
139114
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
|
139115
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
|
139116
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139117
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
|
139118
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
|
139119
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
|
139120
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
|
139121
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
|
139122
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
|
139123
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
|
139124
|
+
spawn> child[85484] took 0.07671 sec
|
139125
|
+
[1m[35m (0.6ms)[0m begin transaction
|
139126
|
+
------------------------------------------------------------------------------------------
|
139127
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
|
139128
|
+
------------------------------------------------------------------------------------------
|
139129
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
139130
|
+
spawn> parent PID = 85479
|
139131
|
+
spawn> child PID = 85485
|
139132
|
+
spawn> Exception in child[85485] - NoMethodError: undefined method `public=' for nil:NilClass
|
139133
|
+
spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
|
139134
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:83:in `bucket'
|
139135
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:56:in `output'
|
139136
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:29:in `encode_video'
|
139137
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:9:in `encode!'
|
139138
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:167:in `block (2 levels) in <class:AWSEncoderTest>'
|
139139
|
+
/Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
|
139140
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
|
139141
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
|
139142
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
|
139143
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
|
139144
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
|
139145
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
|
139146
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `new'
|
139147
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
|
139148
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:157:in `block in <class:AWSEncoderTest>'
|
139149
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
|
139150
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
|
139151
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
|
139152
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
|
139153
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
|
139154
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139155
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
|
139156
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
|
139157
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
|
139158
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
|
139159
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
|
139160
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
|
139161
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
|
139162
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
|
139163
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139164
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
|
139165
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
|
139166
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
|
139167
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
|
139168
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
|
139169
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
|
139170
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
|
139171
|
+
spawn> child[85485] took 0.080237 sec
|
139172
|
+
[1m[35m (0.4ms)[0m begin transaction
|
139173
|
+
----------------------------------------------------------------------------------------
|
139174
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
|
139175
|
+
----------------------------------------------------------------------------------------
|
139176
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139177
|
+
spawn> parent PID = 85479
|
139178
|
+
spawn> child PID = 85486
|
139179
|
+
spawn> child[85486] took 0.003956 sec
|
139180
|
+
[1m[35m (0.6ms)[0m begin transaction
|
139181
|
+
---------------------------------------------------------------------------------------
|
139182
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
|
139183
|
+
---------------------------------------------------------------------------------------
|
139184
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 937304175]]
|
139185
|
+
spawn> parent PID = 85479
|
139186
|
+
spawn> child PID = 85487
|
139187
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
139188
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
139189
|
+
spawn> child[85487] took 0.070256 sec
|
139190
|
+
[1m[35m (0.6ms)[0m begin transaction
|
139191
|
+
----------------------------------------------------------------------------------------
|
139192
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
|
139193
|
+
----------------------------------------------------------------------------------------
|
139194
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
139195
|
+
spawn> parent PID = 85479
|
139196
|
+
spawn> child PID = 85488
|
139197
|
+
spawn> child[85488] took 0.004231 sec
|
139198
|
+
[1m[35m (0.5ms)[0m begin transaction
|
139199
|
+
-------------------------------------------------------------------------------------
|
139200
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
|
139201
|
+
-------------------------------------------------------------------------------------
|
139202
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 183950720]]
|
139203
|
+
spawn> parent PID = 85479
|
139204
|
+
spawn> child PID = 85489
|
139205
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
139206
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
139207
|
+
spawn> child[85489] took 0.070312 sec
|
139208
|
+
[1m[35m (0.3ms)[0m begin transaction
|
139209
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
139210
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 517391740)
|
139211
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 701625837)[0m
|
139212
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 819504217)
|
139213
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 132093124)[0m
|
139214
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 431685987)
|
139215
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 620280917)[0m
|
139216
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 335514824)
|
139217
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 183950720)[0m
|
139218
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 1039265257)
|
139219
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 596998220)[0m
|
139220
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 433078596)
|
139221
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 785871319)[0m
|
139222
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 937304175)
|
139223
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 14225656)[0m
|
139224
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 515736925)
|
139225
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 538821867)[0m
|
139226
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 731805050)
|
139227
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
139228
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 579229346)
|
139229
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 153115190)[0m
|
139230
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
139231
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 419883833, 624739301, 701625837)[0m
|
139232
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 849405871, 624739301, 819504217)
|
139233
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 98413728, 245026679, 784085492)[0m
|
139234
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 779853880, 245026679, 431685987)
|
139235
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
139236
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 624739301)
|
139237
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 245026679)[0m
|
139238
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 948421225)
|
139239
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
139240
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139241
|
+
---------------------------------------------------
|
139242
|
+
ImageTest: test_image_url_changing_the_storage_name
|
139243
|
+
---------------------------------------------------
|
139244
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139245
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139246
|
+
[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-07-15 09:40:45.803955"], ["updated_at", "2016-07-15 09:40:45.803955"]]
|
139247
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
139248
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
139249
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139250
|
+
-------------------------------------------------------------
|
139251
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
139252
|
+
-------------------------------------------------------------
|
139253
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
139254
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139255
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["uploading", "t"], ["updated_at", "2016-07-15 09:40:45.810082"], ["id", 701625837]]
|
139256
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
139257
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
139258
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
139259
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
139260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139261
|
+
--------------------------------------------------------
|
139262
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
139263
|
+
--------------------------------------------------------
|
139264
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
139265
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139266
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-07-15 09:40:45.822214"], ["updated_at", "2016-07-15 09:40:45.822214"]]
|
139267
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139268
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
139269
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139270
|
+
--------------------------------------------------
|
139271
|
+
ImageTest: test_should_save_image_without_resource
|
139272
|
+
--------------------------------------------------
|
139273
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
139274
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 09:40:45.824399"], ["updated_at", "2016-07-15 09:40:45.824399"]]
|
139275
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139276
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
139277
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139278
|
+
---------------------------------------------------
|
139279
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
139280
|
+
---------------------------------------------------
|
139281
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139282
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "7d35975636e0dd992d98d10464a6d54c"]]
|
139283
|
+
[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", "7d35975636e0dd992d98d10464a6d54c"], ["created_at", "2016-07-15 09:40:45.829603"], ["updated_at", "2016-07-15 09:40:45.829603"]]
|
139284
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139285
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
139286
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139287
|
+
----------------------------------------------------------------------------
|
139288
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
139289
|
+
----------------------------------------------------------------------------
|
139290
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139291
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "89af78bf7c23e1739141d7749a8c6ca4"]]
|
139292
|
+
[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", "89af78bf7c23e1739141d7749a8c6ca4"], ["created_at", "2016-07-15 09:40:45.832412"], ["updated_at", "2016-07-15 09:40:45.832412"]]
|
139293
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139294
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139295
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 1039265265]]
|
139296
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139297
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
139298
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139299
|
+
-------------------------------------------------------------------------
|
139300
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
139301
|
+
-------------------------------------------------------------------------
|
139302
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
139303
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "97931438d644cdce1797293b34d2aaff"]]
|
139304
|
+
[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", "97931438d644cdce1797293b34d2aaff"], ["created_at", "2016-07-15 09:40:45.837394"], ["updated_at", "2016-07-15 09:40:45.837394"]]
|
139305
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139306
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
139307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139308
|
+
-------------------------------------------------------------
|
139309
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
139310
|
+
-------------------------------------------------------------
|
139311
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
139312
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "b3a54dabbd787008cb96e5a421914dd0"]]
|
139313
|
+
[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", "b3a54dabbd787008cb96e5a421914dd0"], ["created_at", "2016-07-15 09:40:45.839908"], ["updated_at", "2016-07-15 09:40:45.839908"]]
|
139314
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139315
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
139316
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139317
|
+
------------------------------------------------------
|
139318
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
139319
|
+
------------------------------------------------------
|
139320
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
139321
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "01088f3b5ab5e1a020b8283194eeca7c"]]
|
139322
|
+
[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", "01088f3b5ab5e1a020b8283194eeca7c"], ["created_at", "2016-07-15 09:40:45.843072"], ["updated_at", "2016-07-15 09:40:45.843072"]]
|
139323
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139324
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
139325
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139326
|
+
----------------------------------------------------------------------------
|
139327
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
139328
|
+
----------------------------------------------------------------------------
|
139329
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
139330
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
139331
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
139332
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139333
|
+
-------------------------------------------------------------------------
|
139334
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
139335
|
+
-------------------------------------------------------------------------
|
139336
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
139337
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
139338
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
139339
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139340
|
+
--------------------------------------------------------
|
139341
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
139342
|
+
--------------------------------------------------------
|
139343
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139345
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["width", 800], ["height", 600], ["updated_at", "2016-07-15 09:40:45.850258"], ["id", 785871319]]
|
139346
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
139347
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
139348
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139349
|
+
--------------------------------------------------------
|
139350
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
139351
|
+
--------------------------------------------------------
|
139352
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
139353
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139354
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139355
|
+
------------------------------------------------------------------------------
|
139356
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
139357
|
+
------------------------------------------------------------------------------
|
139358
|
+
spawn> parent PID = 85479
|
139359
|
+
spawn> child PID = 85490
|
139360
|
+
[1m[35mFogged::Resource Load (0.6ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
139361
|
+
spawn> Exception in child[85490] - NoMethodError: undefined method `public=' for nil:NilClass
|
139362
|
+
spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
|
139363
|
+
/Users/david/projects/fogged/app/models/fogged/resources/encoder.rb:9:in `provider_for'
|
139364
|
+
/Users/david/projects/fogged/app/models/fogged/resources/encoder.rb:5:in `for'
|
139365
|
+
/Users/david/projects/fogged/app/models/fogged/resource.rb:120:in `encode!'
|
139366
|
+
/Users/david/projects/fogged/app/models/fogged/resource.rb:83:in `process!'
|
139367
|
+
/Users/david/projects/fogged/test/models/fogged/resource_test.rb:80:in `block (2 levels) in <class:ResourceTest>'
|
139368
|
+
/Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
|
139369
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
|
139370
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
|
139371
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
|
139372
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
|
139373
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
|
139374
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
|
139375
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `new'
|
139376
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
|
139377
|
+
/Users/david/projects/fogged/test/models/fogged/resource_test.rb:69:in `block in <class:ResourceTest>'
|
139378
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
|
139379
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
|
139380
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
|
139381
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
|
139382
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
|
139383
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139384
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
|
139385
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
|
139386
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
|
139387
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
|
139388
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
|
139389
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
|
139390
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
|
139391
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
|
139392
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139393
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
|
139394
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
|
139395
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
|
139396
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
|
139397
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
|
139398
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
|
139399
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
|
139400
|
+
spawn> child[85490] took 0.066535 sec
|
139401
|
+
[1m[35m (0.4ms)[0m begin transaction
|
139402
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
139403
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 517391740)
|
139404
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 701625837)[0m
|
139405
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 819504217)
|
139406
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 132093124)[0m
|
139407
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 431685987)
|
139408
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 620280917)[0m
|
139409
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 335514824)
|
139410
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 183950720)[0m
|
139411
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 1039265257)
|
139412
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 596998220)[0m
|
139413
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 433078596)
|
139414
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 785871319)[0m
|
139415
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 937304175)
|
139416
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 14225656)[0m
|
139417
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 515736925)
|
139418
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 538821867)[0m
|
139419
|
+
[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-07-15 09:40:45', '2016-07-15 09:40:45', 731805050)
|
139420
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
139421
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 579229346)
|
139422
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 153115190)[0m
|
139423
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
139424
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 419883833, 624739301, 701625837)[0m
|
139425
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 849405871, 624739301, 819504217)
|
139426
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 98413728, 245026679, 784085492)[0m
|
139427
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 779853880, 245026679, 431685987)
|
139428
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
139429
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 624739301)
|
139430
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 245026679)[0m
|
139431
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 948421225)
|
139432
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
139433
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139434
|
+
--------------------------------------------------------------------
|
139435
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
139436
|
+
--------------------------------------------------------------------
|
139437
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139438
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
139439
|
+
Parameters: {"id"=>"785871319"}
|
139440
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
139441
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
139442
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 09:40:45.969336"], ["id", 785871319]]
|
139443
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139444
|
+
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.4ms)
|
139445
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
139446
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139447
|
+
------------------------------------------------------------------------------------------------
|
139448
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
139449
|
+
------------------------------------------------------------------------------------------------
|
139450
|
+
spawn> parent PID = 85479
|
139451
|
+
spawn> child PID = 85491
|
139452
|
+
[1m[35mFogged::Resource Load (0.8ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
139453
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
139454
|
+
Parameters: {"id"=>"335514824"}
|
139455
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
139456
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
|
139457
|
+
spawn> Exception in child[85491] - NoMethodError: undefined method `public=' for nil:NilClass
|
139458
|
+
spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
|
139459
|
+
/Users/david/projects/fogged/app/models/fogged/resources/encoder.rb:9:in `provider_for'
|
139460
|
+
/Users/david/projects/fogged/app/models/fogged/resources/encoder.rb:5:in `for'
|
139461
|
+
/Users/david/projects/fogged/app/models/fogged/resource.rb:120:in `encode!'
|
139462
|
+
/Users/david/projects/fogged/app/models/fogged/resource.rb:83:in `process!'
|
139463
|
+
/Users/david/projects/fogged/app/controllers/fogged/resources_controller.rb:182:in `confirm'
|
139464
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
|
139465
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:198:in `process_action'
|
139466
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
|
139467
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
|
139468
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
139469
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
139470
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
|
139471
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
139472
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
139473
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
|
139474
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'
|
139475
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
139476
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
|
139477
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
|
139478
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
|
139479
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
|
139480
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
139481
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
|
139482
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
|
139483
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
|
139484
|
+
/Users/david/.gem/ruby/2.2.2/gems/activerecord-4.2.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
|
139485
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:137:in `process'
|
139486
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionview-4.2.1/lib/action_view/rendering.rb:30:in `process'
|
139487
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/test_case.rb:632:in `process'
|
139488
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/test_case.rb:65:in `process'
|
139489
|
+
/Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/test_case.rb:526:in `put'
|
139490
|
+
/Users/david/projects/fogged/test/controllers/fogged/resources_controller/confirm_test.rb:29:in `block (2 levels) in <class:ResourcesControllerConfirmTest>'
|
139491
|
+
/Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
|
139492
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
|
139493
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
|
139494
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
|
139495
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
|
139496
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
|
139497
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
|
139498
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `new'
|
139499
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
|
139500
|
+
/Users/david/projects/fogged/test/controllers/fogged/resources_controller/confirm_test.rb:20:in `block in <class:ResourcesControllerConfirmTest>'
|
139501
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
|
139502
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
|
139503
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
|
139504
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
|
139505
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
|
139506
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139507
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
|
139508
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
|
139509
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
|
139510
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
|
139511
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
|
139512
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
|
139513
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
|
139514
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
|
139515
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
139516
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
|
139517
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
|
139518
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
|
139519
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
|
139520
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
|
139521
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
|
139522
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
|
139523
|
+
spawn> child[85491] took 0.032373 sec
|
139524
|
+
[1m[35m (0.4ms)[0m begin transaction
|
139525
|
+
----------------------------------------------------------------------------------------
|
139526
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
139527
|
+
----------------------------------------------------------------------------------------
|
139528
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
139529
|
+
Parameters: {"id"=>"123456"}
|
139530
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
139531
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
139532
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139533
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139534
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
139535
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 517391740)[0m
|
139536
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 701625837)
|
139537
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 819504217)[0m
|
139538
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 132093124)
|
139539
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 431685987)[0m
|
139540
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 620280917)
|
139541
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 335514824)[0m
|
139542
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 183950720)
|
139543
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 1039265257)[0m
|
139544
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 596998220)
|
139545
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 433078596)[0m
|
139546
|
+
[1m[35mFixture Insert (0.3ms)[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-07-15 09:40:46', '2016-07-15 09:40:46', 785871319)
|
139547
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 937304175)[0m
|
139548
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 14225656)
|
139549
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 515736925)[0m
|
139550
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 538821867)
|
139551
|
+
[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-07-15 09:40:46', '2016-07-15 09:40:46', 731805050)[0m
|
139552
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
139553
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 579229346)[0m
|
139554
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 153115190)
|
139555
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
139556
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:46', '2016-07-15 09:40:46', 419883833, 624739301, 701625837)
|
139557
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:46', '2016-07-15 09:40:46', 849405871, 624739301, 819504217)[0m
|
139558
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:46', '2016-07-15 09:40:46', 98413728, 245026679, 784085492)
|
139559
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:46', '2016-07-15 09:40:46', 779853880, 245026679, 431685987)[0m
|
139560
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
139561
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 624739301)[0m
|
139562
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 245026679)
|
139563
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 948421225)[0m
|
139564
|
+
[1m[35m (1.0ms)[0m commit transaction
|
139565
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139566
|
+
----------------------------------------------------------------------------------
|
139567
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
139568
|
+
----------------------------------------------------------------------------------
|
139569
|
+
Processing by Fogged::ResourcesController#show as HTML
|
139570
|
+
Parameters: {"id"=>"1234567890"}
|
139571
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
139572
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
139573
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
139574
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139575
|
+
--------------------------------------------------------------------
|
139576
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
139577
|
+
--------------------------------------------------------------------
|
139578
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139579
|
+
Processing by Fogged::ResourcesController#show as HTML
|
139580
|
+
Parameters: {"id"=>"785871319"}
|
139581
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
139582
|
+
Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
139583
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
139584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139585
|
+
--------------------------------------------------------------
|
139586
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
139587
|
+
--------------------------------------------------------------
|
139588
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
139589
|
+
Processing by Fogged::ResourcesController#show as HTML
|
139590
|
+
Parameters: {"id"=>"701625837"}
|
139591
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
139592
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)
|
139593
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
139594
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139595
|
+
--------------------------------------------------------------------
|
139596
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
139597
|
+
--------------------------------------------------------------------
|
139598
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
139599
|
+
Processing by Fogged::ResourcesController#show as HTML
|
139600
|
+
Parameters: {"id"=>"335514824"}
|
139601
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
139602
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
139603
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
139604
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139605
|
+
----------------------------------------------------------------------------------------------
|
139606
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
|
139607
|
+
----------------------------------------------------------------------------------------------
|
139608
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
139609
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139610
|
+
[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-07-15 09:40:46.067120"], ["id", 1039265257]]
|
139611
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139612
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
139613
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
139614
|
+
[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"]]
|
139615
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139616
|
+
[1m[36mSQL (0.3ms)[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-07-15 09:40:46.071229"], ["id", 1039265257]]
|
139617
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139618
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
139619
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
139620
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
139621
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139622
|
+
--------------------------------------------------------------------------------------------------------------
|
139623
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
|
139624
|
+
--------------------------------------------------------------------------------------------------------------
|
139625
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
139626
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
139627
|
+
[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-07-15 09:40:46.076112"], ["id", 1039265257]]
|
139628
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139629
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
139630
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
139631
|
+
[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"]]
|
139632
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
139633
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
139634
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
139635
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139636
|
+
--------------------------------------------------------------------------------------------------------------
|
139637
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
|
139638
|
+
--------------------------------------------------------------------------------------------------------------
|
139639
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
139640
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
139641
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:40:46.083789"], ["id", 1039265257]]
|
139642
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139643
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
139644
|
+
Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
139645
|
+
[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!"]]
|
139646
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
139647
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
139648
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139649
|
+
-------------------------------------------------------------------------------------------------------------------
|
139650
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
|
139651
|
+
-------------------------------------------------------------------------------------------------------------------
|
139652
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
139653
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139654
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:40:46.088600"], ["id", 1039265257]]
|
139655
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139656
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
139657
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
|
139658
|
+
[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"]]
|
139659
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
139660
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
139661
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
139662
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139663
|
+
--------------------------------------------------------------------
|
139664
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
139665
|
+
--------------------------------------------------------------------
|
139666
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139667
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
139668
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
139669
|
+
Parameters: {"id"=>"785871319"}
|
139670
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139671
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139672
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 785871319]]
|
139673
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
139674
|
+
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)
|
139675
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
139676
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139677
|
+
----------------------------------------------------------------------------------------
|
139678
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
139679
|
+
----------------------------------------------------------------------------------------
|
139680
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139681
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
139682
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
139683
|
+
Parameters: {"id"=>"123456"}
|
139684
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
139685
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
139686
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
139687
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
139688
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139689
|
+
------------------------------------------------------------------
|
139690
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
139691
|
+
------------------------------------------------------------------
|
139692
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
139693
|
+
Processing by Fogged::ResourcesController#create as HTML
|
139694
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
139695
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139696
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "d4ee1d93a4c178973f713d98e4a9a3f4"]]
|
139697
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("name", "content_type", "extension", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["content_type", "image/png"], ["extension", "png"], ["uploading", "t"], ["token", "d4ee1d93a4c178973f713d98e4a9a3f4"], ["created_at", "2016-07-15 09:40:46.106716"], ["updated_at", "2016-07-15 09:40:46.106716"]]
|
139698
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139699
|
+
Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.5ms)
|
139700
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
139701
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
139702
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
139703
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139704
|
+
--------------------------------------------------------------------------------------------
|
139705
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
139706
|
+
--------------------------------------------------------------------------------------------
|
139707
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
139708
|
+
Processing by Fogged::ResourcesController#create as HTML
|
139709
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
139710
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
139711
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
139712
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
139713
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
139714
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139715
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139716
|
+
-------------------------------------------------------------------------------------------
|
139717
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
139718
|
+
-------------------------------------------------------------------------------------------
|
139719
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
139720
|
+
Processing by Fogged::ResourcesController#create as HTML
|
139721
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
139722
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
139723
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
139724
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
139725
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
139726
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139727
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139728
|
+
---------------------------------------------------------------------------------------
|
139729
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
139730
|
+
---------------------------------------------------------------------------------------
|
139731
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
139732
|
+
Processing by Fogged::ResourcesController#create as HTML
|
139733
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "content_type"=>"image/png"}}
|
139734
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
139735
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
139736
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139737
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139738
|
+
-----------------------------------------------------------------------------------
|
139739
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
139740
|
+
-----------------------------------------------------------------------------------
|
139741
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
139742
|
+
Processing by Fogged::ResourcesController#create as HTML
|
139743
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
139744
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
139745
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
139746
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
139747
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
139748
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139749
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139750
|
+
-------------------------------------------------------------------------------------------------
|
139751
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
139752
|
+
-------------------------------------------------------------------------------------------------
|
139753
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
139754
|
+
Processing by Fogged::ResourcesController#create as HTML
|
139755
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
139756
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
139757
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
139758
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139759
|
+
--------------------------------------------------------------------------------------
|
139760
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
139761
|
+
--------------------------------------------------------------------------------------
|
139762
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
139763
|
+
Processing by Fogged::ResourcesController#update as HTML
|
139764
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
|
139765
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
139766
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
139767
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
139768
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139769
|
+
------------------------------------------------------------------
|
139770
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
139771
|
+
------------------------------------------------------------------
|
139772
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
139773
|
+
Processing by Fogged::ResourcesController#update as HTML
|
139774
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
|
139775
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139776
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139777
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["name", "Update"], ["updated_at", "2016-07-15 09:40:46.142116"], ["id", 785871319]]
|
139778
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139779
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
|
139780
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
139781
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
139782
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139783
|
+
------------------------------------------------------------------------
|
139784
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
139785
|
+
------------------------------------------------------------------------
|
139786
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
139787
|
+
Processing by Fogged::ResourcesController#index as HTML
|
139788
|
+
Parameters: {"type"=>"movie"}
|
139789
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
139790
|
+
[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]]
|
139791
|
+
[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]]
|
139792
|
+
[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]]
|
139793
|
+
Completed 200 OK in 27ms (Views: 0.8ms | ActiveRecord: 0.4ms)
|
139794
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
139795
|
+
[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]]
|
139796
|
+
[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]]
|
139797
|
+
[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]]
|
139798
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
139799
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139800
|
+
---------------------------------------------------------------------
|
139801
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
139802
|
+
---------------------------------------------------------------------
|
139803
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
139804
|
+
Processing by Fogged::ResourcesController#index as HTML
|
139805
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
139806
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
|
139807
|
+
[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]]
|
139808
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
139809
|
+
[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]]
|
139810
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
139811
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139812
|
+
-----------------------------------------------------------------------------------------------
|
139813
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
139814
|
+
-----------------------------------------------------------------------------------------------
|
139815
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
139816
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139817
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "8161062d26ede50a14d3de999082e504"]]
|
139818
|
+
[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", "8161062d26ede50a14d3de999082e504"], ["created_at", "2016-07-15 09:40:46.195852"], ["updated_at", "2016-07-15 09:40:46.195852"]]
|
139819
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139820
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139821
|
+
[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", 1039265265], ["created_at", "2016-07-15 09:40:46.202120"], ["updated_at", "2016-07-15 09:40:46.202120"]]
|
139822
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139823
|
+
Processing by Fogged::ResourcesController#index as HTML
|
139824
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
139825
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301[0m
|
139826
|
+
[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]]
|
139827
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
139828
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
139829
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139830
|
+
--------------------------------------------------------------------
|
139831
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
139832
|
+
--------------------------------------------------------------------
|
139833
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
139834
|
+
[1m[35mMovie Load (0.0ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
|
139835
|
+
[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]]
|
139836
|
+
[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]]
|
139837
|
+
Processing by Fogged::ResourcesController#index as HTML
|
139838
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
139839
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)[0m
|
139840
|
+
[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]]
|
139841
|
+
[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]]
|
139842
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
|
139843
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
139844
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139845
|
+
-------------------------------------------------------------------------------
|
139846
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
139847
|
+
-------------------------------------------------------------------------------
|
139848
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
139849
|
+
Processing by Fogged::ResourcesController#index as HTML
|
139850
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
139851
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890[0m
|
139852
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
139853
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139854
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139855
|
+
-------------------------------------------------------------
|
139856
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
139857
|
+
-------------------------------------------------------------
|
139858
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
139859
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
139860
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
|
139861
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
139862
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 09:40:46.228029"], ["id", 431685987]]
|
139863
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139864
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
139865
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
139866
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
139867
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139868
|
+
---------------------------------------------------
|
139869
|
+
MovieTest: test_should_save_movie_with_no_resources
|
139870
|
+
---------------------------------------------------
|
139871
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
139872
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-07-15 09:40:46.233469"], ["updated_at", "2016-07-15 09:40:46.233469"]]
|
139873
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139874
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
139875
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139876
|
+
--------------------------------------------------------
|
139877
|
+
MovieTest: test_should_save_movie_with_several_resources
|
139878
|
+
--------------------------------------------------------
|
139879
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
139880
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
139881
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
139882
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 09:40:46.238672"], ["updated_at", "2016-07-15 09:40:46.238672"]]
|
139883
|
+
[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", 948421228], ["created_at", "2016-07-15 09:40:46.239645"], ["updated_at", "2016-07-15 09:40:46.239645"]]
|
139884
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421228], ["created_at", "2016-07-15 09:40:46.241013"], ["updated_at", "2016-07-15 09:40:46.241013"]]
|
139885
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
139886
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
139887
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139888
|
+
-------------------------------------------------------
|
139889
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
139890
|
+
-------------------------------------------------------
|
139891
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
139892
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
139893
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139894
|
+
--------------------------------------------
|
139895
|
+
FoggedTest: test_should_check_if_file_exists
|
139896
|
+
--------------------------------------------
|
139897
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
139898
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139899
|
+
---------------------------------------------------
|
139900
|
+
FoggedTest: test_should_return_directory_public_url
|
139901
|
+
---------------------------------------------------
|
139902
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
139903
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139904
|
+
---------------------------------------------------
|
139905
|
+
FoggedTest: test_should_return_resources_public_url
|
139906
|
+
---------------------------------------------------
|
139907
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
139908
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139909
|
+
----------------------
|
139910
|
+
FoggedTest: test_truth
|
139911
|
+
----------------------
|
139912
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
139913
|
+
[1m[35m (0.0ms)[0m begin transaction
|
139914
|
+
------------------------------------------------------------------------------------
|
139915
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
139916
|
+
------------------------------------------------------------------------------------
|
139917
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
139918
|
+
spawn> parent PID = 85479
|
139919
|
+
spawn> child PID = 85492
|
139920
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [a7c86948-5f17-4830-a374-37dcd7cc1c50] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
139921
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [a7c86948-5f17-4830-a374-37dcd7cc1c50] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 3.97ms
|
139922
|
+
spawn> child[85492] took 0.034299 sec
|
139923
|
+
[1m[35m (0.5ms)[0m begin transaction
|
139924
|
+
-----------------------------------------------------------------------
|
139925
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
139926
|
+
-----------------------------------------------------------------------
|
139927
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
139928
|
+
spawn> parent PID = 85479
|
139929
|
+
spawn> child PID = 85493
|
139930
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
139931
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] [1m[35m (0.8ms)[0m begin transaction
|
139932
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] [1m[36mSQL (0.5ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 50], ["updated_at", "2016-07-15 09:40:51.914245"], ["id", 731805050]]
|
139933
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] [1m[35m (0.6ms)[0m commit transaction
|
139934
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139935
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] [1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-07-15 09:40:57.388217"], ["id", 731805050]]
|
139936
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] [1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
139937
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] [1m[35m (0.1ms)[0m begin transaction
|
139938
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] [1m[36m (0.3ms)[0m [1mcommit transaction[0m
|
139939
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 11040.23ms
|
139940
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
139941
|
+
spawn> child[85493] took 11.077594 sec
|
139942
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
139943
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139944
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
139945
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 517391740)
|
139946
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 701625837)[0m
|
139947
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 819504217)
|
139948
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 132093124)[0m
|
139949
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 431685987)
|
139950
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 620280917)[0m
|
139951
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 335514824)
|
139952
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 183950720)[0m
|
139953
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 1039265257)
|
139954
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 596998220)[0m
|
139955
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 433078596)
|
139956
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 785871319)[0m
|
139957
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 937304175)
|
139958
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 14225656)[0m
|
139959
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 515736925)
|
139960
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 538821867)[0m
|
139961
|
+
[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-07-15 09:41:19', '2016-07-15 09:41:19', 731805050)
|
139962
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
139963
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 579229346)
|
139964
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 153115190)[0m
|
139965
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
139966
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:19', '2016-07-15 09:41:19', 419883833, 624739301, 701625837)[0m
|
139967
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:19', '2016-07-15 09:41:19', 849405871, 624739301, 819504217)
|
139968
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:19', '2016-07-15 09:41:19', 98413728, 245026679, 784085492)[0m
|
139969
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:19', '2016-07-15 09:41:19', 779853880, 245026679, 431685987)
|
139970
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
139971
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 624739301)
|
139972
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 245026679)[0m
|
139973
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 948421225)
|
139974
|
+
[1m[36m (5.2ms)[0m [1mcommit transaction[0m
|
139975
|
+
[1m[35m (0.1ms)[0m begin transaction
|
139976
|
+
------------------------------------------------------------------------------------
|
139977
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
139978
|
+
------------------------------------------------------------------------------------
|
139979
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
139980
|
+
spawn> parent PID = 85517
|
139981
|
+
spawn> child PID = 85518
|
139982
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [dbc425c4-9d9c-4f84-aeb3-b84d37f1d2b6] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
139983
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [dbc425c4-9d9c-4f84-aeb3-b84d37f1d2b6] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 3.0ms
|
139984
|
+
spawn> child[85518] took 0.043823 sec
|
139985
|
+
[1m[35m (0.6ms)[0m begin transaction
|
139986
|
+
-----------------------------------------------------------------------
|
139987
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
139988
|
+
-----------------------------------------------------------------------
|
139989
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
139990
|
+
spawn> parent PID = 85517
|
139991
|
+
spawn> child PID = 85519
|
139992
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
139993
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] [1m[35m (0.1ms)[0m begin transaction
|
139994
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] [1m[36mSQL (0.5ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 50], ["updated_at", "2016-07-15 09:41:22.283829"], ["id", 731805050]]
|
139995
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] [1m[35m (0.8ms)[0m commit transaction
|
139996
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] [1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
139997
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] [1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-07-15 09:41:25.328748"], ["id", 731805050]]
|
139998
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] [1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
139999
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] [1m[35m (0.1ms)[0m begin transaction
|
140000
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
140001
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 5390.57ms
|
140002
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
140003
|
+
spawn> child[85519] took 5.433342 sec
|
140004
|
+
[1m[35m (0.4ms)[0m begin transaction
|
140005
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
140006
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 517391740)
|
140007
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 701625837)[0m
|
140008
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 819504217)
|
140009
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 132093124)[0m
|
140010
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 431685987)
|
140011
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 620280917)[0m
|
140012
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 335514824)
|
140013
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 183950720)[0m
|
140014
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 1039265257)
|
140015
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 596998220)[0m
|
140016
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 433078596)
|
140017
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 785871319)[0m
|
140018
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 937304175)
|
140019
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 14225656)[0m
|
140020
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 515736925)
|
140021
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 538821867)[0m
|
140022
|
+
[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-07-15 09:41:25', '2016-07-15 09:41:25', 731805050)
|
140023
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
140024
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 579229346)
|
140025
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 153115190)[0m
|
140026
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
140027
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:25', '2016-07-15 09:41:25', 419883833, 624739301, 701625837)[0m
|
140028
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:25', '2016-07-15 09:41:25', 849405871, 624739301, 819504217)
|
140029
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:25', '2016-07-15 09:41:25', 98413728, 245026679, 784085492)[0m
|
140030
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:25', '2016-07-15 09:41:25', 779853880, 245026679, 431685987)
|
140031
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
140032
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 624739301)
|
140033
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 245026679)[0m
|
140034
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 948421225)
|
140035
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
140036
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140037
|
+
-------------------------------------------------------
|
140038
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
140039
|
+
-------------------------------------------------------
|
140040
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
140041
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140042
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140043
|
+
----------------------------------------------------------------------------------------------
|
140044
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
|
140045
|
+
----------------------------------------------------------------------------------------------
|
140046
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
140047
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140048
|
+
[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-07-15 09:41:25.381663"], ["id", 1039265257]]
|
140049
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140050
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
140051
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
140052
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
|
140053
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140054
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "width" = ?, "height" = ?, "duration" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["width", 640], ["height", 480], ["duration", 85], ["updated_at", "2016-07-15 09:41:25.399016"], ["id", 1039265257]]
|
140055
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140056
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
|
140057
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
140058
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
140059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140060
|
+
--------------------------------------------------------------------------------------------------------------
|
140061
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
|
140062
|
+
--------------------------------------------------------------------------------------------------------------
|
140063
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
140064
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140065
|
+
[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-07-15 09:41:25.404168"], ["id", 1039265257]]
|
140066
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140067
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
140068
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
140069
|
+
[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"]]
|
140070
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
140071
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
140072
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
140073
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140074
|
+
--------------------------------------------------------------------------------------------------------------
|
140075
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
|
140076
|
+
--------------------------------------------------------------------------------------------------------------
|
140077
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
140078
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140079
|
+
[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-07-15 09:41:25.411563"], ["id", 1039265257]]
|
140080
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140081
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
140082
|
+
Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
140083
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1[0m [["encoding_job_id", "foobar!"]]
|
140084
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
140085
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
140086
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140087
|
+
-------------------------------------------------------------------------------------------------------------------
|
140088
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
|
140089
|
+
-------------------------------------------------------------------------------------------------------------------
|
140090
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
140091
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140092
|
+
[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-07-15 09:41:25.417054"], ["id", 1039265257]]
|
140093
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140094
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
140095
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
|
140096
|
+
[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"]]
|
140097
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
140098
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
140099
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
140100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140101
|
+
------------------------------------------------------------------------
|
140102
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
140103
|
+
------------------------------------------------------------------------
|
140104
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
140105
|
+
Processing by Fogged::ResourcesController#index as HTML
|
140106
|
+
Parameters: {"type"=>"movie"}
|
140107
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
140108
|
+
[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]]
|
140109
|
+
[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]]
|
140110
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
|
140111
|
+
Completed 200 OK in 26ms (Views: 1.3ms | ActiveRecord: 0.4ms)
|
140112
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies"[0m
|
140113
|
+
[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]]
|
140114
|
+
[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]]
|
140115
|
+
[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]]
|
140116
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
140117
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140118
|
+
---------------------------------------------------------------------
|
140119
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
140120
|
+
---------------------------------------------------------------------
|
140121
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
140122
|
+
Processing by Fogged::ResourcesController#index as HTML
|
140123
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
140124
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
|
140125
|
+
[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]]
|
140126
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
140127
|
+
[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]]
|
140128
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
140129
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140130
|
+
-----------------------------------------------------------------------------------------------
|
140131
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
140132
|
+
-----------------------------------------------------------------------------------------------
|
140133
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
140134
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140135
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "65a168c4dfc76d77b6507f9044b2c8da"]]
|
140136
|
+
[1m[35mSQL (0.4ms)[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", "65a168c4dfc76d77b6507f9044b2c8da"], ["created_at", "2016-07-15 09:41:25.467636"], ["updated_at", "2016-07-15 09:41:25.467636"]]
|
140137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140138
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140139
|
+
[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", 1039265265], ["created_at", "2016-07-15 09:41:25.478316"], ["updated_at", "2016-07-15 09:41:25.478316"]]
|
140140
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140141
|
+
Processing by Fogged::ResourcesController#index as HTML
|
140142
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
140143
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301[0m
|
140144
|
+
[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]]
|
140145
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
140146
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
140147
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140148
|
+
--------------------------------------------------------------------
|
140149
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
140150
|
+
--------------------------------------------------------------------
|
140151
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
140152
|
+
[1m[35mMovie Load (0.0ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
|
140153
|
+
[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]]
|
140154
|
+
[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]]
|
140155
|
+
Processing by Fogged::ResourcesController#index as HTML
|
140156
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
140157
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)[0m
|
140158
|
+
[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]]
|
140159
|
+
[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]]
|
140160
|
+
Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms)
|
140161
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140162
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140163
|
+
-------------------------------------------------------------------------------
|
140164
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
140165
|
+
-------------------------------------------------------------------------------
|
140166
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
140167
|
+
Processing by Fogged::ResourcesController#index as HTML
|
140168
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
140169
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890[0m
|
140170
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
140171
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140172
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140173
|
+
----------------------------------------------------------------------------------
|
140174
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
140175
|
+
----------------------------------------------------------------------------------
|
140176
|
+
Processing by Fogged::ResourcesController#show as HTML
|
140177
|
+
Parameters: {"id"=>"1234567890"}
|
140178
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
140179
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
140180
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
140181
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140182
|
+
--------------------------------------------------------------------
|
140183
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
140184
|
+
--------------------------------------------------------------------
|
140185
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
140186
|
+
Processing by Fogged::ResourcesController#show as HTML
|
140187
|
+
Parameters: {"id"=>"785871319"}
|
140188
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
140189
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
140190
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
140191
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140192
|
+
--------------------------------------------------------------
|
140193
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
140194
|
+
--------------------------------------------------------------
|
140195
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
140196
|
+
Processing by Fogged::ResourcesController#show as HTML
|
140197
|
+
Parameters: {"id"=>"701625837"}
|
140198
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
140199
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
140200
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
140201
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140202
|
+
--------------------------------------------------------------------
|
140203
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
140204
|
+
--------------------------------------------------------------------
|
140205
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
140206
|
+
Processing by Fogged::ResourcesController#show as HTML
|
140207
|
+
Parameters: {"id"=>"335514824"}
|
140208
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
140209
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
140210
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
140211
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140212
|
+
----------------------------------------------------------------
|
140213
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
|
140214
|
+
----------------------------------------------------------------
|
140215
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 14225656]]
|
140216
|
+
spawn> parent PID = 85517
|
140217
|
+
spawn> child PID = 85525
|
140218
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
140219
|
+
[ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 8bb90758-e01e-4ce8-9292-cf27d29f32d6) to Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
140220
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140221
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-07-15 09:41:25.611919"], ["id", 14225656]]
|
140222
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
140223
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
140224
|
+
spawn> child[85525] took 0.089494 sec
|
140225
|
+
[1m[35m (0.5ms)[0m begin transaction
|
140226
|
+
-----------------------------------------------------------------------
|
140227
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file_inline
|
140228
|
+
-----------------------------------------------------------------------
|
140229
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 14225656]]
|
140230
|
+
spawn> parent PID = 85517
|
140231
|
+
spawn> child PID = 85526
|
140232
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
140233
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [8cca20cc-b21d-42e3-8da4-83aaf5f71977] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
140234
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [8cca20cc-b21d-42e3-8da4-83aaf5f71977] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1199.32ms
|
140235
|
+
spawn> Exception in child[85526] - OpenURI::HTTPError: 403 Forbidden
|
140236
|
+
spawn> /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:358:in `open_http'
|
140237
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
|
140238
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
|
140239
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
|
140240
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
|
140241
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
|
140242
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in `open'
|
140243
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in `open'
|
140244
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:13:in `block (3 levels) in perform'
|
140245
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
|
140246
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:12:in `block (2 levels) in perform'
|
140247
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
|
140248
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:11:in `block in perform'
|
140249
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each'
|
140250
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each_with_index'
|
140251
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `perform'
|
140252
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:32:in `block in perform_now'
|
140253
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
140254
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
140255
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
|
140256
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
140257
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
140258
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
|
140259
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `call'
|
140260
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
|
140261
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `call'
|
140262
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
|
140263
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
|
140264
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
140265
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
|
140266
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
|
140267
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `block in tag_logger'
|
140268
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
140269
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
|
140270
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
|
140271
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `tag_logger'
|
140272
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
|
140273
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `instance_exec'
|
140274
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
|
140275
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `call'
|
140276
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `block in simple'
|
140277
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `call'
|
140278
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `block in around'
|
140279
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
140280
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
140281
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
|
140282
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_perform_callbacks'
|
140283
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
140284
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:31:in `perform_now'
|
140285
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:16:in `perform_now'
|
140286
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:19:in `encode_image'
|
140287
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:10:in `encode!'
|
140288
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:115:in `block (3 levels) in <class:AWSEncoderTest>'
|
140289
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:71:in `assert_difference'
|
140290
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:93:in `assert_no_difference'
|
140291
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:114:in `block (2 levels) in <class:AWSEncoderTest>'
|
140292
|
+
/Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
|
140293
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
|
140294
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
|
140295
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
|
140296
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
|
140297
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
|
140298
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
|
140299
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `new'
|
140300
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
|
140301
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:107:in `block in <class:AWSEncoderTest>'
|
140302
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
|
140303
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
|
140304
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
|
140305
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
|
140306
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
|
140307
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
140308
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
|
140309
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
|
140310
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
|
140311
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
|
140312
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
|
140313
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
|
140314
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
|
140315
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
|
140316
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
140317
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
|
140318
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
|
140319
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
|
140320
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
|
140321
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
|
140322
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
|
140323
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
|
140324
|
+
spawn> child[85526] took 1.282735 sec
|
140325
|
+
[1m[35m (0.6ms)[0m begin transaction
|
140326
|
+
----------------------------------------------------------------
|
140327
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
140328
|
+
----------------------------------------------------------------
|
140329
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
140330
|
+
spawn> parent PID = 85517
|
140331
|
+
spawn> child PID = 85528
|
140332
|
+
[1m[35m (0.4ms)[0m begin transaction
|
140333
|
+
[1m[36mSQL (0.8ms)[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-07-15 09:41:27.021555"], ["id", 1039265257]]
|
140334
|
+
[1m[35m (4.8ms)[0m commit transaction
|
140335
|
+
spawn> child[85528] took 0.079813 sec
|
140336
|
+
[1m[35m (0.7ms)[0m begin transaction
|
140337
|
+
-----------------------------------------------------------------------------------
|
140338
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
|
140339
|
+
-----------------------------------------------------------------------------------
|
140340
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
140341
|
+
spawn> parent PID = 85517
|
140342
|
+
spawn> child PID = 85529
|
140343
|
+
[1m[35m (0.4ms)[0m begin transaction
|
140344
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
140345
|
+
spawn> child[85529] took 0.064076 sec
|
140346
|
+
[1m[35m (0.4ms)[0m begin transaction
|
140347
|
+
------------------------------------------------------------------------------------------
|
140348
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
|
140349
|
+
------------------------------------------------------------------------------------------
|
140350
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
140351
|
+
spawn> parent PID = 85517
|
140352
|
+
spawn> child PID = 85530
|
140353
|
+
[1m[35m (0.5ms)[0m begin transaction
|
140354
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
140355
|
+
spawn> child[85530] took 0.071919 sec
|
140356
|
+
[1m[35m (0.5ms)[0m begin transaction
|
140357
|
+
----------------------------------------------------------------------------------------
|
140358
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
|
140359
|
+
----------------------------------------------------------------------------------------
|
140360
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
140361
|
+
spawn> parent PID = 85517
|
140362
|
+
spawn> child PID = 85531
|
140363
|
+
spawn> child[85531] took 0.005954 sec
|
140364
|
+
[1m[35m (0.5ms)[0m begin transaction
|
140365
|
+
---------------------------------------------------------------------------------------
|
140366
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
|
140367
|
+
---------------------------------------------------------------------------------------
|
140368
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 937304175]]
|
140369
|
+
spawn> parent PID = 85517
|
140370
|
+
spawn> child PID = 85532
|
140371
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
140372
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
140373
|
+
spawn> child[85532] took 0.062292 sec
|
140374
|
+
[1m[35m (0.6ms)[0m begin transaction
|
140375
|
+
----------------------------------------------------------------------------------------
|
140376
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
|
140377
|
+
----------------------------------------------------------------------------------------
|
140378
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
140379
|
+
spawn> parent PID = 85517
|
140380
|
+
spawn> child PID = 85533
|
140381
|
+
spawn> child[85533] took 0.004489 sec
|
140382
|
+
[1m[35m (0.5ms)[0m begin transaction
|
140383
|
+
-------------------------------------------------------------------------------------
|
140384
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
|
140385
|
+
-------------------------------------------------------------------------------------
|
140386
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 183950720]]
|
140387
|
+
spawn> parent PID = 85517
|
140388
|
+
spawn> child PID = 85534
|
140389
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
140390
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
140391
|
+
spawn> child[85534] took 0.052856 sec
|
140392
|
+
[1m[35m (0.4ms)[0m begin transaction
|
140393
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
140394
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 517391740)
|
140395
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 701625837)[0m
|
140396
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 819504217)
|
140397
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 132093124)[0m
|
140398
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 431685987)
|
140399
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 620280917)[0m
|
140400
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 335514824)
|
140401
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 183950720)[0m
|
140402
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 1039265257)
|
140403
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 596998220)[0m
|
140404
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 433078596)
|
140405
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 785871319)[0m
|
140406
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 937304175)
|
140407
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 14225656)[0m
|
140408
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 515736925)
|
140409
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 538821867)[0m
|
140410
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 731805050)
|
140411
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
140412
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 579229346)
|
140413
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 153115190)[0m
|
140414
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
140415
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 419883833, 624739301, 701625837)[0m
|
140416
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 849405871, 624739301, 819504217)
|
140417
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 98413728, 245026679, 784085492)[0m
|
140418
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 779853880, 245026679, 431685987)
|
140419
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
140420
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 624739301)
|
140421
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 245026679)[0m
|
140422
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 948421225)
|
140423
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
140424
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140425
|
+
--------------------------------------------------------------------------------------
|
140426
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
140427
|
+
--------------------------------------------------------------------------------------
|
140428
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
140429
|
+
Processing by Fogged::ResourcesController#update as HTML
|
140430
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
|
140431
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
140432
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
140433
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
140434
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140435
|
+
------------------------------------------------------------------
|
140436
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
140437
|
+
------------------------------------------------------------------
|
140438
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
140439
|
+
Processing by Fogged::ResourcesController#update as HTML
|
140440
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
|
140441
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
140442
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140443
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-07-15 09:41:27.478091"], ["id", 785871319]]
|
140444
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140445
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
|
140446
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
140447
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
140448
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140449
|
+
--------------------------------------------------------------------
|
140450
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
140451
|
+
--------------------------------------------------------------------
|
140452
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
140453
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
140454
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
140455
|
+
Parameters: {"id"=>"785871319"}
|
140456
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
140457
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140458
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 785871319]]
|
140459
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140460
|
+
Completed 204 No Content in 2ms (ActiveRecord: 0.3ms)
|
140461
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
140462
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
140463
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140464
|
+
----------------------------------------------------------------------------------------
|
140465
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
140466
|
+
----------------------------------------------------------------------------------------
|
140467
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
140468
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
140469
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
140470
|
+
Parameters: {"id"=>"123456"}
|
140471
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
140472
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
140473
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
140474
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140475
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140476
|
+
---------------------------------------------------
|
140477
|
+
ImageTest: test_image_url_changing_the_storage_name
|
140478
|
+
---------------------------------------------------
|
140479
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
140480
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140481
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-07-15 09:41:27.500429"], ["updated_at", "2016-07-15 09:41:27.500429"]]
|
140482
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140483
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
140484
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140485
|
+
-------------------------------------------------------------
|
140486
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
140487
|
+
-------------------------------------------------------------
|
140488
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
140489
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140490
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 09:41:27.505022"], ["id", 701625837]]
|
140491
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140492
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140493
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
140494
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
140495
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140496
|
+
--------------------------------------------------------
|
140497
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
140498
|
+
--------------------------------------------------------
|
140499
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
140500
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140501
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-07-15 09:41:27.522666"], ["updated_at", "2016-07-15 09:41:27.522666"]]
|
140502
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140503
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
140504
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140505
|
+
--------------------------------------------------
|
140506
|
+
ImageTest: test_should_save_image_without_resource
|
140507
|
+
--------------------------------------------------
|
140508
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140509
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-07-15 09:41:27.525348"], ["updated_at", "2016-07-15 09:41:27.525348"]]
|
140510
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140511
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
140512
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140513
|
+
--------------------------------------------
|
140514
|
+
FoggedTest: test_should_check_if_file_exists
|
140515
|
+
--------------------------------------------
|
140516
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
140517
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140518
|
+
---------------------------------------------------
|
140519
|
+
FoggedTest: test_should_return_directory_public_url
|
140520
|
+
---------------------------------------------------
|
140521
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
140522
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140523
|
+
---------------------------------------------------
|
140524
|
+
FoggedTest: test_should_return_resources_public_url
|
140525
|
+
---------------------------------------------------
|
140526
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
140527
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140528
|
+
----------------------
|
140529
|
+
FoggedTest: test_truth
|
140530
|
+
----------------------
|
140531
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
140532
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140533
|
+
-------------------------------------------------------------
|
140534
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
140535
|
+
-------------------------------------------------------------
|
140536
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
140537
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
140538
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 431685987]]
|
140539
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140540
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["uploading", "t"], ["updated_at", "2016-07-15 09:41:27.538076"], ["id", 431685987]]
|
140541
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140542
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140543
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
140544
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
140545
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140546
|
+
---------------------------------------------------
|
140547
|
+
MovieTest: test_should_save_movie_with_no_resources
|
140548
|
+
---------------------------------------------------
|
140549
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140550
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 09:41:27.542821"], ["updated_at", "2016-07-15 09:41:27.542821"]]
|
140551
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140552
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
140553
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140554
|
+
--------------------------------------------------------
|
140555
|
+
MovieTest: test_should_save_movie_with_several_resources
|
140556
|
+
--------------------------------------------------------
|
140557
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
140558
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
140559
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140560
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-07-15 09:41:27.547970"], ["updated_at", "2016-07-15 09:41:27.547970"]]
|
140561
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 701625837], ["movie_id", 948421228], ["created_at", "2016-07-15 09:41:27.549028"], ["updated_at", "2016-07-15 09:41:27.549028"]]
|
140562
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["resource_id", 819504217], ["movie_id", 948421228], ["created_at", "2016-07-15 09:41:27.550189"], ["updated_at", "2016-07-15 09:41:27.550189"]]
|
140563
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140564
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
140565
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140566
|
+
---------------------------------------------------
|
140567
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
140568
|
+
---------------------------------------------------
|
140569
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140570
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "e92e937ae13c5f6fd4dd46361047b41f"]]
|
140571
|
+
[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", "e92e937ae13c5f6fd4dd46361047b41f"], ["created_at", "2016-07-15 09:41:27.554958"], ["updated_at", "2016-07-15 09:41:27.554958"]]
|
140572
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140573
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
140574
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140575
|
+
----------------------------------------------------------------------------
|
140576
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
140577
|
+
----------------------------------------------------------------------------
|
140578
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140579
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "e3a0b5e2c953281f1730f61b11e682f4"]]
|
140580
|
+
[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", "e3a0b5e2c953281f1730f61b11e682f4"], ["created_at", "2016-07-15 09:41:27.557609"], ["updated_at", "2016-07-15 09:41:27.557609"]]
|
140581
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140582
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140583
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265265]]
|
140584
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140585
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
140586
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140587
|
+
-------------------------------------------------------------------------
|
140588
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
140589
|
+
-------------------------------------------------------------------------
|
140590
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140591
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "c4eae763724c0bdd0f6b9af5909a780f"]]
|
140592
|
+
[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", "c4eae763724c0bdd0f6b9af5909a780f"], ["created_at", "2016-07-15 09:41:27.562323"], ["updated_at", "2016-07-15 09:41:27.562323"]]
|
140593
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140594
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
140595
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140596
|
+
-------------------------------------------------------------
|
140597
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
140598
|
+
-------------------------------------------------------------
|
140599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140600
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "dcfceadc9bdd64055452c910ff5d49b4"]]
|
140601
|
+
[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", "dcfceadc9bdd64055452c910ff5d49b4"], ["created_at", "2016-07-15 09:41:27.565017"], ["updated_at", "2016-07-15 09:41:27.565017"]]
|
140602
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140603
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
140604
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140605
|
+
------------------------------------------------------
|
140606
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
140607
|
+
------------------------------------------------------
|
140608
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140609
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "e2b2833ef6dd03225f21d8869da58fb2"]]
|
140610
|
+
[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", "e2b2833ef6dd03225f21d8869da58fb2"], ["created_at", "2016-07-15 09:41:27.568591"], ["updated_at", "2016-07-15 09:41:27.568591"]]
|
140611
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140612
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
140613
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140614
|
+
----------------------------------------------------------------------------
|
140615
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
140616
|
+
----------------------------------------------------------------------------
|
140617
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140618
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
140619
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
140620
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140621
|
+
-------------------------------------------------------------------------
|
140622
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
140623
|
+
-------------------------------------------------------------------------
|
140624
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140625
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
140626
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
140627
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140628
|
+
--------------------------------------------------------
|
140629
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
140630
|
+
--------------------------------------------------------
|
140631
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
140632
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140633
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 09:41:27.575818"], ["id", 785871319]]
|
140634
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140635
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
140636
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140637
|
+
--------------------------------------------------------
|
140638
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
140639
|
+
--------------------------------------------------------
|
140640
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
140641
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
140642
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140643
|
+
------------------------------------------------------------------------------
|
140644
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
140645
|
+
------------------------------------------------------------------------------
|
140646
|
+
spawn> parent PID = 85517
|
140647
|
+
spawn> child PID = 85535
|
140648
|
+
[1m[36mFogged::Resource Load (0.6ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
140649
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140650
|
+
[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-07-15 09:41:27.661688"], ["id", 335514824]]
|
140651
|
+
[1m[35m (0.9ms)[0m commit transaction
|
140652
|
+
spawn> child[85535] took 0.070537 sec
|
140653
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
140654
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
140655
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 517391740)[0m
|
140656
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 701625837)
|
140657
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 819504217)[0m
|
140658
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 132093124)
|
140659
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 431685987)[0m
|
140660
|
+
[1m[35mFixture Insert (0.2ms)[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-07-15 09:41:27', '2016-07-15 09:41:27', 620280917)
|
140661
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 335514824)[0m
|
140662
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 183950720)
|
140663
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 1039265257)[0m
|
140664
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 596998220)
|
140665
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 433078596)[0m
|
140666
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 785871319)
|
140667
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 937304175)[0m
|
140668
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 14225656)
|
140669
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 515736925)[0m
|
140670
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 538821867)
|
140671
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 731805050)[0m
|
140672
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
140673
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 579229346)[0m
|
140674
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 153115190)
|
140675
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
140676
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 419883833, 624739301, 701625837)
|
140677
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 849405871, 624739301, 819504217)[0m
|
140678
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 98413728, 245026679, 784085492)
|
140679
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 779853880, 245026679, 431685987)[0m
|
140680
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
140681
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 624739301)[0m
|
140682
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 245026679)
|
140683
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 948421225)[0m
|
140684
|
+
[1m[35m (0.9ms)[0m commit transaction
|
140685
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140686
|
+
--------------------------------------------------------------------
|
140687
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
140688
|
+
--------------------------------------------------------------------
|
140689
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
140690
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
140691
|
+
Parameters: {"id"=>"785871319"}
|
140692
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
140693
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140694
|
+
[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-07-15 09:41:27.697922"], ["id", 785871319]]
|
140695
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140696
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140697
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140698
|
+
Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.6ms)
|
140699
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
140700
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
140701
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140702
|
+
------------------------------------------------------------------------------------------------
|
140703
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
140704
|
+
------------------------------------------------------------------------------------------------
|
140705
|
+
spawn> parent PID = 85517
|
140706
|
+
spawn> child PID = 85536
|
140707
|
+
[1m[35mFogged::Resource Load (0.6ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
140708
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
140709
|
+
Parameters: {"id"=>"335514824"}
|
140710
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
140711
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140712
|
+
[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-07-15 09:41:27.754222"], ["id", 335514824]]
|
140713
|
+
[1m[35m (0.9ms)[0m commit transaction
|
140714
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140715
|
+
[1m[35m (0.0ms)[0m commit transaction
|
140716
|
+
Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 1.6ms)
|
140717
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
140718
|
+
spawn> child[85536] took 0.039762 sec
|
140719
|
+
[1m[35m (0.6ms)[0m begin transaction
|
140720
|
+
----------------------------------------------------------------------------------------
|
140721
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
140722
|
+
----------------------------------------------------------------------------------------
|
140723
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
140724
|
+
Parameters: {"id"=>"123456"}
|
140725
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
140726
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
140727
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140728
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140729
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
140730
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 517391740)[0m
|
140731
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 701625837)
|
140732
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 819504217)[0m
|
140733
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 132093124)
|
140734
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 431685987)[0m
|
140735
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 620280917)
|
140736
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 335514824)[0m
|
140737
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 183950720)
|
140738
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 1039265257)[0m
|
140739
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 596998220)
|
140740
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 433078596)[0m
|
140741
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 785871319)
|
140742
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 937304175)[0m
|
140743
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 14225656)
|
140744
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 515736925)[0m
|
140745
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 538821867)
|
140746
|
+
[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-07-15 09:41:27', '2016-07-15 09:41:27', 731805050)[0m
|
140747
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
140748
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 579229346)[0m
|
140749
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 153115190)
|
140750
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
140751
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 419883833, 624739301, 701625837)
|
140752
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 849405871, 624739301, 819504217)[0m
|
140753
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 98413728, 245026679, 784085492)
|
140754
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 779853880, 245026679, 431685987)[0m
|
140755
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
140756
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 624739301)[0m
|
140757
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 245026679)
|
140758
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 948421225)[0m
|
140759
|
+
[1m[35m (1.2ms)[0m commit transaction
|
140760
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140761
|
+
------------------------------------------------------------------
|
140762
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
140763
|
+
------------------------------------------------------------------
|
140764
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
140765
|
+
Processing by Fogged::ResourcesController#create as HTML
|
140766
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
140767
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140768
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "08d251ce46c7cf82ed80e02062b8e2d3"]]
|
140769
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "fogged_resources" ("name", "content_type", "extension", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["name", "Dummy"], ["content_type", "image/png"], ["extension", "png"], ["uploading", "t"], ["token", "08d251ce46c7cf82ed80e02062b8e2d3"], ["created_at", "2016-07-15 09:41:27.794966"], ["updated_at", "2016-07-15 09:41:27.794966"]]
|
140770
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140771
|
+
Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 0.7ms)
|
140772
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
140773
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
140774
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
140775
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
140776
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140777
|
+
--------------------------------------------------------------------------------------------
|
140778
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
140779
|
+
--------------------------------------------------------------------------------------------
|
140780
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
140781
|
+
Processing by Fogged::ResourcesController#create as HTML
|
140782
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
140783
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140784
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
140785
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.2ms)
|
140786
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
140787
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140788
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140789
|
+
-------------------------------------------------------------------------------------------
|
140790
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
140791
|
+
-------------------------------------------------------------------------------------------
|
140792
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
140793
|
+
Processing by Fogged::ResourcesController#create as HTML
|
140794
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
140795
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140796
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
140797
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
140798
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
140799
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140800
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140801
|
+
---------------------------------------------------------------------------------------
|
140802
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
140803
|
+
---------------------------------------------------------------------------------------
|
140804
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
140805
|
+
Processing by Fogged::ResourcesController#create as HTML
|
140806
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "content_type"=>"image/png"}}
|
140807
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
140808
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
140809
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
140810
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140811
|
+
-----------------------------------------------------------------------------------
|
140812
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
140813
|
+
-----------------------------------------------------------------------------------
|
140814
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
140815
|
+
Processing by Fogged::ResourcesController#create as HTML
|
140816
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
140817
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140818
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
140819
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
140820
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
140821
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
140822
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140823
|
+
-------------------------------------------------------------------------------------------------
|
140824
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
140825
|
+
-------------------------------------------------------------------------------------------------
|
140826
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
140827
|
+
Processing by Fogged::ResourcesController#create as HTML
|
140828
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
140829
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
140830
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
140831
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
140832
|
+
[1m[35m (0.2ms)[0m begin transaction
|
140833
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
140834
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 517391740)
|
140835
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 701625837)[0m
|
140836
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 819504217)
|
140837
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 132093124)[0m
|
140838
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 431685987)
|
140839
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 620280917)[0m
|
140840
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 335514824)
|
140841
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 183950720)[0m
|
140842
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 1039265257)
|
140843
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 596998220)[0m
|
140844
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 433078596)
|
140845
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 785871319)[0m
|
140846
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 937304175)
|
140847
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 14225656)[0m
|
140848
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 515736925)
|
140849
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 538821867)[0m
|
140850
|
+
[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-07-15 12:06:00', '2016-07-15 12:06:00', 731805050)
|
140851
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "images"[0m
|
140852
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 579229346)
|
140853
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 153115190)[0m
|
140854
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "movie_fogged_resources"
|
140855
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:00', '2016-07-15 12:06:00', 419883833, 624739301, 701625837)[0m
|
140856
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:00', '2016-07-15 12:06:00', 849405871, 624739301, 819504217)
|
140857
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:00', '2016-07-15 12:06:00', 98413728, 245026679, 784085492)[0m
|
140858
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:00', '2016-07-15 12:06:00', 779853880, 245026679, 431685987)
|
140859
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "movies"[0m
|
140860
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 624739301)
|
140861
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 245026679)[0m
|
140862
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 948421225)
|
140863
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
140864
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140865
|
+
---------------------------------------------------
|
140866
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
140867
|
+
---------------------------------------------------
|
140868
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140869
|
+
[1m[35mFogged::Resource Load (0.3ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "50945140980698a71909788a9d035d0c"]]
|
140870
|
+
[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", "50945140980698a71909788a9d035d0c"], ["created_at", "2016-07-15 12:06:00.895887"], ["updated_at", "2016-07-15 12:06:00.895887"]]
|
140871
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140872
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
140873
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140874
|
+
----------------------------------------------------------------------------
|
140875
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
140876
|
+
----------------------------------------------------------------------------
|
140877
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140878
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "e8341119235f51dae4523949a80090f1"]]
|
140879
|
+
[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", "e8341119235f51dae4523949a80090f1"], ["created_at", "2016-07-15 12:06:00.900135"], ["updated_at", "2016-07-15 12:06:00.900135"]]
|
140880
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140881
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140882
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265265]]
|
140883
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140884
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
140885
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140886
|
+
-------------------------------------------------------------------------
|
140887
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
140888
|
+
-------------------------------------------------------------------------
|
140889
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140890
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "1067e95bd1b9beb28d1278a7c2d3a827"]]
|
140891
|
+
[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", "1067e95bd1b9beb28d1278a7c2d3a827"], ["created_at", "2016-07-15 12:06:00.906095"], ["updated_at", "2016-07-15 12:06:00.906095"]]
|
140892
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140893
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
140894
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140895
|
+
-------------------------------------------------------------
|
140896
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
140897
|
+
-------------------------------------------------------------
|
140898
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140899
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "9b7a0455c412fd2f0fb1205b6c21fb22"]]
|
140900
|
+
[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", "9b7a0455c412fd2f0fb1205b6c21fb22"], ["created_at", "2016-07-15 12:06:00.909346"], ["updated_at", "2016-07-15 12:06:00.909346"]]
|
140901
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140902
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
140903
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140904
|
+
------------------------------------------------------
|
140905
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
140906
|
+
------------------------------------------------------
|
140907
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140908
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "f48b85461d52a7cb255a35873a7dbe53"]]
|
140909
|
+
[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", "f48b85461d52a7cb255a35873a7dbe53"], ["created_at", "2016-07-15 12:06:00.914438"], ["updated_at", "2016-07-15 12:06:00.914438"]]
|
140910
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140911
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
140912
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140913
|
+
----------------------------------------------------------------------------
|
140914
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
140915
|
+
----------------------------------------------------------------------------
|
140916
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140917
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
140918
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140919
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140920
|
+
-------------------------------------------------------------------------
|
140921
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
140922
|
+
-------------------------------------------------------------------------
|
140923
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140924
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
140925
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
140926
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140927
|
+
--------------------------------------------------------
|
140928
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
140929
|
+
--------------------------------------------------------
|
140930
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
140931
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140932
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 12:06:00.936083"], ["id", 785871319]]
|
140933
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140934
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
140935
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140936
|
+
--------------------------------------------------------
|
140937
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
140938
|
+
--------------------------------------------------------
|
140939
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
140940
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
140941
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140942
|
+
------------------------------------------------------------------------------
|
140943
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
140944
|
+
------------------------------------------------------------------------------
|
140945
|
+
spawn> parent PID = 87344
|
140946
|
+
spawn> child PID = 87345
|
140947
|
+
[1m[36mFogged::Resource Load (0.7ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
140948
|
+
[1m[35m (0.2ms)[0m begin transaction
|
140949
|
+
[1m[36mSQL (0.6ms)[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-07-15 12:06:01.049690"], ["id", 335514824]]
|
140950
|
+
[1m[35m (0.8ms)[0m commit transaction
|
140951
|
+
spawn> child[87345] took 0.094664 sec
|
140952
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
140953
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
140954
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 517391740)[0m
|
140955
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 701625837)
|
140956
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 819504217)[0m
|
140957
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 132093124)
|
140958
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 431685987)[0m
|
140959
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 620280917)
|
140960
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 335514824)[0m
|
140961
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 183950720)
|
140962
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 1039265257)[0m
|
140963
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 596998220)
|
140964
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 433078596)[0m
|
140965
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 785871319)
|
140966
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 937304175)[0m
|
140967
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 14225656)
|
140968
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 515736925)[0m
|
140969
|
+
[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-07-15 12:06:01', '2016-07-15 12:06:01', 538821867)
|
140970
|
+
[1m[36mFixture Insert (0.2ms)[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-07-15 12:06:01', '2016-07-15 12:06:01', 731805050)[0m
|
140971
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
140972
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 579229346)[0m
|
140973
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 153115190)
|
140974
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
140975
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:01', '2016-07-15 12:06:01', 419883833, 624739301, 701625837)
|
140976
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:01', '2016-07-15 12:06:01', 849405871, 624739301, 819504217)[0m
|
140977
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:01', '2016-07-15 12:06:01', 98413728, 245026679, 784085492)
|
140978
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:01', '2016-07-15 12:06:01', 779853880, 245026679, 431685987)[0m
|
140979
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
140980
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 624739301)[0m
|
140981
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 245026679)
|
140982
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 948421225)[0m
|
140983
|
+
[1m[35m (1.0ms)[0m commit transaction
|
140984
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140985
|
+
----------------------------------------------------------------------------------------------
|
140986
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
|
140987
|
+
----------------------------------------------------------------------------------------------
|
140988
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
140989
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140990
|
+
[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-07-15 12:06:01.082534"], ["id", 1039265257]]
|
140991
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140992
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
140993
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
140994
|
+
[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"]]
|
140995
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140996
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "width" = ?, "height" = ?, "duration" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["width", 640], ["height", 480], ["duration", 85], ["updated_at", "2016-07-15 12:06:01.090356"], ["id", 1039265257]]
|
140997
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140998
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
140999
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
141000
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
141001
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141002
|
+
--------------------------------------------------------------------------------------------------------------
|
141003
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
|
141004
|
+
--------------------------------------------------------------------------------------------------------------
|
141005
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
141006
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141007
|
+
[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-07-15 12:06:01.095356"], ["id", 1039265257]]
|
141008
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141009
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
141010
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
141011
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1[0m [["encoding_job_id", "1234565434567890"]]
|
141012
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
141013
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
141014
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
141015
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141016
|
+
--------------------------------------------------------------------------------------------------------------
|
141017
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
|
141018
|
+
--------------------------------------------------------------------------------------------------------------
|
141019
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
141020
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141021
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 12:06:01.100941"], ["id", 1039265257]]
|
141022
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141023
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
141024
|
+
Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
141025
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1[0m [["encoding_job_id", "foobar!"]]
|
141026
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
141027
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
141028
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141029
|
+
-------------------------------------------------------------------------------------------------------------------
|
141030
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
|
141031
|
+
-------------------------------------------------------------------------------------------------------------------
|
141032
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
141033
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141034
|
+
[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-07-15 12:06:01.105322"], ["id", 1039265257]]
|
141035
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141036
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
141037
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
|
141038
|
+
[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"]]
|
141039
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
141040
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
141041
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141042
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141043
|
+
--------------------------------------------------------------------
|
141044
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
141045
|
+
--------------------------------------------------------------------
|
141046
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141047
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
141048
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
141049
|
+
Parameters: {"id"=>"785871319"}
|
141050
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141052
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 785871319]]
|
141053
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141054
|
+
Completed 204 No Content in 3ms (ActiveRecord: 0.4ms)
|
141055
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
141056
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141057
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141058
|
+
----------------------------------------------------------------------------------------
|
141059
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
141060
|
+
----------------------------------------------------------------------------------------
|
141061
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
141062
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
141063
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
141064
|
+
Parameters: {"id"=>"123456"}
|
141065
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 123456]]
|
141066
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
141067
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
141068
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141069
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141070
|
+
--------------------------------------------
|
141071
|
+
FoggedTest: test_should_check_if_file_exists
|
141072
|
+
--------------------------------------------
|
141073
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141074
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141075
|
+
---------------------------------------------------
|
141076
|
+
FoggedTest: test_should_return_directory_public_url
|
141077
|
+
---------------------------------------------------
|
141078
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141079
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141080
|
+
---------------------------------------------------
|
141081
|
+
FoggedTest: test_should_return_resources_public_url
|
141082
|
+
---------------------------------------------------
|
141083
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141084
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141085
|
+
----------------------
|
141086
|
+
FoggedTest: test_truth
|
141087
|
+
----------------------
|
141088
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141089
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141090
|
+
------------------------------------------------------------------------
|
141091
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
141092
|
+
------------------------------------------------------------------------
|
141093
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
141094
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141095
|
+
Parameters: {"type"=>"movie"}
|
141096
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies"
|
141097
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
141098
|
+
[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]]
|
141099
|
+
[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]]
|
141100
|
+
Completed 200 OK in 31ms (Views: 1.2ms | ActiveRecord: 0.6ms)
|
141101
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies"
|
141102
|
+
[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]]
|
141103
|
+
[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]]
|
141104
|
+
[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]]
|
141105
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141106
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141107
|
+
---------------------------------------------------------------------
|
141108
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
141109
|
+
---------------------------------------------------------------------
|
141110
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
141111
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141112
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
141113
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301[0m
|
141114
|
+
[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]]
|
141115
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
141116
|
+
[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]]
|
141117
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141118
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141119
|
+
-----------------------------------------------------------------------------------------------
|
141120
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
141121
|
+
-----------------------------------------------------------------------------------------------
|
141122
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
141123
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141124
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "2eda55ca01fc0a163c618104e351f874"]]
|
141125
|
+
[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", "2eda55ca01fc0a163c618104e351f874"], ["created_at", "2016-07-15 12:06:01.174341"], ["updated_at", "2016-07-15 12:06:01.174341"]]
|
141126
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141127
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141128
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265265], ["created_at", "2016-07-15 12:06:01.184807"], ["updated_at", "2016-07-15 12:06:01.184807"]]
|
141129
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141130
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141131
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
141132
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
|
141133
|
+
[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]]
|
141134
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
|
141135
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
141136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141137
|
+
--------------------------------------------------------------------
|
141138
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
141139
|
+
--------------------------------------------------------------------
|
141140
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
141141
|
+
[1m[36mMovie Load (0.0ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 245026679]]
|
141142
|
+
[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]]
|
141143
|
+
[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]]
|
141144
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141145
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
141146
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
|
141147
|
+
[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]]
|
141148
|
+
[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]]
|
141149
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
141150
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141151
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141152
|
+
-------------------------------------------------------------------------------
|
141153
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
141154
|
+
-------------------------------------------------------------------------------
|
141155
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
141156
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141157
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
141158
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
|
141159
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
141160
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141161
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141162
|
+
------------------------------------------------------------------
|
141163
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
141164
|
+
------------------------------------------------------------------
|
141165
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
141166
|
+
Processing by Fogged::ResourcesController#create as HTML
|
141167
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
141168
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141169
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "614e974e4ea2db07ba24de6b247273ed"]]
|
141170
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "fogged_resources" ("name", "content_type", "extension", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["content_type", "image/png"], ["extension", "png"], ["uploading", "t"], ["token", "614e974e4ea2db07ba24de6b247273ed"], ["created_at", "2016-07-15 12:06:01.208715"], ["updated_at", "2016-07-15 12:06:01.208715"]]
|
141171
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141172
|
+
Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.6ms)
|
141173
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
141174
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
141175
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
141176
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141177
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141178
|
+
--------------------------------------------------------------------------------------------
|
141179
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
141180
|
+
--------------------------------------------------------------------------------------------
|
141181
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
141182
|
+
Processing by Fogged::ResourcesController#create as HTML
|
141183
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
141184
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141185
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
141186
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
141187
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
141188
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141189
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141190
|
+
-------------------------------------------------------------------------------------------
|
141191
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
141192
|
+
-------------------------------------------------------------------------------------------
|
141193
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
141194
|
+
Processing by Fogged::ResourcesController#create as HTML
|
141195
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
141196
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141197
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
141198
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
141199
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
141200
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141201
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141202
|
+
---------------------------------------------------------------------------------------
|
141203
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
141204
|
+
---------------------------------------------------------------------------------------
|
141205
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
141206
|
+
Processing by Fogged::ResourcesController#create as HTML
|
141207
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "content_type"=>"image/png"}}
|
141208
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
141209
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
141210
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141211
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141212
|
+
-----------------------------------------------------------------------------------
|
141213
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
141214
|
+
-----------------------------------------------------------------------------------
|
141215
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
141216
|
+
Processing by Fogged::ResourcesController#create as HTML
|
141217
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
141218
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141219
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
141220
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
141221
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
141222
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141223
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141224
|
+
-------------------------------------------------------------------------------------------------
|
141225
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
141226
|
+
-------------------------------------------------------------------------------------------------
|
141227
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
141228
|
+
Processing by Fogged::ResourcesController#create as HTML
|
141229
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
141230
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
141231
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141232
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141233
|
+
------------------------------------------------------------------------------------
|
141234
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
141235
|
+
------------------------------------------------------------------------------------
|
141236
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
141237
|
+
spawn> parent PID = 87344
|
141238
|
+
spawn> child PID = 87346
|
141239
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [9f059b5b-7a83-4ce9-ab74-bed18d7781b5] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
141240
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [9f059b5b-7a83-4ce9-ab74-bed18d7781b5] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 6.96ms
|
141241
|
+
spawn> child[87346] took 0.046142 sec
|
141242
|
+
[1m[35m (0.5ms)[0m begin transaction
|
141243
|
+
-----------------------------------------------------------------------
|
141244
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
141245
|
+
-----------------------------------------------------------------------
|
141246
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
141247
|
+
spawn> parent PID = 87344
|
141248
|
+
spawn> child PID = 87347
|
141249
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
141250
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] [1m[35m (0.7ms)[0m begin transaction
|
141251
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] [1m[36mSQL (0.6ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 50], ["updated_at", "2016-07-15 12:06:01.976235"], ["id", 731805050]]
|
141252
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] [1m[35m (0.9ms)[0m commit transaction
|
141253
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141254
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] [1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-07-15 12:06:02.419899"], ["id", 731805050]]
|
141255
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] [1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
141256
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] [1m[35m (0.0ms)[0m begin transaction
|
141257
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] [1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
141258
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1072.3ms
|
141259
|
+
[1m[35mFogged::Resource Load (0.4ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
141260
|
+
spawn> child[87347] took 1.111037 sec
|
141261
|
+
[1m[35m (0.4ms)[0m begin transaction
|
141262
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
141263
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 517391740)
|
141264
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 701625837)[0m
|
141265
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 819504217)
|
141266
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 132093124)[0m
|
141267
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 431685987)
|
141268
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 620280917)[0m
|
141269
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 335514824)
|
141270
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 183950720)[0m
|
141271
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 1039265257)
|
141272
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 596998220)[0m
|
141273
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 433078596)
|
141274
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 785871319)[0m
|
141275
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 937304175)
|
141276
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 14225656)[0m
|
141277
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 515736925)
|
141278
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 538821867)[0m
|
141279
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 731805050)
|
141280
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
141281
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 579229346)
|
141282
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 153115190)[0m
|
141283
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
141284
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 419883833, 624739301, 701625837)[0m
|
141285
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 849405871, 624739301, 819504217)
|
141286
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 98413728, 245026679, 784085492)[0m
|
141287
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 779853880, 245026679, 431685987)
|
141288
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
141289
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 624739301)
|
141290
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 245026679)[0m
|
141291
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 948421225)
|
141292
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
141293
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141294
|
+
-------------------------------------------------------
|
141295
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
141296
|
+
-------------------------------------------------------
|
141297
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
141298
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141299
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141300
|
+
-------------------------------------------------------------
|
141301
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
141302
|
+
-------------------------------------------------------------
|
141303
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
141304
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
141305
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
|
141306
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141307
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 12:06:02.461276"], ["id", 431685987]]
|
141308
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141309
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141310
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
141311
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141312
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141313
|
+
---------------------------------------------------
|
141314
|
+
MovieTest: test_should_save_movie_with_no_resources
|
141315
|
+
---------------------------------------------------
|
141316
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141317
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-07-15 12:06:02.466889"], ["updated_at", "2016-07-15 12:06:02.466889"]]
|
141318
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141319
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
141320
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141321
|
+
--------------------------------------------------------
|
141322
|
+
MovieTest: test_should_save_movie_with_several_resources
|
141323
|
+
--------------------------------------------------------
|
141324
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
141325
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
141326
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141327
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 12:06:02.473753"], ["updated_at", "2016-07-15 12:06:02.473753"]]
|
141328
|
+
[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", 948421228], ["created_at", "2016-07-15 12:06:02.474933"], ["updated_at", "2016-07-15 12:06:02.474933"]]
|
141329
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421228], ["created_at", "2016-07-15 12:06:02.475975"], ["updated_at", "2016-07-15 12:06:02.475975"]]
|
141330
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141331
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141332
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141333
|
+
--------------------------------------------------------------------------------------
|
141334
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
141335
|
+
--------------------------------------------------------------------------------------
|
141336
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141337
|
+
Processing by Fogged::ResourcesController#update as HTML
|
141338
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
|
141339
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
141340
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
141341
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141342
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141343
|
+
------------------------------------------------------------------
|
141344
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
141345
|
+
------------------------------------------------------------------
|
141346
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141347
|
+
Processing by Fogged::ResourcesController#update as HTML
|
141348
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
|
141349
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
141350
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141351
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["name", "Update"], ["updated_at", "2016-07-15 12:06:02.487069"], ["id", 785871319]]
|
141352
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141353
|
+
Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
|
141354
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
141355
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
141356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141357
|
+
---------------------------------------------------
|
141358
|
+
ImageTest: test_image_url_changing_the_storage_name
|
141359
|
+
---------------------------------------------------
|
141360
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141361
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141362
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-07-15 12:06:02.496917"], ["updated_at", "2016-07-15 12:06:02.496917"]]
|
141363
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141364
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141366
|
+
-------------------------------------------------------------
|
141367
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
141368
|
+
-------------------------------------------------------------
|
141369
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
141370
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141371
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 12:06:02.500865"], ["id", 701625837]]
|
141372
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141374
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
141375
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141376
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141377
|
+
--------------------------------------------------------
|
141378
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
141379
|
+
--------------------------------------------------------
|
141380
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
141381
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141382
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-07-15 12:06:02.504973"], ["updated_at", "2016-07-15 12:06:02.504973"]]
|
141383
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141384
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
141385
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141386
|
+
--------------------------------------------------
|
141387
|
+
ImageTest: test_should_save_image_without_resource
|
141388
|
+
--------------------------------------------------
|
141389
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141390
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-07-15 12:06:02.507457"], ["updated_at", "2016-07-15 12:06:02.507457"]]
|
141391
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141392
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
141393
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141394
|
+
--------------------------------------------------------------------
|
141395
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
141396
|
+
--------------------------------------------------------------------
|
141397
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
141398
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
141399
|
+
Parameters: {"id"=>"785871319"}
|
141400
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141401
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141402
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 12:06:02.513679"], ["id", 785871319]]
|
141403
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141404
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141405
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141406
|
+
Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
|
141407
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141408
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
141409
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141410
|
+
------------------------------------------------------------------------------------------------
|
141411
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
141412
|
+
------------------------------------------------------------------------------------------------
|
141413
|
+
spawn> parent PID = 87344
|
141414
|
+
spawn> child PID = 87352
|
141415
|
+
[1m[36mFogged::Resource Load (1.4ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
141416
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
141417
|
+
Parameters: {"id"=>"335514824"}
|
141418
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
141419
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141420
|
+
[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-07-15 12:06:02.565607"], ["id", 335514824]]
|
141421
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
141422
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141423
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
141424
|
+
Completed 200 OK in 12ms (Views: 1.6ms | ActiveRecord: 1.6ms)
|
141425
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
141426
|
+
spawn> child[87352] took 0.041121 sec
|
141427
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
141428
|
+
----------------------------------------------------------------------------------------
|
141429
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
141430
|
+
----------------------------------------------------------------------------------------
|
141431
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
141432
|
+
Parameters: {"id"=>"123456"}
|
141433
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
141434
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
141435
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141436
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141437
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
141438
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 517391740)
|
141439
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 701625837)[0m
|
141440
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 819504217)
|
141441
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 132093124)[0m
|
141442
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 431685987)
|
141443
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 620280917)[0m
|
141444
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 335514824)
|
141445
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 183950720)[0m
|
141446
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 1039265257)
|
141447
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 596998220)[0m
|
141448
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 433078596)
|
141449
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 785871319)[0m
|
141450
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 937304175)
|
141451
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 14225656)[0m
|
141452
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 515736925)
|
141453
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 538821867)[0m
|
141454
|
+
[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-07-15 12:06:02', '2016-07-15 12:06:02', 731805050)
|
141455
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
141456
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 579229346)
|
141457
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 153115190)[0m
|
141458
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
141459
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 419883833, 624739301, 701625837)[0m
|
141460
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 849405871, 624739301, 819504217)
|
141461
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 98413728, 245026679, 784085492)[0m
|
141462
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 779853880, 245026679, 431685987)
|
141463
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
141464
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 624739301)
|
141465
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 245026679)[0m
|
141466
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 948421225)
|
141467
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
141468
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141469
|
+
----------------------------------------------------------------------------------
|
141470
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
141471
|
+
----------------------------------------------------------------------------------
|
141472
|
+
Processing by Fogged::ResourcesController#show as HTML
|
141473
|
+
Parameters: {"id"=>"1234567890"}
|
141474
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
141475
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
141476
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141477
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141478
|
+
--------------------------------------------------------------------
|
141479
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
141480
|
+
--------------------------------------------------------------------
|
141481
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141482
|
+
Processing by Fogged::ResourcesController#show as HTML
|
141483
|
+
Parameters: {"id"=>"785871319"}
|
141484
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
141485
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
141486
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141487
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141488
|
+
--------------------------------------------------------------
|
141489
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
141490
|
+
--------------------------------------------------------------
|
141491
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
141492
|
+
Processing by Fogged::ResourcesController#show as HTML
|
141493
|
+
Parameters: {"id"=>"701625837"}
|
141494
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
141495
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
141496
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141497
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141498
|
+
--------------------------------------------------------------------
|
141499
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
141500
|
+
--------------------------------------------------------------------
|
141501
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
141502
|
+
Processing by Fogged::ResourcesController#show as HTML
|
141503
|
+
Parameters: {"id"=>"335514824"}
|
141504
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
141505
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
141506
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141507
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141508
|
+
----------------------------------------------------------------
|
141509
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
|
141510
|
+
----------------------------------------------------------------
|
141511
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
|
141512
|
+
spawn> parent PID = 87344
|
141513
|
+
spawn> child PID = 87353
|
141514
|
+
[1m[36m (1.5ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
141515
|
+
[ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: ce466a2f-67df-4fde-b9de-7b9b0724c006) to Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
141516
|
+
[1m[35m (0.2ms)[0m begin transaction
|
141517
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 0], ["updated_at", "2016-07-15 12:06:02.700244"], ["id", 14225656]]
|
141518
|
+
[1m[35m (0.8ms)[0m commit transaction
|
141519
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
141520
|
+
spawn> child[87353] took 0.079335 sec
|
141521
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
141522
|
+
-----------------------------------------------------------------------
|
141523
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file_inline
|
141524
|
+
-----------------------------------------------------------------------
|
141525
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
|
141526
|
+
spawn> parent PID = 87344
|
141527
|
+
spawn> child PID = 87354
|
141528
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
141529
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2b3aa3d7-1adb-4012-a421-54a34b2f324e] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
141530
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2b3aa3d7-1adb-4012-a421-54a34b2f324e] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1278.45ms
|
141531
|
+
spawn> Exception in child[87354] - OpenURI::HTTPError: 403 Forbidden
|
141532
|
+
spawn> /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:358:in `open_http'
|
141533
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
|
141534
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
|
141535
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
|
141536
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
|
141537
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
|
141538
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in `open'
|
141539
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in `open'
|
141540
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:13:in `block (3 levels) in perform'
|
141541
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
|
141542
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:12:in `block (2 levels) in perform'
|
141543
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
|
141544
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:11:in `block in perform'
|
141545
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each'
|
141546
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each_with_index'
|
141547
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `perform'
|
141548
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:32:in `block in perform_now'
|
141549
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
141550
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
141551
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
|
141552
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
141553
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
141554
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
|
141555
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `call'
|
141556
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
|
141557
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `call'
|
141558
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
|
141559
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
|
141560
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
141561
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
|
141562
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
|
141563
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `block in tag_logger'
|
141564
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
141565
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
|
141566
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
|
141567
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `tag_logger'
|
141568
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
|
141569
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `instance_exec'
|
141570
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
|
141571
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `call'
|
141572
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `block in simple'
|
141573
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `call'
|
141574
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `block in around'
|
141575
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
141576
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
141577
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
|
141578
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_perform_callbacks'
|
141579
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
141580
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:31:in `perform_now'
|
141581
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:16:in `perform_now'
|
141582
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:19:in `encode_image'
|
141583
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:10:in `encode!'
|
141584
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:115:in `block (3 levels) in <class:AWSEncoderTest>'
|
141585
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:71:in `assert_difference'
|
141586
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:93:in `assert_no_difference'
|
141587
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:114:in `block (2 levels) in <class:AWSEncoderTest>'
|
141588
|
+
/Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
|
141589
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
|
141590
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
|
141591
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
|
141592
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
|
141593
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
|
141594
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
|
141595
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `new'
|
141596
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
|
141597
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:107:in `block in <class:AWSEncoderTest>'
|
141598
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
|
141599
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
|
141600
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
|
141601
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
|
141602
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
|
141603
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
141604
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
|
141605
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
|
141606
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
|
141607
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
|
141608
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
|
141609
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
|
141610
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
|
141611
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
|
141612
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
141613
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
|
141614
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
|
141615
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
|
141616
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
|
141617
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
|
141618
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
|
141619
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
|
141620
|
+
spawn> child[87354] took 1.345818 sec
|
141621
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
141622
|
+
----------------------------------------------------------------
|
141623
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
141624
|
+
----------------------------------------------------------------
|
141625
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
141626
|
+
spawn> parent PID = 87344
|
141627
|
+
spawn> child PID = 87355
|
141628
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
141629
|
+
[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-07-15 12:06:04.157557"], ["id", 1039265257]]
|
141630
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
141631
|
+
spawn> child[87355] took 0.062766 sec
|
141632
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
141633
|
+
-----------------------------------------------------------------------------------
|
141634
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
|
141635
|
+
-----------------------------------------------------------------------------------
|
141636
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
141637
|
+
spawn> parent PID = 87344
|
141638
|
+
spawn> child PID = 87356
|
141639
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
141640
|
+
[1m[35m (0.1ms)[0m commit transaction
|
141641
|
+
spawn> child[87356] took 0.061746 sec
|
141642
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
141643
|
+
------------------------------------------------------------------------------------------
|
141644
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
|
141645
|
+
------------------------------------------------------------------------------------------
|
141646
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
141647
|
+
spawn> parent PID = 87344
|
141648
|
+
spawn> child PID = 87357
|
141649
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
141650
|
+
[1m[35m (0.1ms)[0m commit transaction
|
141651
|
+
spawn> child[87357] took 0.062462 sec
|
141652
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
141653
|
+
----------------------------------------------------------------------------------------
|
141654
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
|
141655
|
+
----------------------------------------------------------------------------------------
|
141656
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141657
|
+
spawn> parent PID = 87344
|
141658
|
+
spawn> child PID = 87358
|
141659
|
+
spawn> child[87358] took 0.004612 sec
|
141660
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
141661
|
+
---------------------------------------------------------------------------------------
|
141662
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
|
141663
|
+
---------------------------------------------------------------------------------------
|
141664
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 937304175]]
|
141665
|
+
spawn> parent PID = 87344
|
141666
|
+
spawn> child PID = 87359
|
141667
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
141668
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
141669
|
+
spawn> child[87359] took 0.050966 sec
|
141670
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
141671
|
+
----------------------------------------------------------------------------------------
|
141672
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
|
141673
|
+
----------------------------------------------------------------------------------------
|
141674
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
141675
|
+
spawn> parent PID = 87344
|
141676
|
+
spawn> child PID = 87360
|
141677
|
+
spawn> child[87360] took 0.003574 sec
|
141678
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
141679
|
+
-------------------------------------------------------------------------------------
|
141680
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
|
141681
|
+
-------------------------------------------------------------------------------------
|
141682
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 183950720]]
|
141683
|
+
spawn> parent PID = 87344
|
141684
|
+
spawn> child PID = 87361
|
141685
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
141686
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
141687
|
+
spawn> child[87361] took 0.05548 sec
|