Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ab committed Aug 6, 2017
1 parent 131fd5e commit bdf27bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/spec/s3_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'x-amz-expires' => '900',
'authorization' => 'AWS4-HMAC-SHA256 Credential=AKIAJMKSMHNNCQX4ILAH/19700101/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-expires, Signature=fcfb9ddef446db9d31c9f08a4beb05116930b9861947cb49e0c8e8f46f176938'
).and_return(fake_response)
expect(fake_http).to receive(:last_response).and_return(Net::HTTPOK.new(nil, nil, nil))
end

it { is_expected.to be fake_response }
Expand All @@ -54,6 +55,7 @@
'x-amz-security-token' => 'EIZvol3NYAGhIYo3mxmF8Bw3GjRFQq6xmjrlXNQs',
'authorization' => 'AWS4-HMAC-SHA256 Credential=AKIAJMKSMHNNCQX4ILAH/19700101/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-expires;x-amz-security-token, Signature=e5ea717df9b8c93e15b30c86900c016a0d81b46c4b007644ffc80795ff8da15f'
).and_return(fake_response)
expect(fake_http).to receive(:last_response).and_return(Net::HTTPOK.new(nil, nil, nil))
end

it { is_expected.to be fake_response }
Expand All @@ -70,6 +72,7 @@
'x-amz-expires' => '900',
'authorization' => 'AWS4-HMAC-SHA256 Credential=AKIAJMKSMHNNCQX4ILAH/19700101/us-west-2/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-expires, Signature=be57f3bb860d84dae7e8637a75741efdad9796c281c5d3d34ec2c8a5d76663d5'
).and_return(fake_response)
expect(fake_http).to receive(:last_response).and_return(Net::HTTPOK.new(nil, nil, nil))
end

it { is_expected.to be fake_response }
Expand Down

0 comments on commit bdf27bb

Please sign in to comment.