Sha256: c3800e9513c7b6f3a3f3507d1c3d2c7a238f7f2d35484d4cd23a136fae3826ce

Contents?: true

Size: 1.63 KB

Versions: 40

Compression:

Stored size: 1.63 KB

Contents

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

  @templates_format = {
    'listtemplatesresponse'  => {
      'count' => Integer,
      'template' => [
        'id' => Integer,
        'name' => String,
        'displaytext' => String,
        'ispublic' => Fog::Boolean,
        'created' => String,
        'isready' => Fog::Boolean,
        'passwordenabled' => Fog::Boolean,
        'format' => String,
        'isfeatured' => Fog::Boolean,
        'crossZones' => Fog::Boolean,
        'ostypeid' => Integer,
        'ostypename' => String,
        'account' => String,
        'zoneid' => Integer,
        'zonename' => String,
        'status' => Fog::Nullable::String,
        'size' => Fog::Nullable::Integer,
        'templatetype' => String,
        'hypervisor' => String,
        'domain' => String,
        'domainid' => Integer,
        'isextractable' => Fog::Boolean,
        'checksum' => Fog::Nullable::String,
        'sourcetemplateid' => Fog::Nullable::Integer,
        'accountid' => Fog::Nullable::Integer,
        'bootable' => Fog::Nullable::Boolean,
        'hostid' => Fog::Nullable::Integer,
        'hostname' => Fog::Nullable::String,
        'jobid' => Fog::Nullable::Integer,
        'jobstatus' => Fog::Nullable::Integer,
        'removed' => Fog::Nullable::Boolean,
        'templatetag' => Fog::Nullable::String,
        'templatetype' => Fog::Nullable::String
      ]
    }
  }

  tests('success') do

    tests('#list_templates').formats(@templates_format) do
      pending if Fog.mocking?
      Fog::Compute[:cloudstack].list_templates('templateFilter' => "executable")
    end

  end

end

Version data entries

40 entries across 38 versions & 5 rubygems

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