Sha256: 6f5d3c0e7d783f1fce399d92d7db4dd7d3175c67148eaff36c9039298281554c
Contents?: true
Size: 726 Bytes
Versions: 60
Compression:
Stored size: 726 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
60 entries across 60 versions & 6 rubygems