Sha256: 3490ee7b62d485c390423efaeffa7b5a2ee644885f345fcfc734823ed4135b68

Contents?: true

Size: 781 Bytes

Versions: 55

Compression:

Stored size: 781 Bytes

Contents

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

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

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

  tests('success') do

    tests('#list_os_types').formats(@os_types_format) do
      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

55 entries across 55 versions & 3 rubygems

Version Path
fog-1.22.0 tests/cloudstack/requests/os_type_tests.rb
fog-1.21.0 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/cloudstack/requests/os_type_tests.rb
fog-1.20.0 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/cloudstack/requests/os_type_tests.rb
fog-1.19.0 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/cloudstack/requests/os_type_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/cloudstack/requests/os_type_tests.rb