Skip to content

Commit

Permalink
Fix missing get-snapshots docs reference elastic#31645
Browse files Browse the repository at this point in the history
This is related to elastic#31537. It fixes a missing docs references in
get_snapshots.asciidoc.
  • Loading branch information
Tim-Brooks committed Jul 11, 2018
1 parent cd1b120 commit 71b7e14
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,13 @@ public void testSnapshotGetSnapshots() throws IOException {
createTestSnapshots();

// tag::get-snapshots-request
GetSnapshotsRequest request = new GetSnapshotsRequest(repositoryName);
GetSnapshotsRequest request = new GetSnapshotsRequest();
// end::get-snapshots-request

// tag::get-snapshots-request-repositoryName
request.repository(repositoryName);
// end::get-snapshots-request-repositoryName

// tag::get-snapshots-request-snapshots
String[] snapshots = { snapshotName };
request.snapshots(snapshots); // <1>
Expand Down Expand Up @@ -500,13 +504,13 @@ public void testSnapshotGetSnapshots() throws IOException {
public void testSnapshotGetSnapshotsAsync() throws InterruptedException {
RestHighLevelClient client = highLevelClient();
{
GetSnapshotsRequest request = new GetSnapshotsRequest();
GetSnapshotsRequest request = new GetSnapshotsRequest(repositoryName);

// tag::get-snapshots-execute-listener
ActionListener<GetSnapshotsResponse> listener =
new ActionListener<GetSnapshotsResponse>() {
@Override
public void onResponse(GetSnapshotsResponse deleteSnapshotResponse) {
public void onResponse(GetSnapshotsResponse getSnapshotsResponse) {
// <1>
}

Expand Down

0 comments on commit 71b7e14

Please sign in to comment.