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

Valkyrization: Fix failing tests in solr_service_spec.rb #6463

Merged
merged 1 commit into from Nov 27, 2023

Conversation

abelemlih
Copy link
Contributor

@abelemlih abelemlih commented Nov 20, 2023

Fixes

Fixes failing tests in spec/services/hyrax/solr_service_spec.rb when Valkyrie is used

Summary

In /app/services/hyrax/solr_service.rb, the parameters used in both the GET and POST requests do not include qt: 'standard' when use_valkyrie is true. The tests in spec/services/hyrax/solr_service_spec.rb assume the use of the qt: 'standard' parameters when Valkyrie is both used and not. In this PR, I edit the tests to use different sets of parameters depending on the use of Valkyrie.

Type of change (for release notes)

  • notes-valkyrie Valkyrie Progress

Changes proposed in this pull request:

  • Add the qt: 'standard' parameter only when Valkyrie is not used for all tests
  • Edit the #ping tests to mock the response of the ping request when Valkyrie is not used

@samvera/hyrax-code-reviewers

@abelemlih abelemlih added valkyrization notes-valkyrie Release Notes: Valkyrie specific labels Nov 20, 2023
@abelemlih abelemlih self-assigned this Nov 20, 2023
@abelemlih abelemlih changed the title Edit solr_service_spec.rb Valkyrization: Fix failing tests in solr_service_spec.rb Nov 22, 2023
@dlpierce dlpierce merged commit b9cd0d3 into main Nov 27, 2023
4 checks passed
@dlpierce dlpierce deleted the abel-fix_solr_service_spec branch November 27, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-valkyrie Release Notes: Valkyrie specific valkyrization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants