Sha256: a245aec5c3ffc3c8a62ba26b1a8905fe484814178cb3ca58b12e47618655f1e7

Contents?: true

Size: 628 Bytes

Versions: 9

Compression:

Stored size: 628 Bytes

Contents

Shindo.tests('Radosgw::Usage | usage requests', ['radosgw']) do

  @blank_usage_format = {
    'entries' =>  [],
    'summary'  => []
  }

  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::Radosgw[:usage].get_usage(Fog.credentials[:radosgw_access_key_id],
                                    :types      => [:access, :storage],
                                    :start_time => start_time,
                                    :end_time   => end_time).body

    end
  end

end

Version data entries

9 entries across 7 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-radosgw-0.0.5/tests/radosgw/requests/usage/usage_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-radosgw-0.0.5/tests/radosgw/requests/usage/usage_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-radosgw-0.0.5/tests/radosgw/requests/usage/usage_tests.rb
fog-radosgw-0.0.5 tests/radosgw/requests/usage/usage_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-radosgw-0.0.4/tests/radosgw/requests/usage/usage_tests.rb
fog-radosgw-0.0.4 tests/radosgw/requests/usage/usage_tests.rb
fog-radosgw-0.0.3 tests/radosgw/requests/usage/usage_tests.rb
fog-radosgw-0.0.2 tests/radosgw/requests/usage/usage_tests.rb
fog-radosgw-0.0.1 tests/radosgw/requests/usage/usage_tests.rb