Sha256: 22c0f0bbfd1e55f1179ee943c4d5ffe24f942b1de4610d6cf906bf39dd9f7b3b

Contents?: true

Size: 813 Bytes

Versions: 32

Compression:

Stored size: 813 Bytes

Contents

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

  @os_types_format = {
    'listostypesresponse'  => {
      'count' => Integer,
      'ostype' => [
        'id' => Integer,
        'description' => String,
        'oscategoryid' => Integer
      ]
    }
  }

  @os_categories_format = {
    'listoscategoriesresponse'  => {
      'count' => Integer,
      'oscategory' => [
        'id' => Integer,
        'name' => String
      ]
    }
  }

  tests('success') do

    tests('#list_os_types').formats(@os_types_format) do
      pending if Fog.mocking?
      Fog::Compute[:cloudstack].list_os_types
    end
    
    tests('#list_os_categories').formats(@os_categories_format) do
      pending if Fog.mocking?
      Fog::Compute[:cloudstack].list_os_categories
    end

  end

end

Version data entries

32 entries across 32 versions & 14 rubygems

Version Path
hpfog-0.0.20 tests/cloudstack/requests/os_type_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/cloudstack/requests/os_type_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/cloudstack/requests/os_type_tests.rb
fog-nirvanix-1.8.2 tests/cloudstack/requests/os_type_tests.rb
fog-nirvanix-1.8.1 tests/cloudstack/requests/os_type_tests.rb
fog-1.10.1 tests/cloudstack/requests/os_type_tests.rb
fog-parser-fix-1.6.1 tests/cloudstack/requests/os_type_tests.rb
fog-test-again-1.6.0 tests/cloudstack/requests/os_type_tests.rb
fog-test-me-1.10.0 tests/cloudstack/requests/os_type_tests.rb
fog-parser-fix-1.6.0 tests/cloudstack/requests/os_type_tests.rb
fog-1.10.0 tests/cloudstack/requests/os_type_tests.rb
fog-1.9.0 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/cloudstack/requests/os_type_tests.rb
fog-sgonyea-1.8.1 tests/cloudstack/requests/os_type_tests.rb
fog-1.8.0 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/cloudstack/requests/os_type_tests.rb
fog-1.7.0 tests/cloudstack/requests/os_type_tests.rb
fog-1.6.0 tests/cloudstack/requests/os_type_tests.rb