As part of the bitrepository.org development process we've created a new test-case that allows us to test all access/processing on either one replica or the other. The two cases are specified by the two deployment configurations default_deploy_config_bitmagaar.xml and default_deploy_config_bitmagkbh.xml which can be found in the Danish netarkivet stash repository. These can be installed on the test system using the standard procedure
The configurations are such that there is only one BitarchiveMonitorApplication in each of the two configurations, so there is no possibility of running batch jobs by accident on the wrong replica. A good suite of tests for each configuration is:
- Run a small (10MB) selective harvest
- Check that the files are uploaded to the correct collection in bitmag
- Check that the "Browse harvest files of job" link for the harvest shows exactly two files - one metadata, one data
- Check that "Browse reports for jobs" shows links to all the the metadata records
- With the standard ViewerProxy setup, check that the metadata record links work
- Click on "Select this job for QA with viewerproxy " and check that you can actually browse in the harvested data
- Look at all the BitarchiveApplication instances in the Systemstate overview. The "opposite" replica, the one that you are not testing, should only show messages about sending heartbeats or sleeping until trying again. [There is a slight, but non-blocking, issue here that heartbeats get sent to a queue with no listener and this eventually gets full and stops receiving any more.]
- Rerun the same harvest
- Check the processors-report.txt metadata record. the DeDuplicator report should show non-zero "Duplicates found"
With this done, you have checked:
- File-listing via bitarkiv
- Browsing-access via bitarkiv
- Batch-indexing for Viewerproxy
- Batch-indexing for deduplication
for the replica under test.
Adding wayback to the mix is, as usual, fiddly because you also have to fix the replica being used in the NAS settings file that gets passed to the wayback webapp under tomcat.. However you can easily check wayback indexing by browsing in the indexDir directory in the test installation directory on kb-test-way-001.kb.dk. (It can be up to 20 minutes behind the harvesting.) You should easily be able to find cdx entries corresponding to the domains you harvested.