Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3131

[tests] Derby and Hsqldb sources must declare a unique folder in their URL

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.0
    • 4.2.0
    • None
    • None
    • 4.3 RC2

      Tests which uses Hsqldb and Derby declars in their datasource.xml file a folder, such as 'tmp/hsqldb' or 'tmp/derby' or 'tmp/other'.

      It does not respect the concept of tests encapsulation (RUNTIME-2962). It can theorically causes some concurrency tests to access the same file resources and lead to errors.

      How I propose to do it:

      • change CocoonTestCase#variableValues(), and add a variable named for instance 'randomStr' which generates a random string
      • search 'jdbc:derby' and 'jdbc:hsqldb' in all *.xml files. All resulting datasources*.xml files are concerned
      • change 'jdbc:derby:tmp/derby;create=true' into 'jdbc:derby:tmp/derby-${randomStr};create=true'
      • change 'jdbc:derby:tmp/other;create=true' into 'jdbc:derby:tmp/other-${randomStr};create=true'
      • change 'jdbc:hsqldb:tmp/hsqldb' into jdbc:hsqldb:tmp/hsqldb-${randomStr}'

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: