Skip to content

Commit

Permalink
Add failing test for GetRequest w/ AwsSdk2Transport (opensearch-proje…
Browse files Browse the repository at this point in the history
…ct#1068)

Signed-off-by: Wesley Workman <[email protected]>
  • Loading branch information
workmanw committed Jul 10, 2024
1 parent 0cf11db commit 01facbd
Showing 1 changed file with 26 additions and 0 deletions.
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());
}
}

0 comments on commit 01facbd

Please sign in to comment.