summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * | Add a very simple test that *must* always pass.Arturo Filastò2012-10-31
| | | | | | | | | | | | * Useful for testing the newstyle API
| * | Port squid transparent HTTP proxy detector to new APIArturo Filastò2012-10-31
| | | | | | | | | | | | | | | | | | | | | * Remove some dead code * Move authors to new directory * Make reporter not swallow all tracebacks * Fix some bugs in httpt
| * | * Changed txscapy.sendReceivePackets() to accept **kwargs so that theIsis Lovecruft2012-10-31
| | | | | | | | | | | | | | | default timeout could be overriden. * Unittest for sorting out multiple inheritance issues.
| * | * Refactored runner to get it to recognise test suboptions.Isis Lovecruft2012-10-31
| | |
| * | * Refactored nettest.TestCase to get it to recognize test suboptions.Isis Lovecruft2012-10-31
| | |
| * | * Updated echo test to the new API. Need to merge master and retest.Isis Lovecruft2012-10-31
| | |
| * | * Added an InputUnitProcessor class for generating generators forIsis Lovecruft2012-10-31
| | | | | | | | | | | | | | | processing inputs. In ooni.inputunit * Also added a couple of exception classes.
| * | * More whitespace cleanup.Isis Lovecruft2012-10-31
| | |
| * | * Removed extra whitespace.Isis Lovecruft2012-10-31
| | |
| * | * Forgot to remove the old ValueChecker. Made it dead.Isis Lovecruft2012-10-31
| | |
| * | * Added a Singleton class which can be subclassed, ensuring that there canIsis Lovecruft2012-10-31
| | | | | | | | | | | | | | | only ever be one instance of the subclass, to ooni.utils.process * Style-fixing on a couple of assert statements.
| * | * Added utilities file for assertions and checks.Isis Lovecruft2012-10-31
| | | | | | | | | | | | * Moved the usage.Options ValueChecker class to the utils.assertions file.
| * | * Initial outline of metaclasses for dynamic class generation.Isis Lovecruft2012-10-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Data Descriptor class. * Utilities for tricks and hacks to play to pass data between instances, and call super on a parent class that you don't yet know the name of. * I know this stuff looks hacky, and thus it's not being used anywhere yet, but I think it could provide later optimizations, both for runtime for the code and also for decision trees to handle progressions of tests without knowing what the future tests will be. Maybe.
| * | * Added a couple basic Exception classes to ooni.utils.netIsis Lovecruft2012-10-31
| | |
| * | * Added a basic ping (ICMP8) test.Isis Lovecruft2012-10-23
| | |
| * | * Cleaned up a statement printed on ImportError when dnspython is notIsis Lovecruft2012-10-23
| | | | | | | | | | | | | | | | | | installed. * TODO Fix the Resolver in twisted.python.names so that we can use it instead of dnspython.
* | | * Fix import error.Isis Lovecruft2012-10-31
| | |
* | | Implement reporter for OONIBArturo Filastò2012-10-31
| | | | | | | | | | | | * Fix bad bug in reporter for OONIC
* | | Add requiresRoot attribute to test APIArturo Filastò2012-10-26
| | | | | | | | | | | | * Will trigger error if trying to run a test that requires root
* | | Add glossary with list of terms we use in OONIArturo Filastò2012-10-26
| | |
* | | Use log.msg instead of print in dnstamperArturo Filastò2012-10-24
| | | | | | | | | | | | * Minor cleanup
* | | Avoid doing wildcard import of scapy.allArturo Filastò2012-10-24
| | | | | | | | | | | | * Your code has been rated at 5.68/10 (previous run: 5.63/10)
* | | Refactor reporter, config and onionArturo Filastò2012-10-24
| | | | | | | | | | | | * Stop using newstyle super method on oldstyle class
* | | Refactor reporter and removal of dead codeArturo Filastò2012-10-24
| | |
* | | Further refactoring of nettest and runnerArturo Filastò2012-10-24
| | | | | | | | | | | | | | | | | | * Add some notes on running tests in threads * Define and document _tests attribute of out nettest TestSuite * Remove unused code
* | | Add to global import table legacy modulesArturo Filastò2012-10-24
| | | | | | | | | | | | * Refactor test case directory structure separating legacy tests from new tests
* | | Refactor runner and ooniArturo Filastò2012-10-24
| | | | | | | | | | | | | | | * Remove unused imports * Fix import indentation (please do not align from modules)
* | | Move a super nested directory that contained old bash scripts to rootArturo Filastò2012-10-23
| | | | | | | | | | | | * Delete fluff
* | | Remove lot's of dead code and documentation, salvage the salvagableArturo Filastò2012-10-23
| | | | | | | | | | | | * It was on the point of rotting.
* | | Add a very simple test that *must* always pass.Arturo Filastò2012-10-23
| | | | | | | | | | | | * Useful for testing the newstyle API
* | | Merge branch 'master' of ssh://git-rw.torproject.org/ooni-probeArturo Filastò2012-10-23
|\ \ \ | |/ /
| * | * Updated .gitignore to ignore reports.Isis Lovecruft2012-10-23
| | |
* | | Port squid transparent HTTP proxy detector to new APIArturo Filastò2012-10-23
|/ / | | | | | | | | | | | | * Remove some dead code * Move authors to new directory * Make reporter not swallow all tracebacks * Fix some bugs in httpt
* | Add some notes on netalyzr testArturo Filastò2012-10-23
| |
* | Port Netalyzr test to new APIArturo Filastò2012-10-23
| | | | | | | | * Make new generation tests work properly
* | Make logged work againArturo Filastò2012-10-23
| | | | | | | | | | | | | | | | * A good opportunity to refactor logging related code * Implement time related utilities * Start outlining configuration script * Move netalyzr test to nettest * XXX the new API tests are not working properly
* | Review the changes to runner.py that are relevant to the new APIArturo Filastò2012-10-20
| | | | | | | | | | | | * XXX we should focus on the currently API and aim for dropping support for legacy tests. That API had some important design flaws and we should not encourage the continued use of it.
* | * Refactored ooni/runner.py again, so that it actually runs old OONITests, newIsis Lovecruft2012-10-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests still work too. I tested all of them (both nettests and legacy tests) and then diffed the results from before and after these changes. Some tests *are* broken, e.g. dnstamper doesn't seem to find its inputs correctly, but none of the tests are any more broken than they were before this commit -- the difference is that old tests will run. * There was a rather nasty problem with old tests not finding their subOptions(), which was due to Twisted's usage.Options class only being able to handle one level of subOptions. When the old tests expected ooni/ooniprobe.py to have the global_options and themselves to have local_options, what was actually happening was that ooni/oonicli.py took the first level, and then the test took the second, and thus was missing any global_options. * There was also a bug where, before, ooni/runner.py would do things like: self.legacy_test.local_options = self.subOptions when self.legacy_test is an already instantiated subclass of ooni.plugoo.tests.OONITest. Because 'local_options' in this case is obviously an attribute of the class, we have to do setattr(). Because of this series of bugs, the legacy tests were missing a whole bunch of class attributes which they required to run, read test inputs from files, and really do anything at all. * The function ooni.utils.legacy.start_legacy_test() now handles creating a defer.gatherResults(defer.DeferredList), where the defer.DeferredList is all of the calls to ooni.plugoo.tests.OONITest.startTest(args) with all of the iterations of args. * Added and updated a bunch of documentation. * TODO some more documentation. * TODO there might be more bugs. I sure as hell hope not. :( * TODO go to bed now. I am getting grumpy.
* | * Moved legacy test classes and functions to a utility file atIsis Lovecruft2012-10-19
| | | | | | | | | | ooni/utils/legacy.py because they were getting a little cluttery. * Added documentation and cleaned up code in ooni/runner.py.
* | * Fixed an error due to a missing import in ooni/nettest.py.Isis Lovecruft2012-10-16
| |
* | Fix some bugs introduced in runner.pyArturo Filastò2012-10-13
| |
* | * Moved /bin/oonicli back to /bin/ooniprobe, and the script to start the oldIsis Lovecruft2012-10-12
| | | | | | | | ooniprobe.py is now at /bin/old_ooniprobe. It seems less confusing that way.
* | * Fixed a bug where the logger printed double messages to stdout.Isis Lovecruft2012-10-12
| | | | | | | | | | * Fixed a problem where the reactor wouldn't get started if legacyTests were used.
* | * Moved /bin/ooniprobe start script to /bin/oonicli.Isis Lovecruft2012-10-12
| | | | | | | | | | | | | | * Added new /bin/ooniprobe start script to use the old ooniprobe.py for legacy tests. * Fixed a bug in ooniprobe.runTest where it returned too early. * Fixed the inputs parser in ooni.runner.adaptLegacyTest.
* | * Added a startup script for running the old ooniprobe.py directly withoutIsis Lovecruft2012-10-11
| | | | | | | | | | | | installing, including detecting our current working directory and dynamically adding the correct path to $PYTHONPATH, only if that path isn't present already.
* | * Updated documentation on the *super* old ooni tests and modified .gitignoreIsis Lovecruft2012-10-11
| | | | | | | | to exclude *.yaml and some asset files.
* | * Rewrote the runner.LegacyOONITest class and runner.loadTestsAndOptionsIsis Lovecruft2012-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function so that they actually run old tests. * Added a weird dynamic method-finding hack to get around old tests being considered a module inside a module, e.g. ooni.plugins.dnstamper.dnstamper.startTest(). This is due to the __init__ structure of that directory, and so the test filename is a module, which ooniprobe.py then calls the test from, which I think makes it into another module or class. Sometimes distributed python modules have this characteristic as well, and the hack seems to work to figure out the name of the test we're supposed to be running and thus pass that to ooniprobe.py correctly. * Added another weird hack to re-add the __base__ builtin attr to subclasses of OONITest, because for some odd reason it was missing in all of them, and both inspect and Twisted expect it to be there. * Moved legacy_reporter and LegacyOONITest classes out of their prior wrapper. * TODO: Check that new-API-style tests still run correctly! * TODO: Some of the legacy tests throw KeyErrors on assets['somekey'] when they expect to find them and don't. The new oonicli should handle these in case the testwriters don't.
* | * Added a trick to supress scapy's annoying "No route found for IPv6 ↵Isis Lovecruft2012-10-11
| | | | | | | | | | | | destination" warnings.
* | * Fixed broken imports in tcpconnect test.Isis Lovecruft2012-10-11
| |
* | * Fixed a stupid typo error in one of the variable names.Isis Lovecruft2012-10-11
| |