= 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'' }}}