Search in sources :

Example 1 with GetItemResponse

use of software.amazon.awssdk.services.dynamodb.model.GetItemResponse in project curiostack by curioswitch.

the class ArmeriaSdkHttpClientIntegrationTest method normal.

@Test
void normal() {
    server.enqueue(HttpResponse.of(HttpStatus.OK));
    GetItemResponse response = dynamoDbAsync.getItem(GetItemRequest.builder().tableName("test").key(ImmutableMap.of()).build()).join();
    assertThat(response.sdkHttpResponse().isSuccessful()).isTrue();
    AggregatedHttpRequest request = server.takeRequest().request();
    assertThat(request.headers().get(HttpHeaderNames.USER_AGENT)).contains("http/ArmeriaAsync");
}
Also used : GetItemResponse(software.amazon.awssdk.services.dynamodb.model.GetItemResponse) AggregatedHttpRequest(com.linecorp.armeria.common.AggregatedHttpRequest) Test(org.junit.jupiter.api.Test)

Aggregations

AggregatedHttpRequest (com.linecorp.armeria.common.AggregatedHttpRequest)1 Test (org.junit.jupiter.api.Test)1 GetItemResponse (software.amazon.awssdk.services.dynamodb.model.GetItemResponse)1