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

add some Indexing and search behavior integration tests #4343

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

ndushay
Copy link
Contributor

@ndushay ndushay commented Mar 11, 2024

Related to sul-dlss-deprecated/dor_indexing/pull/37

QUESTION: will these tests slow the test suite substantially? Not sure how to mitigate that, if so. I'm striving to avoid creating and indexing documents for each test, since they need to be driven through the entire stack.

Why was this change made?

As discussed in Infra Dev Planning meeting on Tues 3/5/24, this PR introduces some integration tests that allow us to put arbitrary cocina objects into dor-services-app via factory_bot (see spec/factories/items.rb), index them using the Argo indexer (which calls the dor-indexing-app), and then use the Argo UI to search for the objects, ensure the search results are as expected, ditto the facets, blah blah.

I have some tests for tags and for titles in flight, too. Separate PRs to come.

How was this change tested?

CI

@ndushay ndushay force-pushed the indexing-integration-tests branch 2 times, most recently from 56ecfab to 2d50ba3 Compare March 11, 2024 23:37
@ndushay ndushay force-pushed the indexing-integration-tests branch 3 times, most recently from 2c5d87c to 90c9320 Compare March 12, 2024 22:23
@justinlittman justinlittman merged commit e0e9929 into main Mar 13, 2024
7 checks passed
@justinlittman justinlittman deleted the indexing-integration-tests branch March 13, 2024 11:23
@ndushay ndushay mentioned this pull request Mar 13, 2024
11 tasks
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.

2 participants