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);
}
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;
}
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;
}
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;
}
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;
}
Aggregations