vmpooler/spec/unit
Glenn Sarti f433056734 (GH-185) Remove unnecessary checks in check_ready_vm
Previously in check_ready_vm, if the VM is powered off, the VM is moved in
redis however the function doesn't return there, and instead then checks if the
hostname is the same, and then if TCP socket 22 is open. This is unnecessary as
we already know the VM is turned off so of course the hostname is wrong and TCP
22 is unavailable. The same applies for the VM hostname.

This commit instead returns after it is found a VM is no longer ready.  This
commit also amends the spec tests for the correct behaviour.
2017-03-01 20:28:36 -08:00
..
api (POOLER-73) Restructure tests to unit and integration directories 2017-02-17 13:04:38 -08:00
pool_manager_spec.rb (GH-185) Remove unnecessary checks in check_ready_vm 2017-03-01 20:28:36 -08:00