Sha256: 604dbe089691170f6427a89ec37e950d589d57a173de8bf0bc332b9835d62049

Contents?: true

Size: 738 Bytes

Versions: 22

Compression:

Stored size: 738 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

22 entries across 20 versions & 5 rubygems

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