fogged 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/fogged/resource.rb +10 -10
- data/app/models/fogged/resources/aws_encoder.rb +2 -2
- data/app/models/fogged/resources/encoder.rb +3 -3
- data/lib/fogged/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +889 -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: 9027c3f59256d3b9a2b28054206d0fc8e29e15c7
|
4
|
+
data.tar.gz: 90e6febe6d6d3aa798d88b14292b119d79bbd710
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 467f6133404370e6d075c0ac09bf608d71274412c73be5db34ddca31e51f967a00e7cc740da4bcc4beb428bf1e584b6a23039b484856850ab8a2e83dfc62b4fe
|
7
|
+
data.tar.gz: b9fd52b1f84eb052d2dde9d7690851a46d16ebc1edb16c57d8a3aee1347f50924f2961e78f3835908154cfcb714c3f32367e73b89b5e3c7e29b78147af42bbb4
|
@@ -89,16 +89,16 @@ module Fogged
|
|
89
89
|
end
|
90
90
|
|
91
91
|
def fogged_file
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
92
|
+
@_fogged_file ||= begin
|
93
|
+
files = Fogged.resources.files
|
94
|
+
file = files.get(fogged_name) || files.create(
|
95
|
+
:key => fogged_name,
|
96
|
+
:body => "",
|
97
|
+
:content_type => content_type
|
98
|
+
)
|
99
|
+
file.public = "public_read"
|
100
|
+
file.tap(&:save)
|
101
|
+
end
|
102
102
|
end
|
103
103
|
|
104
104
|
def find_size!
|
@@ -41,7 +41,7 @@ module Fogged
|
|
41
41
|
}
|
42
42
|
|
43
43
|
if Fogged.zencoder_notification_url
|
44
|
-
params
|
44
|
+
params[:notifications] = [Fogged.zencoder_notification_url]
|
45
45
|
end
|
46
46
|
|
47
47
|
@resource.update!(
|
@@ -80,7 +80,7 @@ module Fogged
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def bucket
|
83
|
-
|
83
|
+
Fogged.resources.key
|
84
84
|
end
|
85
85
|
|
86
86
|
def fogged_name_for(type, number = 0)
|
@@ -2,11 +2,11 @@ module Fogged
|
|
2
2
|
module Resources
|
3
3
|
class Encoder
|
4
4
|
def self.for(resource)
|
5
|
-
"Fogged::Resources::#{
|
5
|
+
"Fogged::Resources::#{provider}Encoder".constantize.new(resource)
|
6
6
|
end
|
7
7
|
|
8
|
-
def self.
|
9
|
-
return :AWS if
|
8
|
+
def self.provider
|
9
|
+
return :AWS if Fogged.provider == :aws
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/lib/fogged/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -141685,3 +141685,892 @@ spawn> child PID = 87361
|
|
141685
141685
|
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
141686
141686
|
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
141687
141687
|
spawn> child[87361] took 0.05548 sec
|
141688
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
141689
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141690
|
+
[1m[36mFixture Delete (1.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
141691
|
+
[1m[35mFixture Insert (0.6ms)[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-09-07 13:03:35', '2016-09-07 13:03:35', 517391740)
|
141692
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 701625837)[0m
|
141693
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 819504217)
|
141694
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 132093124)[0m
|
141695
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 431685987)
|
141696
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 620280917)[0m
|
141697
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 335514824)
|
141698
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 183950720)[0m
|
141699
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 1039265257)
|
141700
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 596998220)[0m
|
141701
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 433078596)
|
141702
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 785871319)[0m
|
141703
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 937304175)
|
141704
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 14225656)[0m
|
141705
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 515736925)
|
141706
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 538821867)[0m
|
141707
|
+
[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-09-07 13:03:35', '2016-09-07 13:03:35', 731805050)
|
141708
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "images"[0m
|
141709
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 579229346)
|
141710
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 153115190)[0m
|
141711
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "movie_fogged_resources"
|
141712
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:35', '2016-09-07 13:03:35', 419883833, 624739301, 701625837)[0m
|
141713
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:35', '2016-09-07 13:03:35', 849405871, 624739301, 819504217)
|
141714
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:35', '2016-09-07 13:03:35', 98413728, 245026679, 784085492)[0m
|
141715
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:35', '2016-09-07 13:03:35', 779853880, 245026679, 431685987)
|
141716
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "movies"[0m
|
141717
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 624739301)
|
141718
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 245026679)[0m
|
141719
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 948421225)
|
141720
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
141721
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141722
|
+
--------------------------------------------------------------------
|
141723
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
|
141724
|
+
--------------------------------------------------------------------
|
141725
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
141726
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
141727
|
+
Parameters: {"id"=>"785871319"}
|
141728
|
+
[1m[35mFogged::Resource Load (0.6ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141729
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141730
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-09-07 13:03:35.927963"], ["id", 785871319]]
|
141731
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141732
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141733
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141734
|
+
Completed 200 OK in 18ms (Views: 1.2ms | ActiveRecord: 1.1ms)
|
141735
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141736
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
141737
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141738
|
+
------------------------------------------------------------------------------------------------
|
141739
|
+
Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
|
141740
|
+
------------------------------------------------------------------------------------------------
|
141741
|
+
spawn> parent PID = 20013
|
141742
|
+
spawn> child PID = 20016
|
141743
|
+
[1m[36mFogged::Resource Load (1.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
141744
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
141745
|
+
Parameters: {"id"=>"335514824"}
|
141746
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
141747
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
141748
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-09-07 13:03:36.006803"], ["id", 335514824]]
|
141749
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
141750
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141751
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
141752
|
+
Completed 200 OK in 13ms (Views: 1.7ms | ActiveRecord: 1.7ms)
|
141753
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
141754
|
+
spawn> child[20016] took 0.063429 sec
|
141755
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
141756
|
+
----------------------------------------------------------------------------------------
|
141757
|
+
Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
|
141758
|
+
----------------------------------------------------------------------------------------
|
141759
|
+
Processing by Fogged::ResourcesController#confirm as HTML
|
141760
|
+
Parameters: {"id"=>"123456"}
|
141761
|
+
[1m[35mFogged::Resource Load (0.8ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
141762
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.8ms)
|
141763
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141764
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141765
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
141766
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 517391740)
|
141767
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 701625837)[0m
|
141768
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 819504217)
|
141769
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 132093124)[0m
|
141770
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 431685987)
|
141771
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 620280917)[0m
|
141772
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 335514824)
|
141773
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 183950720)[0m
|
141774
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 1039265257)
|
141775
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 596998220)[0m
|
141776
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 433078596)
|
141777
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 785871319)[0m
|
141778
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 937304175)
|
141779
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 14225656)[0m
|
141780
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 515736925)
|
141781
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 538821867)[0m
|
141782
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 731805050)
|
141783
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
141784
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 579229346)
|
141785
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 153115190)[0m
|
141786
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
141787
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 419883833, 624739301, 701625837)[0m
|
141788
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 849405871, 624739301, 819504217)
|
141789
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 98413728, 245026679, 784085492)[0m
|
141790
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 779853880, 245026679, 431685987)
|
141791
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
141792
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 624739301)
|
141793
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 245026679)[0m
|
141794
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 948421225)
|
141795
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
141796
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141797
|
+
--------------------------------------------
|
141798
|
+
FoggedTest: test_should_check_if_file_exists
|
141799
|
+
--------------------------------------------
|
141800
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141801
|
+
[1m[35m (0.4ms)[0m begin transaction
|
141802
|
+
---------------------------------------------------
|
141803
|
+
FoggedTest: test_should_return_directory_public_url
|
141804
|
+
---------------------------------------------------
|
141805
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141807
|
+
---------------------------------------------------
|
141808
|
+
FoggedTest: test_should_return_resources_public_url
|
141809
|
+
---------------------------------------------------
|
141810
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141811
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141812
|
+
----------------------
|
141813
|
+
FoggedTest: test_truth
|
141814
|
+
----------------------
|
141815
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141816
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141817
|
+
------------------------------------------------------------------------
|
141818
|
+
ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
|
141819
|
+
------------------------------------------------------------------------
|
141820
|
+
[1m[36mMovie Load (0.2ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
141821
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141822
|
+
Parameters: {"type"=>"movie"}
|
141823
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies"
|
141824
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ?[0m [["movie_id", 245026679]]
|
141825
|
+
[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]]
|
141826
|
+
[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]]
|
141827
|
+
Completed 200 OK in 48ms (Views: 1.2ms | ActiveRecord: 0.4ms)
|
141828
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies"
|
141829
|
+
[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]]
|
141830
|
+
[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]]
|
141831
|
+
[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]]
|
141832
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141833
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141834
|
+
---------------------------------------------------------------------
|
141835
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
|
141836
|
+
---------------------------------------------------------------------
|
141837
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
141838
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141839
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301"}
|
141840
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301[0m
|
141841
|
+
[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]]
|
141842
|
+
Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 0.2ms)
|
141843
|
+
[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]]
|
141844
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141845
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141846
|
+
-----------------------------------------------------------------------------------------------
|
141847
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
|
141848
|
+
-----------------------------------------------------------------------------------------------
|
141849
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
141850
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141851
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "90949efbb4df4c9088f68f7c6e582d0b"]]
|
141852
|
+
[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", "90949efbb4df4c9088f68f7c6e582d0b"], ["created_at", "2016-09-07 13:03:36.134964"], ["updated_at", "2016-09-07 13:03:36.134964"]]
|
141853
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141854
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141855
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265265], ["created_at", "2016-09-07 13:03:36.157892"], ["updated_at", "2016-09-07 13:03:36.157892"]]
|
141856
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141857
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141858
|
+
Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
|
141859
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
|
141860
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%')[0m [["movie_id", 624739301]]
|
141861
|
+
Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms)
|
141862
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
141863
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141864
|
+
--------------------------------------------------------------------
|
141865
|
+
ResourcesControllerIndexTest: test_should_index_resources_for_movies
|
141866
|
+
--------------------------------------------------------------------
|
141867
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
|
141868
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 245026679]]
|
141869
|
+
[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]]
|
141870
|
+
[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]]
|
141871
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141872
|
+
Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
|
141873
|
+
[1m[35mMovie Load (0.2ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
|
141874
|
+
[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]]
|
141875
|
+
[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]]
|
141876
|
+
Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
|
141877
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141878
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141879
|
+
-------------------------------------------------------------------------------
|
141880
|
+
ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
|
141881
|
+
-------------------------------------------------------------------------------
|
141882
|
+
[1m[36mMovie Load (0.1ms)[0m [1mSELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1[0m [["id", 624739301]]
|
141883
|
+
Processing by Fogged::ResourcesController#index as HTML
|
141884
|
+
Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
|
141885
|
+
[1m[35mMovie Load (0.1ms)[0m SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
|
141886
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
141887
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
141888
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141889
|
+
----------------------------------------------------------------------------------
|
141890
|
+
Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
|
141891
|
+
----------------------------------------------------------------------------------
|
141892
|
+
Processing by Fogged::ResourcesController#show as HTML
|
141893
|
+
Parameters: {"id"=>"1234567890"}
|
141894
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1234567890]]
|
141895
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
141896
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141897
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141898
|
+
--------------------------------------------------------------------
|
141899
|
+
Fogged::ResourcesControllerShowTest: test_should_show_image_resource
|
141900
|
+
--------------------------------------------------------------------
|
141901
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
141902
|
+
Processing by Fogged::ResourcesController#show as HTML
|
141903
|
+
Parameters: {"id"=>"785871319"}
|
141904
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
141905
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
141906
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141907
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141908
|
+
--------------------------------------------------------------
|
141909
|
+
Fogged::ResourcesControllerShowTest: test_should_show_resource
|
141910
|
+
--------------------------------------------------------------
|
141911
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
141912
|
+
Processing by Fogged::ResourcesController#show as HTML
|
141913
|
+
Parameters: {"id"=>"701625837"}
|
141914
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
141915
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
141916
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
141917
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141918
|
+
--------------------------------------------------------------------
|
141919
|
+
Fogged::ResourcesControllerShowTest: test_should_show_video_resource
|
141920
|
+
--------------------------------------------------------------------
|
141921
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
141922
|
+
Processing by Fogged::ResourcesController#show as HTML
|
141923
|
+
Parameters: {"id"=>"335514824"}
|
141924
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
141925
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
141926
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141927
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141928
|
+
---------------------------------------------------
|
141929
|
+
Fogged::ResourceTest: test_resource_should_be_valid
|
141930
|
+
---------------------------------------------------
|
141931
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141932
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "6c8a785a065579a836b5a007021cc0a4"]]
|
141933
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "6c8a785a065579a836b5a007021cc0a4"], ["created_at", "2016-09-07 13:03:36.194781"], ["updated_at", "2016-09-07 13:03:36.194781"]]
|
141934
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141935
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141936
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141937
|
+
----------------------------------------------------------------------------
|
141938
|
+
Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
|
141939
|
+
----------------------------------------------------------------------------
|
141940
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141941
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "cdc1247ed878bba8ce1be000f83b615b"]]
|
141942
|
+
[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", "cdc1247ed878bba8ce1be000f83b615b"], ["created_at", "2016-09-07 13:03:36.197727"], ["updated_at", "2016-09-07 13:03:36.197727"]]
|
141943
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141944
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141945
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 1039265265]]
|
141946
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141947
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141948
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141949
|
+
-------------------------------------------------------------------------
|
141950
|
+
Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
|
141951
|
+
-------------------------------------------------------------------------
|
141952
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141953
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "b2a46696b07c171408c0f5457ebf7746"]]
|
141954
|
+
[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", "b2a46696b07c171408c0f5457ebf7746"], ["created_at", "2016-09-07 13:03:36.202819"], ["updated_at", "2016-09-07 13:03:36.202819"]]
|
141955
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141956
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
141957
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141958
|
+
-------------------------------------------------------------
|
141959
|
+
Fogged::ResourceTest: test_resource_should_have_an_upload_url
|
141960
|
+
-------------------------------------------------------------
|
141961
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141962
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "49fdb583d143f5876892f7c33349602f"]]
|
141963
|
+
[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", "49fdb583d143f5876892f7c33349602f"], ["created_at", "2016-09-07 13:03:36.205784"], ["updated_at", "2016-09-07 13:03:36.205784"]]
|
141964
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141965
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
141966
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141967
|
+
------------------------------------------------------
|
141968
|
+
Fogged::ResourceTest: test_resource_should_have_an_url
|
141969
|
+
------------------------------------------------------
|
141970
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141971
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "138fa18287b96bea95e88588e56cc191"]]
|
141972
|
+
[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", "138fa18287b96bea95e88588e56cc191"], ["created_at", "2016-09-07 13:03:36.209728"], ["updated_at", "2016-09-07 13:03:36.209728"]]
|
141973
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141974
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
141975
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141976
|
+
----------------------------------------------------------------------------
|
141977
|
+
Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
|
141978
|
+
----------------------------------------------------------------------------
|
141979
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141980
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
141981
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141982
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141983
|
+
-------------------------------------------------------------------------
|
141984
|
+
Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
|
141985
|
+
-------------------------------------------------------------------------
|
141986
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141987
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
141988
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141989
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141990
|
+
--------------------------------------------------------
|
141991
|
+
Fogged::ResourceTest: test_should_process_resource_image
|
141992
|
+
--------------------------------------------------------
|
141993
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
141994
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141995
|
+
[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-09-07 13:03:36.223461"], ["id", 785871319]]
|
141996
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141997
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
141998
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141999
|
+
--------------------------------------------------------
|
142000
|
+
Fogged::ResourceTest: test_should_process_resource_video
|
142001
|
+
--------------------------------------------------------
|
142002
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
142003
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
142004
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
142005
|
+
------------------------------------------------------------------------------
|
142006
|
+
Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
|
142007
|
+
------------------------------------------------------------------------------
|
142008
|
+
spawn> parent PID = 20013
|
142009
|
+
spawn> child PID = 20017
|
142010
|
+
[1m[35mFogged::Resource Load (0.8ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
142011
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
142012
|
+
[1m[35mSQL (0.3ms)[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-09-07 13:03:36.319199"], ["id", 335514824]]
|
142013
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
142014
|
+
spawn> child[20017] took 0.080507 sec
|
142015
|
+
[1m[35m (0.5ms)[0m begin transaction
|
142016
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
142017
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 517391740)
|
142018
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 701625837)[0m
|
142019
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 819504217)
|
142020
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 132093124)[0m
|
142021
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 431685987)
|
142022
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 620280917)[0m
|
142023
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 335514824)
|
142024
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 183950720)[0m
|
142025
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 1039265257)
|
142026
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 596998220)[0m
|
142027
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 433078596)
|
142028
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 785871319)[0m
|
142029
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 937304175)
|
142030
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 14225656)[0m
|
142031
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 515736925)
|
142032
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 538821867)[0m
|
142033
|
+
[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-09-07 13:03:36', '2016-09-07 13:03:36', 731805050)
|
142034
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
142035
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 579229346)
|
142036
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 153115190)[0m
|
142037
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
142038
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 419883833, 624739301, 701625837)[0m
|
142039
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 849405871, 624739301, 819504217)
|
142040
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 98413728, 245026679, 784085492)[0m
|
142041
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 779853880, 245026679, 431685987)
|
142042
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
142043
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 624739301)
|
142044
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 245026679)[0m
|
142045
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 948421225)
|
142046
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
142047
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142048
|
+
--------------------------------------------------------------------
|
142049
|
+
Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
|
142050
|
+
--------------------------------------------------------------------
|
142051
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
142052
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
142053
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
142054
|
+
Parameters: {"id"=>"785871319"}
|
142055
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
142056
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142057
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ?[0m [["id", 785871319]]
|
142058
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142059
|
+
Completed 204 No Content in 2ms (ActiveRecord: 0.3ms)
|
142060
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
142061
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
142062
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142063
|
+
----------------------------------------------------------------------------------------
|
142064
|
+
Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
|
142065
|
+
----------------------------------------------------------------------------------------
|
142066
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
142067
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
142068
|
+
Processing by Fogged::ResourcesController#destroy as HTML
|
142069
|
+
Parameters: {"id"=>"123456"}
|
142070
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
|
142071
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
142072
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
142073
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
142074
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142075
|
+
-------------------------------------------------------
|
142076
|
+
Fogged::Resources::EncoderTest: test_should_aws_encoder
|
142077
|
+
-------------------------------------------------------
|
142078
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
|
142079
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
142080
|
+
[1m[35m (0.0ms)[0m begin transaction
|
142081
|
+
------------------------------------------------------------------
|
142082
|
+
Fogged::ResourcesControllerCreateTest: test_should_create_resource
|
142083
|
+
------------------------------------------------------------------
|
142084
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
142085
|
+
Processing by Fogged::ResourcesController#create as HTML
|
142086
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
142087
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
142088
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1[0m [["token", "8eed7ec3f355df1b43ea45e397a76121"]]
|
142089
|
+
[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", "8eed7ec3f355df1b43ea45e397a76121"], ["created_at", "2016-09-07 13:03:36.368317"], ["updated_at", "2016-09-07 13:03:36.368317"]]
|
142090
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142091
|
+
Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.5ms)
|
142092
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
142093
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1[0m
|
142094
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
|
142095
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
142096
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142097
|
+
--------------------------------------------------------------------------------------------
|
142098
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
|
142099
|
+
--------------------------------------------------------------------------------------------
|
142100
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
142101
|
+
Processing by Fogged::ResourcesController#create as HTML
|
142102
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
|
142103
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142104
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
142105
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
142106
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
142107
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
142108
|
+
[1m[35m (0.2ms)[0m begin transaction
|
142109
|
+
-------------------------------------------------------------------------------------------
|
142110
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
|
142111
|
+
-------------------------------------------------------------------------------------------
|
142112
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
142113
|
+
Processing by Fogged::ResourcesController#create as HTML
|
142114
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
|
142115
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
142116
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
142117
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
142118
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
142119
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
142120
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142121
|
+
---------------------------------------------------------------------------------------
|
142122
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
|
142123
|
+
---------------------------------------------------------------------------------------
|
142124
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
142125
|
+
Processing by Fogged::ResourcesController#create as HTML
|
142126
|
+
Parameters: {"resource"=>{"name"=>"Dummy", "content_type"=>"image/png"}}
|
142127
|
+
Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
|
142128
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
142129
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
142130
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142131
|
+
-----------------------------------------------------------------------------------
|
142132
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
|
142133
|
+
-----------------------------------------------------------------------------------
|
142134
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
142135
|
+
Processing by Fogged::ResourcesController#create as HTML
|
142136
|
+
Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
|
142137
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
142138
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
142139
|
+
Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
|
142140
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
142141
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
142142
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142143
|
+
-------------------------------------------------------------------------------------------------
|
142144
|
+
Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
|
142145
|
+
-------------------------------------------------------------------------------------------------
|
142146
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "fogged_resources"[0m
|
142147
|
+
Processing by Fogged::ResourcesController#create as HTML
|
142148
|
+
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
|
142149
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "fogged_resources"
|
142150
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
142151
|
+
[1m[35m (0.0ms)[0m begin transaction
|
142152
|
+
--------------------------------------------------------------------------------------
|
142153
|
+
Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
|
142154
|
+
--------------------------------------------------------------------------------------
|
142155
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
142156
|
+
Processing by Fogged::ResourcesController#update as HTML
|
142157
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
|
142158
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
|
142159
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
142160
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
142161
|
+
[1m[35m (0.0ms)[0m begin transaction
|
142162
|
+
------------------------------------------------------------------
|
142163
|
+
Fogged::ResourcesControllerUpdateTest: test_should_update_resource
|
142164
|
+
------------------------------------------------------------------
|
142165
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
142166
|
+
Processing by Fogged::ResourcesController#update as HTML
|
142167
|
+
Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
|
142168
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
142169
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142170
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-09-07 13:03:36.403441"], ["id", 785871319]]
|
142171
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142172
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
|
142173
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
|
142174
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
142175
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142176
|
+
----------------------------------------------------------------
|
142177
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
|
142178
|
+
----------------------------------------------------------------
|
142179
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 14225656]]
|
142180
|
+
spawn> parent PID = 20013
|
142181
|
+
spawn> child PID = 20018
|
142182
|
+
[1m[35m (1.5ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
142183
|
+
[ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 98e8bc31-f4ed-42b4-b5f1-3e17ef125c70) to Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
142184
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142185
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-09-07 13:03:36.501548"], ["id", 14225656]]
|
142186
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
142187
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
142188
|
+
spawn> child[20018] took 0.081977 sec
|
142189
|
+
[1m[35m (0.6ms)[0m begin transaction
|
142190
|
+
-----------------------------------------------------------------------
|
142191
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_image_file_inline
|
142192
|
+
-----------------------------------------------------------------------
|
142193
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 14225656]]
|
142194
|
+
spawn> parent PID = 20013
|
142195
|
+
spawn> child PID = 20019
|
142196
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
142197
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [eda8cab1-d991-4692-a559-d4c4447b1f27] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
|
142198
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [eda8cab1-d991-4692-a559-d4c4447b1f27] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1558.01ms
|
142199
|
+
spawn> Exception in child[20019] - OpenURI::HTTPError: 403 Forbidden
|
142200
|
+
spawn> /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:358:in `open_http'
|
142201
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
|
142202
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
|
142203
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
|
142204
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
|
142205
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
|
142206
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in `open'
|
142207
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in `open'
|
142208
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:13:in `block (3 levels) in perform'
|
142209
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
|
142210
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:12:in `block (2 levels) in perform'
|
142211
|
+
/Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
|
142212
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:11:in `block in perform'
|
142213
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each'
|
142214
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each_with_index'
|
142215
|
+
/Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `perform'
|
142216
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:32:in `block in perform_now'
|
142217
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
142218
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
|
142219
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
|
142220
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
142221
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
142222
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
|
142223
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `call'
|
142224
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
|
142225
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `call'
|
142226
|
+
/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>'
|
142227
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
|
142228
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
142229
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
|
142230
|
+
/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>'
|
142231
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `block in tag_logger'
|
142232
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
142233
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
|
142234
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
|
142235
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `tag_logger'
|
142236
|
+
/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>'
|
142237
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `instance_exec'
|
142238
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
|
142239
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `call'
|
142240
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `block in simple'
|
142241
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `call'
|
142242
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `block in around'
|
142243
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
142244
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
|
142245
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
|
142246
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_perform_callbacks'
|
142247
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
142248
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:31:in `perform_now'
|
142249
|
+
/Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:16:in `perform_now'
|
142250
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:19:in `encode_image'
|
142251
|
+
/Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:10:in `encode!'
|
142252
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:115:in `block (3 levels) in <class:AWSEncoderTest>'
|
142253
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:71:in `assert_difference'
|
142254
|
+
/Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:93:in `assert_no_difference'
|
142255
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:114:in `block (2 levels) in <class:AWSEncoderTest>'
|
142256
|
+
/Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
|
142257
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
|
142258
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
|
142259
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
|
142260
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
|
142261
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
|
142262
|
+
/Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
|
142263
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `new'
|
142264
|
+
/Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
|
142265
|
+
/Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:107:in `block in <class:AWSEncoderTest>'
|
142266
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
|
142267
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
|
142268
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
|
142269
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
|
142270
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
|
142271
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
142272
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
|
142273
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
|
142274
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
|
142275
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
|
142276
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
|
142277
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
|
142278
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
|
142279
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
|
142280
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
|
142281
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
|
142282
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
|
142283
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
|
142284
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
|
142285
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
|
142286
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
|
142287
|
+
/Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
|
142288
|
+
spawn> child[20019] took 1.635457 sec
|
142289
|
+
[1m[35m (0.6ms)[0m begin transaction
|
142290
|
+
----------------------------------------------------------------
|
142291
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
|
142292
|
+
----------------------------------------------------------------
|
142293
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
142294
|
+
spawn> parent PID = 20013
|
142295
|
+
spawn> child PID = 20021
|
142296
|
+
[1m[35m (0.8ms)[0m begin transaction
|
142297
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-09-07 13:03:38.261185"], ["id", 1039265257]]
|
142298
|
+
[1m[35m (0.8ms)[0m commit transaction
|
142299
|
+
spawn> child[20021] took 0.075071 sec
|
142300
|
+
[1m[35m (0.7ms)[0m begin transaction
|
142301
|
+
-----------------------------------------------------------------------------------
|
142302
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
|
142303
|
+
-----------------------------------------------------------------------------------
|
142304
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
142305
|
+
spawn> parent PID = 20013
|
142306
|
+
spawn> child PID = 20022
|
142307
|
+
[1m[35m (0.4ms)[0m begin transaction
|
142308
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
142309
|
+
spawn> child[20022] took 0.061461 sec
|
142310
|
+
[1m[35m (0.5ms)[0m begin transaction
|
142311
|
+
------------------------------------------------------------------------------------------
|
142312
|
+
Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
|
142313
|
+
------------------------------------------------------------------------------------------
|
142314
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
142315
|
+
spawn> parent PID = 20013
|
142316
|
+
spawn> child PID = 20023
|
142317
|
+
[1m[35m (0.7ms)[0m begin transaction
|
142318
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
142319
|
+
spawn> child[20023] took 0.064587 sec
|
142320
|
+
[1m[35m (0.5ms)[0m begin transaction
|
142321
|
+
----------------------------------------------------------------------------------------
|
142322
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
|
142323
|
+
----------------------------------------------------------------------------------------
|
142324
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
142325
|
+
spawn> parent PID = 20013
|
142326
|
+
spawn> child PID = 20024
|
142327
|
+
spawn> child[20024] took 0.003673 sec
|
142328
|
+
[1m[35m (0.6ms)[0m begin transaction
|
142329
|
+
---------------------------------------------------------------------------------------
|
142330
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
|
142331
|
+
---------------------------------------------------------------------------------------
|
142332
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 937304175]]
|
142333
|
+
spawn> parent PID = 20013
|
142334
|
+
spawn> child PID = 20025
|
142335
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
142336
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
142337
|
+
spawn> child[20025] took 0.048709 sec
|
142338
|
+
[1m[35m (0.6ms)[0m begin transaction
|
142339
|
+
----------------------------------------------------------------------------------------
|
142340
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
|
142341
|
+
----------------------------------------------------------------------------------------
|
142342
|
+
[1m[36mFogged::Resource Load (0.2ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 335514824]]
|
142343
|
+
spawn> parent PID = 20013
|
142344
|
+
spawn> child PID = 20026
|
142345
|
+
spawn> child[20026] took 0.003816 sec
|
142346
|
+
[1m[35m (0.4ms)[0m begin transaction
|
142347
|
+
-------------------------------------------------------------------------------------
|
142348
|
+
Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
|
142349
|
+
-------------------------------------------------------------------------------------
|
142350
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 183950720]]
|
142351
|
+
spawn> parent PID = 20013
|
142352
|
+
spawn> child PID = 20027
|
142353
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "delayed_jobs"
|
142354
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "delayed_jobs"[0m
|
142355
|
+
spawn> child[20027] took 0.05724 sec
|
142356
|
+
[1m[35m (0.5ms)[0m begin transaction
|
142357
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "fogged_resources"[0m
|
142358
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 517391740)
|
142359
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 701625837)[0m
|
142360
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 819504217)
|
142361
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 132093124)[0m
|
142362
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 431685987)
|
142363
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 620280917)[0m
|
142364
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 335514824)
|
142365
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 183950720)[0m
|
142366
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 1039265257)
|
142367
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 596998220)[0m
|
142368
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 433078596)
|
142369
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 785871319)[0m
|
142370
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 937304175)
|
142371
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 14225656)[0m
|
142372
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 515736925)
|
142373
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 538821867)[0m
|
142374
|
+
[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-09-07 13:03:38', '2016-09-07 13:03:38', 731805050)
|
142375
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "images"[0m
|
142376
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 579229346)
|
142377
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 153115190)[0m
|
142378
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movie_fogged_resources"
|
142379
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:38', '2016-09-07 13:03:38', 419883833, 624739301, 701625837)[0m
|
142380
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:38', '2016-09-07 13:03:38', 849405871, 624739301, 819504217)
|
142381
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:38', '2016-09-07 13:03:38', 98413728, 245026679, 784085492)[0m
|
142382
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:38', '2016-09-07 13:03:38', 779853880, 245026679, 431685987)
|
142383
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movies"[0m
|
142384
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 624739301)
|
142385
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 245026679)[0m
|
142386
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 948421225)
|
142387
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
142388
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142389
|
+
---------------------------------------------------
|
142390
|
+
ImageTest: test_image_url_changing_the_storage_name
|
142391
|
+
---------------------------------------------------
|
142392
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 785871319]]
|
142393
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
142394
|
+
[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-09-07 13:03:38.679357"], ["updated_at", "2016-09-07 13:03:38.679357"]]
|
142395
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
142396
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
142397
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142398
|
+
-------------------------------------------------------------
|
142399
|
+
ImageTest: test_should_not_save_image_with_uploading_resource
|
142400
|
+
-------------------------------------------------------------
|
142401
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
142402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142403
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["uploading", "t"], ["updated_at", "2016-09-07 13:03:38.683937"], ["id", 701625837]]
|
142404
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142405
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142406
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
142407
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
142408
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142409
|
+
--------------------------------------------------------
|
142410
|
+
ImageTest: test_should_save_image_with_uploaded_resource
|
142411
|
+
--------------------------------------------------------
|
142412
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
142413
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142414
|
+
[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-09-07 13:03:38.687755"], ["updated_at", "2016-09-07 13:03:38.687755"]]
|
142415
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142416
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
142417
|
+
[1m[35m (0.0ms)[0m begin transaction
|
142418
|
+
--------------------------------------------------
|
142419
|
+
ImageTest: test_should_save_image_without_resource
|
142420
|
+
--------------------------------------------------
|
142421
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142422
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-09-07 13:03:38.690670"], ["updated_at", "2016-09-07 13:03:38.690670"]]
|
142423
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142424
|
+
[1m[35m (2.4ms)[0m rollback transaction
|
142425
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142426
|
+
------------------------------------------------------------------------------------
|
142427
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
|
142428
|
+
------------------------------------------------------------------------------------
|
142429
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
142430
|
+
spawn> parent PID = 20013
|
142431
|
+
spawn> child PID = 20028
|
142432
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c081ba35-2cb1-4685-a3a1-88a99fa1f7c7] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
142433
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c081ba35-2cb1-4685-a3a1-88a99fa1f7c7] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 2.96ms
|
142434
|
+
spawn> child[20028] took 0.032392 sec
|
142435
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
142436
|
+
-----------------------------------------------------------------------
|
142437
|
+
Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
|
142438
|
+
-----------------------------------------------------------------------
|
142439
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
|
142440
|
+
spawn> parent PID = 20013
|
142441
|
+
spawn> child PID = 20029
|
142442
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
|
142443
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] [1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
142444
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] [1m[35mSQL (0.4ms)[0m UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-09-07 13:03:54.181201"], ["id", 731805050]]
|
142445
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] [1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
142446
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] [1m[35m (0.1ms)[0m begin transaction
|
142447
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] [1m[36mSQL (0.3ms)[0m [1mUPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ?[0m [["encoding_progress", 100], ["updated_at", "2016-09-07 13:06:02.004395"], ["id", 731805050]]
|
142448
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] [1m[35m (0.7ms)[0m commit transaction
|
142449
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] [1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
142450
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] [1m[35m (0.0ms)[0m commit transaction
|
142451
|
+
[ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 143208.66ms
|
142452
|
+
[1m[36mFogged::Resource Load (0.3ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 731805050]]
|
142453
|
+
spawn> child[20029] took 143.246525 sec
|
142454
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
142455
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "fogged_resources"
|
142456
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 517391740)[0m
|
142457
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 701625837)
|
142458
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 819504217)[0m
|
142459
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 132093124)
|
142460
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 431685987)[0m
|
142461
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 620280917)
|
142462
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 335514824)[0m
|
142463
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 183950720)
|
142464
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 1039265257)[0m
|
142465
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 596998220)
|
142466
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 433078596)[0m
|
142467
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 785871319)
|
142468
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 937304175)[0m
|
142469
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 14225656)
|
142470
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 515736925)[0m
|
142471
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 538821867)
|
142472
|
+
[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-09-07 13:06:02', '2016-09-07 13:06:02', 731805050)[0m
|
142473
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "images"
|
142474
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 579229346)[0m
|
142475
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 153115190)
|
142476
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "movie_fogged_resources"[0m
|
142477
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:06:02', '2016-09-07 13:06:02', 419883833, 624739301, 701625837)
|
142478
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:06:02', '2016-09-07 13:06:02', 849405871, 624739301, 819504217)[0m
|
142479
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:06:02', '2016-09-07 13:06:02', 98413728, 245026679, 784085492)
|
142480
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:06:02', '2016-09-07 13:06:02', 779853880, 245026679, 431685987)[0m
|
142481
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "movies"
|
142482
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 624739301)[0m
|
142483
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 245026679)
|
142484
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 948421225)[0m
|
142485
|
+
[1m[35m (0.9ms)[0m commit transaction
|
142486
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142487
|
+
----------------------------------------------------------------------------------------------
|
142488
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
|
142489
|
+
----------------------------------------------------------------------------------------------
|
142490
|
+
[1m[35mFogged::Resource Load (0.2ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
142491
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142492
|
+
[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-09-07 13:06:02.044931"], ["id", 1039265257]]
|
142493
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142494
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
142495
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
142496
|
+
[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"]]
|
142497
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142498
|
+
[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-09-07 13:06:02.050845"], ["id", 1039265257]]
|
142499
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142500
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
|
142501
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
142502
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
142503
|
+
[1m[35m (0.0ms)[0m begin transaction
|
142504
|
+
--------------------------------------------------------------------------------------------------------------
|
142505
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
|
142506
|
+
--------------------------------------------------------------------------------------------------------------
|
142507
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
142508
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142509
|
+
[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-09-07 13:06:02.055333"], ["id", 1039265257]]
|
142510
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142511
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
142512
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
142513
|
+
[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"]]
|
142514
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
142515
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
142516
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
142517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142518
|
+
--------------------------------------------------------------------------------------------------------------
|
142519
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
|
142520
|
+
--------------------------------------------------------------------------------------------------------------
|
142521
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
142522
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
142523
|
+
[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-09-07 13:06:02.062258"], ["id", 1039265257]]
|
142524
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
142525
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
142526
|
+
Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
|
142527
|
+
[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!"]]
|
142528
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
142529
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
142530
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142531
|
+
-------------------------------------------------------------------------------------------------------------------
|
142532
|
+
Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
|
142533
|
+
-------------------------------------------------------------------------------------------------------------------
|
142534
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
|
142535
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
142536
|
+
[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-09-07 13:06:02.068200"], ["id", 1039265257]]
|
142537
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142538
|
+
Processing by Fogged::ResourcesController#zencoder_notification as HTML
|
142539
|
+
Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
|
142540
|
+
[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"]]
|
142541
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
142542
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 1039265257]]
|
142543
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
142544
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142545
|
+
-------------------------------------------------------------
|
142546
|
+
MovieTest: test_should_not_save_movie_with_uploading_resource
|
142547
|
+
-------------------------------------------------------------
|
142548
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
|
142549
|
+
[1m[36mFogged::Resource Load (0.0ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 819504217]]
|
142550
|
+
[1m[35mFogged::Resource Load (0.1ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
|
142551
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
142552
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-09-07 13:06:02.081798"], ["id", 431685987]]
|
142553
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142554
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
142555
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
142556
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
142557
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
142558
|
+
---------------------------------------------------
|
142559
|
+
MovieTest: test_should_save_movie_with_no_resources
|
142560
|
+
---------------------------------------------------
|
142561
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142562
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test"], ["created_at", "2016-09-07 13:06:02.088049"], ["updated_at", "2016-09-07 13:06:02.088049"]]
|
142563
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142564
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
142565
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142566
|
+
--------------------------------------------------------
|
142567
|
+
MovieTest: test_should_save_movie_with_several_resources
|
142568
|
+
--------------------------------------------------------
|
142569
|
+
[1m[36mFogged::Resource Load (0.1ms)[0m [1mSELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1[0m [["id", 701625837]]
|
142570
|
+
[1m[35mFogged::Resource Load (0.0ms)[0m SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
|
142571
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
142572
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-09-07 13:06:02.094288"], ["updated_at", "2016-09-07 13:06:02.094288"]]
|
142573
|
+
[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-09-07 13:06:02.095880"], ["updated_at", "2016-09-07 13:06:02.095880"]]
|
142574
|
+
[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-09-07 13:06:02.097166"], ["updated_at", "2016-09-07 13:06:02.097166"]]
|
142575
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142576
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fogged
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Fernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07
|
11
|
+
date: 2016-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|