Sha256: 999beb0c5c587d3d269e651eb31be14e68665970589732cc45c544ea05281656

Contents?: true

Size: 635 Bytes

Versions: 44

Compression:

Stored size: 635 Bytes

Contents

Shindo.tests('Slicehost::Compute | image requests', ['slicehost']) do

  @image_format = {
    'id'    => Integer,
    'name'  => String
  }

  tests('success') do

    tests('#get_image(19)').formats(@image_format) do
      pending if Fog.mocking?
      Slicehost[:compute].get_image(19).body
    end

    tests('#get_images').formats({ 'images' => [@image_format] }) do
      pending if Fog.mocking?
      Slicehost[:compute].get_images.body
    end

  end

  tests('failure') do

    tests('#get_image(0)').raises(Excon::Errors::Forbidden) do
      pending if Fog.mocking?
      Slicehost[:compute].get_image(0)
    end

  end

end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
fog-0.8.2 tests/compute/requests/slicehost/image_tests.rb
fog-0.8.1 tests/compute/requests/slicehost/image_tests.rb
fog-0.8.0 tests/compute/requests/slicehost/image_tests.rb
fog-0.7.2 tests/compute/requests/slicehost/image_tests.rb
fog-0.7.1 tests/compute/requests/slicehost/image_tests.rb
fog-0.7.0 tests/compute/requests/slicehost/image_tests.rb
fog-0.6.0 tests/compute/requests/slicehost/image_tests.rb
fog-0.5.3 tests/compute/requests/slicehost/image_tests.rb
fog-0.5.2 tests/compute/requests/slicehost/image_tests.rb
fog-0.5.1 tests/compute/requests/slicehost/image_tests.rb
fog-0.5.0 tests/compute/requests/slicehost/image_tests.rb
phpfog-fog-0.4.1.3 tests/compute/requests/slicehost/image_tests.rb
phpfog-fog-0.4.1.2 tests/compute/requests/slicehost/image_tests.rb
phpfog-fog-0.4.1.1 tests/compute/requests/slicehost/image_tests.rb
phpfog-fog-0.4.1 tests/compute/requests/slicehost/image_tests.rb
fog-0.4.1 tests/compute/requests/slicehost/image_tests.rb
fog-0.4.0 tests/compute/requests/slicehost/image_tests.rb
fog-0.3.34 tests/slicehost/requests/compute/image_tests.rb
fog-0.3.33 tests/slicehost/requests/compute/image_tests.rb
fog-0.3.32 tests/slicehost/requests/compute/image_tests.rb