Sha256: 270f46a7043d144882084250c095415f408e57844132841ce2cef57afec31ed8
Contents?: true
Size: 757 Bytes
Versions: 113
Compression:
Stored size: 757 Bytes
Contents
Shindo.tests("Fog::Compute[:openstack] | tenants", ['openstack']) do @instance = Fog::Identity[:openstack].tenants.create(:name => 'test') tests('success') do tests('#find_by_id').succeeds do tenant = Fog::Identity[:openstack].tenants.find_by_id(@instance.id) tenant.id == @instance.id end tests('#destroy').succeeds do Fog::Identity[:openstack].tenants.destroy(@instance.id) end end tests('fails') do pending if Fog.mocking? tests('#find_by_id').raises(Fog::Identity::OpenStack::NotFound) do Fog::Identity[:openstack].tenants.find_by_id('fake') end tests('#destroy').raises(Fog::Identity::OpenStack::NotFound) do Fog::Identity[:openstack].tenants.destroy('fake') end end end
Version data entries
113 entries across 113 versions & 15 rubygems