Sha256: 5525013483b54cc4999aeda75808cfae2a1b77659169611bb2886f8e327db1c2
Contents?: true
Size: 753 Bytes
Versions: 13
Compression:
Stored size: 753 Bytes
Contents
Shindo.tests('Fog::Rackspace::BlockStorage | volume_type_tests', ['rackspace']) do pending if Fog.mocking? VOLUME_TYPE_FORMAT = { 'name' => String, 'extra_specs' => Hash } LIST_VOLUME_TYPE_FORMAT = { 'volume_types' => [VOLUME_TYPE_FORMAT.merge({ 'id' => Integer })] } GET_VOLUME_TYPE_FORMAT = { 'volume_type' => VOLUME_TYPE_FORMAT.merge({ 'id' => String }) } service = Fog::Rackspace::BlockStorage.new tests('success') do volume_type_id = 1 tests("#list_volume_types").formats(LIST_VOLUME_TYPE_FORMAT) do service.list_volume_types.body end tests("#get_volume_type(#{volume_type_id})").formats(GET_VOLUME_TYPE_FORMAT) do service.get_volume_type(volume_type_id).body end end end
Version data entries
13 entries across 13 versions & 6 rubygems