use of com.sequenceiq.cloudbreak.api.endpoint.v4.filesystems.responses.FileSystemParameterV4Response in project cloudbreak by hortonworks.
the class ConfigQueryEntryToFileSystemParameterV4ResponseConverterTest method testConvertCheckAllPropertyPassedProperly.
@Test
public void testConvertCheckAllPropertyPassedProperly() {
FileSystemParameterV4Response expected = new FileSystemParameterV4Response();
expected.setType(CloudStorageCdpService.RANGER_AUDIT.name());
expected.setDefaultPath(TEST_PATH_VALUE);
expected.setProtocol(TEST_PROTOCOL);
expected.setDescription(TEST_DESCRIPTION);
expected.setPropertyDisplayName(TEST_DISPLAY_NAME);
expected.setPropertyFile(TEST_PROPERTY_FILE);
expected.setPropertyName(TEST_PROPERTY_NAME);
expected.setRelatedMissingServices(new HashSet<>(Arrays.asList(TEST_RELATED_SERVICE, TEST_RELATED_SERVICE2)));
expected.setRelatedServices(new HashSet<>(Arrays.asList(TEST_RELATED_SERVICE, TEST_RELATED_SERVICE2)));
FileSystemParameterV4Response result = underTest.convert(createConfigQueryEntry());
assertEquals(expected, result);
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.filesystems.responses.FileSystemParameterV4Response in project cloudbreak by hortonworks.
the class CloudStorageManifesterTest method mockFileSystemResponseForCloudbreakClient.
private void mockFileSystemResponseForCloudbreakClient() {
FileSystemParameterV4Responses dummyResponses = new FileSystemParameterV4Responses();
List<FileSystemParameterV4Response> responses = new ArrayList<>();
FileSystemParameterV4Response resp = new FileSystemParameterV4Response();
resp.setType(CloudStorageCdpService.RANGER_AUDIT.name());
resp.setDefaultPath("ranger/example-path");
resp.setDescription("Rangerpath");
resp.setPropertyFile("dummyFile");
resp.setPropertyName("dummyPropertyName");
responses.add(resp);
dummyResponses.setResponses(responses);
when(fileSystemV4Endpoint.getFileSystemParametersInternal(anyLong(), anyString(), anyString(), anyString(), anyString(), anyString(), anyBoolean(), anyBoolean(), anyString())).thenReturn(dummyResponses);
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.filesystems.responses.FileSystemParameterV4Response in project cloudbreak by hortonworks.
the class ConfigQueryEntryToFileSystemParameterV4ResponseConverter method convert.
public FileSystemParameterV4Response convert(ConfigQueryEntry source) {
FileSystemParameterV4Response fileSystemParameterV4Response = new FileSystemParameterV4Response();
fileSystemParameterV4Response.setType(source.getType().name());
fileSystemParameterV4Response.setDefaultPath(source.getDefaultPath());
fileSystemParameterV4Response.setDescription(source.getDescription());
fileSystemParameterV4Response.setPropertyName(source.getPropertyName());
fileSystemParameterV4Response.setRelatedServices(source.getRelatedServices());
fileSystemParameterV4Response.setRelatedMissingServices(source.getRelatedMissingServices());
fileSystemParameterV4Response.setPropertyFile(source.getPropertyFile());
fileSystemParameterV4Response.setProtocol(source.getProtocol());
fileSystemParameterV4Response.setPropertyDisplayName(source.getPropertyDisplayName());
fileSystemParameterV4Response.setSecure(source.isSecure());
return fileSystemParameterV4Response;
}
Aggregations