[dna-issues] [JBoss JIRA] Resolved: (DNA-503) File system connector unit tests are failing

Brian Carothers (JIRA) jira-events at lists.jboss.org
Thu Aug 6 19:27:29 EDT 2009


     [ https://jira.jboss.org/jira/browse/DNA-503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Carothers resolved DNA-503.
---------------------------------

    Resolution: Done


The root cause was a typo in the test case (one line created a node called "testFolder" and a later line tried to create a child node at "testfolder/testNode" - note the difference in the capitalization of the 'f').  However, while trying to fix this, we fixed error handling (returning the error instead of failing an assertion) if the path to a new node doesn't exist and also fixed a flaw in the testing that created the test repositories directly in the src hierarchy instead of the target hierarchy.

The defect is now corrected and the test does pass.

> File system connector unit tests are failing
> --------------------------------------------
>
>                 Key: DNA-503
>                 URL: https://jira.jboss.org/jira/browse/DNA-503
>             Project: DNA
>          Issue Type: Bug
>          Components: Connectors
>    Affects Versions: 0.6
>            Reporter: Randall Hauch
>            Assignee: Brian Carothers
>             Fix For: 0.6
>
>         Attachments: dna-503.patch
>
>
> Recent changes to the file system connector have broken the build.  It looks like the tests run fine locally but not on Hudson, making me think the problem may be with file permissions.  These unit tests appear to be modifying the content under the 'src/test/resources' directory, which is generally not a good idea.  Instead, the tests should copy the information over to the 'target' directory, and then operate the tests from there.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the dna-issues mailing list