incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noa Resare (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-872) make unit tests depending on a mysql instance conditional
Date Sat, 12 Jan 2013 20:06:12 GMT

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

Noa Resare commented on CLOUDSTACK-872:
---------------------------------------

Looking a bit closer it turns out that the tests actually doesn't fail, they just print ugly
ugly stacktraces. Let's fix this with proper mocking
                
> make unit tests depending on a mysql instance conditional
> ---------------------------------------------------------
>
>                 Key: CLOUDSTACK-872
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-872
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Noa Resare
>            Priority: Minor
>
> In some environments (such as normalized build environments) it is never going to be
feasible to have a mysql instance configured to be able to build without unit test failures.
> Currently a package build invokes maven in such a way that all the tests are run, and
many of the server tests fail with long stack traces basically telling us that
> Caused by: java.sql.SQLException: Access denied for user 'cloud'@'localhost' (using password:
YES)
> 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
> Let's have some sort of configuration option that can be passed to maven so that only
standalone tests are run.

--
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

Mime
View raw message