Sha256: b274fa873c7dfeec8f5d2d512eb78880b68f97f0acf9a59d7522e640af2d084e

Contents?: true

Size: 617 Bytes

Versions: 125

Compression:

Stored size: 617 Bytes

Contents

Shindo.tests('Fog::Compute[:ibm] | location requests', ['ibm']) do

  @location_format  = {
    'state'         => Integer,
    'location'      => String,
    'capabilities'  => Array,
    'name'          => String,
    'id'            => String,
    'description'   => String
  }

  @locations_format = {
    'locations'     => [ @location_format ]
  }

  tests('success') do

    tests("#list_locations").formats(@locations_format) do
      Fog::Compute[:ibm].list_locations.body
    end

    tests('#get_locations').formats(@location_format) do
      Fog::Compute[:ibm].get_location('41').body
    end

  end

end

Version data entries

125 entries across 123 versions & 18 rubygems

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