use of com.sequenceiq.cloudbreak.cloud.model.objectstorage.ObjectStorageMetadataRequest in project cloudbreak by hortonworks.
the class AwsObjectStorageConnectorTest method getObjectStorageMetadata.
@Test
public void getObjectStorageMetadata() {
when(s3Client.getBucketLocation(BUCKET_NAME)).thenReturn(REGION_NAME);
ObjectStorageMetadataRequest request = ObjectStorageMetadataRequest.builder().withObjectStoragePath(BUCKET_NAME).build();
ObjectStorageMetadataResponse result = underTest.getObjectStorageMetadata(request);
verify(s3Client).getBucketLocation(BUCKET_NAME);
assertEquals(REGION_NAME, result.getRegion());
assertEquals(ResponseStatus.OK, result.getStatus());
}
Aggregations