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.19.0.20140212012611 tests/cloudstack/requests/volume_tests.rb
fog-1.20.0 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/cloudstack/requests/volume_tests.rb
fog-1.19.0 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131209090811 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131206115947 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131205181604 tests/cloudstack/requests/volume_tests.rb
fog-maestrodev-1.18.0.20131127194823 tests/cloudstack/requests/volume_tests.rb