[
https://issues.jboss.org/browse/AS7-5259?page=com.atlassian.jira.plugin.s...
]
Ondrej Zizka commented on AS7-5259:
-----------------------------------
Hi Vladimir, the default H2 driver is there really only for demonstration purposes, e.g.
Quickstarts etc. There was even discussion whether to leave it in AS / EAP.
How about checking if the driver is present, and if not, creating it as part of the test?
That would be better long-time solution.
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