[ 
https://issues.apache.org/jira/browse/SQOOP-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13536019#comment-13536019
 ] 

Jarek Jarcec Cecho commented on SQOOP-794:
------------------------------------------

All third party tests are disabled by default because they have external 
dependencies that you can't manage from within the tests itself:

1) You need to have MySQL|Oracle|PostgreSQL|SQL Server installed and configured 
somewhere.
2) You need to put proper JDBC driver to lib directory so that Sqoop can 
perform connection to your database.

I would recommend checking test reports in build/tests/logs (I'm not 100% sure 
about the path), but I would guess that you're missing MySQL JDBC driver.
                
> mysql related tests are disabled, and failing
> ---------------------------------------------
>
>                 Key: SQOOP-794
>                 URL: https://issues.apache.org/jira/browse/SQOOP-794
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Guido Serra aka Zeph
>            Assignee: Guido Serra aka Zeph
>
> the default tests executed by "ant test" skip all the ones related to MySQL 
> ... why?
> {noformat}
> v1:sqoop zeph$ ant test -Dtestcase=MySQLAuthTest 
> ...
> run-tests:
>      [echo] Use Hadoop 23
>      [echo] Use org.apache.sqoop.manager.DefaultManagerFactory
> test-core:
>    [delete] Deleting directory /Users/zeph/tmp/sqoop/build/test/logs
>     [mkdir] Created dir: /Users/zeph/tmp/sqoop/build/test/logs
>    [delete] Deleting directory /Users/zeph/tmp/sqoop/build/test/data
>     [mkdir] Created dir: /Users/zeph/tmp/sqoop/build/test/data
>     [mkdir] Created dir: /Users/zeph/tmp/sqoop/build/cobertura/classes
>     [junit] Running com.cloudera.sqoop.manager.MySQLAuthTest
>     [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.332 sec
>     [junit] Test com.cloudera.sqoop.manager.MySQLAuthTest FAILED
> checkfailure:
>     [touch] Creating /Users/zeph/tmp/sqoop/build/testsfailed
> BUILD FAILED
> /Users/zeph/tmp/sqoop/build.xml:653: The following error occurred while 
> executing this line:
> /Users/zeph/tmp/sqoop/build.xml:987: Unit tests failed!
> Total time: 13 seconds
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to