mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix a few small spec related bugs
This commit is contained in:
parent
8f0a7a8c85
commit
97e474f75e
4 changed files with 10 additions and 9 deletions
|
@ -50,7 +50,7 @@ module Fog
|
|||
else
|
||||
@server = nil
|
||||
self.server_id = new_server.id
|
||||
connection.associate_address(@server_id, @public_ip)
|
||||
connection.associate_address(server_id, public_ip)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -58,7 +58,7 @@ module Fog
|
|||
@server = nil
|
||||
self.server_id = nil
|
||||
unless new_record?
|
||||
connection.disassociate_address(@public_ip)
|
||||
connection.disassociate_address(public_ip)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ module Fog
|
|||
filters = {'group-name' => [*filters]}
|
||||
end
|
||||
self.filters = filters
|
||||
data = connection.describe_security_groups(@filters).body
|
||||
data = connection.describe_security_groups(filters).body
|
||||
load(data['securityGroupInfo'])
|
||||
end
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ describe 'Fog::AWS::Compute::Volumes' do
|
|||
describe "#get" do
|
||||
|
||||
it "should return a Fog::AWS::Compute::Volume if a matching volume exists" do
|
||||
volume = AWS[:compute].volumes.create(:availability_zone => 'us-east-1a', :size => 1, :device => 'dev/sdz1')
|
||||
volume = AWS[:compute].volumes.create(:availability_zone => 'us-east-1a', :size => 1)
|
||||
volume.wait_for { ready? }
|
||||
get = AWS[:compute].volumes.get(volume.id)
|
||||
volume.attributes.should == get.attributes
|
||||
|
|
|
@ -3,11 +3,12 @@ Shindo.tests('AWS::Storage | bucket requests', ['aws']) do
|
|||
tests('success') do
|
||||
|
||||
@bucket_format = {
|
||||
'IsTruncated' => Fog::Boolean,
|
||||
'Marker' => NilClass,
|
||||
'MaxKeys' => Integer,
|
||||
'Name' => String,
|
||||
'Prefix' => NilClass,
|
||||
'CommonPrefixes' => [],
|
||||
'IsTruncated' => Fog::Boolean,
|
||||
'Marker' => NilClass,
|
||||
'MaxKeys' => Integer,
|
||||
'Name' => String,
|
||||
'Prefix' => NilClass,
|
||||
'Contents' => [{
|
||||
'ETag' => String,
|
||||
'Key' => String,
|
||||
|
|
Loading…
Add table
Reference in a new issue