Sha256: 44d8f608799c33e908a0b3d7e5489d4ab61a40de42f3f52dc84f0fabfdc763d4

Contents?: true

Size: 919 Bytes

Versions: 32

Compression:

Stored size: 919 Bytes

Contents

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

  @google = Fog::Compute[:google]

  @get_zone_format = {
      'kind' => String,
      'id' => String,
      'selfLink' => String,
      'creationTimestamp' => String,
      'name' => String,
      'description' => String,
      'status' => String,
      'maintenanceWindows' => Fog::Nullable::Array,
      'quotas' => [{
        'metric' => String,
        'limit' => Float,
        'usage' => Float},
      ],
  }

  @list_zones_format = {
      'kind' => String,
      'id' => String,
      'selfLink' => String,
      'items' => [@get_zone_format]
  }

  tests('success') do

    tests("#get_zone").formats(@get_zone_format) do
      zone_name = @google.list_zones.body["items"][0]["name"]
      @google.get_zone(zone_name).body
    end

    tests("#list_zones").formats(@list_zones_format) do
      @google.list_zones.body
    end

  end

end

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/google/requests/compute/zone_tests.rb
fog-1.22.1 tests/google/requests/compute/zone_tests.rb
fog-1.22.0 tests/google/requests/compute/zone_tests.rb
fog-1.21.0 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/google/requests/compute/zone_tests.rb
fog-1.20.0 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/google/requests/compute/zone_tests.rb
fog-1.19.0 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/google/requests/compute/zone_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/google/requests/compute/zone_tests.rb