forked from opensearch-project/opensearch-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add failing test for GetRequest w/ AwsSdk2Transport (opensearch-proje…
…ct#1068) Signed-off-by: Wesley Workman <[email protected]>
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...ent/src/test/java/org/opensearch/client/opensearch/integTest/aws/AwsSdk2GetRequestIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* 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.client.opensearch.integTest.aws; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.opensearch.client.opensearch.OpenSearchClient; | ||
import org.opensearch.client.opensearch.core.*; | ||
|
||
public class AwsSdk2GetRequestIT extends AwsSdk2TransportTestCase { | ||
@Test | ||
public void testBulkRequest() throws Exception { | ||
resetTestIndex(false); | ||
final OpenSearchClient client = getClient(false, null, null); | ||
|
||
GetRequest request = new GetRequest.Builder().index(TEST_INDEX).id("does-not-exist").build(); | ||
GetResponse<SimplePojo> getResponse = client.get(request, SimplePojo.class); | ||
Assert.assertFalse(getResponse.found()); | ||
} | ||
} |