Sha256: f4046e29e711ccb1d9016680731ce18421bb0f57e4e6434c0beba156962ea5b9
Contents?: true
Size: 982 Bytes
Versions: 28
Compression:
Stored size: 982 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), 'helper')) Shindo.tests("Compute::VcloudDirector | vapp_templates", ['vclouddirector', 'all']) do # unless there is atleast one vapp we cannot run these tests pending if vdc.vapp_templates.empty? vapp_templates = vdc.vapp_templates vapp = vapp_templates.first tests("Compute::VcloudDirector | vapp_template") do tests("#id").returns(String){ vapp.id.class } tests("#name").returns(String){ vapp.name.class } tests("#href").returns(String){ vapp.href.class } tests("#type").returns("application/vnd.vmware.vcloud.vAppTemplate+xml"){ vapp.type } end tests("Compute::VcloudDirector | vapp_template vms") do tests("#vms").returns(Fog::Compute::VcloudDirector::TemplateVms) { vapp.vms.class } pending if Fog.mock? vm = vapp.vms[0] tests("#name").returns(String){ vm.name.class } tests("#type").returns("application/vnd.vmware.vcloud.vm+xml"){ vm.type } end end
Version data entries
28 entries across 26 versions & 4 rubygems