Sha256: a45b5c59e3fc494b9973b72dc578dd41c4e70537b5ff6293b9c205ee0515d017

Contents?: true

Size: 594 Bytes

Versions: 6

Compression:

Stored size: 594 Bytes

Contents

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

  volume_format = {
    'id' => String,
    'region' => Hash,
    'droplet_ids' => Array,
    'name' => String,
    'description' => String,
    'size_gigabytes' => Integer,
    'created_at' => String
  }

  tests('success') do
    tests('#list_volumes') do
      service.list_volumes.body['volumes'].each do |volume|
        tests('format').data_matches_schema(volume_format) do
          volume
        end
      end
    end
  end
end

Version data entries

6 entries across 4 versions & 2 rubygems

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