mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|elasticache] cluster port number cannot be modified
This commit is contained in:
parent
7c2e63075a
commit
b6cd76046d
3 changed files with 1 additions and 13 deletions
|
@ -14,6 +14,7 @@ module Fog
|
|||
attribute :engine_version, :aliases => 'EngineVersion'
|
||||
attribute :num_nodes, :aliases => 'NumCacheNodes'
|
||||
attribute :zone, :aliases => 'PreferredAvailabilityZone'
|
||||
attribute :port, :aliases => 'Port'
|
||||
attribute :maintenance_window, :aliases => 'PreferredMaintenanceWindow'
|
||||
# complex attributes
|
||||
attribute :nodes, :aliases => 'CacheNodes', :type => :array
|
||||
|
|
|
@ -21,7 +21,6 @@ module Fog
|
|||
# * :engine_version <~String> - The Cluster's caching software version
|
||||
# * :notification_topic_arn <~String> - Amazon SNS Resource Name
|
||||
# * :notification_topic_status <~String> - Amazon SNS Topic status
|
||||
# * :port <~Integer> - The memcached port number
|
||||
# * :preferred_maintenance_window <~String>
|
||||
# === Returns
|
||||
# * response <~Excon::Response>:
|
||||
|
@ -54,7 +53,6 @@ module Fog
|
|||
'EngineVersion' => options[:engine_version],
|
||||
'NotificationTopicArn' => options[:notification_topic_arn],
|
||||
'NotificationTopicStatus' => options[:notification_topic_status],
|
||||
'Port' => options[:port],
|
||||
'PreferredMaintenanceWindow' => options[:preferred_maintenance_window],
|
||||
:parser => Fog::Parsers::AWS::Elasticache::SingleCacheCluster.new
|
||||
)))
|
||||
|
|
|
@ -58,17 +58,6 @@ Shindo.tests('AWS::Elasticache | cache cluster requests', ['aws', 'elasticache']
|
|||
body['CacheCluster']
|
||||
end
|
||||
|
||||
tests(
|
||||
'#modify_cache_cluster - change a pending cluster attribute'
|
||||
).formats(AWS::Elasticache::Formats::CACHE_CLUSTER_RUNNING) do
|
||||
body = AWS[:elasticache].modify_cache_cluster(cluster_id,
|
||||
:auto_minor_version_upgrade => false
|
||||
).body
|
||||
# now check that parameter change is in place
|
||||
returns('false') { body['CacheCluster']['AutoMinorVersionUpgrade'] }
|
||||
body['CacheCluster']
|
||||
end
|
||||
|
||||
tests(
|
||||
'#delete_cache_clusters'
|
||||
).formats(AWS::Elasticache::Formats::CACHE_CLUSTER_RUNNING) do
|
||||
|
|
Loading…
Reference in a new issue