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-openstack-0.1.5 tests/openstack/models/identity/tenant_tests.rb
fog-openstack-0.1.4 tests/openstack/models/identity/tenant_tests.rb
fog-openstack-0.1.3 tests/openstack/models/identity/tenant_tests.rb
fog-openstack-0.1.2 tests/openstack/models/identity/tenant_tests.rb
fog-openstack-0.1.1 tests/openstack/models/identity/tenant_tests.rb
fog-openstack-0.1.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.37.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.36.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.35.0 tests/openstack/models/identity/tenant_tests.rb
fog-2.0.0.pre.0 tests/openstack/models/identity/tenant_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/openstack/models/identity/tenant_tests.rb
fog-1.34.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.33.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.32.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.31.0 tests/openstack/models/identity/tenant_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/openstack/models/identity/tenant_tests.rb
fog-1.30.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.29.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.28.0 tests/openstack/models/identity/tenant_tests.rb
fog-1.27.0 tests/openstack/models/identity/tenant_tests.rb