Sha256: 2e645c14127b462ee1c403a9bb96feb9e5d88c9fd0b63999c87d30cd0ec0760b

Contents?: true

Size: 478 Bytes

Versions: 17

Compression:

Stored size: 478 Bytes

Contents

Shindo.tests('Fog::Compute[:openstack] | tenant requests', ['openstack']) do

  @tenant_format = {
    'id'    => String,
    'name'  => String,
    'enabled'    => Fog::Boolean,
    'description' => String
  }

  tests('success') do
    tests('#list_tenants').formats({'tenants' => [@tenant_format]}) do
      Fog::Compute[:openstack].list_tenants.body
    end

    tests('#set_tenant("admin")').succeeds do
      Fog::Compute[:openstack].set_tenant("admin")
    end
  end
end

Version data entries

17 entries across 17 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 tests/openstack/requests/compute/tenant_tests.rb
fog-nirvanix-1.8.1 tests/openstack/requests/compute/tenant_tests.rb
fog-parser-fix-1.6.1 tests/openstack/requests/compute/tenant_tests.rb
fog-test-again-1.6.0 tests/openstack/requests/compute/tenant_tests.rb
fog-parser-fix-1.6.0 tests/openstack/requests/compute/tenant_tests.rb
fog-1.9.0 tests/openstack/requests/compute/tenant_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/openstack/requests/compute/tenant_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/openstack/requests/compute/tenant_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/openstack/requests/compute/tenant_tests.rb
fog-sgonyea-1.8.1 tests/openstack/requests/compute/tenant_tests.rb
fog-1.8.0 tests/openstack/requests/compute/tenant_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/openstack/requests/compute/tenant_tests.rb
fog-1.7.0 tests/openstack/requests/compute/tenant_tests.rb
fog-1.6.0 tests/openstack/requests/compute/tenant_tests.rb
fog-1.5.0 tests/openstack/requests/compute/tenant_tests.rb
rackspace-fog-1.4.2 tests/openstack/requests/compute/tenant_tests.rb
fog-1.4.0 tests/openstack/requests/compute/tenant_tests.rb