@fluidframework/test-utils 2.0.0-dev.7.4.0.216897 → 2.0.0-dev.7.4.0.217884

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,14 +4,14 @@
4
4
 
5
5
  ```ts
6
6
 
7
- import { ConfigTypes } from '@fluidframework/telemetry-utils';
7
+ import { ConfigTypes } from '@fluidframework/core-interfaces';
8
8
  import { ContainerRuntime } from '@fluidframework/container-runtime';
9
9
  import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct';
10
10
  import { FluidDataStoreRuntime } from '@fluidframework/datastore';
11
11
  import { FluidObject } from '@fluidframework/core-interfaces';
12
12
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
13
13
  import { ICodeDetailsLoader } from '@fluidframework/container-definitions';
14
- import { IConfigProviderBase } from '@fluidframework/telemetry-utils';
14
+ import { IConfigProviderBase } from '@fluidframework/core-interfaces';
15
15
  import { IContainer } from '@fluidframework/container-definitions';
16
16
  import { IContainerContext } from '@fluidframework/container-definitions';
17
17
  import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { ConfigTypes, IConfigProviderBase } from "@fluidframework/telemetry-utils";
5
+ import { ConfigTypes, IConfigProviderBase } from "@fluidframework/core-interfaces";
6
6
  /**
7
7
  * @internal
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TestConfigs.js","sourceRoot":"","sources":["../src/TestConfigs.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;GAEG;AACI,MAAM,kBAAkB,GAAG,CACjC,WAAwC,EAAE,EACpB,EAAE;IACxB,OAAO;QACN,YAAY,EAAE,CAAC,IAAY,EAAe,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;KAC3D,CAAC;AACH,CAAC,CAAC;AANW,QAAA,kBAAkB,sBAM7B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ConfigTypes, IConfigProviderBase } from \"@fluidframework/telemetry-utils\";\n\n/**\n * @internal\n */\nexport const mockConfigProvider = (\n\tsettings: Record<string, ConfigTypes> = {},\n): IConfigProviderBase => {\n\treturn {\n\t\tgetRawConfig: (name: string): ConfigTypes => settings[name],\n\t};\n};\n"]}
1
+ {"version":3,"file":"TestConfigs.js","sourceRoot":"","sources":["../src/TestConfigs.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;GAEG;AACI,MAAM,kBAAkB,GAAG,CACjC,WAAwC,EAAE,EACpB,EAAE;IACxB,OAAO;QACN,YAAY,EAAE,CAAC,IAAY,EAAe,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;KAC3D,CAAC;AACH,CAAC,CAAC;AANW,QAAA,kBAAkB,sBAM7B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ConfigTypes, IConfigProviderBase } from \"@fluidframework/core-interfaces\";\n\n/**\n * @internal\n */\nexport const mockConfigProvider = (\n\tsettings: Record<string, ConfigTypes> = {},\n): IConfigProviderBase => {\n\treturn {\n\t\tgetRawConfig: (name: string): ConfigTypes => settings[name],\n\t};\n};\n"]}
@@ -5,9 +5,8 @@
5
5
  import { ContainerRuntimeFactoryWithDefaultDataStore } from "@fluidframework/aqueduct";
6
6
  import { IContainer } from "@fluidframework/container-definitions";
7
7
  import { IOnDemandSummarizeOptions, ISummarizer } from "@fluidframework/container-runtime";
8
- import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
8
+ import { ITelemetryBaseLogger, IConfigProviderBase } from "@fluidframework/core-interfaces";
9
9
  import { IFluidDataStoreFactory, NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions";
10
- import { IConfigProviderBase } from "@fluidframework/telemetry-utils";
11
10
  import { ITestContainerConfig, ITestObjectProvider } from "./testObjectProvider";
12
11
  /**
13
12
  * Creates a summarizer client from the given container and data store factory, and returns the summarizer client's
@@ -1 +1 @@
1
- {"version":3,"file":"TestSummaryUtils.d.ts","sourceRoot":"","sources":["../src/TestSummaryUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,2CAA2C,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,EAAE,UAAU,EAA6B,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EACN,yBAAyB,EACzB,WAAW,EAEX,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAyB,MAAM,iCAAiC,CAAC;AAE9F,OAAO,EAEN,sBAAsB,EACtB,kCAAkC,EAClC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAsDjF;;;;;GAKG;AACH,wBAAsB,2BAA2B,CAChD,QAAQ,EAAE,mBAAmB,EAC7B,SAAS,EAAE,UAAU,EACrB,gBAAgB,EAAE,sBAAsB,EACxC,cAAc,CAAC,EAAE,MAAM,EACvB,2BAA2B,qDAA8C,EACzE,eAAe,CAAC,EAAE,kCAAkC,EACpD,MAAM,CAAC,EAAE,oBAAoB,EAC7B,cAAc,GAAE,mBAA0C,GACxD,OAAO,CAAC;IAAE,SAAS,EAAE,UAAU,CAAC;IAAC,UAAU,EAAE,WAAW,CAAA;CAAE,CAAC,CAoB7D;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACrC,QAAQ,EAAE,mBAAmB,EAC7B,SAAS,EAAE,UAAU,EACrB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,cAAc,CAAC,EAAE,MAAM,EACvB,MAAM,CAAC,EAAE,oBAAoB,GAC3B,OAAO,CAAC;IAAE,SAAS,EAAE,UAAU,CAAC;IAAC,UAA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AAK,QAAQ,EACpC,yDAAyD,CACzD,CAAC;IACF,IAAA,mBAAM,EAAC,YAAY,CAAC,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE,2BAA2B,CAAC,CAAC;IAEjF,MAAM,eAAe,GAAG,MAAM,IAAA,2BAAY,EAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACxE,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE;QAC7B,MAAM,eAAe,CAAC,KAAK,CAAC;KAC5B;IAED,MAAM,aAAa,GAAG,MAAM,IAAA,2BAAY,EAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAC1E,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;QAC3B,MAAM,aAAa,CAAC,KAAK,CAAC;KAC1B;IAED,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IAE1D,OAAO;QACN,WAAW,EAAE,YAAY,CAAC,IAAI,CAAC,WAAW;QAC1C,cAAc,EAAE,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM;QAC/D,aAAa,EAAE,YAAY,CAAC,IAAI,CAAC,uBAAuB;KACxD,CAAC;AACH,CAAC;AAtCD,oCAsCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ContainerRuntimeFactoryWithDefaultDataStore } from \"@fluidframework/aqueduct\";\nimport { assert } from \"@fluidframework/core-utils\";\nimport { IContainer, IHostLoader, LoaderHeader } from \"@fluidframework/container-definitions\";\nimport {\n\tIOnDemandSummarizeOptions,\n\tISummarizer,\n\tISummaryRuntimeOptions,\n} from \"@fluidframework/container-runtime\";\nimport { ITelemetryBaseLogger, FluidObject, IRequest } from \"@fluidframework/core-interfaces\";\nimport { DriverHeader } from \"@fluidframework/driver-definitions\";\nimport {\n\tIContainerRuntimeBase,\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport { IConfigProviderBase } from \"@fluidframework/telemetry-utils\";\nimport { ITestContainerConfig, ITestObjectProvider } from \"./testObjectProvider\";\nimport { mockConfigProvider } from \"./TestConfigs\";\nimport { waitForContainerConnection } from \"./containerUtils\";\nimport { timeoutAwait } from \"./timeoutUtils\";\nimport { createContainerRuntimeFactoryWithDefaultDataStore } from \"./testContainerRuntimeFactoryWithDefaultDataStore\";\n\nconst summarizerClientType = \"summarizer\";\n\nasync function createSummarizerCore(\n\tcontainer: IContainer,\n\tloader: IHostLoader,\n\tsummaryVersion?: string,\n) {\n\tconst absoluteUrl = await container.getAbsoluteUrl(\"\");\n\tif (absoluteUrl === undefined) {\n\t\tthrow new Error(\"URL could not be resolved\");\n\t}\n\n\tconst request: IRequest = {\n\t\theaders: {\n\t\t\t[LoaderHeader.cache]: false,\n\t\t\t[LoaderHeader.clientDetails]: {\n\t\t\t\tcapabilities: { interactive: false },\n\t\t\t\ttype: summarizerClientType,\n\t\t\t},\n\t\t\t[DriverHeader.summarizingClient]: true,\n\t\t\t[LoaderHeader.version]: summaryVersion,\n\t\t},\n\t\turl: absoluteUrl,\n\t};\n\tconst summarizerContainer = await loader.resolve(request);\n\tawait waitForContainerConnection(summarizerContainer);\n\n\tconst fluidObject: FluidObject<ISummarizer> | undefined =\n\t\tawait summarizerContainer.getEntryPoint();\n\tif (fluidObject?.ISummarizer === undefined) {\n\t\tthrow new Error(\"Fluid object does not implement ISummarizer\");\n\t}\n\n\treturn {\n\t\tcontainer: summarizerContainer,\n\t\tsummarizer: fluidObject.ISummarizer,\n\t};\n}\n\nconst defaultSummaryOptions: ISummaryRuntimeOptions = {\n\tsummaryConfigOverrides: {\n\t\tstate: \"disableHeuristics\",\n\t\tmaxAckWaitTime: 20000, // Some of the AFR tests take a long time to ack.\n\t\tmaxOpsSinceLastSummary: 7000,\n\t\tinitialSummarizerDelayMs: 0,\n\t},\n};\n\n/**\n * Creates a summarizer client from the given container and data store factory, and returns the summarizer client's\n * IContainer and ISummarizer.\n * The ISummarizer can be used to generate on-demand summaries. The IContainer can be used to fetch data stores, etc.\n * @internal\n */\nexport async function createSummarizerFromFactory(\n\tprovider: ITestObjectProvider,\n\tcontainer: IContainer,\n\tdataStoreFactory: IFluidDataStoreFactory,\n\tsummaryVersion?: string,\n\tcontainerRuntimeFactoryType = ContainerRuntimeFactoryWithDefaultDataStore,\n\tregistryEntries?: NamedFluidDataStoreRegistryEntries,\n\tlogger?: ITelemetryBaseLogger,\n\tconfigProvider: IConfigProviderBase = mockConfigProvider(),\n): Promise<{ container: IContainer; summarizer: ISummarizer }> {\n\tconst innerRequestHandler = async (request: IRequest, runtime: IContainerRuntimeBase) =>\n\t\truntime.IFluidHandleContext.resolveHandle(request);\n\tconst runtimeFactory = createContainerRuntimeFactoryWithDefaultDataStore(\n\t\tcontainerRuntimeFactoryType,\n\t\t{\n\t\t\tdefaultFactory: dataStoreFactory,\n\t\t\tregistryEntries: registryEntries ?? [\n\t\t\t\t[dataStoreFactory.type, Promise.resolve(dataStoreFactory)],\n\t\t\t],\n\t\t\trequestHandlers: [innerRequestHandler],\n\t\t\truntimeOptions: { summaryOptions: defaultSummaryOptions },\n\t\t},\n\t);\n\n\tconst loader = provider.createLoader([[provider.defaultCodeDetails, runtimeFactory]], {\n\t\tconfigProvider,\n\t\tlogger,\n\t});\n\treturn createSummarizerCore(container, loader, summaryVersion);\n}\n\n/**\n * Creates a summarizer client from the given container and returns the summarizer client's IContainer and ISummarizer.\n * The ISummarizer can be used to generate on-demand summaries. The IContainer can be used to fetch data stores, etc.\n *\n * Can pass in a test config provider to enable/disable features.\n * @internal\n */\nexport async function createSummarizer(\n\tprovider: ITestObjectProvider,\n\tcontainer: IContainer,\n\tconfig?: ITestContainerConfig,\n\tsummaryVersion?: string,\n\tlogger?: ITelemetryBaseLogger,\n): Promise<{ container: IContainer; summarizer: ISummarizer }> {\n\tconst testContainerConfig: ITestContainerConfig = {\n\t\t...config,\n\t\truntimeOptions: {\n\t\t\t...config?.runtimeOptions,\n\t\t\tsummaryOptions: config?.runtimeOptions?.summaryOptions ?? defaultSummaryOptions,\n\t\t},\n\t\tloaderProps: {\n\t\t\t...config?.loaderProps,\n\t\t\tconfigProvider: config?.loaderProps?.configProvider ?? mockConfigProvider(),\n\t\t\tlogger,\n\t\t},\n\t};\n\tconst loader = provider.makeTestLoader(testContainerConfig);\n\treturn createSummarizerCore(container, loader, summaryVersion);\n}\n\n/**\n * Summarizes on demand and returns the summary tree, the version number and the reference sequence number of the\n * submitted summary.\n *\n * @param summarizer - The ISummarizer to use to summarize on demand\n * @param inputs - Either the reason string or the full IOnDemandSummarizeOptions.\n * Defaults to the reason \"end-to-end test\".\n * @internal\n */\nexport async function summarizeNow(\n\tsummarizer: ISummarizer,\n\tinputs: string | IOnDemandSummarizeOptions = \"end-to-end test\",\n) {\n\tconst options: IOnDemandSummarizeOptions =\n\t\ttypeof inputs === \"string\" ? { reason: inputs } : inputs;\n\tconst result = summarizer.summarizeOnDemand(options);\n\n\tconst submitResult = await timeoutAwait(result.summarySubmitted);\n\tif (!submitResult.success) {\n\t\tif (typeof submitResult.error !== \"string\") {\n\t\t\tsubmitResult.error.data = submitResult.data;\n\t\t}\n\t\tthrow submitResult.error;\n\t}\n\tassert(\n\t\tsubmitResult.data.stage === \"submit\",\n\t\t\"on-demand summary submitted data stage should be submit\",\n\t);\n\tassert(submitResult.data.summaryTree !== undefined, \"summary tree should exist\");\n\n\tconst broadcastResult = await timeoutAwait(result.summaryOpBroadcasted);\n\tif (!broadcastResult.success) {\n\t\tthrow broadcastResult.error;\n\t}\n\n\tconst ackNackResult = await timeoutAwait(result.receivedSummaryAckOrNack);\n\tif (!ackNackResult.success) {\n\t\tthrow ackNackResult.error;\n\t}\n\n\tawait new Promise((resolve) => process.nextTick(resolve));\n\n\treturn {\n\t\tsummaryTree: submitResult.data.summaryTree,\n\t\tsummaryVersion: ackNackResult.data.summaryAckOp.contents.handle,\n\t\tsummaryRefSeq: submitResult.data.referenceSequenceNumber,\n\t};\n}\n"]}
1
+ {"version":3,"file":"TestSummaryUtils.js","sourceRoot":"","sources":["../src/TestSummaryUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uDAAuF;AACvF,2DAAoD;AACpD,iFAA8F;AAY9F,2EAAkE;AAOlE,+CAAmD;AACnD,qDAA8D;AAC9D,iDAA8C;AAC9C,uHAAsH;AAEtH,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAE1C,KAAK,UAAU,oBAAoB,CAClC,SAAqB,EACrB,MAAmB,EACnB,cAAuB;IAEvB,MAAM,WAAW,GAAG,MAAM,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACvD,IAAI,WAAW,KAAK,SAAS,EAAE;QAC9B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;KAC7C;IAED,MAAM,OAAO,GAAa;QACzB,OAAO,EAAE;YACR,CAAC,oCAAY,CAAC,KAAK,CAAC,EAAE,KAAK;YAC3B,CAAC,oCAAY,CAAC,aAAa,CAAC,EAAE;gBAC7B,YAAY,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;gBACpC,IAAI,EAAE,oBAAoB;aAC1B;YACD,CAAC,iCAAY,CAAC,iBAAiB,CAAC,EAAE,IAAI;YACtC,CAAC,oCAAY,CAAC,OAAO,CAAC,EAAE,cAAc;SACtC;QACD,GAAG,EAAE,WAAW;KAChB,CAAC;IACF,MAAM,mBAAmB,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1D,MAAM,IAAA,2CAA0B,EAAC,mBAAmB,CAAC,CAAC;IAEtD,MAAM,WAAW,GAChB,MAAM,mBAAmB,CAAC,aAAa,EAAE,CAAC;IAC3C,IAAI,WAAW,EAAE,WAAW,KAAK,SAAS,EAAE;QAC3C,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;KAC/D;IAED,OAAO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2BAA2B,CAAC,CAAC;IAEjF,MAAM,eAAe,GAAG,MAAM,IAAA,2BAAY,EAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACxE,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE;QAC7B,MAAM,eAAe,CAAC,KAAK,CAAC;KAC5B;IAED,MAAM,aAAa,GAAG,MAAM,IAAA,2BAAY,EAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAC1E,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;QAC3B,MAAM,aAAa,CAAC,KAAK,CAAC;KAC1B;IAED,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IAE1D,OAAO;QACN,WAAW,EAAE,YAAY,CAAC,IAAI,CAAC,WAAW;QAC1C,cAAc,EAAE,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM;QAC/D,aAAa,EAAE,YAAY,CAAC,IAAI,CAAC,uBAAuB;KACxD,CAAC;AACH,CAAC;AAtCD,oCAsCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ContainerRuntimeFactoryWithDefaultDataStore } from \"@fluidframework/aqueduct\";\nimport { assert } from \"@fluidframework/core-utils\";\nimport { IContainer, IHostLoader, LoaderHeader } from \"@fluidframework/container-definitions\";\nimport {\n\tIOnDemandSummarizeOptions,\n\tISummarizer,\n\tISummaryRuntimeOptions,\n} from \"@fluidframework/container-runtime\";\nimport {\n\tITelemetryBaseLogger,\n\tFluidObject,\n\tIRequest,\n\tIConfigProviderBase,\n} from \"@fluidframework/core-interfaces\";\nimport { DriverHeader } from \"@fluidframework/driver-definitions\";\nimport {\n\tIContainerRuntimeBase,\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport { ITestContainerConfig, ITestObjectProvider } from \"./testObjectProvider\";\nimport { mockConfigProvider } from \"./TestConfigs\";\nimport { waitForContainerConnection } from \"./containerUtils\";\nimport { timeoutAwait } from \"./timeoutUtils\";\nimport { createContainerRuntimeFactoryWithDefaultDataStore } from \"./testContainerRuntimeFactoryWithDefaultDataStore\";\n\nconst summarizerClientType = \"summarizer\";\n\nasync function createSummarizerCore(\n\tcontainer: IContainer,\n\tloader: IHostLoader,\n\tsummaryVersion?: string,\n) {\n\tconst absoluteUrl = await container.getAbsoluteUrl(\"\");\n\tif (absoluteUrl === undefined) {\n\t\tthrow new Error(\"URL could not be resolved\");\n\t}\n\n\tconst request: IRequest = {\n\t\theaders: {\n\t\t\t[LoaderHeader.cache]: false,\n\t\t\t[LoaderHeader.clientDetails]: {\n\t\t\t\tcapabilities: { interactive: false },\n\t\t\t\ttype: summarizerClientType,\n\t\t\t},\n\t\t\t[DriverHeader.summarizingClient]: true,\n\t\t\t[LoaderHeader.version]: summaryVersion,\n\t\t},\n\t\turl: absoluteUrl,\n\t};\n\tconst summarizerContainer = await loader.resolve(request);\n\tawait waitForContainerConnection(summarizerContainer);\n\n\tconst fluidObject: FluidObject<ISummarizer> | undefined =\n\t\tawait summarizerContainer.getEntryPoint();\n\tif (fluidObject?.ISummarizer === undefined) {\n\t\tthrow new Error(\"Fluid object does not implement ISummarizer\");\n\t}\n\n\treturn {\n\t\tcontainer: summarizerContainer,\n\t\tsummarizer: fluidObject.ISummarizer,\n\t};\n}\n\nconst defaultSummaryOptions: ISummaryRuntimeOptions = {\n\tsummaryConfigOverrides: {\n\t\tstate: \"disableHeuristics\",\n\t\tmaxAckWaitTime: 20000, // Some of the AFR tests take a long time to ack.\n\t\tmaxOpsSinceLastSummary: 7000,\n\t\tinitialSummarizerDelayMs: 0,\n\t},\n};\n\n/**\n * Creates a summarizer client from the given container and data store factory, and returns the summarizer client's\n * IContainer and ISummarizer.\n * The ISummarizer can be used to generate on-demand summaries. The IContainer can be used to fetch data stores, etc.\n * @internal\n */\nexport async function createSummarizerFromFactory(\n\tprovider: ITestObjectProvider,\n\tcontainer: IContainer,\n\tdataStoreFactory: IFluidDataStoreFactory,\n\tsummaryVersion?: string,\n\tcontainerRuntimeFactoryType = ContainerRuntimeFactoryWithDefaultDataStore,\n\tregistryEntries?: NamedFluidDataStoreRegistryEntries,\n\tlogger?: ITelemetryBaseLogger,\n\tconfigProvider: IConfigProviderBase = mockConfigProvider(),\n): Promise<{ container: IContainer; summarizer: ISummarizer }> {\n\tconst innerRequestHandler = async (request: IRequest, runtime: IContainerRuntimeBase) =>\n\t\truntime.IFluidHandleContext.resolveHandle(request);\n\tconst runtimeFactory = createContainerRuntimeFactoryWithDefaultDataStore(\n\t\tcontainerRuntimeFactoryType,\n\t\t{\n\t\t\tdefaultFactory: dataStoreFactory,\n\t\t\tregistryEntries: registryEntries ?? [\n\t\t\t\t[dataStoreFactory.type, Promise.resolve(dataStoreFactory)],\n\t\t\t],\n\t\t\trequestHandlers: [innerRequestHandler],\n\t\t\truntimeOptions: { summaryOptions: defaultSummaryOptions },\n\t\t},\n\t);\n\n\tconst loader = provider.createLoader([[provider.defaultCodeDetails, runtimeFactory]], {\n\t\tconfigProvider,\n\t\tlogger,\n\t});\n\treturn createSummarizerCore(container, loader, summaryVersion);\n}\n\n/**\n * Creates a summarizer client from the given container and returns the summarizer client's IContainer and ISummarizer.\n * The ISummarizer can be used to generate on-demand summaries. The IContainer can be used to fetch data stores, etc.\n *\n * Can pass in a test config provider to enable/disable features.\n * @internal\n */\nexport async function createSummarizer(\n\tprovider: ITestObjectProvider,\n\tcontainer: IContainer,\n\tconfig?: ITestContainerConfig,\n\tsummaryVersion?: string,\n\tlogger?: ITelemetryBaseLogger,\n): Promise<{ container: IContainer; summarizer: ISummarizer }> {\n\tconst testContainerConfig: ITestContainerConfig = {\n\t\t...config,\n\t\truntimeOptions: {\n\t\t\t...config?.runtimeOptions,\n\t\t\tsummaryOptions: config?.runtimeOptions?.summaryOptions ?? defaultSummaryOptions,\n\t\t},\n\t\tloaderProps: {\n\t\t\t...config?.loaderProps,\n\t\t\tconfigProvider: config?.loaderProps?.configProvider ?? mockConfigProvider(),\n\t\t\tlogger,\n\t\t},\n\t};\n\tconst loader = provider.makeTestLoader(testContainerConfig);\n\treturn createSummarizerCore(container, loader, summaryVersion);\n}\n\n/**\n * Summarizes on demand and returns the summary tree, the version number and the reference sequence number of the\n * submitted summary.\n *\n * @param summarizer - The ISummarizer to use to summarize on demand\n * @param inputs - Either the reason string or the full IOnDemandSummarizeOptions.\n * Defaults to the reason \"end-to-end test\".\n * @internal\n */\nexport async function summarizeNow(\n\tsummarizer: ISummarizer,\n\tinputs: string | IOnDemandSummarizeOptions = \"end-to-end test\",\n) {\n\tconst options: IOnDemandSummarizeOptions =\n\t\ttypeof inputs === \"string\" ? { reason: inputs } : inputs;\n\tconst result = summarizer.summarizeOnDemand(options);\n\n\tconst submitResult = await timeoutAwait(result.summarySubmitted);\n\tif (!submitResult.success) {\n\t\tif (typeof submitResult.error !== \"string\") {\n\t\t\tsubmitResult.error.data = submitResult.data;\n\t\t}\n\t\tthrow submitResult.error;\n\t}\n\tassert(\n\t\tsubmitResult.data.stage === \"submit\",\n\t\t\"on-demand summary submitted data stage should be submit\",\n\t);\n\tassert(submitResult.data.summaryTree !== undefined, \"summary tree should exist\");\n\n\tconst broadcastResult = await timeoutAwait(result.summaryOpBroadcasted);\n\tif (!broadcastResult.success) {\n\t\tthrow broadcastResult.error;\n\t}\n\n\tconst ackNackResult = await timeoutAwait(result.receivedSummaryAckOrNack);\n\tif (!ackNackResult.success) {\n\t\tthrow ackNackResult.error;\n\t}\n\n\tawait new Promise((resolve) => process.nextTick(resolve));\n\n\treturn {\n\t\tsummaryTree: submitResult.data.summaryTree,\n\t\tsummaryVersion: ackNackResult.data.summaryAckOp.contents.handle,\n\t\tsummaryRefSeq: submitResult.data.referenceSequenceNumber,\n\t};\n}\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/test-utils";
8
- export declare const pkgVersion = "2.0.0-dev.7.4.0.216897";
8
+ export declare const pkgVersion = "2.0.0-dev.7.4.0.217884";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/test-utils";
11
- exports.pkgVersion = "2.0.0-dev.7.4.0.216897";
11
+ exports.pkgVersion = "2.0.0-dev.7.4.0.217884";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,wBAAwB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.0.0-dev.7.4.0.216897\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,wBAAwB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.0.0-dev.7.4.0.217884\";\n"]}
@@ -1,12 +1,49 @@
1
+ import { ConfigTypes } from '@fluidframework/core-interfaces';
2
+ import { ContainerRuntime } from '@fluidframework/container-runtime';
3
+ import { FluidDataStoreRuntime } from '@fluidframework/datastore';
4
+ import { FluidObject } from '@fluidframework/core-interfaces';
5
+ import { IChannelFactory } from '@fluidframework/datastore-definitions';
6
+ import { IConfigProviderBase } from '@fluidframework/core-interfaces';
7
+ import { IContainer } from '@fluidframework/container-definitions';
8
+ import { IContainerContext } from '@fluidframework/container-definitions';
9
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
10
+ import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
11
+ import { IDataStore } from '@fluidframework/runtime-definitions';
12
+ import { IDocumentService } from '@fluidframework/driver-definitions';
13
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
14
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
15
+ import { IFluidCodeDetails } from '@fluidframework/container-definitions';
16
+ import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
17
+ import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
18
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
19
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
20
+ import { IFluidHandle } from '@fluidframework/core-interfaces';
21
+ import { IFluidLoadable } from '@fluidframework/core-interfaces';
22
+ import { IFluidModule } from '@fluidframework/container-definitions';
23
+ import { IHostLoader } from '@fluidframework/container-definitions';
24
+ import { ILoaderOptions } from '@fluidframework/container-definitions';
25
+ import { ILoaderProps } from '@fluidframework/container-loader';
26
+ import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime';
27
+ import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
28
+ import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
29
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
30
+ import { IProvideRuntimeFactory } from '@fluidframework/container-definitions';
31
+ import { IRequest } from '@fluidframework/core-interfaces';
1
32
  import { IRequestHeader } from '@fluidframework/core-interfaces';
33
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
34
+ import { IResponse } from '@fluidframework/core-interfaces';
35
+ import { IRuntime } from '@fluidframework/container-definitions';
36
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
2
37
  import { ISummaryTree } from '@fluidframework/protocol-definitions';
38
+ import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
39
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
40
+ import { ITelemetryGenericEvent } from '@fluidframework/core-interfaces';
41
+ import { IUrlResolver } from '@fluidframework/driver-definitions';
42
+ import { Loader } from '@fluidframework/container-loader';
43
+ import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
3
44
 
4
45
  /* Excluded from this release type: ChannelFactoryRegistry */
5
46
 
6
- /* Excluded from this release type: ConfigTypes */
7
-
8
- /* Excluded from this release type: ContainerRuntime */
9
-
10
47
  /* Excluded from this release type: ContainerRuntimeFactoryWithDefaultDataStore */
11
48
 
12
49
  /* Excluded from this release type: createAndAttachContainer */
@@ -29,100 +66,28 @@ import { ISummaryTree } from '@fluidframework/protocol-definitions';
29
66
 
30
67
  /* Excluded from this release type: EventAndErrorTrackingLogger */
31
68
 
32
- /* Excluded from this release type: FluidDataStoreRuntime */
33
-
34
69
  /* Excluded from this release type: fluidEntryPoint */
35
70
 
36
- /* Excluded from this release type: FluidObject */
37
-
38
71
  /* Excluded from this release type: getContainerEntryPointBackCompat */
39
72
 
40
73
  /* Excluded from this release type: getDataStoreEntryPointBackCompat */
41
74
 
42
75
  /* Excluded from this release type: getUnexpectedLogErrorException */
43
76
 
44
- /* Excluded from this release type: IChannelFactory */
45
-
46
77
  /* Excluded from this release type: ICodeDetailsLoader */
47
78
 
48
- /* Excluded from this release type: IConfigProviderBase */
49
-
50
- /* Excluded from this release type: IContainer */
51
-
52
- /* Excluded from this release type: IContainerContext */
53
-
54
- /* Excluded from this release type: IContainerRuntime */
55
-
56
- /* Excluded from this release type: IContainerRuntimeOptions */
57
-
58
- /* Excluded from this release type: IDataStore */
59
-
60
79
  /* Excluded from this release type: IDocumentIdStrategy */
61
80
 
62
- /* Excluded from this release type: IDocumentService */
63
-
64
- /* Excluded from this release type: IDocumentServiceFactory */
65
-
66
- /* Excluded from this release type: IDocumentStorageService */
67
-
68
- /* Excluded from this release type: IFluidCodeDetails */
69
-
70
- /* Excluded from this release type: IFluidDataStoreChannel */
71
-
72
- /* Excluded from this release type: IFluidDataStoreContext */
73
-
74
- /* Excluded from this release type: IFluidDataStoreFactory */
75
-
76
- /* Excluded from this release type: IFluidDataStoreRuntime */
77
-
78
- /* Excluded from this release type: IFluidHandle */
79
-
80
- /* Excluded from this release type: IFluidLoadable */
81
-
82
- /* Excluded from this release type: IFluidModule */
83
-
84
81
  /* Excluded from this release type: IFluidModuleWithDetails */
85
82
 
86
- /* Excluded from this release type: IHostLoader */
87
-
88
- /* Excluded from this release type: ILoaderOptions */
89
-
90
- /* Excluded from this release type: ILoaderProps */
91
-
92
- /* Excluded from this release type: IOnDemandSummarizeOptions */
93
-
94
83
  /* Excluded from this release type: IOpProcessingController */
95
84
 
96
- /* Excluded from this release type: IProvideFluidCodeDetailsComparer */
97
-
98
- /* Excluded from this release type: IProvideFluidDataStoreFactory */
99
-
100
- /* Excluded from this release type: IProvideFluidDataStoreRegistry */
101
-
102
- /* Excluded from this release type: IProvideRuntimeFactory */
103
-
104
85
  /* Excluded from this release type: IProvideTestFluidObject */
105
86
 
106
- /* Excluded from this release type: IRequest */
107
-
108
- /* Excluded from this release type: IResolvedUrl */
109
-
110
- /* Excluded from this release type: IResponse */
111
-
112
- /* Excluded from this release type: IRuntime */
113
-
114
87
  /* Excluded from this release type: ISharedMap */
115
88
 
116
89
  /* Excluded from this release type: ISummarizer */
117
90
 
118
- /* Excluded from this release type: ISummaryContext */
119
-
120
- /* Excluded from this release type: ITelemetryBaseEvent */
121
-
122
- /* Excluded from this release type: ITelemetryBaseLogger */
123
-
124
- /* Excluded from this release type: ITelemetryGenericEvent */
125
-
126
91
  /* Excluded from this release type: ITestContainerConfig */
127
92
 
128
93
  /* Excluded from this release type: ITestDriver */
@@ -131,18 +96,12 @@ import { ISummaryTree } from '@fluidframework/protocol-definitions';
131
96
 
132
97
  /* Excluded from this release type: ITestObjectProvider */
133
98
 
134
- /* Excluded from this release type: IUrlResolver */
135
-
136
- /* Excluded from this release type: Loader */
137
-
138
99
  /* Excluded from this release type: LoaderContainerTracker */
139
100
 
140
101
  /* Excluded from this release type: LocalCodeLoader */
141
102
 
142
103
  /* Excluded from this release type: mockConfigProvider */
143
104
 
144
- /* Excluded from this release type: NamedFluidDataStoreRegistryEntries */
145
-
146
105
  /* Excluded from this release type: retryWithEventualValue */
147
106
 
148
107
  /* Excluded from this release type: RuntimeRequestHandler */
@@ -1,11 +1,11 @@
1
- import { ConfigTypes } from '@fluidframework/telemetry-utils';
1
+ import { ConfigTypes } from '@fluidframework/core-interfaces';
2
2
  import { ContainerRuntime } from '@fluidframework/container-runtime';
3
3
  import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct';
4
4
  import { FluidDataStoreRuntime } from '@fluidframework/datastore';
5
5
  import { FluidObject } from '@fluidframework/core-interfaces';
6
6
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
7
7
  import { ICodeDetailsLoader } from '@fluidframework/container-definitions';
8
- import { IConfigProviderBase } from '@fluidframework/telemetry-utils';
8
+ import { IConfigProviderBase } from '@fluidframework/core-interfaces';
9
9
  import { IContainer } from '@fluidframework/container-definitions';
10
10
  import { IContainerContext } from '@fluidframework/container-definitions';
11
11
  import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
@@ -1,12 +1,49 @@
1
+ import { ConfigTypes } from '@fluidframework/core-interfaces';
2
+ import { ContainerRuntime } from '@fluidframework/container-runtime';
3
+ import { FluidDataStoreRuntime } from '@fluidframework/datastore';
4
+ import { FluidObject } from '@fluidframework/core-interfaces';
5
+ import { IChannelFactory } from '@fluidframework/datastore-definitions';
6
+ import { IConfigProviderBase } from '@fluidframework/core-interfaces';
7
+ import { IContainer } from '@fluidframework/container-definitions';
8
+ import { IContainerContext } from '@fluidframework/container-definitions';
9
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
10
+ import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
11
+ import { IDataStore } from '@fluidframework/runtime-definitions';
12
+ import { IDocumentService } from '@fluidframework/driver-definitions';
13
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
14
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
15
+ import { IFluidCodeDetails } from '@fluidframework/container-definitions';
16
+ import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
17
+ import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
18
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
19
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
20
+ import { IFluidHandle } from '@fluidframework/core-interfaces';
21
+ import { IFluidLoadable } from '@fluidframework/core-interfaces';
22
+ import { IFluidModule } from '@fluidframework/container-definitions';
23
+ import { IHostLoader } from '@fluidframework/container-definitions';
24
+ import { ILoaderOptions } from '@fluidframework/container-definitions';
25
+ import { ILoaderProps } from '@fluidframework/container-loader';
26
+ import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime';
27
+ import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
28
+ import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
29
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
30
+ import { IProvideRuntimeFactory } from '@fluidframework/container-definitions';
31
+ import { IRequest } from '@fluidframework/core-interfaces';
1
32
  import { IRequestHeader } from '@fluidframework/core-interfaces';
33
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
34
+ import { IResponse } from '@fluidframework/core-interfaces';
35
+ import { IRuntime } from '@fluidframework/container-definitions';
36
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
2
37
  import { ISummaryTree } from '@fluidframework/protocol-definitions';
38
+ import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
39
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
40
+ import { ITelemetryGenericEvent } from '@fluidframework/core-interfaces';
41
+ import { IUrlResolver } from '@fluidframework/driver-definitions';
42
+ import { Loader } from '@fluidframework/container-loader';
43
+ import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
3
44
 
4
45
  /* Excluded from this release type: ChannelFactoryRegistry */
5
46
 
6
- /* Excluded from this release type: ConfigTypes */
7
-
8
- /* Excluded from this release type: ContainerRuntime */
9
-
10
47
  /* Excluded from this release type: ContainerRuntimeFactoryWithDefaultDataStore */
11
48
 
12
49
  /* Excluded from this release type: createAndAttachContainer */
@@ -29,100 +66,28 @@ import { ISummaryTree } from '@fluidframework/protocol-definitions';
29
66
 
30
67
  /* Excluded from this release type: EventAndErrorTrackingLogger */
31
68
 
32
- /* Excluded from this release type: FluidDataStoreRuntime */
33
-
34
69
  /* Excluded from this release type: fluidEntryPoint */
35
70
 
36
- /* Excluded from this release type: FluidObject */
37
-
38
71
  /* Excluded from this release type: getContainerEntryPointBackCompat */
39
72
 
40
73
  /* Excluded from this release type: getDataStoreEntryPointBackCompat */
41
74
 
42
75
  /* Excluded from this release type: getUnexpectedLogErrorException */
43
76
 
44
- /* Excluded from this release type: IChannelFactory */
45
-
46
77
  /* Excluded from this release type: ICodeDetailsLoader */
47
78
 
48
- /* Excluded from this release type: IConfigProviderBase */
49
-
50
- /* Excluded from this release type: IContainer */
51
-
52
- /* Excluded from this release type: IContainerContext */
53
-
54
- /* Excluded from this release type: IContainerRuntime */
55
-
56
- /* Excluded from this release type: IContainerRuntimeOptions */
57
-
58
- /* Excluded from this release type: IDataStore */
59
-
60
79
  /* Excluded from this release type: IDocumentIdStrategy */
61
80
 
62
- /* Excluded from this release type: IDocumentService */
63
-
64
- /* Excluded from this release type: IDocumentServiceFactory */
65
-
66
- /* Excluded from this release type: IDocumentStorageService */
67
-
68
- /* Excluded from this release type: IFluidCodeDetails */
69
-
70
- /* Excluded from this release type: IFluidDataStoreChannel */
71
-
72
- /* Excluded from this release type: IFluidDataStoreContext */
73
-
74
- /* Excluded from this release type: IFluidDataStoreFactory */
75
-
76
- /* Excluded from this release type: IFluidDataStoreRuntime */
77
-
78
- /* Excluded from this release type: IFluidHandle */
79
-
80
- /* Excluded from this release type: IFluidLoadable */
81
-
82
- /* Excluded from this release type: IFluidModule */
83
-
84
81
  /* Excluded from this release type: IFluidModuleWithDetails */
85
82
 
86
- /* Excluded from this release type: IHostLoader */
87
-
88
- /* Excluded from this release type: ILoaderOptions */
89
-
90
- /* Excluded from this release type: ILoaderProps */
91
-
92
- /* Excluded from this release type: IOnDemandSummarizeOptions */
93
-
94
83
  /* Excluded from this release type: IOpProcessingController */
95
84
 
96
- /* Excluded from this release type: IProvideFluidCodeDetailsComparer */
97
-
98
- /* Excluded from this release type: IProvideFluidDataStoreFactory */
99
-
100
- /* Excluded from this release type: IProvideFluidDataStoreRegistry */
101
-
102
- /* Excluded from this release type: IProvideRuntimeFactory */
103
-
104
85
  /* Excluded from this release type: IProvideTestFluidObject */
105
86
 
106
- /* Excluded from this release type: IRequest */
107
-
108
- /* Excluded from this release type: IResolvedUrl */
109
-
110
- /* Excluded from this release type: IResponse */
111
-
112
- /* Excluded from this release type: IRuntime */
113
-
114
87
  /* Excluded from this release type: ISharedMap */
115
88
 
116
89
  /* Excluded from this release type: ISummarizer */
117
90
 
118
- /* Excluded from this release type: ISummaryContext */
119
-
120
- /* Excluded from this release type: ITelemetryBaseEvent */
121
-
122
- /* Excluded from this release type: ITelemetryBaseLogger */
123
-
124
- /* Excluded from this release type: ITelemetryGenericEvent */
125
-
126
91
  /* Excluded from this release type: ITestContainerConfig */
127
92
 
128
93
  /* Excluded from this release type: ITestDriver */
@@ -131,18 +96,12 @@ import { ISummaryTree } from '@fluidframework/protocol-definitions';
131
96
 
132
97
  /* Excluded from this release type: ITestObjectProvider */
133
98
 
134
- /* Excluded from this release type: IUrlResolver */
135
-
136
- /* Excluded from this release type: Loader */
137
-
138
99
  /* Excluded from this release type: LoaderContainerTracker */
139
100
 
140
101
  /* Excluded from this release type: LocalCodeLoader */
141
102
 
142
103
  /* Excluded from this release type: mockConfigProvider */
143
104
 
144
- /* Excluded from this release type: NamedFluidDataStoreRegistryEntries */
145
-
146
105
  /* Excluded from this release type: retryWithEventualValue */
147
106
 
148
107
  /* Excluded from this release type: RuntimeRequestHandler */
@@ -1,11 +1,11 @@
1
- import { ConfigTypes } from '@fluidframework/telemetry-utils';
1
+ import { ConfigTypes } from '@fluidframework/core-interfaces';
2
2
  import { ContainerRuntime } from '@fluidframework/container-runtime';
3
3
  import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct';
4
4
  import { FluidDataStoreRuntime } from '@fluidframework/datastore';
5
5
  import { FluidObject } from '@fluidframework/core-interfaces';
6
6
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
7
7
  import { ICodeDetailsLoader } from '@fluidframework/container-definitions';
8
- import { IConfigProviderBase } from '@fluidframework/telemetry-utils';
8
+ import { IConfigProviderBase } from '@fluidframework/core-interfaces';
9
9
  import { IContainer } from '@fluidframework/container-definitions';
10
10
  import { IContainerContext } from '@fluidframework/container-definitions';
11
11
  import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/test-utils",
3
- "version": "2.0.0-dev.7.4.0.216897",
3
+ "version": "2.0.0-dev.7.4.0.217884",
4
4
  "description": "Utilities for Fluid tests",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -34,27 +34,27 @@
34
34
  "temp-directory": "nyc/.nyc_output"
35
35
  },
36
36
  "dependencies": {
37
- "@fluidframework/aqueduct": "2.0.0-dev.7.4.0.216897",
38
- "@fluidframework/container-definitions": "2.0.0-dev.7.4.0.216897",
39
- "@fluidframework/container-loader": "2.0.0-dev.7.4.0.216897",
40
- "@fluidframework/container-runtime": "2.0.0-dev.7.4.0.216897",
41
- "@fluidframework/container-runtime-definitions": "2.0.0-dev.7.4.0.216897",
42
- "@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.216897",
43
- "@fluidframework/core-utils": "2.0.0-dev.7.4.0.216897",
44
- "@fluidframework/datastore": "2.0.0-dev.7.4.0.216897",
45
- "@fluidframework/datastore-definitions": "2.0.0-dev.7.4.0.216897",
46
- "@fluidframework/driver-definitions": "2.0.0-dev.7.4.0.216897",
47
- "@fluidframework/driver-utils": "2.0.0-dev.7.4.0.216897",
48
- "@fluidframework/local-driver": "2.0.0-dev.7.4.0.216897",
49
- "@fluidframework/map": "2.0.0-dev.7.4.0.216897",
37
+ "@fluidframework/aqueduct": "2.0.0-dev.7.4.0.217884",
38
+ "@fluidframework/container-definitions": "2.0.0-dev.7.4.0.217884",
39
+ "@fluidframework/container-loader": "2.0.0-dev.7.4.0.217884",
40
+ "@fluidframework/container-runtime": "2.0.0-dev.7.4.0.217884",
41
+ "@fluidframework/container-runtime-definitions": "2.0.0-dev.7.4.0.217884",
42
+ "@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.217884",
43
+ "@fluidframework/core-utils": "2.0.0-dev.7.4.0.217884",
44
+ "@fluidframework/datastore": "2.0.0-dev.7.4.0.217884",
45
+ "@fluidframework/datastore-definitions": "2.0.0-dev.7.4.0.217884",
46
+ "@fluidframework/driver-definitions": "2.0.0-dev.7.4.0.217884",
47
+ "@fluidframework/driver-utils": "2.0.0-dev.7.4.0.217884",
48
+ "@fluidframework/local-driver": "2.0.0-dev.7.4.0.217884",
49
+ "@fluidframework/map": "2.0.0-dev.7.4.0.217884",
50
50
  "@fluidframework/protocol-definitions": "^3.0.0",
51
- "@fluidframework/request-handler": "2.0.0-dev.7.4.0.216897",
52
- "@fluidframework/routerlicious-driver": "2.0.0-dev.7.4.0.216897",
53
- "@fluidframework/runtime-definitions": "2.0.0-dev.7.4.0.216897",
54
- "@fluidframework/runtime-utils": "2.0.0-dev.7.4.0.216897",
55
- "@fluidframework/telemetry-utils": "2.0.0-dev.7.4.0.216897",
56
- "@fluidframework/test-driver-definitions": "2.0.0-dev.7.4.0.216897",
57
- "@fluidframework/test-runtime-utils": "2.0.0-dev.7.4.0.216897",
51
+ "@fluidframework/request-handler": "2.0.0-dev.7.4.0.217884",
52
+ "@fluidframework/routerlicious-driver": "2.0.0-dev.7.4.0.217884",
53
+ "@fluidframework/runtime-definitions": "2.0.0-dev.7.4.0.217884",
54
+ "@fluidframework/runtime-utils": "2.0.0-dev.7.4.0.217884",
55
+ "@fluidframework/telemetry-utils": "2.0.0-dev.7.4.0.217884",
56
+ "@fluidframework/test-driver-definitions": "2.0.0-dev.7.4.0.217884",
57
+ "@fluidframework/test-runtime-utils": "2.0.0-dev.7.4.0.217884",
58
58
  "best-random": "^1.0.0",
59
59
  "debug": "^4.3.4",
60
60
  "uuid": "^9.0.0"
@@ -64,13 +64,13 @@
64
64
  "@fluidframework/build-common": "^2.0.3",
65
65
  "@fluidframework/build-tools": "^0.28.0",
66
66
  "@fluidframework/eslint-config-fluid": "^3.1.0",
67
- "@fluidframework/mocha-test-setup": "2.0.0-dev.7.4.0.216897",
67
+ "@fluidframework/mocha-test-setup": "2.0.0-dev.7.4.0.217884",
68
68
  "@fluidframework/test-utils-previous": "npm:@fluidframework/test-utils@2.0.0-internal.7.2.0",
69
69
  "@microsoft/api-extractor": "^7.38.3",
70
70
  "@types/debug": "^4.1.5",
71
71
  "@types/diff": "^3.5.1",
72
72
  "@types/mocha": "^9.1.1",
73
- "@types/node": "^16.18.38",
73
+ "@types/node": "^18.19.0",
74
74
  "@types/uuid": "^9.0.2",
75
75
  "c8": "^7.7.1",
76
76
  "copyfiles": "^2.4.1",
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { ConfigTypes, IConfigProviderBase } from "@fluidframework/telemetry-utils";
6
+ import { ConfigTypes, IConfigProviderBase } from "@fluidframework/core-interfaces";
7
7
 
8
8
  /**
9
9
  * @internal
@@ -11,14 +11,18 @@ import {
11
11
  ISummarizer,
12
12
  ISummaryRuntimeOptions,
13
13
  } from "@fluidframework/container-runtime";
14
- import { ITelemetryBaseLogger, FluidObject, IRequest } from "@fluidframework/core-interfaces";
14
+ import {
15
+ ITelemetryBaseLogger,
16
+ FluidObject,
17
+ IRequest,
18
+ IConfigProviderBase,
19
+ } from "@fluidframework/core-interfaces";
15
20
  import { DriverHeader } from "@fluidframework/driver-definitions";
16
21
  import {
17
22
  IContainerRuntimeBase,
18
23
  IFluidDataStoreFactory,
19
24
  NamedFluidDataStoreRegistryEntries,
20
25
  } from "@fluidframework/runtime-definitions";
21
- import { IConfigProviderBase } from "@fluidframework/telemetry-utils";
22
26
  import { ITestContainerConfig, ITestObjectProvider } from "./testObjectProvider";
23
27
  import { mockConfigProvider } from "./TestConfigs";
24
28
  import { waitForContainerConnection } from "./containerUtils";
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/test-utils";
9
- export const pkgVersion = "2.0.0-dev.7.4.0.216897";
9
+ export const pkgVersion = "2.0.0-dev.7.4.0.217884";