Sha256: c52a461aef63d9db357a7b9c82314f30910b43b73c7938a91605bb944fb035d4

Contents?: true

Size: 1.45 KB

Versions: 91

Compression:

Stored size: 1.45 KB

Contents

Shindo.tests('Fog::Compute[:cloudstack] | volume requests', ['cloudstack']) do

  @volumes_format = {
    'listvolumesresponse'  => {
      'count' => Integer,
      'volume' => [
        'id' => Integer,
        'name' => String,
        'zoneid' => Integer,
        'zonename' => String,
        'type' => String,
        'size' => Integer,
        'created' => String,
        'account' => String,
        'domainid' => Integer,
        'domain' => String,
        'state' => String,
        'storagetype' => String,
        'hypervisor' => String,
        'diskofferingid' => Fog::Nullable::Integer,
        'diskofferingname' => Fog::Nullable::String,
        'diskofferingdisplaytext' => Fog::Nullable::String,
        'storage' => String,
        'destroyed' => Fog::Boolean,
        'isextractable' => Fog::Boolean,
        'deviceid' => Fog::Nullable::Integer,
        'virtualmachineid' => Fog::Nullable::Integer,
        'vmname' => Fog::Nullable::String,
        'vmdisplayname' => Fog::Nullable::String,
        'vmstate' => Fog::Nullable::String,
        'serviceofferingid' => Fog::Nullable::Integer,
        'serviceofferingname' => Fog::Nullable::String,
        'serviceofferingdisplaytext' => Fog::Nullable::String,
        'attached' => Fog::Nullable::String
      ]
    }
  }

  tests('success') do

    tests('#list_volumes').formats(@volumes_format) do
      pending if Fog.mocking?
      Fog::Compute[:cloudstack].list_volumes('zoneid' => 1)
    end

  end

end

Version data entries

91 entries across 91 versions & 13 rubygems

Version Path
fog-maestrodev-1.14.0.20130806165225 tests/cloudstack/requests/volume_tests.rb
fog-1.14.0 tests/cloudstack/requests/volume_tests.rb
fog-1.13.0 tests/cloudstack/requests/volume_tests.rb
gapinc-fog-1.12.1.2 tests/cloudstack/requests/volume_tests.rb
gapinc-fog-1.12.1.1 tests/cloudstack/requests/volume_tests.rb
gapinc-fog-1.12.1a tests/cloudstack/requests/volume_tests.rb
gapinc-fog-1.12.1 tests/cloudstack/requests/volume_tests.rb
fog-1.12.1 tests/cloudstack/requests/volume_tests.rb
fog-1.12.0 tests/cloudstack/requests/volume_tests.rb
hpfog-0.0.20 tests/cloudstack/requests/volume_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/cloudstack/requests/volume_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/cloudstack/requests/volume_tests.rb
fog-nirvanix-1.8.2 tests/cloudstack/requests/volume_tests.rb
fog-1.11.1 tests/cloudstack/requests/volume_tests.rb
fog-1.11.0 tests/cloudstack/requests/volume_tests.rb
fog-nirvanix-1.8.1 tests/cloudstack/requests/volume_tests.rb
fog-1.10.1 tests/cloudstack/requests/volume_tests.rb
fog-parser-fix-1.6.1 tests/cloudstack/requests/volume_tests.rb
fog-test-again-1.6.0 tests/cloudstack/requests/volume_tests.rb
fog-test-me-1.10.0 tests/cloudstack/requests/volume_tests.rb