Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2424

Add CatalogManager.properties tests

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • 3.2.0
    • QA
    • None

    Description

      Daffodil has a capability to use a CatalogManager.properties file to specify XML catalogs for resolving includes. We do not have many, if any, tests that verify that this functions as expected. This is partly because it is difficult to write tests because the CatalogManager.properties file must be at the root of the classpath, so one test could affect other tests.

      We probably need a way to fork tests that deal with CatalogManager.properties so that we can fork different tests in different temprory directories that contain different CatalogManager.properties files. Perhaps the CLI integration tests are a good candidate for this, but it might make testing some circumstatnces more difficult.

      For reference, the TestDaffodilXMLLoader.scala file had tests that verified CatalogManager.properties behavior. But in some cases the tests would be skipped, and they were not thread safe when they were run. So these tests were removed. See the below link to see these tests before they were removed. These tests are good candidates as a starting point for what kinds of tests would be useful to add:

      https://github.com/apache/incubator-daffodil/blob/0391ba1345521ce2119833391428a626728b7df3/daffodil-test/src/test/scala/org/apache/daffodil/xml/test/unit/TestDaffodilXMLLoader.scala

      Attachments

        Activity

          People

            Unassigned Unassigned
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: