From 43814ce8d948dcf0aa4d044881d573765f417754 Mon Sep 17 00:00:00 2001 From: Mihir Soni Date: Fri, 9 Apr 2021 21:29:36 +0000 Subject: [PATCH] Updated unit test cases Signed-off-by: Mihir Soni --- .../public/application/models/sense_editor/sense_editor.ts | 2 +- src/plugins/share/server/routes/lib/short_url_lookup.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/console/public/application/models/sense_editor/sense_editor.ts b/src/plugins/console/public/application/models/sense_editor/sense_editor.ts index 6f2120aa98f..890795bbf22 100644 --- a/src/plugins/console/public/application/models/sense_editor/sense_editor.ts +++ b/src/plugins/console/public/application/models/sense_editor/sense_editor.ts @@ -493,7 +493,7 @@ export class SenseEditor { const opensearchData = req.data; // this is the first url defined in opensearch.hosts - const url = opensearch.orgnstructOpenSearchUrl(opensearchBaseUrl, opensearchPath); + const url = opensearch.constructOpenSearchUrl(opensearchBaseUrl, opensearchPath); let ret = 'curl -X' + opensearchMethod + ' "' + url + '"'; if (opensearchData && opensearchData.length) { diff --git a/src/plugins/share/server/routes/lib/short_url_lookup.test.ts b/src/plugins/share/server/routes/lib/short_url_lookup.test.ts index 210e7278526..04839a48a37 100644 --- a/src/plugins/share/server/routes/lib/short_url_lookup.test.ts +++ b/src/plugins/share/server/routes/lib/short_url_lookup.test.ts @@ -36,7 +36,7 @@ import { SavedObjectsClientContract, SavedObject } from 'opensearch-dashboards/s import { savedObjectsClientMock, loggingSystemMock } from '../../../../../core/server/mocks'; describe('shortUrlLookupProvider', () => { - const ID = '631b8fa45c5d0b8948aaf38cc3a001ca'; + const ID = 'a54b76ec86771ee865a0f74a305dfff8'; const TYPE = 'url'; const URL = 'http://opensearch.org';