Sha256: f46fe45087c793bf47f047f42cf0482c8dcb718ad1f49563afd9214fead9d580

Contents?: true

Size: 662 Bytes

Versions: 64

Compression:

Stored size: 662 Bytes

Contents

Shindo.tests('Fog::Compute[:google] | operation requests', ['google']) do
  pending if Fog.mocking?

  @google = Fog::Compute[:google]

  tests('success') do

    # We are not testing the format here because operation formats are pretty
    # extensive based on what has happened to you account, ever.
    # https://developers.google.com/compute/docs/reference/latest/globalOperations#resource
    tests("#list_global_operations").succeeds do
      @google.list_global_operations
    end

    tests("#list_zone_operations").succeeds do
      zone_name = @google.list_zones.body["items"][0]["name"]
      @google.list_zone_operations(zone_name)
    end
  end
end

Version data entries

64 entries across 62 versions & 7 rubygems

Version Path
fog-maestrodev-1.18.0.20131125111730 tests/google/requests/compute/operation_tests.rb
fog-maestrodev-1.18.0.20131125083406 tests/google/requests/compute/operation_tests.rb
fog-maestrodev-1.18.0.20131123105121 tests/google/requests/compute/operation_tests.rb
fog-maestrodev-1.18.0.20131122203507 tests/google/requests/compute/operation_tests.rb