[jboss-jira] [JBoss JIRA] (AS7-3534) TS: Fix datasource info test - check whether it's a module or a deployment.
Ondrej Zizka (JIRA)
jira-events at lists.jboss.org
Tue Feb 7 13:37:48 EST 2012
[ https://issues.jboss.org/browse/AS7-3534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ondrej Zizka updated AS7-3534:
------------------------------
Steps to Reproduce:
1) Remove the default JDBC driver from standalone.xml
2 Put a JDBC 4.0 driver to <AS>/standalone/deployments
3) In standalone.xml, add config for this driver:
{code:xml}
<... xmlns:ds="urn:jboss:domain:datasources:1.0">
<ds:datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="testsuite-pool" enabled="true" jta="true"
use-java-context="true">
<ds:connection-url>...</ds:connection-url>
<ds:driver><driver>deployment.h2</ds:driver> <!-- if the JAR file name is "h2.jar" -->
<ds:security>
<ds:user-name>...</ds:user-name>
<ds:password>...</ds:password>
</ds:security>
</ds:datasource>
{code}
4) Run the tests.
was:
1) Remove the default JDBC driver from standalone.xml
2 Put a JDBC 4.0 driver to <AS>/standalone/deployments
3) In standalone.xml, add config for this driver:
{code:xml}
<... xmlns:ds="urn:jboss:domain:datasources:1.0">
<ds:datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="testsuite-pool" enabled="true" jta="true"
use-java-context="true">
<ds:connection-url>...</ds:connection-url>
<ds:driver>...</ds:driver>
<ds:security>
<ds:user-name>...</ds:user-name>
<ds:password>...</ds:password>
</ds:security>
</ds:datasource>
{code}
4) Run the tests.
> TS: Fix datasource info test - check whether it's a module or a deployment.
> ---------------------------------------------------------------------------
>
> Key: AS7-3534
> URL: https://issues.jboss.org/browse/AS7-3534
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 7.1.0.CR1b
> Reporter: Ondrej Zizka
> Assignee: Vladimir Rastseluev
> Priority: Critical
> Fix For: 7.1.0.Final
>
>
> Datasources deployed to deployments/ do not have some metadata.
> Causes this: http://lightning.mw.lab.eng.bos.redhat.com/jenkins/job/as7-param-pull/852/testReport/junit/org.jboss.as.test.smoke.embedded.mgmt.datasource/DataSourceOperationsUnitTestCase/testReadInstalledDrivers/
> Pls verify and fix the test:
> {code:java}
> final ModelNode result2 = result.get(0);
> Assert.assertTrue(result2 != null);
> Assert.assertTrue(result2.hasDefined("driver-module-name"));
> Assert.assertTrue(result2.hasDefined("module-slot"));
> Assert.assertTrue(result2.hasDefined("driver-name"));
> {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