use of com.sequenceiq.cloudbreak.domain.cloudstorage.CloudStorage in project cloudbreak by hortonworks.
the class CloudFileSystemViewProviderTest method getCloudStorage.
private CloudStorage getCloudStorage(List<CloudIdentity> cloudIdentities) {
List<StorageLocation> storageLocations = new ArrayList<>();
StorageLocation storageLocation1 = new StorageLocation();
storageLocation1.setType(SERVICE_1);
storageLocation1.setValue(PATH_1);
storageLocations.add(storageLocation1);
StorageLocation storageLocation2 = new StorageLocation();
storageLocation2.setType(SERVICE_2);
storageLocation2.setValue(PATH_2);
storageLocations.add(storageLocation2);
StorageLocation storageLocation3 = new StorageLocation();
storageLocation3.setType(SERVICE_3);
storageLocation3.setValue(PATH_3);
storageLocations.add(storageLocation3);
StorageLocation storageLocation4 = new StorageLocation();
storageLocation4.setType(SERVICE_4);
storageLocation4.setValue(PATH_4);
storageLocations.add(storageLocation4);
CloudStorage cloudStorage = new CloudStorage();
cloudStorage.setCloudIdentities(cloudIdentities);
cloudStorage.setLocations(storageLocations);
return cloudStorage;
}
use of com.sequenceiq.cloudbreak.domain.cloudstorage.CloudStorage in project cloudbreak by hortonworks.
the class RemoteDataContextWorkaroundServiceTest method mockStack.
private Stack mockStack(StorageLocation... storageLocations) {
Stack stack = new Stack();
Cluster cluster = new Cluster();
cluster.setRdsConfigs(new HashSet<>());
FileSystem fileSystem = new FileSystem();
fileSystem.setType(FileSystemType.S3);
CloudStorage cloudStorage = new CloudStorage();
cloudStorage.setLocations(Arrays.asList(storageLocations));
fileSystem.setCloudStorage(cloudStorage);
cluster.setFileSystem(fileSystem);
stack.setCluster(cluster);
return stack;
}
use of com.sequenceiq.cloudbreak.domain.cloudstorage.CloudStorage in project cloudbreak by hortonworks.
the class RemoteDataContextWorkaroundServiceTest method mockRequestedCluster.
private Cluster mockRequestedCluster(StorageLocation... storageLocations) {
Cluster cluster = new Cluster();
FileSystem fileSystem = new FileSystem();
fileSystem.setType(FileSystemType.S3);
CloudStorage cloudStorage = new CloudStorage();
cloudStorage.setLocations(Arrays.asList(storageLocations));
fileSystem.setCloudStorage(cloudStorage);
cluster.setFileSystem(fileSystem);
cluster.setFileSystem(fileSystem);
return cluster;
}
Aggregations