Differences between revisions 1 and 2
Revision 1 as of 2008-06-26 12:26:05
Size: 1494
Editor: kfc
Comment: Created by the PackagePages action.
Revision 2 as of 2010-03-17 13:12:45
Size: 1494
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Release test step: Install Ingest Package and generate a Failure

Install the ingester module

cd doms/gentofte_preingest
ant release.bin
cp dist/doms-gentofte_preingest-0.0.1.zip ../../
cd ../..
unzip doms-gentofte_preingest-0.0.1.zip
rm -f doms-gentofte_preingest-0.0.1.zip
mkdir preingester
mv doms-gentofte_preingest-0.0.1/* preingester/
rm -r doms-gentofte_preingest-0.0.1/
  • $GENTOFTE must point to the location of the gentofte collection. This is the location for me

export GENTOFTE=~/gentofte/gentofte/

TODO: Alternatively, just use something that has a similar folder structure. Copy a bit of the gentofte collection to test the preingester.

mkdir fedora_install/ingest/input/gentofte
mkdir fedora_install/ingest/input/gentofte/data
mkdir fedora_install/ingest/input/gentofte/data/bil-revyen
cp -r $GENTOFTE/images/bil-revyen/1987 fedora_install/ingest/input/gentofte/data/bil-revyen/

Introduce a faulty object, ie an article without a category.

touch fedora_install/ingest/input/gentofte/data/bil-revyen/1987/test.gif

Run the preingester

cd preingester
bin/preingest.sh ../fedora_install/ingest/input/gentofte/data/ ../fedora_install/ingest/input/gentofte/

The preingester will spew out an uncaught exception

Error encoutered, examine the exception 'java.lang.RuntimeException: The path does not encode enough metadata for the datamodel. The path is '/bil-revyen/1987/test.gif''

CheckFailedPreIngestTestStep (last edited 2010-03-17 13:12:45 by localhost)