use of com.sequenceiq.cloudbreak.domain.cloudstorage.StorageLocation in project cloudbreak by hortonworks.
the class RemoteDataContextWorkaroundServiceTest method testFileSystemWhenHivePathNotPresentedInDistroXButSdxDoesContainsItShouldReturnWithSdxConfigs.
@Test
public void testFileSystemWhenHivePathNotPresentedInDistroXButSdxDoesContainsItShouldReturnWithSdxConfigs() throws IOException {
when(nameGenerator.generateName(APIResourceType.FILESYSTEM)).thenReturn("appletree");
FileSystem fileSystem = underTest.prepareFilesytem(mockRequestedCluster(mockRds(HIVE)), mockStack(mockStorageLocation(1), mockStorageLocation(2)));
List<StorageLocation> locations = fileSystem.getCloudStorage().getLocations();
Assert.assertEquals(2, locations.size());
Assert.assertTrue(hasPropretyWithIndex(locations, 1));
Assert.assertTrue(hasPropretyWithIndex(locations, 2));
}
Aggregations