Sha256: dc3ceb4bf917eb39bdf565985dc3c0cfb9d2f446ce445e8f22143a6747abc064
Contents?: true
Size: 721 Bytes
Versions: 23
Compression:
Stored size: 721 Bytes
Contents
Shindo.tests('RiakCS::Usage | usage requests', ['riakcs']) do @blank_usage_format = { 'Access' => { 'Nodes' => [], 'Errors' => [] }, 'Storage' => { 'Samples' => [], 'Errors' => [] } } tests('Statistics retrieval with no data returned') do start_time = Time.now.utc + 86400 end_time = start_time + 86400 tests('via JSON').returns(@blank_usage_format) do Fog::RiakCS[:usage].get_usage(Fog.credentials[:riakcs_access_key_id], :types => [:access, :storage], :start_time => start_time, :end_time => end_time).body end end end
Version data entries
23 entries across 21 versions & 6 rubygems