{"action":"created","comment":{"url":"https://api.github.com/repos/zalando/innkeeper/pulls/comments/55849609","id":55849609,"diff_hunk":"@@ -0,0 +1,84 @@\n+package org.zalando.spearheads.innkeeper.routes\n+\n+import java.time.LocalDateTime\n+\n+import akka.http.scaladsl.model.StatusCodes\n+import org.scalatest.{Matchers, BeforeAndAfter, FunSpec}\n+import org.zalando.spearheads.innkeeper.api.{RouteName, RouteOut}\n+import org.zalando.spearheads.innkeeper.routes.AcceptanceSpecsHelper._\n+import org.zalando.spearheads.innkeeper.routes.AcceptanceSpecTokens._\n+import org.zalando.spearheads.innkeeper.routes.RoutesRepoHelper._\n+import spray.json._\n+import spray.json.DefaultJsonProtocol._\n+import org.zalando.spearheads.innkeeper.api.JsonProtocols._\n+\n+/**\n+ * @author Alexey Venderov\n+ */\n+class GetDeletedRoutesSpec extends FunSpec with BeforeAndAfter with Matchers {\n+\n+  describe(\"get /deleted-routes\") {\n+    describe(\"success\") {\n+\n+      before {\n+        recreateSchema\n+      }\n+\n+      it(\"should return an empty collection if there are no deleted routes\") {\n+        insertRoute(\"R1\")\n+        insertRoute(\"R2\")\n+\n+        val response = getDeletedRoutes(LocalDateTime.now(), READ_TOKEN)\n+        response.status shouldBe StatusCodes.OK\n+\n+        val entity = entityString(response)\n+\n+        val deletedRoutes = entity.parseJson.convertTo[Seq[RouteOut]]\n+        deletedRoutes.size shouldBe 0","path":"src/it/scala/org/zalando/spearheads/innkeeper/routes/GetDeletedRoutesSpec.scala","position":37,"original_position":37,"commit_id":"7c1ae0f8b93f19c44b9b860537296b91401f2734","original_commit_id":"7c1ae0f8b93f19c44b9b860537296b91401f2734","user":{"login":"danpersa","id":579158,"avatar_url":"https://avatars.githubusercontent.com/u/579158?v=3","gravatar_id":"","url":"https://api.github.com/users/danpersa","html_url":"https://github.com/danpersa","followers_url":"https://api.github.com/users/danpersa/followers","following_url":"https://api.github.com/users/danpersa/following{/other_user}","gists_url":"https://api.github.com/users/danpersa/gists{/gist_id}","starred_url":"https://api.github.com/users/danpersa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpersa/subscriptions","organizations_url":"https://api.github.com/users/danpersa/orgs","repos_url":"https://api.github.com/users/danpersa/repos","events_url":"https://api.github.com/users/danpersa/events{/privacy}","received_events_url":"https://api.github.com/users/danpersa/received_events","type":"User","site_admin":false},"body":"again, in this file please replace all `shouldBe` with `should be`, for consistency with other tests.","created_at":"2016-03-11T16:08:53Z","updated_at":"2016-03-11T16:08:53Z","html_url":"https://github.com/zalando/innkeeper/pull/66#discussion_r55849609","pull_request_url":"https://api.github.com/repos/zalando/innkeeper/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/comments/55849609"},"html":{"href":"https://github.com/zalando/innkeeper/pull/66#discussion_r55849609"},"pull_request":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/zalando/innkeeper/pulls/66","id":62224515,"html_url":"https://github.com/zalando/innkeeper/pull/66","diff_url":"https://github.com/zalando/innkeeper/pull/66.diff","patch_url":"https://github.com/zalando/innkeeper/pull/66.patch","issue_url":"https://api.github.com/repos/zalando/innkeeper/issues/66","number":66,"state":"open","locked":false,"title":"Implemented get deleted routes resource. Some refactorings.","user":{"login":"c00ler","id":1210272,"avatar_url":"https://avatars.githubusercontent.com/u/1210272?v=3","gravatar_id":"","url":"https://api.github.com/users/c00ler","html_url":"https://github.com/c00ler","followers_url":"https://api.github.com/users/c00ler/followers","following_url":"https://api.github.com/users/c00ler/following{/other_user}","gists_url":"https://api.github.com/users/c00ler/gists{/gist_id}","starred_url":"https://api.github.com/users/c00ler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c00ler/subscriptions","organizations_url":"https://api.github.com/users/c00ler/orgs","repos_url":"https://api.github.com/users/c00ler/repos","events_url":"https://api.github.com/users/c00ler/events{/privacy}","received_events_url":"https://api.github.com/users/c00ler/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-09T12:58:29Z","updated_at":"2016-03-11T16:08:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7bd2afa647f3b8fdb512faa1fd73d226fc5aa24e","assignee":{"login":"danpersa","id":579158,"avatar_url":"https://avatars.githubusercontent.com/u/579158?v=3","gravatar_id":"","url":"https://api.github.com/users/danpersa","html_url":"https://github.com/danpersa","followers_url":"https://api.github.com/users/danpersa/followers","following_url":"https://api.github.com/users/danpersa/following{/other_user}","gists_url":"https://api.github.com/users/danpersa/gists{/gist_id}","starred_url":"https://api.github.com/users/danpersa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpersa/subscriptions","organizations_url":"https://api.github.com/users/danpersa/orgs","repos_url":"https://api.github.com/users/danpersa/repos","events_url":"https://api.github.com/users/danpersa/events{/privacy}","received_events_url":"https://api.github.com/users/danpersa/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/zalando/innkeeper/pulls/66/commits","review_comments_url":"https://api.github.com/repos/zalando/innkeeper/pulls/66/comments","review_comment_url":"https://api.github.com/repos/zalando/innkeeper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando/innkeeper/issues/66/comments","statuses_url":"https://api.github.com/repos/zalando/innkeeper/statuses/7c1ae0f8b93f19c44b9b860537296b91401f2734","head":{"label":"zalando:get-deleted-routes","ref":"get-deleted-routes","sha":"7c1ae0f8b93f19c44b9b860537296b91401f2734","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":42450261,"name":"innkeeper","full_name":"zalando/innkeeper","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/innkeeper","description":"Simple route management API for Skipper","fork":false,"url":"https://api.github.com/repos/zalando/innkeeper","forks_url":"https://api.github.com/repos/zalando/innkeeper/forks","keys_url":"https://api.github.com/repos/zalando/innkeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/innkeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/innkeeper/teams","hooks_url":"https://api.github.com/repos/zalando/innkeeper/hooks","issue_events_url":"https://api.github.com/repos/zalando/innkeeper/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/innkeeper/events","assignees_url":"https://api.github.com/repos/zalando/innkeeper/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/innkeeper/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/innkeeper/tags","blobs_url":"https://api.github.com/repos/zalando/innkeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/innkeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/innkeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/innkeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/innkeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/innkeeper/languages","stargazers_url":"https://api.github.com/repos/zalando/innkeeper/stargazers","contributors_url":"https://api.github.com/repos/zalando/innkeeper/contributors","subscribers_url":"https://api.github.com/repos/zalando/innkeeper/subscribers","subscription_url":"https://api.github.com/repos/zalando/innkeeper/subscription","commits_url":"https://api.github.com/repos/zalando/innkeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/innkeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/innkeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/innkeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/innkeeper/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/innkeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/innkeeper/merges","archive_url":"https://api.github.com/repos/zalando/innkeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/innkeeper/downloads","issues_url":"https://api.github.com/repos/zalando/innkeeper/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/innkeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/innkeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/innkeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/innkeeper/labels{/name}","releases_url":"https://api.github.com/repos/zalando/innkeeper/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/innkeeper/deployments","created_at":"2015-09-14T13:28:02Z","updated_at":"2016-02-24T16:23:04Z","pushed_at":"2016-03-11T15:34:39Z","git_url":"git://github.com/zalando/innkeeper.git","ssh_url":"git@github.com:zalando/innkeeper.git","clone_url":"https://github.com/zalando/innkeeper.git","svn_url":"https://github.com/zalando/innkeeper","homepage":"","size":268,"stargazers_count":33,"watchers_count":33,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":33,"default_branch":"master"}},"base":{"label":"zalando:master","ref":"master","sha":"7f5b7fc95987f7422e41789a57b5a61ec36fa4e8","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":42450261,"name":"innkeeper","full_name":"zalando/innkeeper","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/innkeeper","description":"Simple route management API for Skipper","fork":false,"url":"https://api.github.com/repos/zalando/innkeeper","forks_url":"https://api.github.com/repos/zalando/innkeeper/forks","keys_url":"https://api.github.com/repos/zalando/innkeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/innkeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/innkeeper/teams","hooks_url":"https://api.github.com/repos/zalando/innkeeper/hooks","issue_events_url":"https://api.github.com/repos/zalando/innkeeper/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/innkeeper/events","assignees_url":"https://api.github.com/repos/zalando/innkeeper/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/innkeeper/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/innkeeper/tags","blobs_url":"https://api.github.com/repos/zalando/innkeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/innkeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/innkeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/innkeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/innkeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/innkeeper/languages","stargazers_url":"https://api.github.com/repos/zalando/innkeeper/stargazers","contributors_url":"https://api.github.com/repos/zalando/innkeeper/contributors","subscribers_url":"https://api.github.com/repos/zalando/innkeeper/subscribers","subscription_url":"https://api.github.com/repos/zalando/innkeeper/subscription","commits_url":"https://api.github.com/repos/zalando/innkeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/innkeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/innkeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/innkeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/innkeeper/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/innkeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/innkeeper/merges","archive_url":"https://api.github.com/repos/zalando/innkeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/innkeeper/downloads","issues_url":"https://api.github.com/repos/zalando/innkeeper/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/innkeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/innkeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/innkeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/innkeeper/labels{/name}","releases_url":"https://api.github.com/repos/zalando/innkeeper/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/innkeeper/deployments","created_at":"2015-09-14T13:28:02Z","updated_at":"2016-02-24T16:23:04Z","pushed_at":"2016-03-11T15:34:39Z","git_url":"git://github.com/zalando/innkeeper.git","ssh_url":"git@github.com:zalando/innkeeper.git","clone_url":"https://github.com/zalando/innkeeper.git","svn_url":"https://github.com/zalando/innkeeper","homepage":"","size":268,"stargazers_count":33,"watchers_count":33,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/66"},"html":{"href":"https://github.com/zalando/innkeeper/pull/66"},"issue":{"href":"https://api.github.com/repos/zalando/innkeeper/issues/66"},"comments":{"href":"https://api.github.com/repos/zalando/innkeeper/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/zalando/innkeeper/statuses/7c1ae0f8b93f19c44b9b860537296b91401f2734"}}}}