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

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-riakcs-0.1.0/tests/riakcs/usage/usage_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-riakcs-0.1.0/tests/riakcs/usage/usage_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-riakcs-0.1.0/tests/riakcs/usage/usage_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-riakcs-0.1.0/tests/riakcs/usage/usage_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/riakcs/requests/usage/usage_tests.rb
fog-riakcs-0.1.0 tests/riakcs/usage/usage_tests.rb
fog-riakcs-0.0.1 tests/riakcs/usage/usage_tests.rb
fog-1.27.0 tests/riakcs/requests/usage/usage_tests.rb
fog-1.26.0 tests/riakcs/requests/usage/usage_tests.rb
fog-1.25.0 tests/riakcs/requests/usage/usage_tests.rb
nsidc-fog-1.24.1 tests/riakcs/requests/usage/usage_tests.rb
fog-1.24.0 tests/riakcs/requests/usage/usage_tests.rb
ns-fog-1.22.11 tests/riakcs/requests/usage/usage_tests.rb
ns-fog-1.22.10 tests/riakcs/requests/usage/usage_tests.rb
ns-fog-1.22.9 tests/riakcs/requests/usage/usage_tests.rb
ns-fog-1.22.8 tests/riakcs/requests/usage/usage_tests.rb
ns-fog-1.22.7 tests/riakcs/requests/usage/usage_tests.rb
ns-fog-1.22.6 tests/riakcs/requests/usage/usage_tests.rb
fog-1.23.0 tests/riakcs/requests/usage/usage_tests.rb
ns-fog-1.22.4 tests/riakcs/requests/usage/usage_tests.rb