[jboss-jira] [JBoss JIRA] (AS7-5259) DataSourceOperationsUnitTestCase fails with db other then h2

Honza Brázdil (JIRA) jira-events at lists.jboss.org
Fri Jul 27 05:34:06 EDT 2012


     [ https://issues.jboss.org/browse/AS7-5259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Honza Brázdil updated AS7-5259:
-------------------------------

    Description: 
Tests in DataSourceOperationsUnitTestCase fails if run with other database then 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}

  was:
Tests in DataSourceOperationsUnitTestCase fails if run with other database then 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}


    
> DataSourceOperationsUnitTestCase fails with db other then 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: Stefano Maestri
>
> Tests in DataSourceOperationsUnitTestCase fails if run with other database then 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