@fluidframework/test-utils 2.0.0-dev-rc.3.0.0.254513 → 2.0.0-dev-rc.3.0.0.254674

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.
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.42.3"
9
- }
10
- ]
11
- }
@@ -1,310 +0,0 @@
1
- import { ConfigTypes } from '@fluidframework/core-interfaces';
2
- import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
3
- import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct/internal';
4
- import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
5
- import { FluidObject } from '@fluidframework/core-interfaces';
6
- import { IChannelFactory } from '@fluidframework/datastore-definitions';
7
- import { ICodeDetailsLoader } from '@fluidframework/container-definitions/internal';
8
- import { IConfigProviderBase } from '@fluidframework/core-interfaces';
9
- import { IContainer } from '@fluidframework/container-definitions/internal';
10
- import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
- import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
13
- import { IDataStore } from '@fluidframework/runtime-definitions/internal';
14
- import { IDocumentService } from '@fluidframework/driver-definitions/internal';
15
- import { IDocumentServiceFactory } from '@fluidframework/driver-definitions/internal';
16
- import { IDocumentStorageService } from '@fluidframework/driver-definitions/internal';
17
- import { IFluidCodeDetails } from '@fluidframework/container-definitions/internal';
18
- import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
19
- import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
20
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
21
- import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
22
- import { IFluidHandle } from '@fluidframework/core-interfaces';
23
- import { IFluidLoadable } from '@fluidframework/core-interfaces';
24
- import { IFluidModule } from '@fluidframework/container-definitions/internal';
25
- import { IFluidModuleWithDetails } from '@fluidframework/container-definitions/internal';
26
- import { IHostLoader } from '@fluidframework/container-definitions/internal';
27
- import { ILoaderOptions } from '@fluidframework/container-definitions/internal';
28
- import { ILoaderProps } from '@fluidframework/container-loader/internal';
29
- import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime/internal';
30
- import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions/internal';
31
- import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
32
- import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
33
- import { IProvideRuntimeFactory } from '@fluidframework/container-definitions/internal';
34
- import { IRequest } from '@fluidframework/core-interfaces';
35
- import { IRequestHeader } from '@fluidframework/core-interfaces';
36
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
37
- import { IResponse } from '@fluidframework/core-interfaces';
38
- import { IRuntime } from '@fluidframework/container-definitions/internal';
39
- import { ISharedMap } from '@fluidframework/map';
40
- import { ISummarizer } from '@fluidframework/container-runtime/internal';
41
- import { ISummaryContext } from '@fluidframework/driver-definitions/internal';
42
- import { ISummaryTree } from '@fluidframework/protocol-definitions';
43
- import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
44
- import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
45
- import { ITelemetryGenericEventExt } from '@fluidframework/telemetry-utils';
46
- import { ITelemetryLoggerPropertyBags } from '@fluidframework/telemetry-utils/internal';
47
- import { ITestDriver } from '@fluid-internal/test-driver-definitions';
48
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
49
- import { Loader } from '@fluidframework/container-loader/internal';
50
- import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
51
- import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
52
-
53
- /* Excluded from this release type: ChannelFactoryRegistry */
54
-
55
- /**
56
- * Creates a detached Container and attaches it.
57
- * @param source - The code details used to create the Container.
58
- * @param loader - The loader to use to initialize the container.
59
- * @param attachRequest - The request to create new from.
60
- * @alpha
61
- */
62
- export declare function createAndAttachContainer(source: IFluidCodeDetails, loader: IHostLoader, attachRequest: IRequest): Promise<IContainer>;
63
-
64
- /* Excluded from this release type: createContainerRuntimeFactoryWithDefaultDataStore */
65
-
66
- /* Excluded from this release type: createDocumentId */
67
-
68
- /* Excluded from this release type: createLoader */
69
-
70
- /* Excluded from this release type: createSummarizer */
71
-
72
- /* Excluded from this release type: createSummarizerCore */
73
-
74
- /* Excluded from this release type: createSummarizerFromFactory */
75
-
76
- /* Excluded from this release type: createTestConfigProvider */
77
-
78
- /* Excluded from this release type: createTestContainerRuntimeFactory */
79
-
80
- /* Excluded from this release type: DataObjectFactoryType */
81
-
82
- /* Excluded from this release type: defaultTimeoutDurationMs */
83
-
84
- /* Excluded from this release type: EventAndErrorTrackingLogger */
85
-
86
- /* Excluded from this release type: fluidEntryPoint */
87
-
88
- /* Excluded from this release type: getContainerEntryPointBackCompat */
89
-
90
- /* Excluded from this release type: getDataStoreEntryPointBackCompat */
91
-
92
- /* Excluded from this release type: getUnexpectedLogErrorException */
93
-
94
- /* Excluded from this release type: IDocumentIdStrategy */
95
-
96
- /* Excluded from this release type: IEventAndErrorTrackingLogger */
97
-
98
- /**
99
- * @alpha
100
- */
101
- export declare interface IOpProcessingController {
102
- processIncoming(...containers: IContainer[]): Promise<void>;
103
- processOutgoing(...containers: IContainer[]): Promise<void>;
104
- pauseProcessing(...containers: IContainer[]): Promise<void>;
105
- resumeProcessing(...containers: IContainer[]): void;
106
- }
107
-
108
- /**
109
- * @alpha
110
- */
111
- export declare interface IProvideTestFluidObject {
112
- readonly ITestFluidObject: ITestFluidObject;
113
- }
114
-
115
- /* Excluded from this release type: ITestConfigProvider */
116
-
117
- /* Excluded from this release type: ITestContainerConfig */
118
-
119
- /**
120
- * @alpha
121
- */
122
- export declare interface ITestFluidObject extends IProvideTestFluidObject, IFluidLoadable {
123
- root: ISharedMap;
124
- readonly runtime: IFluidDataStoreRuntime;
125
- readonly channel: IFluidDataStoreChannel;
126
- readonly context: IFluidDataStoreContext;
127
- getSharedObject<T = any>(id: string): Promise<T>;
128
- }
129
-
130
- /* Excluded from this release type: ITestObjectProvider */
131
-
132
- /**
133
- * @alpha
134
- */
135
- export declare class LoaderContainerTracker implements IOpProcessingController {
136
- private readonly syncSummarizerClients;
137
- private readonly containers;
138
- private lastProposalSeqNum;
139
- constructor(syncSummarizerClients?: boolean);
140
- /**
141
- * Add a loader to start to track any container created from them
142
- * @param loader - loader to start tracking any container created.
143
- */
144
- add<LoaderType extends IHostLoader>(loader: LoaderType): void;
145
- /**
146
- * Utility function to add container to be tracked.
147
- *
148
- * @param container - container to add
149
- */
150
- private addContainer;
151
- /**
152
- * Keep track of the trailing NoOp that was sent so we can discount them in the clientSequenceNumber tracking.
153
- * The server might coalesce them with other ops, or a single NoOp, or delay it if it don't think it is necessary.
154
- *
155
- * @param container - the container to track
156
- * @param record - the record to update the trailing op information
157
- */
158
- private trackTrailingNoOps;
159
- private trackLastProposal;
160
- /**
161
- * Reset the tracker, closing all containers and stop tracking them.
162
- */
163
- reset(): void;
164
- /**
165
- * Make sure all the tracked containers are synchronized.
166
- *
167
- * No isDirty (non-readonly) containers
168
- * No extra clientId in quorum of any container that is not tracked and still opened.
169
- * - i.e. no pending Join/Leave message.
170
- * No unresolved proposal (minSeqNum \>= lastProposalSeqNum)
171
- * lastSequenceNumber of all container is the same
172
- * clientSequenceNumberObserved is the same as clientSequenceNumber sent
173
- * - this overlaps with !isDirty, but include task scheduler ops.
174
- * - Trailing NoOp is tracked and don't count as pending ops.
175
- *
176
- * Containers that are already pause will resume process and paused again once
177
- * everything is synchronized. Containers that aren't paused will remain unpaused when this
178
- * function returns.
179
- */
180
- ensureSynchronized(...containers: IContainer[]): Promise<void>;
181
- /**
182
- * Utility to calculate the set of clientId per container in quorum that is NOT associated with
183
- * any container we tracked, indicating there is a pending join or leave op that we need to wait.
184
- *
185
- * @param containersToApply - the set of containers to check
186
- */
187
- private getPendingClients;
188
- /**
189
- * Utility to check synchronization based on sequence number
190
- * See ensureSynchronized for more detail
191
- *
192
- * @param containersToApply - the set of containers to check
193
- */
194
- private needSequenceNumberSynchronize;
195
- private containerIndexStrings;
196
- /**
197
- * Utility to wait for any clientId in quorum that is NOT associated with any container we
198
- * tracked, indicating there is a pending join or leave op that we need to wait.
199
- *
200
- * Note that this function doesn't account for container that got added after we started waiting
201
- *
202
- * @param containersToApply - the set of containers to wait for any inbound ops for
203
- */
204
- private waitForPendingClients;
205
- /**
206
- * Utility to wait for any inbound ops from a set of containers
207
- * @param containersToApply - the set of containers to wait for any inbound ops for
208
- */
209
- private waitForAnyInboundOps;
210
- /**
211
- * Resume all queue activities on all paused tracked containers and return them
212
- */
213
- resumeProcessing(...containers: IContainer[]): IContainer[];
214
- /**
215
- * Pause all queue activities on the containers given, or all tracked containers
216
- * Any containers given that is not tracked will be ignored.
217
- *
218
- * When a container is paused, it is assumed that we want fine grain control over op
219
- * sequencing. This function will prepare the container and force it into write mode to
220
- * avoid missing join messages or change the sequence of event when switching from read to
221
- * write mode.
222
- */
223
- pauseProcessing(...containers: IContainer[]): Promise<void>;
224
- /**
225
- * When a container is paused, it is assumed that we want fine grain control over op
226
- * sequencing. This function will prepare the container and force it into write mode to
227
- * avoid missing join messages or change the sequence of event when switching from read to
228
- * write mode.
229
- *
230
- * @param container - the container to pause
231
- * @param record - the record for the container
232
- */
233
- private pauseContainer;
234
- /**
235
- * Pause all queue activities on all tracked containers, and resume only
236
- * inbound to process ops until it is idle. All queues are left in the paused state
237
- * after the function.
238
- *
239
- * Pausing will switch the container to write mode. See `pauseProcessing`
240
- */
241
- processIncoming(...containers: IContainer[]): Promise<void>;
242
- /**
243
- * Pause all queue activities on all tracked containers, and resume only
244
- * outbound to process ops until it is idle. All queues are left in the paused state
245
- * after the function.
246
- *
247
- * Pausing will switch the container to write mode. See `pauseProcessing`
248
- */
249
- processOutgoing(...containers: IContainer[]): Promise<void>;
250
- /**
251
- * Implementation of processIncoming and processOutgoing
252
- */
253
- private processQueue;
254
- /**
255
- * Utility to set up listener to track the outbound ops until it round trip back
256
- * Returns a function to remove the handler after it is done.
257
- *
258
- * @param container - the container to setup
259
- * @param inflightTracker - a map to track the clientSequenceNumber per container it expect to get ops back
260
- */
261
- private setupInOutTracker;
262
- /**
263
- * Setup debug traces for connection and ops
264
- */
265
- private setupTrace;
266
- /**
267
- * Filter out the opened containers based on param.
268
- * @param containers - The container to filter to. If the array is empty, it means don't filter and return
269
- * all open containers.
270
- */
271
- private getContainers;
272
- }
273
-
274
- /* Excluded from this release type: LocalCodeLoader */
275
-
276
- /* Excluded from this release type: retryWithEventualValue */
277
-
278
- /* Excluded from this release type: summarizeNow */
279
-
280
- /* Excluded from this release type: SummaryInfo */
281
-
282
- /* Excluded from this release type: SupportedExportInterfaces */
283
-
284
- /* Excluded from this release type: TestContainerRuntimeFactory */
285
-
286
- /* Excluded from this release type: TestFluidObject */
287
-
288
- /* Excluded from this release type: TestFluidObjectFactory */
289
-
290
- /* Excluded from this release type: TestObjectProvider */
291
-
292
- /* Excluded from this release type: TestObjectProviderWithVersionedLoad */
293
-
294
- /* Excluded from this release type: timeoutAwait */
295
-
296
- /* Excluded from this release type: timeoutPromise */
297
-
298
- /* Excluded from this release type: TimeoutWithError */
299
-
300
- /* Excluded from this release type: TimeoutWithValue */
301
-
302
- /* Excluded from this release type: waitForContainerConnection */
303
-
304
- /* Excluded from this release type: wrapDocumentService */
305
-
306
- /* Excluded from this release type: wrapDocumentServiceFactory */
307
-
308
- /* Excluded from this release type: wrapDocumentStorageService */
309
-
310
- export { }
@@ -1,211 +0,0 @@
1
- import { ConfigTypes } from '@fluidframework/core-interfaces';
2
- import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
3
- import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct/internal';
4
- import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
5
- import { FluidObject } from '@fluidframework/core-interfaces';
6
- import { IChannelFactory } from '@fluidframework/datastore-definitions';
7
- import { ICodeDetailsLoader } from '@fluidframework/container-definitions/internal';
8
- import { IConfigProviderBase } from '@fluidframework/core-interfaces';
9
- import { IContainer } from '@fluidframework/container-definitions/internal';
10
- import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
- import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
13
- import { IDataStore } from '@fluidframework/runtime-definitions/internal';
14
- import { IDocumentService } from '@fluidframework/driver-definitions/internal';
15
- import { IDocumentServiceFactory } from '@fluidframework/driver-definitions/internal';
16
- import { IDocumentStorageService } from '@fluidframework/driver-definitions/internal';
17
- import { IFluidCodeDetails } from '@fluidframework/container-definitions/internal';
18
- import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
19
- import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
20
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
21
- import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
22
- import { IFluidHandle } from '@fluidframework/core-interfaces';
23
- import { IFluidLoadable } from '@fluidframework/core-interfaces';
24
- import { IFluidModule } from '@fluidframework/container-definitions/internal';
25
- import { IFluidModuleWithDetails } from '@fluidframework/container-definitions/internal';
26
- import { IHostLoader } from '@fluidframework/container-definitions/internal';
27
- import { ILoaderOptions } from '@fluidframework/container-definitions/internal';
28
- import { ILoaderProps } from '@fluidframework/container-loader/internal';
29
- import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime/internal';
30
- import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions/internal';
31
- import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
32
- import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
33
- import { IProvideRuntimeFactory } from '@fluidframework/container-definitions/internal';
34
- import { IRequest } from '@fluidframework/core-interfaces';
35
- import { IRequestHeader } from '@fluidframework/core-interfaces';
36
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
37
- import { IResponse } from '@fluidframework/core-interfaces';
38
- import { IRuntime } from '@fluidframework/container-definitions/internal';
39
- import { ISharedMap } from '@fluidframework/map';
40
- import { ISummarizer } from '@fluidframework/container-runtime/internal';
41
- import { ISummaryContext } from '@fluidframework/driver-definitions/internal';
42
- import { ISummaryTree } from '@fluidframework/protocol-definitions';
43
- import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
44
- import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
45
- import { ITelemetryGenericEventExt } from '@fluidframework/telemetry-utils';
46
- import { ITelemetryLoggerPropertyBags } from '@fluidframework/telemetry-utils/internal';
47
- import { ITestDriver } from '@fluid-internal/test-driver-definitions';
48
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
49
- import { Loader } from '@fluidframework/container-loader/internal';
50
- import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
51
- import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
52
-
53
- /* Excluded from this release type: ChannelFactoryRegistry */
54
-
55
- /* Excluded from this release type: ContainerRuntime */
56
-
57
- /* Excluded from this release type: ContainerRuntimeFactoryWithDefaultDataStore */
58
-
59
- /* Excluded from this release type: createAndAttachContainer */
60
-
61
- /* Excluded from this release type: createContainerRuntimeFactoryWithDefaultDataStore */
62
-
63
- /* Excluded from this release type: createDocumentId */
64
-
65
- /* Excluded from this release type: createLoader */
66
-
67
- /* Excluded from this release type: createSummarizer */
68
-
69
- /* Excluded from this release type: createSummarizerCore */
70
-
71
- /* Excluded from this release type: createSummarizerFromFactory */
72
-
73
- /* Excluded from this release type: createTestConfigProvider */
74
-
75
- /* Excluded from this release type: createTestContainerRuntimeFactory */
76
-
77
- /* Excluded from this release type: DataObjectFactoryType */
78
-
79
- /* Excluded from this release type: defaultTimeoutDurationMs */
80
-
81
- /* Excluded from this release type: EventAndErrorTrackingLogger */
82
-
83
- /* Excluded from this release type: FluidDataStoreRuntime */
84
-
85
- /* Excluded from this release type: fluidEntryPoint */
86
-
87
- /* Excluded from this release type: getContainerEntryPointBackCompat */
88
-
89
- /* Excluded from this release type: getDataStoreEntryPointBackCompat */
90
-
91
- /* Excluded from this release type: getUnexpectedLogErrorException */
92
-
93
- /* Excluded from this release type: ICodeDetailsLoader */
94
-
95
- /* Excluded from this release type: IContainer */
96
-
97
- /* Excluded from this release type: IContainerContext */
98
-
99
- /* Excluded from this release type: IContainerRuntime */
100
-
101
- /* Excluded from this release type: IContainerRuntimeOptions */
102
-
103
- /* Excluded from this release type: IDataStore */
104
-
105
- /* Excluded from this release type: IDocumentIdStrategy */
106
-
107
- /* Excluded from this release type: IDocumentService */
108
-
109
- /* Excluded from this release type: IDocumentServiceFactory */
110
-
111
- /* Excluded from this release type: IDocumentStorageService */
112
-
113
- /* Excluded from this release type: IEventAndErrorTrackingLogger */
114
-
115
- /* Excluded from this release type: IFluidCodeDetails */
116
-
117
- /* Excluded from this release type: IFluidDataStoreChannel */
118
-
119
- /* Excluded from this release type: IFluidDataStoreContext */
120
-
121
- /* Excluded from this release type: IFluidDataStoreFactory */
122
-
123
- /* Excluded from this release type: IFluidModule */
124
-
125
- /* Excluded from this release type: IFluidModuleWithDetails */
126
-
127
- /* Excluded from this release type: IHostLoader */
128
-
129
- /* Excluded from this release type: ILoaderOptions */
130
-
131
- /* Excluded from this release type: ILoaderProps */
132
-
133
- /* Excluded from this release type: IOnDemandSummarizeOptions */
134
-
135
- /* Excluded from this release type: IOpProcessingController */
136
-
137
- /* Excluded from this release type: IProvideFluidCodeDetailsComparer */
138
-
139
- /* Excluded from this release type: IProvideFluidDataStoreFactory */
140
-
141
- /* Excluded from this release type: IProvideFluidDataStoreRegistry */
142
-
143
- /* Excluded from this release type: IProvideRuntimeFactory */
144
-
145
- /* Excluded from this release type: IProvideTestFluidObject */
146
-
147
- /* Excluded from this release type: IResolvedUrl */
148
-
149
- /* Excluded from this release type: IRuntime */
150
-
151
- /* Excluded from this release type: ISummarizer */
152
-
153
- /* Excluded from this release type: ISummaryContext */
154
-
155
- /* Excluded from this release type: ITelemetryLoggerPropertyBags */
156
-
157
- /* Excluded from this release type: ITestConfigProvider */
158
-
159
- /* Excluded from this release type: ITestContainerConfig */
160
-
161
- /* Excluded from this release type: ITestFluidObject */
162
-
163
- /* Excluded from this release type: ITestObjectProvider */
164
-
165
- /* Excluded from this release type: IUrlResolver */
166
-
167
- /* Excluded from this release type: Loader */
168
-
169
- /* Excluded from this release type: LoaderContainerTracker */
170
-
171
- /* Excluded from this release type: LocalCodeLoader */
172
-
173
- /* Excluded from this release type: NamedFluidDataStoreRegistryEntries */
174
-
175
- /* Excluded from this release type: retryWithEventualValue */
176
-
177
- /* Excluded from this release type: RuntimeRequestHandler */
178
-
179
- /* Excluded from this release type: summarizeNow */
180
-
181
- /* Excluded from this release type: SummaryInfo */
182
-
183
- /* Excluded from this release type: SupportedExportInterfaces */
184
-
185
- /* Excluded from this release type: TestContainerRuntimeFactory */
186
-
187
- /* Excluded from this release type: TestFluidObject */
188
-
189
- /* Excluded from this release type: TestFluidObjectFactory */
190
-
191
- /* Excluded from this release type: TestObjectProvider */
192
-
193
- /* Excluded from this release type: TestObjectProviderWithVersionedLoad */
194
-
195
- /* Excluded from this release type: timeoutAwait */
196
-
197
- /* Excluded from this release type: timeoutPromise */
198
-
199
- /* Excluded from this release type: TimeoutWithError */
200
-
201
- /* Excluded from this release type: TimeoutWithValue */
202
-
203
- /* Excluded from this release type: waitForContainerConnection */
204
-
205
- /* Excluded from this release type: wrapDocumentService */
206
-
207
- /* Excluded from this release type: wrapDocumentServiceFactory */
208
-
209
- /* Excluded from this release type: wrapDocumentStorageService */
210
-
211
- export { }