1 | import * as i from './interfaces';
|
2 | import { Logger } from '@terascope/utils';
|
3 | export declare function newTestSlice(request?: i.SliceRequest): i.Slice;
|
4 | export declare function newTestJobConfig(defaults?: Partial<i.JobConfig>): i.ValidatedJobConfig;
|
5 | export declare function newTestExecutionConfig(jobConfig?: Partial<i.JobConfig>): i.ExecutionConfig;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare function newTestExecutionContext(type: i.Assignment, config: i.ExecutionConfig): i.LegacyExecutionContext;
|
11 | export interface CachedClients {
|
12 | [prop: string]: any;
|
13 | }
|
14 | export interface TestClientConfig {
|
15 | type: string;
|
16 | create: i.ClientFactoryFn;
|
17 | config?: object;
|
18 | endpoint?: string;
|
19 | }
|
20 | export interface TestClientsByEndpoint {
|
21 | [endpoint: string]: any;
|
22 | }
|
23 | export interface TestClients {
|
24 | [type: string]: TestClientsByEndpoint;
|
25 | }
|
26 | export interface TestContextAPIs extends i.ContextAPIs {
|
27 | setTestClients(clients: TestClientConfig[]): void;
|
28 | getTestClients(): TestClients;
|
29 | }
|
30 | export interface TestContextOptions {
|
31 | assignment?: i.Assignment;
|
32 | clients?: TestClientConfig[];
|
33 | }
|
34 | export declare class TestContext implements i.Context {
|
35 | logger: Logger;
|
36 | sysconfig: i.SysConfig;
|
37 | cluster: i.ContextClusterConfig;
|
38 | apis: TestContextAPIs | i.WorkerContextAPIs | i.ContextAPIs;
|
39 | foundation: i.LegacyFoundationApis;
|
40 | name: string;
|
41 | assignment: i.Assignment;
|
42 | platform: string;
|
43 | arch: string;
|
44 | constructor(testName: string, options?: TestContextOptions);
|
45 | }
|
46 | //# sourceMappingURL=test-helpers.d.ts.map |
\ | No newline at end of file |