1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #2383 from alphagov/vms_test_fix_empty_env

[vcloud_director] fix vms_tests to be pending when run on empty environment
This commit is contained in:
Rodrigo Estebanez 2013-11-12 09:44:14 -08:00
commit 9206b64374

View file

@ -4,7 +4,8 @@ Shindo.tests("Compute::VcloudDirector | vms", ['vclouddirector', 'all']) do
pending if Fog.mocking?
vapp = vapps.detect {|v| v.vms.size >= 1}
tests("#There is more than one vm").returns(true){ vapp.vms.size >= 1 }
# we can't run these tests if there is no vapps with a vm in them
pending unless vapp
vms = vapp.vms
vm = vms.first