Skip to main content

elasticsearch-store / test-helpers/elasticsearch

test-helpers/elasticsearch

Index

Interfaces

InterfaceDescription
TestENVClientInfo-

Variables

removeTypeTest

const removeTypeTest: boolean

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:17

Functions

cleanupIndex()

cleanupIndex(client, index, template?): Promise<void>

Parameters

ParameterType
clientany
indexstring
template?string

Returns

Promise<void>

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:37


cleanupIndexStore()

cleanupIndexStore(store): Promise<void>

Parameters

ParameterType
storeIndexStore<any>

Returns

Promise<void>

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:164


createMappingFromDatatype()

createMappingFromDatatype(client, dataType, type, overrides): any

Parameters

ParameterTypeDefault value
clientClientundefined
dataTypeDataTypeundefined
typestring'_doc'
overridesobject{}

Returns

any

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:82


formatUploadData()

formatUploadData(index, data, apiCompatibility): Record<string, any>[]

Parameters

ParameterTypeDefault value
indexstringundefined
dataany[]undefined
apiCompatibilitybooleanfalse

Returns

Record<string, any>[]

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:137


getTestENVClientInfo()

getTestENVClientInfo(): TestENVClientInfo

Returns

TestENVClientInfo

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:213


getTotalFormat()

getTotalFormat(distribution, majorVersion, n): number | object

Parameters

ParameterType
distributionstring
majorVersionnumber
nnumber

Returns

number | object

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:251


makeClient()

makeClient(): Promise<Client>

Returns

Promise<Client>

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:19


populateIndex()

populateIndex(client, index, dataType, records, type): Promise<void>

Parameters

ParameterTypeDefault value
clientClientundefined
indexstringundefined
dataTypeDataTypeundefined
recordsany[]undefined
typestring'_doc'

Returns

Promise<void>

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:94


upload()

upload(client, queryBody, data): Promise<Record<string, any>>

Parameters

ParameterType
clientany
queryBodyany
dataany[]

Returns

Promise<Record<string, any>>

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:69


waitForData()

waitForData(client, index, count, timeout): Promise<void>

Parameters

ParameterTypeDefault value
clientanyundefined
indexstringundefined
countnumberundefined
timeoutnumber5000

Returns

Promise<void>

Source

elasticsearch-store/src/test-helpers/elasticsearch.ts:170