Created
December 14, 2015 21:35
-
-
Save hellais/09d0b942721004c55ac8 to your computer and use it in GitHub Desktop.
interesting queries for ooni-api
This file contains hidden or 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
# Interesting DNS Consistency tests | |
SELECT input, report_id FROM reports WHERE test_name='dns_consistency' AND (test_keys->>'tampering_detected')::bool=true; | |
# Interesting HTTP requests tests | |
SELECT input, report_id FROM reports WHERE test_name='http_requests' AND (test_keys->>'body_length_match')::bool=false; | |
# Interesting tests that indicate a generic failure | |
SELECT input, report_id FROM reports WHERE test_keys->>'failure' != 'null'; |
failure
is one of the strings amongst the following: https://github.com/TheTorProject/ooni-spec/blob/master/data-formats/df-000-base.md#error-strings
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is 'failure' a boolean or does it represent a contextualized error message in the context of this query?