Teraslice Test Harness: `Job Test Harness Default`
job-test-harness.default
A test harness for both the Slicer and Fetcher, utilizing both the Slicer and Worker test harnesses.
This is useful for testing Readers.
Todo
Handle more than one worker?
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new default(job
, options
): default
Parameters
Name | Type |
---|---|
job | Partial <ValidatedJobConfig > |
options | JobHarnessOptions |
Returns
Defined in
teraslice-test-harness/src/job-test-harness.ts:31
Properties
slicerHarness
• Readonly
slicerHarness: default
Defined in
teraslice-test-harness/src/job-test-harness.ts:29
workerHarness
• Readonly
workerHarness: default
Defined in
teraslice-test-harness/src/job-test-harness.ts:28
Accessors
apis
• get
apis(): JobAPIInstances
Returns
JobAPIInstances
Defined in
teraslice-test-harness/src/job-test-harness.ts:48
processors
• get
processors(): default
<OpConfig
>[]
Returns
default
<OpConfig
>[]
Defined in
teraslice-test-harness/src/job-test-harness.ts:44
Methods
fetcher
▸ fetcher<T
>(): T
Type parameters
Name | Type |
---|---|
T | extends default <OpConfig > = default <OpConfig > |
Returns
T
Defined in
teraslice-test-harness/src/job-test-harness.ts:40
initialize
▸ initialize(recoveryData?
): Promise
<void
>
Initialize the Operations in both of the Slicer and Worker contexts.
Parameters
Name | Type | Description |
---|---|---|
recoveryData? | SlicerRecoveryData [] | is an array of starting points to recover from the retry data is only passed to slicer |
Returns
Promise
<void
>
Defined in
teraslice-test-harness/src/job-test-harness.ts:67
run
▸ run(): Promise
<BatchedResults
>
Create a batch of slices in the Slicer context and then run each slice on the Worker context in series.
Returns
Promise
<BatchedResults
>
batches of results
Defined in
teraslice-test-harness/src/job-test-harness.ts:78
runToCompletion
▸ runToCompletion(): Promise
<SliceResults
[]>
Gathers all slices from slicer and run them,
Returns
Promise
<SliceResults
[]>
an array of objects containing the slice and the data the reader generated
Defined in
teraslice-test-harness/src/job-test-harness.ts:131
setClients
▸ setClients(clients
): Promise
<void
>
Set the Terafoundation Clients on both the Slicer and Worker contexts
Parameters
Name | Type |
---|---|
clients | TestClientConfig [] |
Returns
Promise
<void
>
Defined in
teraslice-test-harness/src/job-test-harness.ts:56
shutdown
▸ shutdown(): Promise
<void
>
Shutdown both the Worker and Slicer test harness
Returns
Promise
<void
>
Defined in
teraslice-test-harness/src/job-test-harness.ts:151
slicer
▸ slicer<T
>(): T
Type parameters
Name | Type |
---|---|
T | extends default <OpConfig > = default <OpConfig > |
Returns
T