-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
- Use VCR to capture HTTP interactions for s3 integration tests. - Use Timecop instead of sleep. - Clean up shared-test boilerplate. - Move AWS resource#to_a call outside of multithread block (attempt to resolve `JMESPath::Runtime#search` bug potentially caused by thread contention) - replace Fakeweb with WebMock
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,7 +135,8 @@ def record_event(quota_event_type, quota_type, encrypted_channel_id) | |
not_modified if result[:status] == 'NOT_MODIFIED' | ||
last_modified result[:last_modified] | ||
|
||
abuse_score = result[:metadata]['abuse_score'].to_i | ||
metadata = result[:metadata] | ||
abuse_score = [metadata['abuse_score'].to_i, metadata['abuse-score'].to_i].max | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
islemaster
Contributor
|
||
not_found if abuse_score > 0 and !can_view_abusive_assets?(encrypted_channel_id) | ||
|
||
result[:body] | ||
|
do you know why we have both/if we could avoid that?