Skip to content

[7.x] [Enterprise Search] Fix/update MockRouter helper to return specific routes/paths (#82682)#82781

Merged
cee-chen merged 1 commit intoelastic:7.xfrom
cee-chen:backport/7.x/pr-82682
Nov 5, 2020
Merged

[7.x] [Enterprise Search] Fix/update MockRouter helper to return specific routes/paths (#82682)#82781
cee-chen merged 1 commit intoelastic:7.xfrom
cee-chen:backport/7.x/pr-82682

Conversation

@cee-chen
Copy link
Copy Markdown
Contributor

@cee-chen cee-chen commented Nov 5, 2020

Backports the following commits to 7.x:

…outes/paths (elastic#82682)

* Fix tests failing for route files that have more than 2 router registrations of the same method

- This fix allows us to specify the route call we're testing via a path param

* Update all existing uses of MockRouter to pass path param

* Add helpful error messaging

- e.g., in case a path gets typoed
@cee-chen cee-chen added the backport This PR is a backport of another PR label Nov 5, 2020
@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 76969b5 into elastic:7.x Nov 5, 2020
@cee-chen cee-chen deleted the backport/7.x/pr-82682 branch November 5, 2020 22:56
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