1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/joyent/models/analytics/metrics_tests.rb
2014-01-21 16:24:25 +00:00

20 lines
573 B
Ruby

Shindo.tests("Fog::Joyent[:analytics] | metrics", %w{joyent}) do
@analytics = Fog::Joyent[:analytics]
@metrics = @analytics.metrics
tests('#all').succeeds do
@metrics.all
end
tests('#new').succeeds do
@metrics.new({
"module" => "cpu",
"stat" => "thread_executions",
"label" => "thread executions",
"interval" => "interval",
"fields" => ["hostname", "zonename", "runtime"],
"unit" => "operations"
})
end
end