-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
None
-
False
-
-
There are two options for setting up a clean base directory for tests. The configuration parameters are setupCleanServerBaseDir and cleanServerBaseDir. The first simply enables setting up a clean base directory. The second defines the path.
The setupCleanServerBaseDir works fine on it's own. However, when defined with cleanServerBaseDir if the directory does not already exist, it fails. There is also an issue if running multiple tests, where the test fails because files already exist.
There are two options here:
- Delete the directory and recreate it
- Replace the contents of the directory
For option 1, the issue is if more than one test uses the container logs and history will be lost.
For option 2, it kind of goes against the configuration name of "clean" as it's more like a replacement than a clean.
With either approach, we might want to filter some directories like tmp and *_xml_history. Possibly even allowing a glob pattern to be provided.