tests/requests/monitoring/timeseries_descriptor_tests.rb in fog-google-0.1.3 vs tests/requests/monitoring/timeseries_descriptor_tests.rb in fog-google-0.2.0

- old
+ new

@@ -1,26 +1,23 @@ -Shindo.tests('Fog::Google[:monitoring] | timeseries_descriptor requests', ['google']) do +Shindo.tests("Fog::Google[:monitoring] | timeseries_descriptor requests", ["google"]) do @monitoring = Fog::Google[:monitoring] @get_timeseries_descriptor_format = { - 'metric' => String, - 'project' => String, - 'labels' => Hash, + "metric" => String, + "project" => String, + "labels" => Hash } @list_timeseries_descriptors_format = { - 'kind' => String, - 'youngest' => String, - 'oldest' => String, - 'timeseries' => [@get_timeseries_descriptor_format], + "kind" => String, + "youngest" => String, + "oldest" => String, + "timeseries" => [@get_timeseries_descriptor_format] } - tests('success') do - + tests("success") do tests('#list_timeseries_descriptors').formats(@list_timeseries_descriptors_format) do - @monitoring.list_timeseries_descriptors('compute.googleapis.com/instance/uptime', + @monitoring.list_timeseries_descriptors("compute.googleapis.com/instance/uptime", Time.now.strftime("%Y-%m-%dT%H:%M:%S%:z")).body end - end - end