| Commit message (Collapse) | Author | Age |
| ... | |
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | |\
| | |
| | |
| | |
| | | |
* 'master' of ssh://git-rw.torproject.org/ooni-probe:
This fixes a broken commit and fixes scripts/before_i_commit.sh
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | | |
|
| | |/
| |
| |
| |
| |
| |
| | |
Import SOCKSError, ResponseNeverReceived
Add error logging for unknown failure types
Log entire failure instance
Try to catch more details about errors
|
| | |
| |
| |
| |
| | |
* No longer use the python logging interface
* Include only the timestamp and component name in the ooniprobe log
|
| | |
| |
| |
| | |
* Should be good as per http://tools.ietf.org/html/draft-ietf-idr-as0-06
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
* Update before_i_commit script to point to the new test deck location
|
| | |
| |
| |
| | |
* Create directory for storing test decks
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* '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
|
| | | |\
| | | |
| | | | |
Update documentation
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Add docstring to startTor()
Add docstring to startSniffing()
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Adds documentation for getDefaultIface and getNetworkFromRoutes.
Also adds #XXX warning for users of OpenVZ environments.
|
| | | |\ \
| | | |/
| | |/| |
call launch_tor with the tor_binary from config
|
| | | | |
| | | |
| | | |
| | | | |
Otherwise, the default is supplied by txtorcon as /usr/sbin/tor
|
| | | | |
| | | |
| | | |
| | | | |
* Remove un-needed dependencies from requirements.txt
|
| | | | |
| | | |
| | | |
| | | | |
* The ASN number will get sent when creating a new report
|
| | |/ /
| | |
| | |
| | | |
* As detailed in https://trac.torproject.org/projects/tor/ticket/7447
|
| | | |
| | |
| | |
| | | |
followed by an unhandled exception in ooni/utils/geodata.py.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
| | |
| | |
| | |
| | | |
connection timeout, and changed the old 'checktimeout' to be
'default_timeout'.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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".
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
| | |
| | |
| | | |
which are now contained in ooni/reporter.py.
|
| |\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | | |
abort code.
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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.
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
a method to abort themselves and hand execution control back to the runner.
|
| | | |
| | |
| | |
| | |
| | | |
couple extra blank lines at the end of /ooni/utils/__init__.py and
/ooni/utils/hacks.py.
|
| | | |
| | |
| | |
| | | |
nettest.NetTestCase.__test_done__().
|
| | | |
| | |
| | |
| | | |
deferred debugger in tcpsyn.setUp.
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
documentation.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
correct that the parent classes don't correctly handle it.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
| | |
| | |
| | | |
original input list.
|