mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Added Tests for Elasticache Reservations
This commit is contained in:
parent
b492f64769
commit
6fbf93fb9c
2 changed files with 34 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
Shindo.tests('AWS::Elasticache | describe reserved cache nodes',
|
||||
['aws', 'elasticache']) do
|
||||
|
||||
tests('success') do
|
||||
pending if Fog.mocking?
|
||||
|
||||
tests(
|
||||
'#describe_reserved_cache_nodes'
|
||||
).formats(AWS::Elasticache::Formats::RESERVED_CACHE_NODES) do
|
||||
AWS[:elasticache].describe_reserved_cache_nodes().body['ReservedCacheNodes']
|
||||
end
|
||||
end
|
||||
|
||||
tests('failure') do
|
||||
# TODO:
|
||||
end
|
||||
end
|
|
@ -63,6 +63,23 @@ class AWS
|
|||
'SourceType' => String,
|
||||
}
|
||||
EVENT_LIST = [EVENT]
|
||||
|
||||
RESERVED_CACHE_CLUSTER = {
|
||||
'CacheNodeCount' => Integer,
|
||||
'CacheNodeType' => String,
|
||||
'Duration' => Integer,
|
||||
'FixedPrice' => Float,
|
||||
'OfferingType' => String,
|
||||
'ProductDescription' => String,
|
||||
'RecurringCharges' => Array,
|
||||
'ReservedCacheNodeId' => String,
|
||||
'ReservedCacheNodesOfferingId' => String,
|
||||
'StartTime' => DateTime,
|
||||
'State' => String,
|
||||
'UsagePrice' => Float
|
||||
}
|
||||
RESERVED_CACHE_CLUSTER_LIST = [RESERVED_CACHE_CLUSTER]
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue