curationexperts / mahonia

Oregon Health & Science Repository
Apache License 2.0
6 stars 0 forks source link

Test access of public and restricted items #80

Closed no-reply closed 7 years ago

no-reply commented 7 years ago

Tests are added to check downloading an unprotected ETD as a non-logged in user and non-availability of download for restricted ETDs. A search spec for a public ETD is also added.

In support of this:

The :etd factory is extended to accept a pdf keyword argument which accepts a Hyrax::UploadedFile. If given the file will be attached to the work in a way similar to what happens in the actor stack on ingest.

A :perform_enqueued spec metadata element is introduced to setup (and tear down) the test queue adapter to perform jobs inline.

Closes #9 Closes #60