Sha256: 4176a0fa1ab89c1e14b6f43c368d6fd044432d86162fe05e8386d6c922b24ff6

Contents?: true

Size: 666 Bytes

Versions: 7

Compression:

Stored size: 666 Bytes

Contents

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

  image_format = {
    'id' => Integer,
    'name' => String,
    'type' => String,
    'distribution' => String,
    'slug' => Fog::Nullable::String,
    'public' => Fog::Boolean,
    'regions' => Array,
    'min_disk_size' => Fog::Nullable::Integer,
    'created_at' => String,
  }

  tests('success') do
    tests('#list_images') do
      service.list_images.body['images'].each do |image|
        tests('format').data_matches_schema(image_format) do
          image
        end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
fog-digitalocean-0.4.0 tests/digitalocean/requests/compute/list_images_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-digitalocean-0.3.0/tests/digitalocean/requests/compute/list_images_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-digitalocean-0.3.0/tests/digitalocean/requests/compute/list_images_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-digitalocean-0.3.0/tests/digitalocean/requests/compute/list_images_tests.rb
fog-digitalocean-0.3.0 tests/digitalocean/requests/compute/list_images_tests.rb
fog-digitalocean-0.2.0 tests/digitalocean/requests/compute/list_images_tests.rb
fog-digitalocean-0.1.0 tests/digitalocean/requests/compute/list_images_tests.rb