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