@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
Property | Type | Description | Inherited from | Defined in |
---|---|---|---|---|
assets | AssetsAPI | Includes an API for getting a client from Terafoundation | ExecutionContextAPIs .assets | packages/job-components/src/interfaces/context.ts:39 |
executionContext | ExecutionContextAPI | An API for registering and loading the new Job APIs | ExecutionContextAPIs .executionContext | packages/job-components/src/interfaces/context.ts:51 |
job_runner | JobRunnerAPI | Includes an API for getting a opConfig from the job | ExecutionContextAPIs .job_runner | packages/job-components/src/interfaces/context.ts:47 |
op_runner | OpRunnerAPI | Includes an API for getting a client from Terafoundation | ExecutionContextAPIs .op_runner | packages/job-components/src/interfaces/context.ts:43 |
Methods
getTestClients()
getTestClients():
TestClients
Defined in: packages/job-components/src/test-helpers.ts:72
Returns
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
Parameter | Type |
---|---|
clients | TestClientConfig [] |
Returns
void