Follow the instructions at https://github.com/fcrepo4-labs/fcrepo4-vagrant for setting up the Fedora 4 Vagrant Virtual Machine. These are essentially:
Clone the fcrepo4-vagrant Git repository
git clone https://github.com/fcrepo4-labs/fcrepo4-vagrant.git |
If you already have fcrepo4-vagrant from previous testing, run the following:
vagrant destroy |
install_scripts/config
file, ensure the FEDORA_AUDIT
value to true
.install_scripts/config
file and change the FEDORA_AUDIT_LOCATION
value to desired location
.install_scripts/config
file and change the FEDORA_AUTH
value to true
.Start the Vagrant VM:
vagrant up |
Perform some auditable operations using the Fedora 4 HTML UI at http://localhost:8080/fcrepo/rest or using the REST API on the command-line:
curl -u fedoraAdmin:secret3 -X POST -H "Slug: object1" http: //127 .0.0.1:8080 /fcrepo/rest curl -u fedoraAdmin:secret3 -X POST -H "Slug: file1" --data-binary "test content" http: //127 .0.0.1:8080 /fcrepo/rest/object1 curl -u fedoraAdmin:secret3 -X PATCH -H "Content-type: application/sparql-update" --data-binary "insert data { <> <http://purl.org/dc/elements/1.1/title> \"new title\" . }" http: //127 .0.0.1:8080 /fcrepo/rest/object1 curl -u fedoraAdmin:secret3 -X DELETE http: //127 .0.0.1:8080 /fcrepo/rest/object1/file1 curl -u fedoraAdmin:secret3 -X DELETE http: //127 .0.0.1:8080 /fcrepo/rest/object1 |