Skip to content

Commit

Permalink
Removed need to copy yml config files
Browse files Browse the repository at this point in the history
  • Loading branch information
stkenny committed Sep 23, 2023
1 parent 773cf1c commit 35000d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,6 @@ It also builds an image containing all dependencies needed for the tests.

To stop the containers, type <kbd>Ctrl</kbd>+<kbd>c</kbd>. To restart the containers you need only run `docker compose up`.

Copy the Fedora and Solr config files in to place:

```sh
cp spec/support/config/*.yml config
```

You can run the full test suite using the following command:

```sh
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
ActiveFedora::Cleaner.clean!
end
end
if ENV['FCREPO_CONFIG_PATH']
ActiveFedora.init(fedora_config_path: ENV['FCREPO_CONFIG_PATH'])
end

# Workaround for RAW image support until these are pushed upstream to
# the MIME Types gem
Expand Down
2 changes: 1 addition & 1 deletion test.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ SOLR_HOST=solr
SOLR_PORT=8983
SOLR_TEST_URL=http://solr:8983/solr/hydra-test
SOLR_URL=http://solr:8983/solr/
RAILS_ROOT=/app/samvera/hydra-derivatives/spec/support
FCREPO_CONFIG_PATH=spec/support/config/fedora.yml

0 comments on commit 35000d6

Please sign in to comment.