Skip to content

[7.x] [Enterprise Search] Refactor MockRouter test helper to not store payload (#90206)#90322

Merged
cee-chen merged 1 commit intoelastic:7.xfrom
cee-chen:backport/7.x/pr-90206
Feb 4, 2021
Merged

[7.x] [Enterprise Search] Refactor MockRouter test helper to not store payload (#90206)#90322
cee-chen merged 1 commit intoelastic:7.xfrom
cee-chen:backport/7.x/pr-90206

Conversation

@cee-chen
Copy link
Copy Markdown
Contributor

@cee-chen cee-chen commented Feb 4, 2021

Backports the following commits to 7.x:

…oad (elastic#90206)

* Update MockRouter to not pass/set a this.payload

- but instead intelligently validate payloads based on the request keys

* Fix relevance tuning API routes to not need a separate mock router for validating query & body

* Update all remaining tests to no longer pass a payload param to MockRouter
@cee-chen cee-chen added the backport This PR is a backport of another PR label Feb 4, 2021
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cee-chen cee-chen merged commit da7c3b4 into elastic:7.x Feb 4, 2021
@cee-chen cee-chen deleted the backport/7.x/pr-90206 branch February 4, 2021 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants