BuildsApiControllerTest

20

tests

0

failures

0

ignored

0.212s

duration

100%

successful

Tests

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

Standard output

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