Search in sources :

Example 1 with AzureTestStorageLocation

use of com.sequenceiq.it.cloudbreak.util.storagelocation.AzureTestStorageLocation in project cloudbreak by hortonworks.

the class AzureAdlsGen2Tests method adlsGen2CloudStorageV4RequestWithStorageLocations.

private CloudStorageRequest adlsGen2CloudStorageV4RequestWithStorageLocations(String clusterName) {
    CloudStorageRequest request = adlsGen2CloudStorageV4RequestWithoutStorageLocations();
    String accountName = azureProperties.getCloudStorage().getAccountName();
    String storageLocation = azureProperties.getCloudStorage().getBaseLocation();
    AzureTestStorageLocation azureStorageLocation = new AzureTestStorageLocation(accountName, clusterName, storageLocation);
    request.setLocations(azureStorageLocation.getAdlsGen2(LOCATION_STORAGE_COMPONENTS));
    return request;
}
Also used : CloudStorageRequest(com.sequenceiq.common.api.cloudstorage.CloudStorageRequest) AzureTestStorageLocation(com.sequenceiq.it.cloudbreak.util.storagelocation.AzureTestStorageLocation)

Aggregations

CloudStorageRequest (com.sequenceiq.common.api.cloudstorage.CloudStorageRequest)1 AzureTestStorageLocation (com.sequenceiq.it.cloudbreak.util.storagelocation.AzureTestStorageLocation)1