Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5764

Make DatabaseMetaDataTest more robust wrt changes made by other tests

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.10.1.1
    • Component/s: Test
    • Labels:
      None

      Description

      The subset of tests from DatabaseMetaDataTest being run as part of the upgrade tests is sensitive to changes in the database made by other tests. For instance, adding tables with foreign keys will make the test fail due to extra rows in system tables.

      Usually this could be solved by using a single-use db wrapper of some sort, but in the upgrade tests the database will be booted several times with different versions of Derby and the data needs to be preserved between some of these boots.

        Attachments

        1. derby-5764-3b-add_test_case_schema_null.diff
          5 kB
          Kristian Waagan
        2. derby-5764-3a-add_test_case_schema_null.diff
          5 kB
          Kristian Waagan
        3. derby-5764-2a-specify_schema.diff
          46 kB
          Kristian Waagan
        4. derby-5764-1a-upgraderun_cleanup.diff
          2 kB
          Kristian Waagan

          Activity

            People

            • Assignee:
              kristwaa Kristian Waagan
              Reporter:
              kristwaa Kristian Waagan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: