Skip to content

Commit

Permalink
Fix compilation issues for tests. (#29)
Browse files Browse the repository at this point in the history
Some of the tests that use the x-pack code are failing compilation. This PR cleans up the references to fix the issue.

Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
adnapibar authored and peternied committed Mar 13, 2021
1 parent 38e9c97 commit 171ce99
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
import org.elasticsearch.search.suggest.Suggest;
import org.elasticsearch.search.suggest.SuggestBuilder;
import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder;
import org.elasticsearch.xpack.core.index.query.PinnedQueryBuilder;
import org.hamcrest.Matchers;
import org.junit.Before;

Expand Down Expand Up @@ -1385,8 +1384,6 @@ public void testCountAllIndicesMatchQuery() throws IOException {
public void testSearchWithBasicLicensedQuery() throws IOException {
SearchRequest searchRequest = new SearchRequest("index");
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
PinnedQueryBuilder pinnedQuery = new PinnedQueryBuilder(new MatchAllQueryBuilder(), "2", "1");
searchSourceBuilder.query(pinnedQuery);
searchRequest.source(searchSourceBuilder);
SearchResponse searchResponse = execute(searchRequest, highLevelClient()::search, highLevelClient()::searchAsync);
assertSearchHeader(searchResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,13 @@
package org.elasticsearch.client.documentation;

import org.apache.http.HttpHost;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.LatchedActionListener;
import org.elasticsearch.client.ESRestHighLevelClientTestCase;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.client.core.MainResponse;

import java.io.IOException;
import java.time.Instant;
import java.util.EnumSet;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.is;

/**
* Documentation for miscellaneous APIs in the high level java client.
Expand Down

This file was deleted.

0 comments on commit 171ce99

Please sign in to comment.