summaryrefslogtreecommitdiff
path: root/ooni
Commit message (Collapse)AuthorAge
...
| * Fixes pcapfile name generation and concentrates it where it's neededFlavio Amieiro2012-12-07
| |
| * Removes duplicated startSniffer codeFlavio Amieiro2012-12-07
| |
| * Removes all references to config.reports.yamlooFlavio Amieiro2012-12-07
| |
| * Fixes reportfile creation when the reportfile name is not definedFlavio Amieiro2012-12-07
| | | | | | | | | | | | | | | | | | | | My last commit (2becc29d40f8) broke the reporting when the filename wasn't defined. I took the filename creation logic from ooni/config.py@generateReportFilenames to use when the command line (or test deck) does not define a name for the report file. If this is the right way to go, this code probably needs a cleanup, at least to avoid duplication of this code.
| * This is a possible fix for https://trac.torproject.org/projects/tor/ticket/7664Flavio Amieiro2012-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In my tests, running a deck with this patch gave the desired output (one report by test). This doesn't mean this fix is the best one, and I don't feel confortable enough with the codebase to even know if this is the right direction. The underlying problem seems to be that this code is using a global variable "reports" (imported from config.py) to store the report filename, and this is getting overwritten for each test that's added. Because of that, the last reportfile described in the deck (for before_i_commit.deck it was http_host.yamloo) was beeing used every time. Since the reporter saved a backup of the file if it already existed, it saved the output of the last test (for before_i_commit.deck it was dns_tamper) in and .old file.
| * Properly handle empty tor configuration parametersArturo Filastò2012-12-07
| |
| * Merge branch 'master' of ssh://git-rw.torproject.org/ooni-probeArturo Filastò2012-12-07
| |\ | | | | | | | | | | | | * 'master' of ssh://git-rw.torproject.org/ooni-probe: This fixes a broken commit and fixes scripts/before_i_commit.sh
| | * This fixes a broken commit and fixes scripts/before_i_commit.shJacob Appelbaum2012-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally, I would not put two fixes into one commit - however, git master was broken. The fix in txscapy.py fixes it such that I can run tests at all. The fix in scripts/before_i_commit.sh allows me to actually run the thing. It now depends on bash and as a result, it works properly. If we actually want this this to run on an older unix machine, such a user can fix it to work with a /bin/sh that isn't based on bash or later implementations. The previous version of scripts/before_i_commit.sh erased all .yamloo files and as a result, erased a lot of import data. If we run tests, we should not ever erase the data automatically.
| * | Refactor reporting and trap gaierror, TimeoutErroraagbsn2012-12-07
| | |
| * | Catch socket.gaierroraagbsn2012-12-07
| |/ | | | | | | | | | | | | Import SOCKSError, ResponseNeverReceived Add error logging for unknown failure types Log entire failure instance Try to catch more details about errors
| * Improve the appearance of stdout outputArturo Filastò2012-12-07
| | | | | | | | | | * No longer use the python logging interface * Include only the timestamp and component name in the ooniprobe log
| * Set the default ASN to 0Arturo Filastò2012-12-07
| | | | | | | | * Should be good as per http://tools.ietf.org/html/draft-ietf-idr-as0-06
| * Update the reporting path in the ooniprobeArturo Filastò2012-12-07
| |
| * Make scapy a soft depedency in the daphn3 kitArturo Filastò2012-12-07
| |
| * Make pypcap a soft dependencyArturo Filastò2012-12-06
| | | | | | | | * Update before_i_commit script to point to the new test deck location
| * Cleanup all the source tree from dead code and cruftArturo Filastò2012-12-06
| | | | | | | | * Create directory for storing test decks
| * Merge branch 'master' of github.com:hellais/ooni-probeArturo Filastò2012-12-06
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of github.com:hellais/ooni-probe: Make nettests/* python modules Add nettest apidoc Set release version to 0.1-alpha Add references to classes in writing_tests Add documentation for the DNSSpoof test Add documentation for HTTPHeaderFieldManipulation Clean up writing_tests.rst Remove redundant heading Add automodule for tcpt to ooni.templates.rst Use section headers Add documentation and examples templates httpt and dnst Clean up index.rst Add docstrings to ooni/runner.py Remove automodule for ooni/__init__.py Add docstrings to network helper functions Add dnst to ooni.templates.rst Fix spelling in test documentation call launch_tor with the tor_binary from config Use HTTPS where available
| | * Merge pull request #18 from aagbsn/update_documentationArturo Filastò2012-12-06
| | |\ | | | | | | | | Update documentation
| | | * Add docstrings to ooni/runner.pyaagbsn2012-12-06
| | | | | | | | | | | | | | | | | | | | Add docstring to startTor() Add docstring to startSniffing()
| | | * Add docstrings to network helper functionsaagbsn2012-12-06
| | | | | | | | | | | | | | | | | | | | Adds documentation for getDefaultIface and getNetworkFromRoutes. Also adds #XXX warning for users of OpenVZ environments.
| | * | Merge pull request #16 from aagbsn/read_tor_path_from_configArturo Filastò2012-12-06
| | |\ \ | | | |/ | | |/| call launch_tor with the tor_binary from config
| | | * call launch_tor with the tor_binary from configaagbsn2012-12-06
| | | | | | | | | | | | | | | | Otherwise, the default is supplied by txtorcon as /usr/sbin/tor
| * | | Make Beautiful soup a soft depedencyArturo Filastò2012-12-06
| | | | | | | | | | | | | | | | * Remove un-needed dependencies from requirements.txt
| * | | Add support for sending the ASN number of the probeArturo Filastò2012-12-06
| | | | | | | | | | | | | | | | * The ASN number will get sent when creating a new report
| * | | Add support for obtaining the probes IP address via getinfo addressArturo Filastò2012-12-06
| |/ / | | | | | | | | | * As detailed in https://trac.torproject.org/projects/tor/ticket/7447
* | | Fixed a misnamed variable, and a call to log.err when there was not an errorIsis Lovecruft2012-12-17
| | | | | | | | | | | | followed by an unhandled exception in ooni/utils/geodata.py.
* | | Patched upstream scapy, see /ooni/lib/001-scapy_missing-exc.sh.patch. ModifiedIsis Lovecruft2012-12-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | txscapy so that user's running unpatched versions will also work. * Fixed timeout settings for ScapySender. * Fixed an error where scapy.utils.PcapWriter wasn't expecting unicode... * Cleaned up extra imports in /ooni/utils/txscapy.py. * Cleaned up a log statement which concatenated to strings (this causes errors for twisted sometimes). * Moved exception classes to beginning of txscapy.py file.
* | | Updated ooniprobe.conf with the default_timeout setting for general maximumIsis Lovecruft2012-12-13
| | | | | | | | | | | | | | | connection timeout, and changed the old 'checktimeout' to be 'default_timeout'.
* | | Started fixing a bug in oonicli.updateStatusBar() and runner.runTestList()Isis Lovecruft2012-12-13
| | | | | | | | | | | | | | | | | | where the status bar hangs at 100%. It needs to be changed to use twisted.internet.task.Cooperator and t.i.t.CooperativeTask, which means that oonicli.updateStatusBar() still needs to be changed to be an iterator.
* | | Fixed a bug where ooni.runner.processTest() expected an unnecessaryIsis Lovecruft2012-12-12
| | | | | | | | | | | | | | | | | | | | | | | | parameter. Also fixed a TypeError due to string formatting in runTestCasesWithInputUnit(), and a couple typos for method calls. * Fixed an "except NoPostProcessor" which should have been "except nettest.NoPostProcessor".
* | | Moved method NetTestCase._checkRequiredOptions() logic into a function inIsis Lovecruft2012-12-12
| | | | | | | | | | | | | | | | | | | | | | | | ooni/runner.py, because it was unnecessary and also more lines of code to put in nettest.py. * Also removed an extraneous call to _checkRequiredOptions. * Moved another exception to the top of ooni/runner.py.
* | | Cleaned up logic for the reactor to callback to test_skip_class() inIsis Lovecruft2012-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | ooni.runner.runTestCaseWithInput(). * Moved Exceptions classes to beginning of file. * Fixed a raise statement which called an Exception that doesn't exist anymore. * Cleaned up documentation, imports, code style, and indentation.
* | | Removed an import line from ooni/reporter.py which tried to import classesIsis Lovecruft2012-12-12
| | | | | | | | | | | | which are now contained in ooni/reporter.py.
* | | Merge branch 'master' into tcp-flagsIsis Lovecruft2012-12-12
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ooni/inputunit.py ooni/nettest.py ooni/oonicli.py ooni/reporter.py ooni/runner.py ooni/utils/hacks.py ooni/utils/net.py ooni/utils/txscapy.py ooniprobe.conf.sample
| * | Fixed error with reporting results for tcp flags tests, and cleaned up testIsis Lovecruft2012-12-09
| | | | | | | | | | | | abort code.
| * | Refactoring tcp flag testIsis Lovecruft2012-12-06
| | |
| * | Cleaning up test abort and skip code.Isis Lovecruft2012-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Using log.catch in the form log.catch(func, *args, **kwargs) somehow causes '_catch' to be registered as a test_method, so calls in this manner have been removed. * Cleaned up excessive calls to reactor.run() and reactor.stop(). reactor.stop() should only be called if reactor.running is True.
| * | fixup! Added abort methodsIsis Lovecruft2012-12-05
| | |
| * | Added timeout and abort for test inputs, methods, and classes.Isis Lovecruft2012-12-03
| | |
| * | Fixed log.warn() and log.fail, but blocking on a way for tests to callIsis Lovecruft2012-11-30
| | | | | | | | | | | | a method to abort themselves and hand execution control back to the runner.
| * | Rearranged the logic of ensuring that the reactor is shutdown, and removed aIsis Lovecruft2012-11-28
| | | | | | | | | | | | | | | couple extra blank lines at the end of /ooni/utils/__init__.py and /ooni/utils/hacks.py.
| * | Started implementing a way for a test to abort itself,Isis Lovecruft2012-11-28
| | | | | | | | | | | | nettest.NetTestCase.__test_done__().
| * | Added log.warn() and log.fail() functions to ooni's logger, and fixed theIsis Lovecruft2012-11-28
| | | | | | | | | | | | deferred debugger in tcpsyn.setUp.
| * | Added connection timeout to geoIP requests.Isis Lovecruft2012-11-27
| | |
| * | Added warning suppression for scapy's logger to the beginning of oonicli.py.Isis Lovecruft2012-11-27
| | |
| * | Added an exception catching wrapper for quick debugging, and added more ↵Isis Lovecruft2012-11-23
| | | | | | | | | | | | documentation.
| * | Ported tcpsyn to the new api.Isis Lovecruft2012-11-19
| | |
| * | Removed 'multi' kwarg from txscapy.ScapyProtocol for now, because Arturo isIsis Lovecruft2012-11-18
| | | | | | | | | | | | correct that the parent classes don't correctly handle it.
| * | Consolidated a custom Exception class which was the same in ooni.utils.net andIsis Lovecruft2012-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | ooni.oonicli. * Cleaned up documentation and indentation in oonicli.py, runner.py, utils/net.py, and utils/__init__.py. * Removed all occurences of the duplicate Exception class. * Added IPv4/v6 parser checkIPandPort() to utils/net.py.
| * | Updated ooni.inputunit.InputUnit documentation, and fixed __repr__ to showIsis Lovecruft2012-11-18
| | | | | | | | | | | | original input list.