Sha256: 42f3b4ee3e25ebb6a8ee7423e50e8a3f7e15498d29463802b6a05b6b65148f2a

Contents?: true

Size: 505 Bytes

Versions: 10

Compression:

Stored size: 505 Bytes

Contents

Shindo.tests('Rackspace::Servers#get_image_details', 'rackspace') do
  tests('success') do

    before do
      @data = Rackspace[:servers].get_image_details(3).body['image']
    end

    test('has proper output format') do
      has_format(@data, Rackspace::Servers::Formats::IMAGE)
    end

  end
  tests('failure') do

    test('raises NotFound error if image does not exist') do
      has_error(Excon::Errors::NotFound) do
        Rackspace[:servers].get_image_details(0)
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-0.1.0 tests/rackspace/requests/servers/get_image_details_tests.rb
fog-0.0.100 tests/rackspace/requests/servers/get_image_details_tests.rb
fog-0.0.99 tests/rackspace/requests/servers/get_image_details_tests.rb
fog-0.0.98 tests/rackspace/requests/servers/get_image_details_tests.rb
fog-0.0.97 tests/rackspace/requests/servers/get_image_details_tests.rb
fog-0.0.96 tests/rackspace/requests/servers/get_image_details_tests.rb
fog-0.0.95 tests/rackspace/requests/servers/get_image_details_tests.rb
fog-0.0.94 tests/rackspace/requests/servers/get_image_details_tests.rb
fog-0.0.93 tests/rackspace/requests/servers/get_image_details_tests.rb
fog-0.0.92 tests/rackspace/requests/servers/get_image_details_tests.rb