Sha256: 27903ac43f195177243af099f306a866f7ce72419a8c9f121764554387adecd8

Contents?: true

Size: 891 Bytes

Versions: 128

Compression:

Stored size: 891 Bytes

Contents

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

  @zones_format = {
    'listzonesresponse'  => {
      'count' => Integer,
      'zone' => [
        'id' => Integer,
        'name' => String,
        'dns1' => Fog::Nullable::String,
        'dns2' => Fog::Nullable::String,
        'internaldns1' => Fog::Nullable::String,
        'internaldns2' => Fog::Nullable::String,
        'vlan' => Fog::Nullable::String,
        'guestcidraddress' => Fog::Nullable::String,
        'networktype' => String,
        'securitygroupsenabled' => Fog::Nullable::Boolean,
        'allocationstate' => String,
        'dhcpprovider' => String,
        'zonetoken' => Fog::Nullable::String
      ]
    }
  }

  tests('success') do

    tests('#list_zones').formats(@zones_format) do
      pending if Fog.mocking?
      Fog::Compute[:cloudstack].list_zones
    end

  end

end

Version data entries

128 entries across 126 versions & 20 rubygems

Version Path
michiels-fog-1.3.1 tests/cloudstack/requests/zone_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/cloudstack/requests/zone_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/cloudstack/requests/zone_tests.rb
fog-1.3.1 tests/cloudstack/requests/zone_tests.rb
fog-1.3.0 tests/cloudstack/requests/zone_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/cloudstack/requests/zone_tests.rb
fog-1.2.0 tests/cloudstack/requests/zone_tests.rb
ktheory-fog-1.1.2 tests/cloudstack/requests/zone_tests.rb