Sha256: c96b97e725a8ecb91f7b342141f492cf8cd78c365ee1fd80386e4b1c94106291

Contents?: true

Size: 1.45 KB

Versions: 12

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

12 entries across 12 versions & 6 rubygems

Version Path
fog-1.5.0 tests/cloudstack/requests/volume_tests.rb
rackspace-fog-1.4.2 tests/cloudstack/requests/volume_tests.rb
fog-1.4.0 tests/cloudstack/requests/volume_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/cloudstack/requests/volume_tests.rb
michiels-fog-1.3.1 tests/cloudstack/requests/volume_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/cloudstack/requests/volume_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/cloudstack/requests/volume_tests.rb
fog-1.3.1 tests/cloudstack/requests/volume_tests.rb
fog-1.3.0 tests/cloudstack/requests/volume_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/cloudstack/requests/volume_tests.rb
fog-1.2.0 tests/cloudstack/requests/volume_tests.rb
ktheory-fog-1.1.2 tests/cloudstack/requests/volume_tests.rb