[jboss-jira] [JBoss JIRA] (AS7-5259) DataSourceOperationsUnitTestCase fails with db other than h2
Vladimir Rastseluev (JIRA)
jira-events at lists.jboss.org
Fri Aug 10 05:44:06 EDT 2012
[ https://issues.jboss.org/browse/AS7-5259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Rastseluev resolved AS7-5259.
--------------------------------------
Resolution: Won't Fix
Tests in DataSourceOperationUnitTestCase are related to h2 data source and need h2 driver being installed: if you take a look, they don't use ExampleDs at all. Tests failed because of wrong -Dds=... implementation. After installing your own jdbc driver, you shouldn't delete configuration entry for installed by default driver for h2 data source.
> DataSourceOperationsUnitTestCase fails with db other than h2
> ------------------------------------------------------------
>
> Key: AS7-5259
> URL: https://issues.jboss.org/browse/AS7-5259
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 7.1.2.Final (EAP)
> Reporter: Honza Brázdil
> Assignee: Vladimir Rastseluev
>
> Tests in DataSourceOperationsUnitTestCase fails if run with other database than h2 (-Dds=...). The test should be independent on the ExampleDS datasource.
> {code}
> $ mvn install -Dds=mysql51 -rf testsuite/integration/smoke
> ...
> Results :
> Tests in error:
> testSendWithTxCommit(org.jboss.as.test.smoke.stilts.SimpleStompletTestCase): Connection timed out.
> testAddDsAndTestConnection(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testAddDisabledDsEnableItAndTestConnection(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testAddDsWithConnectionProperties(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testAddAndRemoveSameName(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testAddAndRemoveNameAndJndiNameDifferent(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testAddAndRemoveXaDs(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testMarshallUnmarshallXaDs(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> disableAndReEnableXaDs(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testAddXaDsWithProperties(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testAddComplexDs(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testAddComplexXaDs(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testXaDsWithSystemProperties(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS010468: Driver named \"h2\" is not installed."
> testDsWithSystemProperties(org.jboss.as.test.smoke.mgmt.datasource.DataSourceOperationsUnitTestCase): Management operation failed: "JBAS014803: Duplicate resource [(\"system-property\" => \"sql.parameter\")]"
> {code}
> Datasource in {{standalone.xml}} is configured like this:
> {code:xml}
> <subsystem xmlns="urn:jboss:domain:datasources:1.1">
> <datasources>
> <datasource jta="true" jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExamplePool" enabled="true" use-java-context="true">
> <connection-url>jdbc:mysql://localhost:3306/test</connection-url>
> <driver>mysql-jdbc-driver.jar</driver>
> <security>
> <user-name>test</user-name>
> <password>test</password>
> </security>
> </datasource>
> </datasources>
> </subsystem>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list