You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Maria Odea Ching (JIRA)" <ji...@codehaus.org> on 2007/08/27 14:31:11 UTC

[jira] Closed: (MRM-453) Create missing tests for repository purge

     [ http://jira.codehaus.org/browse/MRM-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching closed MRM-453.
--------------------------------

    Resolution: Fixed

Final fix -r570089

Fix for the test cases:
- Added tests for metadata driven snapshots in DaysOldRepositoryPurgeTest
- Added test data

Changes made in DaysOldRepositoryPurge:
- Added functionality to consider the metadata driven snapshots (check the timestamp in the filename first before the last modified date of the 
file if it is a unique versioned snapshot)


> Create missing tests for repository purge
> -----------------------------------------
>
>                 Key: MRM-453
>                 URL: http://jira.codehaus.org/browse/MRM-453
>             Project: Archiva
>          Issue Type: Improvement
>    Affects Versions: 1.0-beta-1
>            Reporter: Maria Odea Ching
>            Assignee: Maria Odea Ching
>             Fix For: 1.0-beta-2
>
>
> Comments from MRM-294:
> A general thought here too, for later: it might be worth reviewing the exceptions that can occur in *Purge and see if we can recover better from each rather than bubbling it
> Tests:
>     * I think you can remove many of the components from the test XML files where the default suffice (just keep the registry and jdo factory)
>     * the tests have a lot of bolierplate that can probably be turned into methods that generate test data
> Missing tests:
>     * no tests for the consumer or the Released Snapshots purge
>     * days old test is only testing by file age - it should also test the metadata-driven snapshots
> A general thought for Archiva in the long term, too... setting up the database to test this was probably a pain. We should have stub implementations of the indexer and dao's to avoid it.

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