{"action":"created","issue":{"url":"https://api.github.com/repos/evercam/evercam-media/issues/201","repository_url":"https://api.github.com/repos/evercam/evercam-media","labels_url":"https://api.github.com/repos/evercam/evercam-media/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/evercam/evercam-media/issues/201/comments","events_url":"https://api.github.com/repos/evercam/evercam-media/issues/201/events","html_url":"https://github.com/evercam/evercam-media/issues/201","id":151338761,"number":201,"title":"Fix two failing tests on Travis CI","user":{"login":"mosic","id":1229422,"avatar_url":"https://avatars.githubusercontent.com/u/1229422?v=3","gravatar_id":"","url":"https://api.github.com/users/mosic","html_url":"https://github.com/mosic","followers_url":"https://api.github.com/users/mosic/followers","following_url":"https://api.github.com/users/mosic/following{/other_user}","gists_url":"https://api.github.com/users/mosic/gists{/gist_id}","starred_url":"https://api.github.com/users/mosic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosic/subscriptions","organizations_url":"https://api.github.com/users/mosic/orgs","repos_url":"https://api.github.com/users/mosic/repos","events_url":"https://api.github.com/users/mosic/events{/privacy}","received_events_url":"https://api.github.com/users/mosic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/evercam/evercam-media/milestones/11","html_url":"https://github.com/evercam/evercam-media/milestones/v1.61%20(Pre-Milos)","labels_url":"https://api.github.com/repos/evercam/evercam-media/milestones/11/labels","id":1853155,"number":11,"title":"v1.61 (Pre-Milos)","description":"","creator":{"login":"marcoherbst","id":5648894,"avatar_url":"https://avatars.githubusercontent.com/u/5648894?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoherbst","html_url":"https://github.com/marcoherbst","followers_url":"https://api.github.com/users/marcoherbst/followers","following_url":"https://api.github.com/users/marcoherbst/following{/other_user}","gists_url":"https://api.github.com/users/marcoherbst/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoherbst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoherbst/subscriptions","organizations_url":"https://api.github.com/users/marcoherbst/orgs","repos_url":"https://api.github.com/users/marcoherbst/repos","events_url":"https://api.github.com/users/marcoherbst/events{/privacy}","received_events_url":"https://api.github.com/users/marcoherbst/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":2,"state":"open","created_at":"2016-06-28T16:12:43Z","updated_at":"2016-07-27T19:13:34Z","due_on":"2016-07-30T23:00:00Z","closed_at":null},"comments":1,"created_at":"2016-04-27T09:23:09Z","updated_at":"2016-07-27T19:13:34Z","closed_at":"2016-07-27T19:13:34Z","body":"Two tests are passing locally but failing in Travis. I temporarily marked them to be skipped (https://github.com/evercam/evercam-media/pull/200/commits/85094f42dca69d371044bbffe0d26c24025f800a) but we should fix this.\r\n\r\nThis is the output of the failing tests:\r\n\r\n```\r\n  1) test GET /v1/cameras/:id/thumbnail (EvercamMedia.CameraControllerTest)\r\n     test/controllers/camera_controller_test.exs:31\r\n     ** (Ecto.ConstraintError) constraint error when attempting to insert struct:\r\n     \r\n         * foreign_key: snapshots_camera_id_fkey1\r\n     \r\n     If you would like to convert this constraint into an error, please\r\n     call foreign_key_constraint/3 in your changeset and define the proper\r\n     constraint name. The changeset defined the following constraints:\r\n     \r\n         * unique: snapshots_pkey\r\n     \r\n     stacktrace:\r\n       (ecto) lib/ecto/repo/schema.ex:390: anonymous fn/5 in Ecto.Repo.Schema.constraints_to_errors/3\r\n       (elixir) lib/enum.ex:1473: Enum.\"-reduce/3-lists^foldl/2-0-\"/3\r\n       (ecto) lib/ecto/repo/schema.ex:183: anonymous fn/11 in Ecto.Repo.Schema.do_insert/4\r\n       (ecto) lib/ecto/repo/schema.ex:570: anonymous fn/3 in Ecto.Repo.Schema.wrap_in_transaction/6\r\n       (ecto) lib/ecto/adapters/sql.ex:434: anonymous fn/3 in Ecto.Adapters.SQL.do_transaction/3\r\n       (db_connection) lib/db_connection.ex:1079: DBConnection.transaction_run/4\r\n       (db_connection) lib/db_connection.ex:1009: DBConnection.run_begin/3\r\n       (db_connection) lib/db_connection.ex:766: DBConnection.transaction/3\r\n       test/controllers/camera_controller_test.exs:24: EvercamMedia.CameraControllerTest.__ex_unit_setup_1/1\r\n       test/controllers/camera_controller_test.exs:1: EvercamMedia.CameraControllerTest.__ex_unit__/2\r\n\r\n  2) test lists ranges of expired snapshots (SnapshotTest)\r\n     test/models/snapshot_test.exs:64\r\n     ** (Ecto.ConstraintError) constraint error when attempting to insert struct:\r\n     \r\n         * foreign_key: snapshots_camera_id_fkey1\r\n     \r\n     If you would like to convert this constraint into an error, please\r\n     call foreign_key_constraint/3 in your changeset and define the proper\r\n     constraint name. The changeset has not defined any constraint.\r\n     \r\n     stacktrace:\r\n       (ecto) lib/ecto/repo/schema.ex:390: anonymous fn/5 in Ecto.Repo.Schema.constraints_to_errors/3\r\n       (elixir) lib/enum.ex:1473: Enum.\"-reduce/3-lists^foldl/2-0-\"/3\r\n       (ecto) lib/ecto/repo/schema.ex:183: anonymous fn/11 in Ecto.Repo.Schema.do_insert/4\r\n       (ecto) lib/ecto/repo/schema.ex:570: anonymous fn/3 in Ecto.Repo.Schema.wrap_in_transaction/6\r\n       (ecto) lib/ecto/adapters/sql.ex:434: anonymous fn/3 in Ecto.Adapters.SQL.do_transaction/3\r\n       (db_connection) lib/db_connection.ex:1079: DBConnection.transaction_run/4\r\n       (db_connection) lib/db_connection.ex:1009: DBConnection.run_begin/3\r\n       (db_connection) lib/db_connection.ex:766: DBConnection.transaction/3\r\n       (ecto) lib/ecto/repo/schema.ex:108: Ecto.Repo.Schema.insert!/4\r\n       test/models/snapshot_test.exs:45: SnapshotTest.__ex_unit_setup_1/1\r\n       test/models/snapshot_test.exs:1: SnapshotTest.__ex_unit__/2\r\n```"},"comment":{"url":"https://api.github.com/repos/evercam/evercam-media/issues/comments/235689602","html_url":"https://github.com/evercam/evercam-media/issues/201#issuecomment-235689602","issue_url":"https://api.github.com/repos/evercam/evercam-media/issues/201","id":235689602,"user":{"login":"mosic","id":1229422,"avatar_url":"https://avatars.githubusercontent.com/u/1229422?v=3","gravatar_id":"","url":"https://api.github.com/users/mosic","html_url":"https://github.com/mosic","followers_url":"https://api.github.com/users/mosic/followers","following_url":"https://api.github.com/users/mosic/following{/other_user}","gists_url":"https://api.github.com/users/mosic/gists{/gist_id}","starred_url":"https://api.github.com/users/mosic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosic/subscriptions","organizations_url":"https://api.github.com/users/mosic/orgs","repos_url":"https://api.github.com/users/mosic/repos","events_url":"https://api.github.com/users/mosic/events{/privacy}","received_events_url":"https://api.github.com/users/mosic/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T19:13:34Z","updated_at":"2016-07-27T19:13:34Z","body":"This was fixed, closing."}}
{"actor":{"display_login":"mosic"}}