BuildsApiControllerTest

20

tests

0

failures

0

ignored

0.348s

duration

100%

successful

Tests

Test Duration Result
a token in the query string is not accepted — the header is the only way 0.014s passed
branches answers the branch listing with unknown placeholders for never-built branches 0.023s passed
cancel answers 202 for a cancellable build and 404 otherwise 0.012s passed
cancel without token answers 403 0.010s passed
current answers the running builds with live status and log size 0.014s passed
current log answers the tail from the requested offset 0.036s passed
current log of an unknown artifact key answers 404 0.018s passed
delete of an unknown artifact key answers 404 without pruning 0.012s passed
delete removes the result and prunes its artifacts 0.028s passed
history answers all builds 0.014s 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.032s passed
restart enqueues the branch's last recorded commit, also for branch names with slashes 0.028s 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.017s passed
restart of a never-built branch enqueues its origin head commit 0.012s passed
restart with a wrong token answers 403 and does not build 0.013s passed
restart with atOriginHead builds the branch as it is now, not the recorded commit 0.021s passed
restart with atOriginHead keeps the recorded build definition and its real branch 0.011s passed
restart with atOriginHead of a branch gone from origin is refused by name 0.015s passed

Standard output

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