Sha256: d0c6cab2ec9e74fe19a8bcc5c5ae3e923176bc3e21b0a8b0716ffc82157ac63a

Contents?: true

Size: 856 Bytes

Versions: 39

Compression:

Stored size: 856 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

39 entries across 37 versions & 5 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/bluebox/requests/compute/location_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/bluebox/requests/compute/location_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/bluebox/requests/compute/location_tests.rb
fog-1.42.1 tests/bluebox/requests/compute/location_tests.rb
fog-2.0.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.42.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.41.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.40.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.39.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.38.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.37.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.36.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.35.0 tests/bluebox/requests/compute/location_tests.rb
fog-2.0.0.pre.0 tests/bluebox/requests/compute/location_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/bluebox/requests/compute/location_tests.rb
fog-1.34.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.33.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.32.0 tests/bluebox/requests/compute/location_tests.rb
fog-1.31.0 tests/bluebox/requests/compute/location_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/bluebox/requests/compute/location_tests.rb