teraslice-test-harness / base-test-harness / default
Class: default<U>
A base class for the Slicer and Worker TestHarnesses
Todo
Add support for validating the asset.json?
Extended by
Type parameters
Type parameter |
---|
U extends ExecutionContext |
Constructors
new default()
new default<
U
>(job
,options
,assignment
):default
<U
>
Parameters
Parameter | Type |
---|---|
job | JobConfigParams |
options | JobHarnessOptions |
assignment | Assignment |
Returns
default
<U
>
Source
teraslice-test-harness/src/base-test-harness.ts:27
Properties
assetPaths
readonly
assetPaths:string
[]
Source
teraslice-test-harness/src/base-test-harness.ts:24
clusterType?
optional
readonly
clusterType:ClusterManagerType
Source
teraslice-test-harness/src/base-test-harness.ts:25
context
readonly
context:TestContext
Source
teraslice-test-harness/src/base-test-harness.ts:22
events
readonly
events:EventEmitter
<DefaultEventMap
>
Source
teraslice-test-harness/src/base-test-harness.ts:20
executionContext
executionContext:
U
Source
teraslice-test-harness/src/base-test-harness.ts:21
job
readonly
job:JobConfigParams
Source
teraslice-test-harness/src/base-test-harness.ts:23
Methods
initialize()
initialize():
Promise
<void
>
Initialize any test code
Returns
Promise
<void
>
Source
teraslice-test-harness/src/base-test-harness.ts:44
makeContextConfig()
protected
makeContextConfig(job
,assets
,cluster_manager_type
):Promise
<ExecutionContextConfig
>
Parameters
Parameter | Type | Default value |
---|---|---|
job | JobConfigParams | undefined |
assets | string [] | undefined |
cluster_manager_type | ClusterManagerType | 'native' |
Returns
Promise
<ExecutionContextConfig
>
Source
teraslice-test-harness/src/base-test-harness.ts:53
setClients()
setClients(
clients
):void
Parameters
Parameter | Type |
---|---|
clients | TestClientConfig [] |
Returns
void
Source
teraslice-test-harness/src/base-test-harness.ts:49
shutdown()
shutdown():
Promise
<void
>
Cleanup test code
Returns
Promise
<void
>