Sha256: d5312bb5ded080432b6a1f59650a8eca9a8a9237cb60bc4e84efb1ae3a991455
Contents?: true
Size: 813 Bytes
Versions: 36
Compression:
Stored size: 813 Bytes
Contents
Shindo.tests('Rackspace::Servers | flavor requests', ['rackspace']) do @flavor_format = { 'disk' => Integer, 'id' => Integer, 'name' => String, 'ram' => Integer } tests('success') do tests('#get_flavor_details(1)').formats(@flavor_format) do Rackspace[:servers].get_flavor_details(1).body['flavor'] end tests('#list_flavors').formats({'flavors' => [Rackspace::Servers::Formats::SUMMARY]}) do Rackspace[:servers].list_flavors.body end tests('#list_flavors_detail').formats({'flavors' => [@flavor_format]}) do Rackspace[:servers].list_flavors_detail.body end end tests('failure') do tests('#get_flavor_details(0)').raises(Fog::Rackspace::Servers::NotFound) do Rackspace[:servers].get_flavor_details(0) end end end
Version data entries
36 entries across 36 versions & 2 rubygems