resources/deployments/deployment: capture the bug in a test case (failing)
resources/deployments/deployment: capture the bug in a test case (failing)

pending + already-installed should give deployment status 'inprogress'.
btw. make sure that already-installed counts towards the 'finished' status.

Issues: MEN-935

Signed-off-by: mchalczynski <3a897b56ed6fc284ae11e3e7ec3ea48d098a7178@rndity.com>

pasinskim/deployments,pasinskim/deployments,pasinskim/deployments,pasinskim/deployments