forked from opensearch-project/search-processor
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSearchRelevancePluginIT.java
More file actions
28 lines (23 loc) · 955 Bytes
/
Copy pathSearchRelevancePluginIT.java
File metadata and controls
28 lines (23 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
package org.opensearch.search.relevance;
import org.apache.hc.core5.http.ParseException;
import org.apache.hc.core5.http.io.entity.EntityUtils;
import org.opensearch.client.Request;
import org.opensearch.client.Response;
import org.opensearch.test.rest.OpenSearchRestTestCase;
import java.io.IOException;
public class SearchRelevancePluginIT extends OpenSearchRestTestCase {
public void testPluginInstalled() throws IOException, ParseException {
Response response = client().performRequest(new Request("GET", "/_cat/plugins"));
String body = EntityUtils.toString(response.getEntity());
logger.info("response body: {}", body);
assertNotNull(body);
assertTrue(body.contains("search-processor"));
}
}