Commit ecd05368 by Madhan Neethiraj

ATLAS-2017: updated import API to make request parameter optional (#2 - fix for unit test failure)

parent dd00c859
......@@ -60,15 +60,17 @@ public class ImportService {
return run(source, null, userName, hostName, requestingIP);
}
public AtlasImportResult run(ZipSource source, AtlasImportRequest request, String userName,
String hostName, String requestingIP) throws AtlasBaseException {
if (request == null) {
request = new AtlasImportRequest();
}
AtlasImportResult result = new AtlasImportResult(request, userName, requestingIP, hostName, System.currentTimeMillis());
try {
LOG.info("==> import(user={}, from={})", userName, requestingIP);
if (request == null) {
request = new AtlasImportRequest();
}
String transforms = MapUtils.isNotEmpty(request.getOptions()) ? request.getOptions().get(AtlasImportRequest.TRANSFORMS_KEY) : null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment