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

Version Path
fog-2.3.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-ifeel-2.2.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-2.2.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-2.1.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/vcloud_director/models/compute/vapp_template_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/vcloud_director/models/compute/vapp_template_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-1.42.1 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-vcloud-director-0.2.2 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-vcloud-director-0.2.1 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-vcloud-director-0.2.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-vcloud-director-0.1.10 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-vcloud-director-0.1.9 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-2.0.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-1.42.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-1.41.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-1.40.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-1.39.0 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-vcloud-director-0.1.8 tests/vcloud_director/models/compute/vapp_template_tests.rb
fog-vcloud-director-0.1.7 tests/vcloud_director/models/compute/vapp_template_tests.rb