mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Test ResourceNotFound for #put_records
This commit is contained in:
parent
5037c97b90
commit
c6e1d95cf3
1 changed files with 10 additions and 2 deletions
|
@ -31,7 +31,7 @@ Shindo.tests('AWS::Kinesis | stream requests', ['aws', 'kinesis']) do
|
|||
end
|
||||
end
|
||||
|
||||
tests("#put_records").formats(AWS::Kinesis::Formats::PUT_RECORDS_FORMAT, false) do
|
||||
tests("#put_records") do
|
||||
records = [
|
||||
{
|
||||
"Data" => Base64.encode64("foo").chomp!,
|
||||
|
@ -42,7 +42,15 @@ Shindo.tests('AWS::Kinesis | stream requests', ['aws', 'kinesis']) do
|
|||
"PartitionKey" => "1"
|
||||
}
|
||||
]
|
||||
Fog::AWS[:kinesis].put_records("StreamName" => @stream_id, "Records" => records).body
|
||||
|
||||
tests("success").formats(AWS::Kinesis::Formats::PUT_RECORDS_FORMAT, false) do
|
||||
Fog::AWS[:kinesis].put_records("StreamName" => @stream_id, "Records" => records).body
|
||||
end
|
||||
|
||||
tests("ResourceNotFound").raises(Fog::AWS::Kinesis::ResourceNotFound) do
|
||||
Fog::AWS[:kinesis].put_records("StreamName" => @stream_id + "-foo", "Records" => records).body
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
tests("#put_record").formats(AWS::Kinesis::Formats::PUT_RECORD_FORMAT) do
|
||||
|
|
Loading…
Reference in a new issue