Sha256: 8209ca2dfeb480361879911a35427669e67b18a5db6737307a424c0cf314d667

Contents?: true

Size: 859 Bytes

Versions: 87

Compression:

Stored size: 859 Bytes

Contents

Shindo.tests('Fog::Compute[:bluebox] | location requests', ['bluebox']) do
  
  @location_format = {
    'id'          => String,
    'description' => String
  }
  
  tests('success') do

    @location_id  = compute_providers[:bluebox][:server_attributes][:location_id]

    tests("get_location('#{@location_id}')").formats(@location_format) do
      pending if Fog.mocking?
      Fog::Compute[:bluebox].get_location(@location_id).body
    end

    tests("get_locations").formats([@location_format]) do
      pending if Fog.mocking?
      Fog::Compute[:bluebox].get_locations.body
    end

  end

  tests('failure') do

    tests("get_location('00000000-0000-0000-0000-000000000000')").raises(Fog::Compute::Bluebox::NotFound) do
      pending if Fog.mocking?
      Fog::Compute[:bluebox].get_location('00000000-0000-0000-0000-000000000000')
    end

  end
end

Version data entries

87 entries across 87 versions & 15 rubygems

Version Path
fog-1.22.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.21.0 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/bluebox/requests/compute/location_tests.rb
fog-1.20.0 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/bluebox/requests/compute/location_tests.rb
fog-1.19.0 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/bluebox/requests/compute/location_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/bluebox/requests/compute/location_tests.rb