Skip to main content

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

Interface: TestContextAPIs

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

Extends

Properties

assets

assets: AssetsAPI

Includes an API for getting a client from Terafoundation

Inherited from

ExecutionContextAPIs.assets

Source

packages/job-components/src/interfaces/context.ts:39


executionContext

executionContext: ExecutionContextAPI

An API for registering and loading the new Job APIs

Inherited from

ExecutionContextAPIs.executionContext

Source

packages/job-components/src/interfaces/context.ts:51


job_runner

job_runner: JobRunnerAPI

Includes an API for getting a opConfig from the job

Inherited from

ExecutionContextAPIs.job_runner

Source

packages/job-components/src/interfaces/context.ts:47


op_runner

op_runner: OpRunnerAPI

Includes an API for getting a client from Terafoundation

Inherited from

ExecutionContextAPIs.op_runner

Source

packages/job-components/src/interfaces/context.ts:43

Methods

getTestClients()

getTestClients(): TestClients

Returns

TestClients

Source

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


scrapePromMetrics()

scrapePromMetrics(): Promise<string>

Returns

Promise<string>

Source

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


setTestClients()

setTestClients(clients): void

Parameters

ParameterType
clientsTestClientConfig[]

Returns

void

Source

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