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
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-voxel-0.1.0/tests/requests/compute/image_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-voxel-0.1.0/tests/requests/compute/image_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-voxel-0.1.0/tests/requests/compute/image_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-voxel-0.1.0/tests/requests/compute/image_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/voxel/requests/compute/image_tests.rb
fog-voxel-0.1.0 tests/requests/compute/image_tests.rb
fog-voxel-0.0.2 tests/requests/compute/image_tests.rb
fog-voxel-0.0.1 tests/requests/compute/image_tests.rb
fog-1.24.0 tests/voxel/requests/compute/image_tests.rb
ns-fog-1.22.11 tests/voxel/requests/compute/image_tests.rb
ns-fog-1.22.10 tests/voxel/requests/compute/image_tests.rb
ns-fog-1.22.9 tests/voxel/requests/compute/image_tests.rb
ns-fog-1.22.8 tests/voxel/requests/compute/image_tests.rb
ns-fog-1.22.7 tests/voxel/requests/compute/image_tests.rb
ns-fog-1.22.6 tests/voxel/requests/compute/image_tests.rb
fog-1.23.0 tests/voxel/requests/compute/image_tests.rb
ns-fog-1.22.4 tests/voxel/requests/compute/image_tests.rb
ns-fog-1.22.3 tests/voxel/requests/compute/image_tests.rb
ns-fog-1.22.2 tests/voxel/requests/compute/image_tests.rb
fog-1.22.1 tests/voxel/requests/compute/image_tests.rb