{"action":"created","comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments/197534222","pull_request_review_id":131303535,"id":197534222,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzUzNDIyMg==","diff_hunk":"@@ -119,6 +125,36 @@ public void testVerifyRepository() throws IOException {\n         assertThat(response.getNodes().size(), equalTo(1));\n     }\n \n+    public void testGetSnapshots() throws IOException {\n+        String repository = \"test_repository\";\n+        String snapshot1 = \"test_snapshot1\";\n+        String snapshot2 = \"test_snapshot2\";\n+\n+        PutRepositoryResponse putRepositoryResponse = createTestRepository(repository, FsRepository.TYPE, \"{\\\"location\\\": \\\".\\\"}\");\n+        assertTrue(putRepositoryResponse.isAcknowledged());\n+\n+        Response putSnapshotResponse1 = createTestSnapshot(repository, snapshot1);\n+        Response putSnapshotResponse2 = createTestSnapshot(repository, snapshot2);\n+        // check that the request went ok without parsing JSON here. When using the high level client, check acknowledgement instead.\n+        assertEquals(200, putSnapshotResponse1.getStatusLine().getStatusCode());\n+        assertEquals(200, putSnapshotResponse2.getStatusLine().getStatusCode());\n+\n+        GetSnapshotsRequest request;\n+        if (randomBoolean()) {\n+            request = new GetSnapshotsRequest(repository);\n+        } else if (randomBoolean()) {\n+            request = new GetSnapshotsRequest(repository, Collections.singletonList(\"_all\").toArray(new String[0]));","path":"client/rest-high-level/src/test/java/org/elasticsearch/client/SnapshotIT.java","position":42,"original_position":42,"commit_id":"d385f5c20dedcfd17ef38386566d5b993b553226","original_commit_id":"d385f5c20dedcfd17ef38386566d5b993b553226","user":{"login":"nik9000","id":215970,"node_id":"MDQ6VXNlcjIxNTk3MA==","avatar_url":"https://avatars2.githubusercontent.com/u/215970?v=4","gravatar_id":"","url":"https://api.github.com/users/nik9000","html_url":"https://github.com/nik9000","followers_url":"https://api.github.com/users/nik9000/followers","following_url":"https://api.github.com/users/nik9000/following{/other_user}","gists_url":"https://api.github.com/users/nik9000/gists{/gist_id}","starred_url":"https://api.github.com/users/nik9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik9000/subscriptions","organizations_url":"https://api.github.com/users/nik9000/orgs","repos_url":"https://api.github.com/users/nik9000/repos","events_url":"https://api.github.com/users/nik9000/events{/privacy}","received_events_url":"https://api.github.com/users/nik9000/received_events","type":"User","site_admin":false},"body":"Why not `new String[] {\"_all\"}`?","created_at":"2018-06-22T18:38:27Z","updated_at":"2018-06-22T18:47:22Z","html_url":"https://github.com/elastic/elasticsearch/pull/31537#discussion_r197534222","pull_request_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/31537","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments/197534222"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/31537#discussion_r197534222"},"pull_request":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/31537"}}},"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/31537","id":196802538,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2ODAyNTM4","html_url":"https://github.com/elastic/elasticsearch/pull/31537","diff_url":"https://github.com/elastic/elasticsearch/pull/31537.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/31537.patch","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/31537","number":31537,"state":"open","locked":false,"title":"Add Get Snapshots High Level REST API","user":{"login":"tbrooks8","id":862472,"node_id":"MDQ6VXNlcjg2MjQ3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/862472?v=4","gravatar_id":"","url":"https://api.github.com/users/tbrooks8","html_url":"https://github.com/tbrooks8","followers_url":"https://api.github.com/users/tbrooks8/followers","following_url":"https://api.github.com/users/tbrooks8/following{/other_user}","gists_url":"https://api.github.com/users/tbrooks8/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrooks8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrooks8/subscriptions","organizations_url":"https://api.github.com/users/tbrooks8/orgs","repos_url":"https://api.github.com/users/tbrooks8/repos","events_url":"https://api.github.com/users/tbrooks8/events{/privacy}","received_events_url":"https://api.github.com/users/tbrooks8/received_events","type":"User","site_admin":false},"body":"With this commit we add the get snapshots API to the Java high level\r\nREST client.\r\n\r\nRelates #27205","created_at":"2018-06-22T17:45:22Z","updated_at":"2018-06-22T18:47:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"490c1dbed65116b769ed437e2f597bd1f916ac45","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":493198109,"node_id":"MDU6TGFiZWw0OTMxOTgxMDk=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Core/Java%20High%20Level%20REST%20Client","name":":Core/Java High Level REST Client","color":"0e8a16","default":false},{"id":23174,"node_id":"MDU6TGFiZWwyMzE3NA==","url":"https://api.github.com/repos/elastic/elasticsearch/labels/%3Eenhancement","name":">enhancement","color":"4a4ea8","default":false},{"id":912911731,"node_id":"MDU6TGFiZWw5MTI5MTE3MzE=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/v6.4.0","name":"v6.4.0","color":"DDDDDD","default":false},{"id":484855464,"node_id":"MDU6TGFiZWw0ODQ4NTU0NjQ=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/v7.0.0","name":"v7.0.0","color":"dddddd","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/31537/commits","review_comments_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/31537/comments","review_comment_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/31537/comments","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/d385f5c20dedcfd17ef38386566d5b993b553226","head":{"label":"tbrooks8:rest_get_snapshot","ref":"rest_get_snapshot","sha":"d385f5c20dedcfd17ef38386566d5b993b553226","user":{"login":"tbrooks8","id":862472,"node_id":"MDQ6VXNlcjg2MjQ3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/862472?v=4","gravatar_id":"","url":"https://api.github.com/users/tbrooks8","html_url":"https://github.com/tbrooks8","followers_url":"https://api.github.com/users/tbrooks8/followers","following_url":"https://api.github.com/users/tbrooks8/following{/other_user}","gists_url":"https://api.github.com/users/tbrooks8/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrooks8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrooks8/subscriptions","organizations_url":"https://api.github.com/users/tbrooks8/orgs","repos_url":"https://api.github.com/users/tbrooks8/repos","events_url":"https://api.github.com/users/tbrooks8/events{/privacy}","received_events_url":"https://api.github.com/users/tbrooks8/received_events","type":"User","site_admin":false},"repo":{"id":66806587,"node_id":"MDEwOlJlcG9zaXRvcnk2NjgwNjU4Nw==","name":"elasticsearch","full_name":"tbrooks8/elasticsearch","owner":{"login":"tbrooks8","id":862472,"node_id":"MDQ6VXNlcjg2MjQ3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/862472?v=4","gravatar_id":"","url":"https://api.github.com/users/tbrooks8","html_url":"https://github.com/tbrooks8","followers_url":"https://api.github.com/users/tbrooks8/followers","following_url":"https://api.github.com/users/tbrooks8/following{/other_user}","gists_url":"https://api.github.com/users/tbrooks8/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrooks8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrooks8/subscriptions","organizations_url":"https://api.github.com/users/tbrooks8/orgs","repos_url":"https://api.github.com/users/tbrooks8/repos","events_url":"https://api.github.com/users/tbrooks8/events{/privacy}","received_events_url":"https://api.github.com/users/tbrooks8/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tbrooks8/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":true,"url":"https://api.github.com/repos/tbrooks8/elasticsearch","forks_url":"https://api.github.com/repos/tbrooks8/elasticsearch/forks","keys_url":"https://api.github.com/repos/tbrooks8/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tbrooks8/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tbrooks8/elasticsearch/teams","hooks_url":"https://api.github.com/repos/tbrooks8/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/tbrooks8/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/tbrooks8/elasticsearch/events","assignees_url":"https://api.github.com/repos/tbrooks8/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/tbrooks8/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/tbrooks8/elasticsearch/tags","blobs_url":"https://api.github.com/repos/tbrooks8/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tbrooks8/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tbrooks8/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/tbrooks8/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tbrooks8/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/tbrooks8/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/tbrooks8/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/tbrooks8/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/tbrooks8/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/tbrooks8/elasticsearch/subscription","commits_url":"https://api.github.com/repos/tbrooks8/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/tbrooks8/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/tbrooks8/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/tbrooks8/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/tbrooks8/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/tbrooks8/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tbrooks8/elasticsearch/merges","archive_url":"https://api.github.com/repos/tbrooks8/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tbrooks8/elasticsearch/downloads","issues_url":"https://api.github.com/repos/tbrooks8/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/tbrooks8/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/tbrooks8/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/tbrooks8/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tbrooks8/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/tbrooks8/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/tbrooks8/elasticsearch/deployments","created_at":"2016-08-29T03:03:10Z","updated_at":"2018-06-21T22:19:11Z","pushed_at":"2018-06-22T17:44:09Z","git_url":"git://github.com/tbrooks8/elasticsearch.git","ssh_url":"git@github.com:tbrooks8/elasticsearch.git","clone_url":"https://github.com/tbrooks8/elasticsearch.git","svn_url":"https://github.com/tbrooks8/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":474112,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"7313a987f4a8ba1e39d6105f7d74be9186faa95b","user":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":507775,"node_id":"MDEwOlJlcG9zaXRvcnk1MDc3NzU=","name":"elasticsearch","full_name":"elastic/elasticsearch","owner":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":false,"url":"https://api.github.com/repos/elastic/elasticsearch","forks_url":"https://api.github.com/repos/elastic/elasticsearch/forks","keys_url":"https://api.github.com/repos/elastic/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/elasticsearch/teams","hooks_url":"https://api.github.com/repos/elastic/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/elasticsearch/events","assignees_url":"https://api.github.com/repos/elastic/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/elasticsearch/tags","blobs_url":"https://api.github.com/repos/elastic/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/elastic/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/elastic/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/elastic/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/elastic/elasticsearch/subscription","commits_url":"https://api.github.com/repos/elastic/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/elasticsearch/merges","archive_url":"https://api.github.com/repos/elastic/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/elasticsearch/downloads","issues_url":"https://api.github.com/repos/elastic/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/elastic/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/elasticsearch/deployments","created_at":"2010-02-08T13:20:56Z","updated_at":"2018-06-22T16:08:43Z","pushed_at":"2018-06-22T18:30:33Z","git_url":"git://github.com/elastic/elasticsearch.git","ssh_url":"git@github.com:elastic/elasticsearch.git","clone_url":"https://github.com/elastic/elasticsearch.git","svn_url":"https://github.com/elastic/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":492574,"stargazers_count":31922,"watchers_count":31922,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10975,"mirror_url":null,"archived":false,"open_issues_count":1468,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":10975,"open_issues":1468,"watchers":31922,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/31537"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/31537"},"issue":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/31537"},"comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/31537/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/31537/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/31537/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/elasticsearch/statuses/d385f5c20dedcfd17ef38386566d5b993b553226"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"nik9000"}}