Sha256: 28da9b145b81e7f66787d0875bbb873e12c2b1ad70d4523a8d170f5b17e047f7

Contents?: true

Size: 1.42 KB

Versions: 25

Compression:

Stored size: 1.42 KB

Contents

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

  @volumes_format = {
    'listvolumesresponse'  => {
      'count' => Integer,
      'volume' => [
        'id' => String,
        'name' => String,
        'zoneid' => String,
        'zonename' => String,
        'type' => String,
        'size' => Integer,
        'created' => String,
        'account' => String,
        'domainid' => String,
        'domain' => String,
        'state' => String,
        'storagetype' => String,
        'hypervisor' => String,
        'diskofferingid' => Fog::Nullable::String,
        'diskofferingname' => Fog::Nullable::String,
        'diskofferingdisplaytext' => Fog::Nullable::String,
        'storage' => String,
        'destroyed' => Fog::Boolean,
        'isextractable' => Fog::Boolean,
        'deviceid' => Fog::Nullable::Integer,
        'virtualmachineid' => Fog::Nullable::String,
        '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
      Fog::Compute[:cloudstack].list_volumes('zoneid' => 1)
    end

  end

end

Version data entries

25 entries across 23 versions & 4 rubygems

Version Path
fog-cloudstack-0.1.0 tests/requests/volume_tests.rb
fog-2.1.0 tests/cloudstack/requests/volume_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/cloudstack/requests/volume_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/cloudstack/requests/volume_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/cloudstack/requests/volume_tests.rb
fog-1.42.1 tests/cloudstack/requests/volume_tests.rb
fog-2.0.0 tests/cloudstack/requests/volume_tests.rb
fog-1.42.0 tests/cloudstack/requests/volume_tests.rb
fog-1.41.0 tests/cloudstack/requests/volume_tests.rb
fog-1.40.0 tests/cloudstack/requests/volume_tests.rb
fog-1.39.0 tests/cloudstack/requests/volume_tests.rb
fog-1.38.0 tests/cloudstack/requests/volume_tests.rb
fog-1.37.0 tests/cloudstack/requests/volume_tests.rb
fog-1.36.0 tests/cloudstack/requests/volume_tests.rb
fog-1.35.0 tests/cloudstack/requests/volume_tests.rb
fog-2.0.0.pre.0 tests/cloudstack/requests/volume_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/cloudstack/requests/volume_tests.rb
fog-1.34.0 tests/cloudstack/requests/volume_tests.rb
fog-1.33.0 tests/cloudstack/requests/volume_tests.rb
fog-1.32.0 tests/cloudstack/requests/volume_tests.rb