2011-06-27 17:45:37 -07:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
2011-07-08 17:10:36 -07:00
|
|
|
pending # Some history data doesn't have an availability zone
|
|
|
|
|
2011-06-27 17:45:37 -07:00
|
|
|
tests("#describe_spot_price_history").formats(@spot_price_history_format) do
|
|
|
|
Fog::Compute[:aws].describe_spot_price_history.body
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|