Search in sources :

Example 1 with AzureStorageServiceMock

use of org.elasticsearch.cloud.azure.storage.AzureStorageServiceMock in project elasticsearch by elastic.

the class AzureBlobStoreContainerTests method newBlobStore.

@Override
protected BlobStore newBlobStore() throws IOException {
    try {
        RepositoryMetaData repositoryMetaData = new RepositoryMetaData("azure", "ittest", Settings.EMPTY);
        AzureStorageServiceMock client = new AzureStorageServiceMock();
        return new AzureBlobStore(repositoryMetaData, Settings.EMPTY, client);
    } catch (URISyntaxException | StorageException e) {
        throw new IOException(e);
    }
}
Also used : RepositoryMetaData(org.elasticsearch.cluster.metadata.RepositoryMetaData) AzureStorageServiceMock(org.elasticsearch.cloud.azure.storage.AzureStorageServiceMock) AzureBlobStore(org.elasticsearch.cloud.azure.blobstore.AzureBlobStore) URISyntaxException(java.net.URISyntaxException) IOException(java.io.IOException) StorageException(com.microsoft.azure.storage.StorageException)

Aggregations

StorageException (com.microsoft.azure.storage.StorageException)1 IOException (java.io.IOException)1 URISyntaxException (java.net.URISyntaxException)1 AzureBlobStore (org.elasticsearch.cloud.azure.blobstore.AzureBlobStore)1 AzureStorageServiceMock (org.elasticsearch.cloud.azure.storage.AzureStorageServiceMock)1 RepositoryMetaData (org.elasticsearch.cluster.metadata.RepositoryMetaData)1