-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use Aws::Query::ParamList::IoWrapper#read when building an async buffered body
- Loading branch information
Julien D
committed
Jun 14, 2020
1 parent
2c2483d
commit c9e1067
Showing
9 changed files
with
64 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Async | ||
module Aws | ||
VERSION = '1.0.1' | ||
VERSION = '1.0.2' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require 'async/aws/all' | ||
|
||
Async::Aws.configure(connection_limit: 4) | ||
|
||
RSpec.describe Async::Aws do | ||
it 'should execute dynamodb:GetItem action' do | ||
Async::Reactor.run do |reactor| | ||
task = Async do | ||
dynamo = Aws::DynamoDB::Client.new | ||
result = dynamo.get_item( | ||
table_name: 'async-aws-rspec', | ||
key: { pk: 'test' } | ||
) | ||
expect(result.data).to be_kind_of(Aws::DynamoDB::Types::GetItemOutput) | ||
end | ||
|
||
task.wait | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'async/aws/all' | ||
|
||
Async::Aws.configure(connection_limit: 4) | ||
|
||
RSpec.describe Async::Aws do | ||
it 'should execute s3:ListBuckets action' do | ||
Async::Reactor.run do | ||
s3 = Aws::S3::Client.new | ||
|
||
task = Async do | ||
result = s3.list_buckets | ||
expect(result.data).to be_kind_of(Aws::S3::Types::ListBucketsOutput) | ||
end | ||
|
||
task.wait | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require 'async/aws/all' | ||
|
||
Async::Aws.configure(connection_limit: 4) | ||
|
||
RSpec.describe Async::Aws do | ||
it 'should execute sqs:ListQueues action' do | ||
Async::Reactor.run do | ||
task = Async do | ||
sqs = Aws::SQS::Client.new | ||
result = sqs.list_queues | ||
expect(result.data).to be_kind_of(Aws::SQS::Types::ListQueuesResult) | ||
end | ||
|
||
task.wait | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters