[ https://issues.apache.org/jira/browse/SQOOP-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14052915#comment-14052915 ]
Hudson commented on SQOOP-1362: ------------------------------- SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop100 #855 (See [https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/855/]) SQOOP-1362: TestImportJob getContent method doesn't work' (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc) * src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java > TestImportJob getContent method doesn't work > -------------------------------------------- > > Key: SQOOP-1362 > URL: https://issues.apache.org/jira/browse/SQOOP-1362 > Project: Sqoop > Issue Type: Bug > Affects Versions: 1.4.4 > Reporter: Abraham Elmahrek > Assignee: Abraham Elmahrek > Fix For: 1.4.5 > > Attachments: SQOOP-1362.0.patch > > > Example: > {code} > try { > int ret = Sqoop.runSqoop(importer, argv); > assertTrue("Expected job to go through if target directory" > + " does not exist.", 0 == ret); > assertTrue(fs.exists(outputPath)); > // expecting one _SUCCESS file and one file containing data > assertTrue("Expecting two files in the directory.", > fs.listStatus(outputPath).length == 2); > String[] output = getContent(conf, outputPath); > assertEquals("Expected output and actual output should be same.", > "meep\n", > output[0]); > ret = Sqoop.runSqoop(importer, argv); > assertTrue("Expected job to go through if target directory exists.", > 0 == ret); > assertTrue(fs.exists(outputPath)); > // expecting one _SUCCESS file and one file containing data > assertTrue("Expecting two files in the directory.", > fs.listStatus(outputPath).length == 2); > output = getContent(conf, outputPath); > assertEquals("Expected output and actual output should be same.", > "meep\n", > output[0]); > } catch (Exception e) { > // In debug mode, ImportException is wrapped in RuntimeException. > LOG.info("Got exceptional return (expected: ok). msg is: " + e); > } > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)