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 :status, :aliases => 'SubnetGroupStatus'
|
||||
attribute :vpc_id, :aliases => 'VpcId'
|
||||
attribute :subnets, :aliases => 'Subnets'
|
||||
attribute :subnet_ids, :aliases => 'Subnets'
|
||||
|
||||
# TODO: ready?, save, destroy
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ module Fog
|
|||
'DBSubnetGroupName' => name,
|
||||
'DBSubnetGroupDescription' => description,
|
||||
'SubnetGroupStatus' => 'Complete',
|
||||
'Subnets' => subnets.map { |sn| sn.subnet_id },
|
||||
'Subnets' => subnet_ids,
|
||||
'VpcId' => vpc_id
|
||||
}
|
||||
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('A subnet group') { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['DBSubnetGroupDescription'] }
|
||||
returns(@vpc.id) { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['VpcId'] }
|
||||
returns(subnet_ids.sort) { result['CreateDBSubnetGroupResult']['DBSubnetGroup']['Subnets'].sort }
|
||||
|
||||
result
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue