Derby
  1. Derby
  2. DERBY-4203

Change mailjdbc and sstest system tests to be able to restart with the existing database instead of creating a new one so they can be used for upgrade testing

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.5.2.0, 10.6.1.0
    • Fix Version/s: 10.5.3.0, 10.6.1.0
    • Component/s: Test
    • Labels:
      None

      Description

      It would be nice to have the system tests be able to pick up with an existing database instead of creating a new one, so they can be used for soft upgrade and hard upgrade testing after running a while with the old version.

      1. Derby-4203.diff
        4 kB
        Lily Wei
      2. derby-4203.diff
        2 kB
        Lily Wei

        Activity

        Kathey Marsden created issue -
        Kathey Marsden made changes -
        Field Original Value New Value
        Summary Change mailjdbc and sstest system tests to be able to restart with the existing database instead of creating a new one so they can be ued for upgrade testing Change mailjdbc and sstest system tests to be able to restart with the existing database instead of creating a new one so they can be used for upgrade testing
        Hide
        Lily Wei added a comment -

        This is the first attempt to fix this problem. I add a second argument to indicate we don't want to create a new database. This fixed will be the same for 10.5 and trunk. Note: I did not handle schema.sql and avoid recreate Activity.out or performance.out. The test will reuse data in mailsdb database. So, it can test soft upgrade from various release is working.

        Show
        Lily Wei added a comment - This is the first attempt to fix this problem. I add a second argument to indicate we don't want to create a new database. This fixed will be the same for 10.5 and trunk. Note: I did not handle schema.sql and avoid recreate Activity.out or performance.out. The test will reuse data in mailsdb database. So, it can test soft upgrade from various release is working.
        Lily Wei made changes -
        Attachment derby-4203.diff [ 12412612 ]
        Kathey Marsden made changes -
        Affects Version/s 10.5.2.0 [ 12314116 ]
        Affects Version/s 10.5.1.2 [ 12313870 ]
        Hide
        Lily Wei added a comment -

        Thanks for Kathey to look at this patch that is first post on Derby-4166. I make the changes for the typo. I also do the diff from the top. And, this change only apply for mailjdbc tests.

        Show
        Lily Wei added a comment - Thanks for Kathey to look at this patch that is first post on Derby-4166. I make the changes for the typo. I also do the diff from the top. And, this change only apply for mailjdbc tests.
        Lily Wei made changes -
        Attachment Derby-4203.diff [ 12413832 ]
        Hide
        Kathey Marsden added a comment -

        Thanks Lily. I committed the mailjdbc patch to trunk and 10.5

        Show
        Kathey Marsden added a comment - Thanks Lily. I committed the mailjdbc patch to trunk and 10.5
        Kathey Marsden made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Lily Wei [ lilywei ]
        Fix Version/s 10.5.2.1 [ 12314117 ]
        Fix Version/s 10.6.0.0 [ 12313727 ]
        Resolution Fixed [ 1 ]
        Kathey Marsden made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Gavin made changes -
        Workflow jira [ 12462198 ] Default workflow, editable Closed status [ 12799268 ]

          People

          • Assignee:
            Lily Wei
            Reporter:
            Kathey Marsden
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development