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

[aws|simpledb] idempotent requests, more test fixes

This commit is contained in:
geemus 2011-01-03 17:45:27 -08:00
parent a764d02a7e
commit 724de430de
3 changed files with 3 additions and 4 deletions

View file

@ -130,7 +130,6 @@ module Fog
end
def request(params)
idempotent = params.delete(:idempotent)
parser = params.delete(:parser)
body = AWS.signed_params(
@ -150,7 +149,7 @@ module Fog
:expects => 200,
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' },
:host => @host,
:idempotent => idempotent,
:idempotent => true,
:method => 'POST',
:parser => parser
})

View file

@ -42,7 +42,7 @@ describe 'SimpleDB.get_attributes' do
AWS[:sdb].put_attributes(@domain_name, 'foo', { :bar => the_array })
Fog.wait_for do
actual = AWS[:sdb].get_attributes(@domain_name, 'foo')
actual.body['Attributes']['bar'] =~ the_array
actual.body['Attributes']['bar'] == the_array
end
end
end

View file

@ -20,7 +20,7 @@ describe 'SimpleDB.list_domains' do
it 'should include created domains' do
AWS[:sdb].create_domain(@domain_name)
Fog.wait_fog do
Fog.wait_for do
AWS[:sdb].list_domains.body['Domains'].include?(@domain_name)
end
end