Skip to main content

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

Interface: TestContextAPIs

Defined in: packages/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.assetspackages/job-components/src/interfaces/context.ts:39
executionContextExecutionContextAPIAn API for registering and loading the new Job APIsExecutionContextAPIs.executionContextpackages/job-components/src/interfaces/context.ts:51
job_runnerJobRunnerAPIIncludes an API for getting a opConfig from the jobExecutionContextAPIs.job_runnerpackages/job-components/src/interfaces/context.ts:47
op_runnerOpRunnerAPIIncludes an API for getting a client from TerafoundationExecutionContextAPIs.op_runnerpackages/job-components/src/interfaces/context.ts:43

Methods

getTestClients()

getTestClients(): TestClients

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

Returns

TestClients


scrapePromMetrics()

scrapePromMetrics(): Promise<string>

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

Returns

Promise<string>


setTestClients()

setTestClients(clients): void

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

Parameters

ParameterType
clientsTestClientConfig[]

Returns

void