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:
parent
a764d02a7e
commit
724de430de
3 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue