MockDataSourceClient

A version of the DataSourceClient that you can use for any automated tests of your data connector.
Modify the gotUpdate field to change the behaviour of the update method.

Extends


Constructors

new MockDataSourceClient()

new MockDataSourceClient(): MockDataSourceClient

Returns

MockDataSourceClient

Overrides

DataSourceClient.constructor


Properties

gotMetadata()

gotMetadata: (keys, prefixes) => MetadataRecord[];

Assign this to your mocked update function

Parameters

ParameterType
keysstring[]
prefixesstring[]

Returns

MetadataRecord[]


gotUpdate()

gotUpdate: (request) => void;

Assign this to your mocked update function

Parameters

ParameterType
requestDataSourceRequest

Returns

void


patchedMetadata()

patchedMetadata: (patches) => MetadataPatchResponse;

Assign this to your mocked update function

Parameters

ParameterType
patchesMetadataPatch[]

Returns

MetadataPatchResponse