use of com.sequenceiq.cloudbreak.api.model.FileSystemConfiguration in project cloudbreak by hortonworks.
the class AbstractFileSystemConfiguratorTest method testCreateResource.
@Test
public void testCreateResource() {
FileSystemConfiguration fsConfig = new FileSystemConfiguration();
Map<String, String> actual = underTest.createResources(fsConfig);
Assert.assertEquals(emptyMap(), actual);
}
use of com.sequenceiq.cloudbreak.api.model.FileSystemConfiguration in project cloudbreak by hortonworks.
the class FileSystemViewTest method testWasbFileSystemConfiguration.
@Test
public void testWasbFileSystemConfiguration() {
FileSystemConfiguration fileSystemConfiguration = TestUtil.wasbFileSystemConfiguration();
FileSystemView fileSystemView = new FileSystemView(fileSystemConfiguration);
Assert.assertNotNull(fileSystemView);
Assert.assertEquals(2, fileSystemView.getProperties().size());
}
use of com.sequenceiq.cloudbreak.api.model.FileSystemConfiguration in project cloudbreak by hortonworks.
the class AbstractFileSystemConfiguratorTest method testGetScriptsWhenNoReplace.
@Test
public void testGetScriptsWhenNoReplace() {
Credential credential = new Credential();
credential.setId(1L);
FileSystemConfiguration fsConfig = new FileSystemConfiguration();
List<RecipeScript> actual = underTest.getScripts(credential, fsConfig);
List<RecipeScript> expected = singletonList(new RecipeScript("echo '$replace'", ExecutionType.ALL_NODES, RecipeType.POST_AMBARI_START));
Assert.assertEquals(expected, actual);
}
use of com.sequenceiq.cloudbreak.api.model.FileSystemConfiguration in project cloudbreak by hortonworks.
the class AbstractFileSystemConfiguratorTest method testGetScriptsWhenFileNotFound.
@Test
public void testGetScriptsWhenFileNotFound() {
Credential credential = new Credential();
credential.setId(2L);
FileSystemConfiguration fsConfig = new FileSystemConfiguration();
thrown.expectMessage("Filesystem configuration scripts cannot be read.");
thrown.expect(FileSystemConfigException.class);
underTest.getScripts(credential, fsConfig);
}
use of com.sequenceiq.cloudbreak.api.model.FileSystemConfiguration in project cloudbreak by hortonworks.
the class FileSystemViewTest method testAdlsFileSystemConfiguration.
@Test
public void testAdlsFileSystemConfiguration() {
FileSystemConfiguration fileSystemConfiguration = TestUtil.adlsFileSystemConfiguration();
FileSystemView fileSystemView = new FileSystemView(fileSystemConfiguration);
Assert.assertNotNull(fileSystemView);
Assert.assertEquals(4, fileSystemView.getProperties().size());
}
Aggregations