mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[vcloud_director] fix models vms_test so is pending on empty environment
This commit is contained in:
parent
ea63eaa1eb
commit
8837189b7a
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?
|
pending if Fog.mocking?
|
||||||
vapp = vapps.detect {|v| v.vms.size >= 1}
|
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
|
vms = vapp.vms
|
||||||
vm = vms.first
|
vm = vms.first
|
||||||
|
|
Loading…
Reference in a new issue