File: spot_price_history_tests.rb

package info (click to toggle)
ruby-fog-aws 3.33.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,180 kB
  • sloc: ruby: 75,405; javascript: 14; makefile: 9; sh: 4
file content (23 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Shindo.tests('Fog::Compute[:aws] | spot price history requests', ['aws']) do

  @spot_price_history_format = {
    'spotPriceHistorySet'   => [{
      'availabilityZone'    => String,
      'instanceType'        => String,
      'spotPrice'           => Float,
      'productDescription'  => String,
      'timestamp'           => Time
    }],
    'requestId' => String,
    'nextToken' => Fog::Nullable::String
  }

  tests('success') do

    tests("#describe_spot_price_history").formats(@spot_price_history_format) do
      Fog::Compute[:aws].describe_spot_price_history.body
    end

  end

end