mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 12:35:02 +02:00
UBERF-6161: Storage configuration (#5109)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { DbAdapter } from '@hcengineering/server-core'
|
||||
import { Domain, getWorkspaceId, Hierarchy } from '@hcengineering/core'
|
||||
import { Domain, getWorkspaceId, Hierarchy, MeasureMetricsContext } from '@hcengineering/core'
|
||||
import { createElasticBackupDataAdapter } from '../backup'
|
||||
|
||||
import { Client } from '@elastic/elasticsearch'
|
||||
@@ -11,7 +11,12 @@ describe('Elastic Data Adapter', () => {
|
||||
let adapter: DbAdapter
|
||||
|
||||
beforeEach(async () => {
|
||||
adapter = await createElasticBackupDataAdapter(new Hierarchy(), url, getWorkspaceId('ws1', ''))
|
||||
adapter = await createElasticBackupDataAdapter(
|
||||
new MeasureMetricsContext('test', {}),
|
||||
new Hierarchy(),
|
||||
url,
|
||||
getWorkspaceId('ws1', '')
|
||||
)
|
||||
})
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -298,6 +298,7 @@ class ElasticDataAdapter implements DbAdapter {
|
||||
* @public
|
||||
*/
|
||||
export async function createElasticBackupDataAdapter (
|
||||
ctx: MeasureContext,
|
||||
hierarchy: Hierarchy,
|
||||
url: string,
|
||||
workspaceId: WorkspaceId
|
||||
|
||||
Reference in New Issue
Block a user