[jboss-jira] [JBoss JIRA] (AS7-2515) DataSourceOperationsUnitTestCase leaving deployed datasource behind after test run

Darran Lofthouse (Assigned) (JIRA) jira-events at lists.jboss.org
Fri Nov 4 10:45:46 EDT 2011


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

Darran Lofthouse reassigned AS7-2515:
-------------------------------------

    Assignee: Stefano Maestri  (was: Darran Lofthouse)


Can I pass this one your way?

Firs the reason this is not always detected is that the DataSourceOperationsUnitTestCase does not verify that each compensatingOperation was successful so the problem is only apparent if the MySql test runs after.

I have had a look to see if the test case can clean up as a workaround but at the moment I couldn't find a way myself to remove these properties and the related service.
                
> DataSourceOperationsUnitTestCase leaving deployed datasource behind after test run
> ----------------------------------------------------------------------------------
>
>                 Key: AS7-2515
>                 URL: https://issues.jboss.org/browse/AS7-2515
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Test Suite
>            Reporter: Darran Lofthouse
>            Assignee: Stefano Maestri
>             Fix For: 7.1.0.Beta1
>
>
> The DataSourceOperationsUnitTestCase is leaving a datasource deployed after the testAddDsWithConnectionProperties test with the error: -
> {
>     "outcome" => "failed",
>     "failure-description" => "Removing services has lead to unsatisfied dependencies:
> Service jboss.data-source-config.MyNewDs was depended upon by service jboss.data-source-config.MyNewDs.MyKey",
>     "rolled-back" => true
> }
> This may be visible in the AddMySqlDataSourceOperationsUnitTestCase test with the following failure: -
>   <testcase time="0.183" classname="org.jboss.as.test.smoke.embedded.mgmt.datasource.AddMySqlDataSourceOperationsUnitTestCase(tests-smoke-default)" name="testAddDsAndTestConnection">
>     <failure message="expected:&lt;...jboss/datasources/My[Sql]Ds&gt; but was:&lt;...jboss/datasources/My[New]Ds&gt;" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure: expected:&lt;...jboss/datasources/My[Sql]Ds&gt; but was:&lt;...jboss/datasources/My[New]Ds&gt;

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