-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fcrepo indexing #39
Fcrepo indexing #39
Conversation
…ner and Gemini to avoid messages that will never complete.
Codecov Report
@@ Coverage Diff @@
## master #39 +/- ##
=============================================
+ Coverage 71.18% 84.16% +12.98%
- Complexity 3 29 +26
=============================================
Files 2 6 +4
Lines 59 240 +181
Branches 0 1 +1
=============================================
+ Hits 42 202 +160
- Misses 17 37 +20
- Partials 0 1 +1
Continue to review full report at Codecov.
|
@Islandora-CLAW/committers Ok, we're building now (thanks @whikloj), so can someone verify that this will deploy on a fresh Karaf? |
|
GitHub Issue: Resolves Islandora/documentation#597
Blocked by Islandora/documentation#57
What does this Pull Request do?
Provides a set of Camel routes to orchestrate calls to Milliner and Gemini in response to Drupal events.
What's new?
A lot. A new feature for Alpaca. Quite a few routes with some nice error handling techniques. And tests covering the basic routing flows.
How should this be tested?
To install these changes, start with an existing vagrant that has Alpaca running in Karaf. Then perform the following:
cd ~/Alpaca
./gradlew install
/opt/karaf/bin/client
feature:repo-refresh file:/home/ubuntu/Alpaca/karaf/build/resources/main/features.xml
feature:install islandora-indexing-fcrepo
You can test it by creating, updating, and deleting an entity in Drupal and checking the results in Fedora.
http://localhost:8000/fedora_resource/1
.curl -i -H "Authorization: Bearer islandora" "http://localhost:8000/gemini/drupal/fedora_resource/1"
should return 200 with the path in Fedora. I receivedcf/46/e4/cd/cf46e4cd-85b1-4430-8a8b-3b25809e5bf4
.curl -i -H "Authorization: Bearer islandora" "http://locahost:8080/fcrepo/rest/cf/46/e4/cd/cf46e4cd-85b1-4430-8a8b-3b25809e5bf4"
should return its RDF metadata in Turtle format.curl -i -H "Authorization: Bearer islandora" "http://locahost:8080/fcrepo/rest/cf/46/e4/cd/cf46e4cd-85b1-4430-8a8b-3b25809e5bf4"
should return updated metadata.curl -i -H "Authorization: Bearer islandora" "http://localhost:8000/gemini/drupal/fedora_resource/1"
should return an empty 404curl -i -H "Authorization: Bearer islandora" "http://locahost:8080/fcrepo/rest/cf/46/e4/cd/cf46e4cd-85b1-4430-8a8b-3b25809e5bf4"
should return a 410 with a message about the tombstone.Interested parties
@Islandora-CLAW/committers