TestObjectProvider Class
Shared base class for test object provider. Contain code for loader and container creation and loading
Signature
export declare class TestObjectProvider implements ITestObjectProvider
Implements: ITestObjectProvider
Constructors
| Constructor | Description |
|---|---|
| (constructor)(LoaderConstructor, driver, createFluidEntryPoint) | Manage objects for loading and creating container, including the driver, loader, and OpProcessingController |
Properties
Methods
| Method | Return Type | Description |
|---|---|---|
| createContainer(entryPoint, loaderProps) | Promise<IContainer> | Create a container using a default document id and code details. Container created is automatically added to the OpProcessingController to manage op flow Only the version of the loader will vary based on compat config. The version of containerRuntime/dataRuntime used in fluidEntryPoint will be used as is from what is passed in. |
| createLoader(packageEntries, loaderProps) | Loader | Create a loader. Containers created/loaded through this loader will be added to the OpProcessingController. Only the version of the loader will vary based on compat config. The version of containerRuntime/dataRuntime used in fluidEntryPoint will be used as is from what is passed in. |
| ensureSynchronized() | Promise<void> | |
| loadContainer(entryPoint, loaderProps, requestHeader) | Promise<IContainer> | |
| loadTestContainer(testContainerConfig, requestHeader) | Promise<IContainer> | Load a container using a default document id and code details. IContainer loaded is automatically added to the OpProcessingController to manage op flow |
| makeTestContainer(testContainerConfig) | Promise<IContainer> | Make a container using a default document id and code details Container loaded is automatically added to the OpProcessingController to manage op flow |
| makeTestLoader(testContainerConfig) | Loader | Make a test loader. Containers created/loaded through this loader will be added to the OpProcessingController. The version of the loader/containerRuntime/dataRuntime may vary based on compat config of the current run |
| reset() | void | |
| resetLoaderContainerTracker(syncSummarizerClients) | void | |
| updateDocumentId(resolvedUrl) | void | |
| waitContainerToCatchUp(container) | Promise<boolean> |
Constructor Details
(constructor)
Manage objects for loading and creating container, including the driver, loader, and OpProcessingController
Signature
constructor(LoaderConstructor: typeof Loader, driver: ITestDriver, createFluidEntryPoint: (testContainerConfig?: ITestContainerConfig) => fluidEntryPoint);
Parameters
| Parameter | Type | Description |
|---|---|---|
| LoaderConstructor | typeof Loader | |
| driver | ITestDriver | |
| createFluidEntryPoint | (testContainerConfig?: ITestContainerConfig) => fluidEntryPoint | callback to create a fluidEntryPoint, with an optional set of channel name and factory for TestFluidObject |
Property Details
createFluidEntryPoint
Signature
readonly createFluidEntryPoint: (testContainerConfig?: ITestContainerConfig) => fluidEntryPoint;
Type: (testContainerConfig?: ITestContainerConfig) => fluidEntryPoint
defaultCodeDetails
Signature
get defaultCodeDetails(): IFluidCodeDetails;
Type: IFluidCodeDetails
documentId
Signature
get documentId(): string;
Type: string
documentServiceFactory
Signature
get documentServiceFactory(): IDocumentServiceFactory;
Type: IDocumentServiceFactory
driver
Signature
readonly driver: ITestDriver;
Type: ITestDriver
LoaderConstructor
Signature
readonly LoaderConstructor: typeof Loader;
Type: typeof Loader
logger
Signature
get logger(): EventAndErrorTrackingLogger;
Type: EventAndErrorTrackingLogger
opProcessingController
Signature
get opProcessingController(): IOpProcessingController;
Type: IOpProcessingController
urlResolver
Signature
get urlResolver(): IUrlResolver;
Type: IUrlResolver
Method Details
createContainer
Create a container using a default document id and code details. Container created is automatically added to the OpProcessingController to manage op flow
Only the version of the loader will vary based on compat config. The version of containerRuntime/dataRuntime used in fluidEntryPoint will be used as is from what is passed in.
Signature
createContainer(entryPoint: fluidEntryPoint, loaderProps?: Partial<ILoaderProps>): Promise<IContainer>;