From f284ba6d19dc3d6c8fa81763f5450d02283d7d76 Mon Sep 17 00:00:00 2001 From: Dan Abel Date: Wed, 13 Nov 2013 12:29:44 +0000 Subject: [PATCH] [vcloud_director] tests become pending not failing on absense of testable resources --- tests/vcloud_director/models/compute/vapp_tests.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/vcloud_director/models/compute/vapp_tests.rb b/tests/vcloud_director/models/compute/vapp_tests.rb index c15333dce..3c44527a2 100644 --- a/tests/vcloud_director/models/compute/vapp_tests.rb +++ b/tests/vcloud_director/models/compute/vapp_tests.rb @@ -2,7 +2,9 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'helper')) Shindo.tests("Compute::VcloudDirector | vapps", ['vclouddirector', 'all']) do pending if Fog.mocking? - tests("#There is more than one vapp").returns(true){ vdc.vapps.size >= 1 } + + # unless there is atleast one vapp we cannot run these tests + pending if vdc.vapps.empty? vapps = vdc.vapps vapp = vapps.first