From 976c5677fa27a440e88924a658435329d02b3f56 Mon Sep 17 00:00:00 2001 From: Lin Wang Date: Mon, 2 Sep 2024 13:29:58 +0800 Subject: [PATCH] [Workspace]Fix dynamicConfigServiceMock import path in workspace routes UT (#7954) * Fix dynamicConfigServiceMock import path in workspace routes UT Signed-off-by: Lin Wang * Changeset file for PR #7954 created/updated --------- Signed-off-by: Lin Wang Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/7954.yml | 2 ++ src/plugins/workspace/server/routes/index.test.ts | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/7954.yml diff --git a/changelogs/fragments/7954.yml b/changelogs/fragments/7954.yml new file mode 100644 index 000000000000..2f353d46242f --- /dev/null +++ b/changelogs/fragments/7954.yml @@ -0,0 +1,2 @@ +fix: +- [Workspace]dynamicConfigServiceMock not found in workspace routes UT ([#7954](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7954)) \ No newline at end of file diff --git a/src/plugins/workspace/server/routes/index.test.ts b/src/plugins/workspace/server/routes/index.test.ts index e67644c0159a..2028583703df 100644 --- a/src/plugins/workspace/server/routes/index.test.ts +++ b/src/plugins/workspace/server/routes/index.test.ts @@ -7,9 +7,7 @@ import supertest from 'supertest'; import { UnwrapPromise } from '@osd/utility-types'; import { setupServer } from '../../../../core/server/test_utils'; -import { loggingSystemMock } from '../../../../core/server/mocks'; -// eslint-disable-next-line @osd/eslint/no-restricted-paths -import { dynamicConfigServiceMock } from '../../../../core/server/config'; +import { loggingSystemMock, dynamicConfigServiceMock } from '../../../../core/server/mocks'; import { workspaceClientMock } from '../workspace_client.mock';