Source:
<code>public void testHDFSAction() throws Exception { Path outputDir = dfsCluster.getFileSystem().getHomeDirectory(); fileSystem.mkdirs(new Path("source")); fileSystem.createNewFile(new Path("source/test.txt")); fileSystem.createNewFile(new Path("source/test.json")); ETLStage action = new ETLStage( "HDFSFileMoveAction", new ETLPlugin("HDFSFileMoveAction", Action.PLUGIN_TYPE, ImmutableMap.of("sourcePath", outputDir.toUri().toString() + "/source", "destPath", outputDir.toUri().toString() + "/", "fileRegex", ".*\\.txt", "continueOnError", "false"), null)); ETLStage source = new ETLStage("source", new ETLPlugin("KVTable", BatchSource.PLUGIN_TYPE, ImmutableMap.of("name", "hdfsTestSource"), null)); ETLStage sink = new ETLStage("sink", new ETLPlugin("KVTable", BatchSink.PLUGIN_TYPE, ImmutableMap.of("name", "hdfsTestSink"), null)); ETLBatchConfig etlConfig = ETLBatchConfig.builder("* * * * *") .addStage(source) .addStage(sink) .addStage(action) .addConnection(action.getName(), source.getName()) .addConnection(source.getName(), sink.getName()) .build(); AppRequest<ETLBatchConfig> appRequest = new AppRequest<>(DATAPIPELINE_ARTIFACT, etlConfig); Id.Application appId = Id.Application.from(Id.Namespace.DEFAULT, "hdfsActionTest"); ApplicationManager appManager = deployApplication(appId, appRequest); WorkflowManager manager = appManager.getWorkflowManager(SmartWorkflow.NAME); <START> manager.start(ImmutableMap.of("logical.start.time", "0")); <END> manager.waitForFinish(3, TimeUnit.MINUTES); Assert.assertTrue(fileSystem.exists(new Path(outputDir.toUri().toString() + "/test.txt"))); Assert.assertFalse(fileSystem.exists(new Path(outputDir.toUri().toString() + "/test.json"))); }</code><technical_language>remove ImmutableMap.of("logical.start.time", "0"), right</technical_language>

Target:
public void testHDFSAction() throws Exception { Path outputDir = dfsCluster.getFileSystem().getHomeDirectory(); fileSystem.mkdirs(new Path("source")); fileSystem.createNewFile(new Path("source/test.txt")); fileSystem.createNewFile(new Path("source/test.json")); ETLStage action = new ETLStage( "HDFSFileMoveAction", new ETLPlugin("HDFSFileMoveAction", Action.PLUGIN_TYPE, ImmutableMap.of("sourcePath", outputDir.toUri().toString() + "/source", "destPath", outputDir.toUri().toString() + "/dest", "fileRegex", ".*\\.txt", "continueOnError", "false"), null)); ETLStage source = new ETLStage("source", new ETLPlugin("KVTable", BatchSource.PLUGIN_TYPE, ImmutableMap.of("name", "hdfsTestSource"), null)); ETLStage sink = new ETLStage("sink", new ETLPlugin("KVTable", BatchSink.PLUGIN_TYPE, ImmutableMap.of("name", "hdfsTestSink"), null)); ETLBatchConfig etlConfig = ETLBatchConfig.builder("* * * * *") .addStage(source) .addStage(sink) .addStage(action) .addConnection(action.getName(), source.getName()) .addConnection(source.getName(), sink.getName()) .build(); AppRequest<ETLBatchConfig> appRequest = new AppRequest<>(DATAPIPELINE_ARTIFACT, etlConfig); Id.Application appId = Id.Application.from(Id.Namespace.DEFAULT, "hdfsActionTest"); ApplicationManager appManager = deployApplication(appId, appRequest); WorkflowManager manager = appManager.getWorkflowManager(SmartWorkflow.NAME); manager.start(); manager.waitForFinish(3, TimeUnit.MINUTES); Assert.assertTrue(fileSystem.exists(new Path(outputDir.toUri().toString() + "/dest/test.txt"))); Assert.assertFalse(fileSystem.exists(new Path(outputDir.toUri().toString() + "/dest/test.json"))); }