Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement a solr health check #4292

Merged
merged 3 commits into from
Apr 28, 2020
Merged

implement a solr health check #4292

merged 3 commits into from
Apr 28, 2020

Conversation

no-reply
Copy link
Contributor

this check fails if it can't reach Solr, and succeeds otherwise.

@samvera/hyrax-code-reviewers

jeremyf
jeremyf previously approved these changes Apr 25, 2020
this check fails if it can't reach Solr, and succeeds otherwise.
@no-reply no-reply force-pushed the solr-health-check branch 3 times, most recently from 75220ef to 6e09a36 Compare April 27, 2020 23:07
avoid hard overwrites of Hyrax configuration in the SolrService specs.

the contract here guarantees that the configuration given in the initalizer will
be used. take advantage of that to better isolate and deduplicate the tests.

if we need to check the default setting (i don't think we do), we can always
check that the setting is correct after a generic `described_class.new`
separately from these more complex behavioral tests.
@no-reply no-reply force-pushed the solr-health-check branch 5 times, most recently from eb31974 to 1c0b6de Compare April 27, 2020 23:53
add a ping method to the `Hyrax::SolrService`, allowing for cheap Solr
connection checks. this method returns `true` when the solr service returns an
`"OK"` status, and may do anything else otherwise.
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for adding the ping and the refactor of the solr service tests makes it much better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants