Sha256: 4680a27266b830dcdf57294bee9e61d3d2f792575f359fc2a90d8374e0f93e9b

Contents?: true

Size: 779 Bytes

Versions: 98

Compression:

Stored size: 779 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))

Shindo.tests("Compute::VcloudDirector | organizations", ['vclouddirector', 'all']) do
  organizations = vcloud_director.organizations
  tests("#There is at least one organization").returns(true) { organizations.size >= 1 }

  org = organizations.get_by_name(vcloud_director.org_name)

  tests("Compute::VcloudDirector | organization") do
    tests("#name").returns(String) { org.name.class }
    tests("#type").returns("application/vnd.vmware.vcloud.org+xml") { org.type }
  end

  tests("Compute::VcloudDirector | organization", ['get']) do
    tests("#get_by_name").returns(org.name) { organizations.get_by_name(org.name).name }
    tests("#get").returns(org.id) { organizations.get(org.id).id }
  end
end

Version data entries

98 entries across 96 versions & 8 rubygems

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