Sha256: 3bb1c18c35efefd4624a3f175847d88d46cd35256478104e753ced9d3b19d53c

Contents?: true

Size: 584 Bytes

Versions: 22

Compression:

Stored size: 584 Bytes

Contents

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

  @get_metric_descriptor_format = {
    'name' => String,
    'description' => String,
    'labels' => Array,
    'project' => String,
    'typeDescriptor' => Hash,
  }

  @list_metric_descriptors_format = {
    'kind' => String,
    'metrics' => [@get_metric_descriptor_format],
  }

  tests('success') do

    tests('#list_metric_descriptors').formats(@list_metric_descriptors_format) do
      @monitoring.list_metric_descriptors.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/metric_descriptor_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/tests/requests/monitoring/metric_descriptor_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.1.3 tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.1.2 tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.1.1 tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.1.0 tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.0.9 tests/requests/monitoring/metric_descriptor_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.0.7 tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.0.6 tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.0.5 tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.0.4 tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.0.3 tests/requests/monitoring/metric_descriptor_tests.rb
fog-google-0.0.2 tests/requests/monitoring/metric_descriptor_tests.rb
fog-1.29.0 tests/google/requests/monitoring/metric_descriptor_tests.rb
fog-1.28.0 tests/google/requests/monitoring/metric_descriptor_tests.rb
fog-1.27.0 tests/google/requests/monitoring/metric_descriptor_tests.rb
fog-1.26.0 tests/google/requests/monitoring/metric_descriptor_tests.rb
fog-1.25.0 tests/google/requests/monitoring/metric_descriptor_tests.rb