Sha256: 4260ac764fb97dcd852f34b273664957ed63cb35d188dd2d20424c4f19546691

Contents?: true

Size: 733 Bytes

Versions: 13

Compression:

Stored size: 733 Bytes

Contents

Shindo.tests("Fog::Google[:monitoring] | timeseries_descriptor requests", ["google"]) do
  @monitoring = Fog::Google[:monitoring]

  @get_timeseries_descriptor_format = {
    "metric" => String,
    "project" => String,
    "labels" => Hash
  }

  @list_timeseries_descriptors_format = {
    "kind" => String,
    "youngest" => String,
    "oldest" => String,
    "timeseries" => [@get_timeseries_descriptor_format]
  }

  tests("success") do
    tests('#list_timeseries_descriptors').formats(@list_timeseries_descriptors_format) do
      @monitoring.list_timeseries_descriptors("compute.googleapis.com/instance/uptime",
                                              Time.now.strftime("%Y-%m-%dT%H:%M:%S%:z")).body
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fog-google-0.5.5 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.5.4 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.5.3 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.5.2 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.5.1 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.5.0 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.4.2 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.4.1 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.4.0 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.3.2 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.3.1 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.3.0 tests/requests/monitoring/timeseries_descriptor_tests.rb
fog-google-0.2.0 tests/requests/monitoring/timeseries_descriptor_tests.rb