Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/tests/services/RunApi

Starting, reading and cancelling a test run (ui/server's /api/tests/:feature/run, runs and run/cancel).

Cockpit client (features), v0.8. Source: ui/client/features/tests/services/RunApi.ts.

Functions#

cancelRun()#

cancelRun(feature): Promise<boolean>

Defined in: ui/client/features/tests/services/RunApi.ts:35

Cancel the feature's live run (the machine's own CANCEL, the same control as the Processes drawer's).

Parameters#

feature

string

Returns#

Promise<boolean>


fetchRuns()#

fetchRuns(feature): Promise<RunReply>

Defined in: ui/client/features/tests/services/RunApi.ts:17

Where the run stands: the live run, the latest result of every test and the newest problem. Read-only.

Parameters#

feature

string

Returns#

Promise<RunReply>


startRun()#

startRun(feature, target, baseUrl): Promise<RunReply>

Defined in: ui/client/features/tests/services/RunApi.ts:26

Run every test of the feature, or the one named. baseUrl is only an address; the server checks it.

Parameters#

feature

string

target

RunTarget

baseUrl

string

Returns#

Promise<RunReply>