xtf-cz / xtf

MIT License
12 stars 55 forks source link

If parameterized tests fail then OpenShiftRecorderService throws java.nio.file.FileAlreadyExistsException when overriding files from build namespace #501

Closed mnovak1 closed 2 years ago

mnovak1 commented 2 years ago

In case a test fails OpenShiftRecorderService saves all files related to test (including from build namespace) to "resources" directory. Problem is with parametrized tests (annotated by @ParameterizedTest) as all of them are sharing the same directory and thus trying to override the same files.

For example following directories are created:

    com.redhat.xpaas.eap.template.StaticTest.[1] eap74-https-s2i
    com.redhat.xpaas.eap.template.StaticTest.[2] eap74-basic-s2i
    com.redhat.xpaas.eap.template.StaticTest.[3] eap74-amq-persistent-s2i
    com.redhat.xpaas.eap.template.StaticTest.[4] eap74-amq-s2i
    com.redhat.xpaas.eap.template.StaticTest.[5] eap74-sso-s2i

It seems that test name is missing in the name of directory (test case name and parametrization is the name of directory).