...
Table of Contents |
---|
Instructions
- Download / Install Fedora
- The following system properties are important to include when starting up a Fedora that will be the target of the Fedora API Test Suite:
- -Dfcrepo.home=<some_directory>
- -Dfcrepo.auth.webac.userAgent.baseUri=http://example.com/
- -Dfcrepo.auth.webac.groupAgent.baseUri=http://example.com/
- -Dfcrepo.external.content.allowed=fcrepo-http-api/src/test/resources/allowed_external_paths.txt
- For example: command for starting Fedora from within the source code base:
No Format mvn jetty:run -Dfcrepo.home=target/ -Dfcrepo.auth.webac.userAgent.baseUri=http://example.com/ \ -Dfcrepo.auth.webac.groupAgent.baseUri=http://example.com/ \ -Dfcrepo.external.content.allowed=fcrepo-http-api/src/test/resources/allowed_external_paths.txt \ -pl fcrepo-webapp
- Run tests
No Format java -jar target/testsuite-1.0-SNAPSHOT-shaded.jar -c config-local.yml
Where "config-local.yml" contains:
No Format default: rooturl: http://localhost:8080/rest/ root-controller-user-webid: http://example.com/fedoraAdmin root-controller-user-name: fedoraAdmin root-controller-user-password: fedoraAdmin permissionless-user-webid: http://example.com/testuser permissionless-user-name: testuser permissionless-user-password: testpass broker-url: tcp://127.0.0.1:61616 topic-name: fedora queue-name: implementation-name: Fedora implementation-version: 6.0.0
...