BuildsApiControllerTest

24

tests

0

failures

0

ignored

0.346s

duration

100%

successful

Tests

Test Duration Result
a token in the query string is not accepted — the header is the only way 0.038s passed
branches answers the branch listing with unknown placeholders for never-built branches 0.012s passed
cancel answers 202 for a cancellable build and 404 otherwise 0.023s passed
cancel does not reach a build of another repository 0.009s passed
cancel without token answers 403 0.008s passed
current answers only the served repository's builds 0.008s passed
current answers the running builds with live status and log size 0.010s passed
current log answers the tail from the requested offset 0.012s passed
current log of a build in another repository answers 404 0.015s passed
current log of an unknown artifact key answers 404 0.008s passed
delete of an unknown artifact key answers 404 without pruning 0.011s passed
delete removes the result and prunes its artifacts 0.018s passed
history answers all builds 0.012s passed
history carries the permanent URL on the branch's latest green build only 0.009s passed
latest answers one entry per branch with lowercase status and duration in seconds 0.017s passed
restart enqueues the branch's last recorded commit, also for branch names with slashes 0.016s passed
restart of a branch without recorded builds and without origin counterpart answers 404 0.009s passed
restart of a named build re-runs its build definition on its real branch 0.010s passed
restart of a never-built branch enqueues its origin head commit 0.009s passed
restart with a wrong token answers 403 and does not build 0.054s passed
restart with atOriginHead builds the branch as it is now, not the recorded commit 0.010s passed
restart with atOriginHead keeps the recorded build definition and its real branch 0.010s passed
restart with atOriginHead of a branch gone from origin is refused by name 0.008s passed
the repository-scoped routes answer for the named repository and 404 for an unknown name 0.010s passed

Standard output

Creating nstance of class de.hoennig.werkator.server.BuildsApiControllerTest