Sha256: f1a4b8276fc63807a48cddaf01769af9612c659cb96d9ad1899c55c239f21f40

Contents?: true

Size: 833 Bytes

Versions: 32

Compression:

Stored size: 833 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,
      'region' => String,
      'maintenanceWindows' => Fog::Nullable::Array
  }

  @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 30 versions & 6 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/tests/requests/compute/zone_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/tests/requests/compute/zone_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/tests/requests/compute/zone_tests.rb
fog-google-0.1.3 tests/requests/compute/zone_tests.rb
fog-google-0.1.2 tests/requests/compute/zone_tests.rb
fog-google-0.1.1 tests/requests/compute/zone_tests.rb
fog-google-0.1.0 tests/requests/compute/zone_tests.rb
fog-google-0.0.9 tests/requests/compute/zone_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/tests/requests/compute/zone_tests.rb
fog-google-0.0.7 tests/requests/compute/zone_tests.rb
fog-google-0.0.6 tests/requests/compute/zone_tests.rb
fog-google-0.0.5 tests/requests/compute/zone_tests.rb
fog-google-0.0.4 tests/requests/compute/zone_tests.rb
fog-google-0.0.3 tests/requests/compute/zone_tests.rb
fog-google-0.0.2 tests/requests/compute/zone_tests.rb
fog-1.29.0 tests/google/requests/compute/zone_tests.rb
fog-1.28.0 tests/google/requests/compute/zone_tests.rb
fog-1.27.0 tests/google/requests/compute/zone_tests.rb
fog-1.26.0 tests/google/requests/compute/zone_tests.rb
fog-1.25.0 tests/google/requests/compute/zone_tests.rb