mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Enterprise Search][Search application]Fix Create Api key url (#159519)
## Summary Fixes regression issue, probably created when `engines` were renamed to `Search applications` in backend. The Create api key `POST` request was requesting to incorrect url. Replaced with correct url in this PR.
This commit is contained in:
parent
662f11ee21
commit
e03d901b56
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ describe('GenerateEngineApiKeyLogic', () => {
|
|||
});
|
||||
await nextTick();
|
||||
expect(http.post).toHaveBeenCalledWith(
|
||||
'/internal/enterprise_search/engines/puggles/api_key',
|
||||
'/internal/enterprise_search/search_applications/puggles/api_key',
|
||||
{
|
||||
body: JSON.stringify({
|
||||
keyName: 'puggles read only key',
|
||||
|
|
|
@ -24,7 +24,7 @@ export const generateEngineApiKey = async ({
|
|||
engineName: string;
|
||||
keyName: string;
|
||||
}) => {
|
||||
const route = `/internal/enterprise_search/engines/${engineName}/api_key`;
|
||||
const route = `/internal/enterprise_search/search_applications/${engineName}/api_key`;
|
||||
|
||||
return await HttpLogic.values.http.post<APIKeyResponse>(route, {
|
||||
body: JSON.stringify({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue