1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

modified security group tests to accomodate the new security group data model. Also allowed permissions to be nil in the security tests for groups with no ACLs

This commit is contained in:
Eric Stonfer 2011-12-23 09:37:13 -05:00
parent 9a94955597
commit db8d7abf16
3 changed files with 6 additions and 10 deletions

View file

@ -22,7 +22,6 @@ module Fog
service(:sqs, 'aws/sqs', 'SQS')
service(:sts, 'aws/sts', 'STS')
service(:storage, 'aws/storage', 'Storage')
service(:vpc, 'aws/vpc', 'VPC')
def self.indexed_param(key, values)
params = {}

View file

@ -194,11 +194,7 @@ module Fog
def save
requires :description, :name
if (vpc_id.length)
data = connection.create_security_group(name, description, vpc_id).body
else
data = connection.create_security_group(name, description).body
end
data = connection.create_security_group(name, description, vpc_id).body
true
end

View file

@ -7,14 +7,15 @@ Shindo.tests('Fog::Compute[:aws] | security group requests', ['aws']) do
'groupId' => Fog::Nullable::String,
'groupName' => String,
'ipPermissions' => [{
'fromPort' => Integer,
'groups' => [{ 'groupName' => String, 'userId' => String }],
'fromPort' => Fog::Nullable::Integer,
'groups' => [{ 'groupName' => Fog::Nullable::String, 'userId' => String }],
'ipProtocol' => String,
'ipRanges' => [],
'toPort' => Integer,
'toPort' => Fog::Nullable::Integer,
}],
'ipPermissionsEgress' => [],
'ownerId' => String
'ownerId' => String,
'vpcId' => Fog::Nullable::String
}]
}