Skip to main content

@terascope/job-components / test-helpers / TestContextAPIs

Interface: TestContextAPIs

Defined in: job-components/src/test-helpers.ts:70

Context includes the type definitions for the APIs available to Worker or Slicer. This extends the Terafoundation Context.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
assetsAssetsAPIIncludes an API for getting a client from TerafoundationExecutionContextAPIs.assetsjob-components/src/interfaces/context.ts:37
executionContextExecutionContextAPIAn API for registering and loading the new Job APIsExecutionContextAPIs.executionContextjob-components/src/interfaces/context.ts:49
job_runnerJobRunnerAPIIncludes an API for getting a opConfig from the jobExecutionContextAPIs.job_runnerjob-components/src/interfaces/context.ts:45
op_runnerOpRunnerAPIIncludes an API for getting a client from TerafoundationExecutionContextAPIs.op_runnerjob-components/src/interfaces/context.ts:41

Methods

getTestClients()

getTestClients(): TestClients

Defined in: job-components/src/test-helpers.ts:72

Returns

TestClients


scrapePromMetrics()

scrapePromMetrics(): Promise<string>

Defined in: job-components/src/test-helpers.ts:73

Returns

Promise<string>


setTestClients()

setTestClients(clients): void

Defined in: job-components/src/test-helpers.ts:71

Parameters

ParameterType
clientsTestClientConfig[]

Returns

void