Fix unit tests for hooks.
Fix unit tests for hooks.

Reviewed-by: imsnah



ganeti/ganeti,apyrgio/snf-ganeti,bitemyapp/ganeti,leshchevds/ganeti,apyrgio/ganeti,andir/ganeti,bitemyapp/ganeti,yiannist/ganeti,andir/ganeti,yiannist/ganeti,leshchevds/ganeti,mbakke/ganeti,ganeti/ganeti,ganeti-github-testing/ganeti-test-1,grnet/snf-ganeti,ganeti-github-testing/ganeti-test-1,onponomarev/ganeti,andir/ganeti,apyrgio/ganeti,dimara/ganeti,leshchevds/ganeti,grnet/snf-ganeti,yiannist/ganeti,mbakke/ganeti,mbakke/ganeti,onponomarev/ganeti,apyrgio/snf-ganeti,dimara/ganeti,ganeti/ganeti