Sha256: b3ca6fb4c423a8306c75224154882265c0e40cfef812d984f03a41581f057f1e

Contents?: true

Size: 1.23 KB

Versions: 130

Compression:

Stored size: 1.23 KB

Contents

Shindo.tests('Fog::Compute[:voxel] | image requests', ['voxel']) do

  @images_format = {
    'images' => [{
      'id'      => Integer,
      'summary' => String
    }],
    'stat' => String
  }

  @image_format = {
    'images' => [{
      'description'       => String,
      'id'                => Integer,
      'filesystem'        => {
        'size'  => Integer,
        'type'  => String,
        'units' => String,
      },
      'operating_system'  => {
        'admin_username'  => String,
        'architecture'    => Integer,
        'family'          => String,
        'product_family'  => String,
        'product_version' => String,
        'version'         => String
      },
      'summary'           => String
    }],
    'stat' => String
  }

  tests('success') do
    tests('#images_list').formats(@images_format) do
      pending if Fog.mocking?
      Fog::Compute[:voxel].images_list.body
    end

    tests('#images_list(1)').formats(@image_format) do
      pending if Fog.mocking?
      Fog::Compute[:voxel].images_list(1).body
    end
  end

  tests('failure') do
    tests('#images_list(0)').raises(Fog::Compute::Voxel::Error) do
      pending if Fog.mocking?
      Fog::Compute[:voxel].images_list(0).body
    end
  end

end

Version data entries

130 entries across 128 versions & 22 rubygems

Version Path
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/tests/voxel/requests/compute/image_tests.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/tests/voxel/requests/compute/image_tests.rb
fog-1.0.0 tests/voxel/requests/compute/image_tests.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/tests/compute/requests/voxel/image_tests.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/tests/compute/requests/voxel/image_tests.rb
fog-0.11.0 tests/compute/requests/voxel/image_tests.rb
fog-0.10.0 tests/compute/requests/voxel/image_tests.rb
fog4encbs-0.9.0.1 tests/compute/requests/voxel/image_tests.rb
fog4encbs-0.9.0 tests/compute/requests/voxel/image_tests.rb
fog-0.9.0 tests/compute/requests/voxel/image_tests.rb