Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3534

TS: Fix datasource info test - check whether it's a module or a deployment.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.1.1.Final
    • 7.1.0.CR1b
    • Test Suite
    • None
    • Hide

      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:

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

      4) Run the tests.

      Show
      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: <... 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> 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> 4) Run the tests.

    Description

      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:

              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"));
      

      Attachments

        Issue Links

          Activity

            People

              vrastsel_jira Vladimir Rastseluev (Inactive)
              ozizka_jira Ondrej Zizka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: