mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
23 lines
599 B
Ruby
23 lines
599 B
Ruby
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
|