Sha256: fdd6dbdd534265700703f5a76e59f220d448d65dc80fabd0997ec65ad6987fd5

Contents?: true

Size: 657 Bytes

Versions: 4

Compression:

Stored size: 657 Bytes

Contents

Shindo.tests('Fog::Compute::DigitalOceanV2 | list_flavors request', ['digitalocean', 'compute']) do
  service = Fog::Compute.new(:provider => 'DigitalOcean', :version => 'V2')

  size_format = {
    'slug' => String,
    'memory' => Integer,
    'vcpus' => Integer,
    'disk' => Integer,
    'transfer' => Float,
    'price_monthly' => Float,
    'price_hourly' => Float,
    'regions' => Array,
    'available' => Fog::Boolean,
  }

  tests('success') do
    tests('#list_flavors') do
      service.list_flavors.body['sizes'].each do |size|
        tests('format').data_matches_schema(size_format) do
          size
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-1.38.0 tests/digitalocean/requests/compute_v2/list_flavors_tests.rb
fog-1.37.0 tests/digitalocean/requests/compute_v2/list_flavors_tests.rb
fog-1.36.0 tests/digitalocean/requests/compute_v2/list_flavors_tests.rb
fog-1.35.0 tests/digitalocean/requests/compute_v2/list_flavors_tests.rb