1
0
Fork 0
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:
Sean Hart 2013-01-16 17:06:30 -08:00
parent b492f64769
commit 6fbf93fb9c
2 changed files with 34 additions and 0 deletions

View file

@ -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

View file

@ -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