Community
Participate
Working Groups
We need to have a test ensuring that if the repository that we are mirroring from or to is in the repo managers before the mirroring app is run, those repos are not inadvertently removed.
How does this bug reflect upon Bug 247664? My understanding is that the loaded repos before the mirror application should be the only loaded repos after the mirror application.
It relates with bug 247664 by adding a test that verify that we are not gratuitously removing repos that the user would have added as part of fixing bug #247664.
I have a some test cases written for testing Bug 2447664 that also apply to this bug but I'm not submitting a patch because it relies on my temporary solution to Bug 248269, which won't be in the released code.
Created attachment 113993 [details] Tests to ensure repositories are loaded/removed correctly by the mirror applications These test verify my patch for Bug 248056. They also rely on a temporary solution to Bug 248269 and must be modified when the API becomes available.
Andrew, good start. Some changes to be made: AllTests.java - copyright should be only 2008, not 2007 test files: - company contributions in copyright are incorrect - none of the test methods have comments at the beginning saying what the test does - in the #runMirrorApplication method we should be using constants where applicable (e.g. IApplicationContext.APPLICATION_ARGS) - the test* methods should not throw an exception. specific exceptions should be caught in the test methods and fail if appropriate (e.g. fail("message", ex) ) - should replace: if (trueBooleanExpression) then fail(message) with assertFalse(message, expression) - same for false expressions, but use assertTrue Thanks.
Created attachment 114034 [details] Updated tests I've made the changes DJ asked for.
Released to HEAD.