Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1701

TestXTestCase#testWaitFor and TestXTestCase#testBaseDir have the errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 4.1.0
    • Component/s: None
    • Labels:
      None

      Description

      TestXTestCase have the methods testBaseDir and testWaitFor.
      TestXTestCase has the inner class MyXTestCase as well that have the same methods with the same name.
      The problem is that Junit runs tests and creates the directory for inner class before the time when the actual tests would be running.
      As a result we have the following errors:" testWaitFor(org.apache.oozie.test.TestXTestCase): could not delete path [oozie-monarch\core\target\test-data\oozietests\org.apache.oozie.test.TestXTestCase$MyXTestCase\testWaitFor\conf\oozie-site.xml] testBaseDir(org.apache.oozie.test.TestXTestCase): could not delete path [oozie-monarch\core\target\test-data\oozietests\org.apache.oozie.test.TestXTestCase$MyXTestCase\testBaseDir\conf\oozie-site.xml]"
      That is why we need to add the check for setUp and tearDown methods as for the other

      This errors appear in Windows

        Attachments

        1. OOZIE-1701.patch
          0.8 kB
          Ostap

          Activity

            People

            • Assignee:
              omaliuvanchuk Ostap
              Reporter:
              omaliuvanchuk Ostap
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: