Search in sources :

Example 1 with StorageLocation

use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.

the class StorageLocationRequestToStorageLocationConverterTest method testConvertWhenPassingStorageLocationRequestThenEveryNecessaryParametersShouldBePassed.

@Test
public void testConvertWhenPassingStorageLocationRequestThenEveryNecessaryParametersShouldBePassed() {
    StorageLocation expected = new StorageLocation();
    expected.setConfigFile(PROPERTY_FILE);
    expected.setProperty(PROPERTY_NAME);
    expected.setValue(VALUE);
    StorageLocation result = underTest.convert(createSource());
    assertEquals(expected, result);
}
Also used : StorageLocation(com.sequenceiq.cloudbreak.domain.StorageLocation) Test(org.junit.Test)

Example 2 with StorageLocation

use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.

the class StorageLocationToStorageLocationResponseConverterTest method createSource.

private StorageLocation createSource() {
    StorageLocation response = new StorageLocation();
    response.setConfigFile(PROPERTY_FILE);
    response.setProperty(PROPERTY_NAME);
    response.setValue(VALUE);
    return response;
}
Also used : StorageLocation(com.sequenceiq.cloudbreak.domain.StorageLocation)

Example 3 with StorageLocation

use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.

the class ProfilerAdminCloudStorageRoleConfigProviderTest method getProfilerAdminFileSystemUri.

private StorageLocation getProfilerAdminFileSystemUri() {
    StorageLocation profilerAdminFileSystemUri = new StorageLocation();
    profilerAdminFileSystemUri.setProperty("file_system_uri");
    profilerAdminFileSystemUri.setValue("s3a://bucket/dpprofiler");
    return profilerAdminFileSystemUri;
}
Also used : StorageLocation(com.sequenceiq.cloudbreak.domain.StorageLocation)

Example 4 with StorageLocation

use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.

the class ProfilerSchedulerCloudStorageRoleConfigProviderTest method getProfilerSchedulerFileSystemUri.

private StorageLocation getProfilerSchedulerFileSystemUri() {
    StorageLocation profilerSchedulerFileSystemUri = new StorageLocation();
    profilerSchedulerFileSystemUri.setProperty("file_system_uri");
    profilerSchedulerFileSystemUri.setValue("s3a://bucket/dpprofiler");
    return profilerSchedulerFileSystemUri;
}
Also used : StorageLocation(com.sequenceiq.cloudbreak.domain.StorageLocation)

Example 5 with StorageLocation

use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.

the class RangerCloudStorageServiceConfigProviderTest method buildStorageLocation.

protected StorageLocation buildStorageLocation(String property, String value) {
    StorageLocation rangerAuditLogLocation = new StorageLocation();
    rangerAuditLogLocation.setProperty(property);
    rangerAuditLogLocation.setValue(value);
    return rangerAuditLogLocation;
}
Also used : StorageLocation(com.sequenceiq.cloudbreak.domain.StorageLocation)

Aggregations

StorageLocation (com.sequenceiq.cloudbreak.domain.StorageLocation)40 StorageLocationView (com.sequenceiq.cloudbreak.template.filesystem.StorageLocationView)16 ArrayList (java.util.ArrayList)13 S3FileSystemConfigurationsView (com.sequenceiq.cloudbreak.template.filesystem.s3.S3FileSystemConfigurationsView)11 S3FileSystem (com.sequenceiq.common.api.filesystem.S3FileSystem)11 HostgroupView (com.sequenceiq.cloudbreak.template.views.HostgroupView)7 Test (org.junit.Test)6 TemplatePreparationObject (com.sequenceiq.cloudbreak.template.TemplatePreparationObject)5 BaseFileSystemConfigurationsView (com.sequenceiq.cloudbreak.template.filesystem.BaseFileSystemConfigurationsView)5 CmTemplateProcessor (com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessor)4 ApiClusterTemplate (com.cloudera.api.swagger.model.ApiClusterTemplate)2 BackupResponse (com.sequenceiq.common.api.backup.response.BackupResponse)2 HashSet (java.util.HashSet)2 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)2 ApiClusterTemplateConfig (com.cloudera.api.swagger.model.ApiClusterTemplateConfig)1 ClouderaManagerRepo (com.sequenceiq.cloudbreak.cloud.model.ClouderaManagerRepo)1 CoreConfigProvider (com.sequenceiq.cloudbreak.cmtemplate.configproviders.core.CoreConfigProvider)1 HiveMetastoreConfigProvider (com.sequenceiq.cloudbreak.cmtemplate.configproviders.hive.HiveMetastoreConfigProvider)1 Json (com.sequenceiq.cloudbreak.common.json.Json)1 FileSystem (com.sequenceiq.cloudbreak.domain.FileSystem)1