{"action":"created","comment":{"url":"https://api.github.com/repos/searchbox-io/Jest/pulls/comments/35494389","id":35494389,"diff_hunk":"@@ -0,0 +1,72 @@\n+package io.searchbox.core;\n+\n+import com.google.gson.JsonArray;\n+import io.searchbox.common.AbstractIntegrationTest;\n+import org.elasticsearch.action.admin.indices.alias.IndicesAliasesAction;\n+import org.elasticsearch.test.ElasticsearchIntegrationTest;\n+import org.junit.Test;\n+\n+import java.io.IOException;\n+\n+/**\n+ * @author Bartosz Polnik\n+ */\n+@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numDataNodes = 1)\n+public class CatIntegrationTest extends AbstractIntegrationTest {\n+    final static String INDEX = \"twitter\";\n+    final static String ALIAS = \"twitterAlias\";\n+    final static String INDEX2 = \"twitter2\";\n+\n+    @Test\n+    public void shouldReturnEmptyPlainTextForIndices() throws IOException {\n+        CatResult result = client.execute(new Cat.IndicesBuilder().build());\n+        assertEquals(new JsonArray(), result.getJsonObject().get(result.getPathToResult()));\n+        assertArrayEquals(new String[0][0], result.getPlainText());\n+    }\n+\n+    @Test\n+    public void shouldPropertyMapSingleResult() throws IOException {\n+        createIndex(INDEX);","path":"jest/src/test/java/io/searchbox/core/CatIntegrationTest.java","position":29,"original_position":29,"commit_id":"40898aca46fcb4ee287776a7df2ea832d519bc21","original_commit_id":"40898aca46fcb4ee287776a7df2ea832d519bc21","user":{"login":"kramer","id":589203,"avatar_url":"https://avatars.githubusercontent.com/u/589203?v=3","gravatar_id":"","url":"https://api.github.com/users/kramer","html_url":"https://github.com/kramer","followers_url":"https://api.github.com/users/kramer/followers","following_url":"https://api.github.com/users/kramer/following{/other_user}","gists_url":"https://api.github.com/users/kramer/gists{/gist_id}","starred_url":"https://api.github.com/users/kramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kramer/subscriptions","organizations_url":"https://api.github.com/users/kramer/orgs","repos_url":"https://api.github.com/users/kramer/repos","events_url":"https://api.github.com/users/kramer/events{/privacy}","received_events_url":"https://api.github.com/users/kramer/received_events","type":"User","site_admin":false},"body":"\\+ `ensureSearchable` just to be on the safe side.","created_at":"2015-07-26T16:01:37Z","updated_at":"2015-07-26T16:01:37Z","html_url":"https://github.com/searchbox-io/Jest/pull/224#discussion_r35494389","pull_request_url":"https://api.github.com/repos/searchbox-io/Jest/pulls/224","_links":{"self":{"href":"https://api.github.com/repos/searchbox-io/Jest/pulls/comments/35494389"},"html":{"href":"https://github.com/searchbox-io/Jest/pull/224#discussion_r35494389"},"pull_request":{"href":"https://api.github.com/repos/searchbox-io/Jest/pulls/224"}}},"pull_request":{"url":"https://api.github.com/repos/searchbox-io/Jest/pulls/224","id":39978023,"html_url":"https://github.com/searchbox-io/Jest/pull/224","diff_url":"https://github.com/searchbox-io/Jest/pull/224.diff","patch_url":"https://github.com/searchbox-io/Jest/pull/224.patch","issue_url":"https://api.github.com/repos/searchbox-io/Jest/issues/224","number":224,"state":"open","locked":false,"title":"add support for cat actions","user":{"login":"bartekbp","id":2477668,"avatar_url":"https://avatars.githubusercontent.com/u/2477668?v=3","gravatar_id":"","url":"https://api.github.com/users/bartekbp","html_url":"https://github.com/bartekbp","followers_url":"https://api.github.com/users/bartekbp/followers","following_url":"https://api.github.com/users/bartekbp/following{/other_user}","gists_url":"https://api.github.com/users/bartekbp/gists{/gist_id}","starred_url":"https://api.github.com/users/bartekbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartekbp/subscriptions","organizations_url":"https://api.github.com/users/bartekbp/orgs","repos_url":"https://api.github.com/users/bartekbp/repos","events_url":"https://api.github.com/users/bartekbp/events{/privacy}","received_events_url":"https://api.github.com/users/bartekbp/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-15T00:35:12Z","updated_at":"2015-07-26T16:01:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62e0a3549d7671d113f8e6cd16125a536c61c1c2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/searchbox-io/Jest/pulls/224/commits","review_comments_url":"https://api.github.com/repos/searchbox-io/Jest/pulls/224/comments","review_comment_url":"https://api.github.com/repos/searchbox-io/Jest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/searchbox-io/Jest/issues/224/comments","statuses_url":"https://api.github.com/repos/searchbox-io/Jest/statuses/40898aca46fcb4ee287776a7df2ea832d519bc21","head":{"label":"bartekbp:master","ref":"master","sha":"40898aca46fcb4ee287776a7df2ea832d519bc21","user":{"login":"bartekbp","id":2477668,"avatar_url":"https://avatars.githubusercontent.com/u/2477668?v=3","gravatar_id":"","url":"https://api.github.com/users/bartekbp","html_url":"https://github.com/bartekbp","followers_url":"https://api.github.com/users/bartekbp/followers","following_url":"https://api.github.com/users/bartekbp/following{/other_user}","gists_url":"https://api.github.com/users/bartekbp/gists{/gist_id}","starred_url":"https://api.github.com/users/bartekbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartekbp/subscriptions","organizations_url":"https://api.github.com/users/bartekbp/orgs","repos_url":"https://api.github.com/users/bartekbp/repos","events_url":"https://api.github.com/users/bartekbp/events{/privacy}","received_events_url":"https://api.github.com/users/bartekbp/received_events","type":"User","site_admin":false},"repo":{"id":39107318,"name":"Jest","full_name":"bartekbp/Jest","owner":{"login":"bartekbp","id":2477668,"avatar_url":"https://avatars.githubusercontent.com/u/2477668?v=3","gravatar_id":"","url":"https://api.github.com/users/bartekbp","html_url":"https://github.com/bartekbp","followers_url":"https://api.github.com/users/bartekbp/followers","following_url":"https://api.github.com/users/bartekbp/following{/other_user}","gists_url":"https://api.github.com/users/bartekbp/gists{/gist_id}","starred_url":"https://api.github.com/users/bartekbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartekbp/subscriptions","organizations_url":"https://api.github.com/users/bartekbp/orgs","repos_url":"https://api.github.com/users/bartekbp/repos","events_url":"https://api.github.com/users/bartekbp/events{/privacy}","received_events_url":"https://api.github.com/users/bartekbp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bartekbp/Jest","description":"ElasticSearch Java Rest Client.","fork":true,"url":"https://api.github.com/repos/bartekbp/Jest","forks_url":"https://api.github.com/repos/bartekbp/Jest/forks","keys_url":"https://api.github.com/repos/bartekbp/Jest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bartekbp/Jest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bartekbp/Jest/teams","hooks_url":"https://api.github.com/repos/bartekbp/Jest/hooks","issue_events_url":"https://api.github.com/repos/bartekbp/Jest/issues/events{/number}","events_url":"https://api.github.com/repos/bartekbp/Jest/events","assignees_url":"https://api.github.com/repos/bartekbp/Jest/assignees{/user}","branches_url":"https://api.github.com/repos/bartekbp/Jest/branches{/branch}","tags_url":"https://api.github.com/repos/bartekbp/Jest/tags","blobs_url":"https://api.github.com/repos/bartekbp/Jest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bartekbp/Jest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bartekbp/Jest/git/refs{/sha}","trees_url":"https://api.github.com/repos/bartekbp/Jest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bartekbp/Jest/statuses/{sha}","languages_url":"https://api.github.com/repos/bartekbp/Jest/languages","stargazers_url":"https://api.github.com/repos/bartekbp/Jest/stargazers","contributors_url":"https://api.github.com/repos/bartekbp/Jest/contributors","subscribers_url":"https://api.github.com/repos/bartekbp/Jest/subscribers","subscription_url":"https://api.github.com/repos/bartekbp/Jest/subscription","commits_url":"https://api.github.com/repos/bartekbp/Jest/commits{/sha}","git_commits_url":"https://api.github.com/repos/bartekbp/Jest/git/commits{/sha}","comments_url":"https://api.github.com/repos/bartekbp/Jest/comments{/number}","issue_comment_url":"https://api.github.com/repos/bartekbp/Jest/issues/comments{/number}","contents_url":"https://api.github.com/repos/bartekbp/Jest/contents/{+path}","compare_url":"https://api.github.com/repos/bartekbp/Jest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bartekbp/Jest/merges","archive_url":"https://api.github.com/repos/bartekbp/Jest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bartekbp/Jest/downloads","issues_url":"https://api.github.com/repos/bartekbp/Jest/issues{/number}","pulls_url":"https://api.github.com/repos/bartekbp/Jest/pulls{/number}","milestones_url":"https://api.github.com/repos/bartekbp/Jest/milestones{/number}","notifications_url":"https://api.github.com/repos/bartekbp/Jest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bartekbp/Jest/labels{/name}","releases_url":"https://api.github.com/repos/bartekbp/Jest/releases{/id}","created_at":"2015-07-15T00:26:08Z","updated_at":"2015-07-15T00:26:09Z","pushed_at":"2015-07-15T00:27:47Z","git_url":"git://github.com/bartekbp/Jest.git","ssh_url":"git@github.com:bartekbp/Jest.git","clone_url":"https://github.com/bartekbp/Jest.git","svn_url":"https://github.com/bartekbp/Jest","homepage":null,"size":4385,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"searchbox-io:master","ref":"master","sha":"b92b99696014dfff3fcd84afd1522c48b44c535d","user":{"login":"searchbox-io","id":1482383,"avatar_url":"https://avatars.githubusercontent.com/u/1482383?v=3","gravatar_id":"","url":"https://api.github.com/users/searchbox-io","html_url":"https://github.com/searchbox-io","followers_url":"https://api.github.com/users/searchbox-io/followers","following_url":"https://api.github.com/users/searchbox-io/following{/other_user}","gists_url":"https://api.github.com/users/searchbox-io/gists{/gist_id}","starred_url":"https://api.github.com/users/searchbox-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/searchbox-io/subscriptions","organizations_url":"https://api.github.com/users/searchbox-io/orgs","repos_url":"https://api.github.com/users/searchbox-io/repos","events_url":"https://api.github.com/users/searchbox-io/events{/privacy}","received_events_url":"https://api.github.com/users/searchbox-io/received_events","type":"Organization","site_admin":false},"repo":{"id":4393933,"name":"Jest","full_name":"searchbox-io/Jest","owner":{"login":"searchbox-io","id":1482383,"avatar_url":"https://avatars.githubusercontent.com/u/1482383?v=3","gravatar_id":"","url":"https://api.github.com/users/searchbox-io","html_url":"https://github.com/searchbox-io","followers_url":"https://api.github.com/users/searchbox-io/followers","following_url":"https://api.github.com/users/searchbox-io/following{/other_user}","gists_url":"https://api.github.com/users/searchbox-io/gists{/gist_id}","starred_url":"https://api.github.com/users/searchbox-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/searchbox-io/subscriptions","organizations_url":"https://api.github.com/users/searchbox-io/orgs","repos_url":"https://api.github.com/users/searchbox-io/repos","events_url":"https://api.github.com/users/searchbox-io/events{/privacy}","received_events_url":"https://api.github.com/users/searchbox-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/searchbox-io/Jest","description":"ElasticSearch Java Rest Client.","fork":false,"url":"https://api.github.com/repos/searchbox-io/Jest","forks_url":"https://api.github.com/repos/searchbox-io/Jest/forks","keys_url":"https://api.github.com/repos/searchbox-io/Jest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/searchbox-io/Jest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/searchbox-io/Jest/teams","hooks_url":"https://api.github.com/repos/searchbox-io/Jest/hooks","issue_events_url":"https://api.github.com/repos/searchbox-io/Jest/issues/events{/number}","events_url":"https://api.github.com/repos/searchbox-io/Jest/events","assignees_url":"https://api.github.com/repos/searchbox-io/Jest/assignees{/user}","branches_url":"https://api.github.com/repos/searchbox-io/Jest/branches{/branch}","tags_url":"https://api.github.com/repos/searchbox-io/Jest/tags","blobs_url":"https://api.github.com/repos/searchbox-io/Jest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/searchbox-io/Jest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/searchbox-io/Jest/git/refs{/sha}","trees_url":"https://api.github.com/repos/searchbox-io/Jest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/searchbox-io/Jest/statuses/{sha}","languages_url":"https://api.github.com/repos/searchbox-io/Jest/languages","stargazers_url":"https://api.github.com/repos/searchbox-io/Jest/stargazers","contributors_url":"https://api.github.com/repos/searchbox-io/Jest/contributors","subscribers_url":"https://api.github.com/repos/searchbox-io/Jest/subscribers","subscription_url":"https://api.github.com/repos/searchbox-io/Jest/subscription","commits_url":"https://api.github.com/repos/searchbox-io/Jest/commits{/sha}","git_commits_url":"https://api.github.com/repos/searchbox-io/Jest/git/commits{/sha}","comments_url":"https://api.github.com/repos/searchbox-io/Jest/comments{/number}","issue_comment_url":"https://api.github.com/repos/searchbox-io/Jest/issues/comments{/number}","contents_url":"https://api.github.com/repos/searchbox-io/Jest/contents/{+path}","compare_url":"https://api.github.com/repos/searchbox-io/Jest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/searchbox-io/Jest/merges","archive_url":"https://api.github.com/repos/searchbox-io/Jest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/searchbox-io/Jest/downloads","issues_url":"https://api.github.com/repos/searchbox-io/Jest/issues{/number}","pulls_url":"https://api.github.com/repos/searchbox-io/Jest/pulls{/number}","milestones_url":"https://api.github.com/repos/searchbox-io/Jest/milestones{/number}","notifications_url":"https://api.github.com/repos/searchbox-io/Jest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/searchbox-io/Jest/labels{/name}","releases_url":"https://api.github.com/repos/searchbox-io/Jest/releases{/id}","created_at":"2012-05-21T13:37:50Z","updated_at":"2015-07-24T06:22:56Z","pushed_at":"2015-07-15T00:35:12Z","git_url":"git://github.com/searchbox-io/Jest.git","ssh_url":"git@github.com:searchbox-io/Jest.git","clone_url":"https://github.com/searchbox-io/Jest.git","svn_url":"https://github.com/searchbox-io/Jest","homepage":null,"size":6559,"stargazers_count":279,"watchers_count":279,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":154,"mirror_url":null,"open_issues_count":7,"forks":154,"open_issues":7,"watchers":279,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/searchbox-io/Jest/pulls/224"},"html":{"href":"https://github.com/searchbox-io/Jest/pull/224"},"issue":{"href":"https://api.github.com/repos/searchbox-io/Jest/issues/224"},"comments":{"href":"https://api.github.com/repos/searchbox-io/Jest/issues/224/comments"},"review_comments":{"href":"https://api.github.com/repos/searchbox-io/Jest/pulls/224/comments"},"review_comment":{"href":"https://api.github.com/repos/searchbox-io/Jest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/searchbox-io/Jest/pulls/224/commits"},"statuses":{"href":"https://api.github.com/repos/searchbox-io/Jest/statuses/40898aca46fcb4ee287776a7df2ea832d519bc21"}}}}