mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Changes RDS subnet attribute name from subnets to subnet_ids
This commit is contained in:
parent
84dd43e468
commit
e0c6f966ee
3 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@ module Fog
|
||||||
attribute :description, :aliases => 'DBSubnetGroupDescription'
|
attribute :description, :aliases => 'DBSubnetGroupDescription'
|
||||||
attribute :status, :aliases => 'SubnetGroupStatus'
|
attribute :status, :aliases => 'SubnetGroupStatus'
|
||||||
attribute :vpc_id, :aliases => 'VpcId'
|
attribute :vpc_id, :aliases => 'VpcId'
|
||||||
attribute :subnets, :aliases => 'Subnets'
|
attribute :subnet_ids, :aliases => 'Subnets'
|
||||||
|
|
||||||
# TODO: ready?, save, destroy
|
# TODO: ready?, save, destroy
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ module Fog
|
||||||
'DBSubnetGroupName' => name,
|
'DBSubnetGroupName' => name,
|
||||||
'DBSubnetGroupDescription' => description,
|
'DBSubnetGroupDescription' => description,
|
||||||
'SubnetGroupStatus' => 'Complete',
|
'SubnetGroupStatus' => 'Complete',
|
||||||
'Subnets' => subnets.map { |sn| sn.subnet_id },
|
'Subnets' => subnet_ids,
|
||||||
'VpcId' => vpc_id
|
'VpcId' => vpc_id
|
||||||
}
|
}
|
||||||
self.data[:subnet_groups][name] = data
|
self.data[:subnet_groups][name] = data
|
||||||
|
|
|
@ -29,6 +29,7 @@ Shindo.tests('AWS::RDS | subnet group requests', ['aws', 'rds']) do
|
||||||
returns(@subnet_group_name) { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['DBSubnetGroupName'] }
|
returns(@subnet_group_name) { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['DBSubnetGroupName'] }
|
||||||
returns('A subnet group') { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['DBSubnetGroupDescription'] }
|
returns('A subnet group') { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['DBSubnetGroupDescription'] }
|
||||||
returns(@vpc.id) { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['VpcId'] }
|
returns(@vpc.id) { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['VpcId'] }
|
||||||
|
returns(subnet_ids.sort) { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['Subnets'].sort }
|
||||||
|
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue