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:
commit
9206b64374
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue