mirror of
https://github.com/elastic/kibana.git
synced 2025-07-01 04:23:21 -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();
|
await nextTick();
|
||||||
expect(http.post).toHaveBeenCalledWith(
|
expect(http.post).toHaveBeenCalledWith(
|
||||||
'/internal/enterprise_search/engines/puggles/api_key',
|
'/internal/enterprise_search/search_applications/puggles/api_key',
|
||||||
{
|
{
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
keyName: 'puggles read only key',
|
keyName: 'puggles read only key',
|
||||||
|
|
|
@ -24,7 +24,7 @@ export const generateEngineApiKey = async ({
|
||||||
engineName: string;
|
engineName: string;
|
||||||
keyName: 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, {
|
return await HttpLogic.values.http.post<APIKeyResponse>(route, {
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue