Skip to content

Commit

Permalink
fix workspace client wrapper integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam committed Feb 28, 2024
1 parent 308c410 commit 7db84d9
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { ISavedObjectsRepository, SavedObjectsClientContract } from 'src/core/server';

import {
createTestServers,
TestOpenSearchUtils,
TestOpenSearchDashboardsUtils,
TestUtils,
} from '../../../../../core/test_helpers/osd_server';
import { SavedObjectsErrorHelpers } from '../../../../../core/server';
import {
SavedObjectsErrorHelpers,
WORKSPACE_TYPE,
ISavedObjectsRepository,
SavedObjectsClientContract,
} from '../../../../../core/server';
import { httpServerMock } from '../../../../../../src/core/server/mocks';
import * as utilsExports from '../../utils';

Expand Down Expand Up @@ -77,7 +80,9 @@ describe('WorkspaceSavedObjectsClientWrapper', () => {
opensearchServer = await servers.startOpenSearch();
osd = await servers.startOpenSearchDashboards();

internalSavedObjectsRepository = osd.coreStart.savedObjects.createInternalRepository();
internalSavedObjectsRepository = osd.coreStart.savedObjects.createInternalRepository([
WORKSPACE_TYPE,
]);

await repositoryKit.create(
internalSavedObjectsRepository,
Expand Down

0 comments on commit 7db84d9

Please sign in to comment.