Page tree
Skip to end of metadata
Go to start of metadata

Run the Vagrant VM

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
    cd fcrepo4-vagrant
  • If you already have fcrepo4-vagrant from previous testing, run the following:

    vagrant destroy

  • In the install_scripts/config file, ensure the FEDORA_AUDIT value to true.
  • Optional: Edit the install_scripts/config file and change the FEDORA_AUDIT_LOCATION value to desired location.
  • Optional: Edit the install_scripts/config file and change the FEDORA_AUTH value to true.
  • Start the Vagrant VM:

    vagrant up

Verify that audit events are created in the container

  • Verify that an empty container is created at the configured FEDORA_AUDIT_LOCATION (default: /audit).
  • 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
  • Verify that the audit event nodes are created under the configured FEDORA_AUDIT_LOCATION.
  • Verify the audit events have also been published to the external triplestore.

 

 

 

  • No labels