Skip to content

SCH-1987 Refactor integration tests to use govuk_test index in examples#3576

Merged
emmalowe merged 4 commits intomainfrom
SCH-1987-Refactor-tests-to-use-govuk_test-index-in-examples
Apr 17, 2026
Merged

SCH-1987 Refactor integration tests to use govuk_test index in examples#3576
emmalowe merged 4 commits intomainfrom
SCH-1987-Refactor-tests-to-use-govuk_test-index-in-examples

Conversation

@emmalowe
Copy link
Copy Markdown
Contributor

@emmalowe emmalowe commented Apr 16, 2026

Update integration tests to refer to the govuk index, since the government index is being retired.

Jira ticket: https://gov-uk.atlassian.net/browse/SCH-1987

Update tests to refer to the govuk index, since
the government index is being retired.
Update tests to refer to the govuk index, since
the government index is being retired.
Results can be filtered out for different reasons,
so this additional check is to test whether the
document is being excluded because it's an external
link.
@emmalowe emmalowe changed the title SCH-1987 Refactor tests to use govuk_test index in examples SCH-1987 Refactor integration tests to use govuk_test index in examples Apr 17, 2026
In preparation to retire the government index.

In some cases we need to add a migrated format to
the documents, so the documents don't get removed in
the post query filter in Search::QueryBuilder.

https://github.com/alphagov/search-api/blob/main/lib/search/query_builder.rb#L22
@emmalowe emmalowe force-pushed the SCH-1987-Refactor-tests-to-use-govuk_test-index-in-examples branch from d40ec4d to 227b6b2 Compare April 17, 2026 10:29
@emmalowe emmalowe marked this pull request as ready for review April 17, 2026 10:32
Copy link
Copy Markdown
Contributor

@koetsier koetsier left a comment

Choose a reason for hiding this comment

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

LGTM

@emmalowe emmalowe merged commit beea5f4 into main Apr 17, 2026
7 checks passed
@emmalowe emmalowe deleted the SCH-1987-Refactor-tests-to-use-govuk_test-index-in-examples branch April 17, 2026 11:16
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