Sha256: 1cf622b4b5baee94ce246d7202996903169f12e40b0dfed628d4f279cae399aa

Contents?: true

Size: 758 Bytes

Versions: 100

Compression:

Stored size: 758 Bytes

Contents

Shindo.tests("Fog::Identity[:openstack] | tenant", ['openstack']) do
  tests('success') do
    tests('#roles_for(0)').succeeds do
      instance = Fog::Identity[:openstack].tenants.first
      instance.roles_for(0)
    end

    tests('#users').succeeds do
      instance = Fog::Identity[:openstack].tenants.first

      instance.users.count != Fog::Identity[:openstack].users.count
    end
  end

  tests('CRUD') do
    tests('#create').succeeds do
      @instance = Fog::Identity[:openstack].tenants.create(:name => 'test')
      !@instance.id.nil?
    end

    tests('#update').succeeds do
      @instance.update(:name => 'test2')
      @instance.name == 'test2'
    end

    tests('#destroy').succeeds do
      @instance.destroy == true
    end
  end
end

Version data entries

100 entries across 100 versions & 10 rubygems

Version Path
fog-1.14.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.13.0 tests/openstack/models/identity/tenant_tests.rb
gapinc-fog-1.12.1.2 tests/openstack/models/identity/tenant_tests.rb
gapinc-fog-1.12.1.1 tests/openstack/models/identity/tenant_tests.rb
gapinc-fog-1.12.1a tests/openstack/models/identity/tenant_tests.rb
gapinc-fog-1.12.1 tests/openstack/models/identity/tenant_tests.rb
fog-1.12.1 tests/openstack/models/identity/tenant_tests.rb
fog-1.12.0 tests/openstack/models/identity/tenant_tests.rb
hpfog-0.0.20 tests/openstack/models/identity/tenant_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/openstack/models/identity/tenant_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/openstack/models/identity/tenant_tests.rb
fog-1.11.1 tests/openstack/models/identity/tenant_tests.rb
fog-1.11.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.10.1 tests/openstack/models/identity/tenant_tests.rb
fog-test-me-1.10.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.10.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.9.0 tests/openstack/models/identity/tenant_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/openstack/models/identity/tenant_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/openstack/models/identity/tenant_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/openstack/models/identity/tenant_tests.rb