summaryrefslogtreecommitdiff
path: root/ooni
Commit message (Collapse)AuthorAge
...
* | * Added check on import so that uninitialized /ooni/lib doesn't cause anIsis Lovecruft2012-10-31
| | | | | | | | Exception.
* | * Removed the optFlags from echo.py since they will not get parsed.Isis Lovecruft2012-10-31
| | | | | | | | | | * Added debug statement to reporter. * Fixed misnamed variables in nettest.py.
* | * 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-31
| | | | | | | | * Will trigger error if trying to run a test that requires root
* | Avoid doing wildcard import of scapy.allArturo Filastò2012-10-31
| | | | | | | | * Your code has been rated at 5.68/10 (previous run: 5.63/10)
* | Refactor reporter, config and onionArturo Filastò2012-10-31
| | | | | | | | * Stop using newstyle super method on oldstyle class
* | Refactor reporter and removal of dead codeArturo Filastò2012-10-31
| |
* | Further refactoring of nettest and runnerArturo Filastò2012-10-31
| | | | | | | | | | | | * 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-31
| | | | | | | | * Refactor test case directory structure separating legacy tests from new tests
* | Refactor runner and ooniArturo Filastò2012-10-31
| | | | | | | | | | * Remove unused imports * Fix import indentation (please do not align from modules)
* | 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
| |
* | * 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
| |
* | 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
| |
* | * 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.
* | * 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
| |
* | * Cleaned up the code a tiny bit.Isis Lovecruft2012-10-11
| |
* | * Added the config object as a required parameter toIsis Lovecruft2012-10-11
| | | | | | | | | | ooni.runner.loadTestsAndOptions(), so that config['subArgs'] is accessible by the LegacyOONITest class at instantiation.
* | * Added a parameter check to make sure that inputFile in nettest.getOptions() isIsis Lovecruft2012-10-11
| | | | | | | | actually a file on the system.
* | Merge branch 'master' of git://github.com/hellais/ooni-probe into ↵Isis Lovecruft2012-10-09
|\ \ | | | | | | | | | hellais-test-pull
| * | Parametrize lookup timeout in dnstamper.Arturo Filastò2012-10-08
| | |
* | | * Started working on refactoring the DNStamper test, but since Arturo isIsis Lovecruft2012-10-09
|/ / | | | | | | also working on it, I will work on something else. :)
* | Fix a nasty bug in inputunitArturo Filastò2012-10-08
| | | | | | | | | | * Write input unit to avoid that bug from appearing again * Do some progress in debugging some issues with DNSClient
* | Work on input file handlingArturo Filastò2012-10-07
| |
* | Work on scapy related functionalityArturo Filastò2012-10-07
| | | | | | | | | | | | | | | | | | * Discover the existence of bugs in scapy when using Arch Linux. (probably has to do with the non existence of ifconfig, somebody should make a ifconfig to ip wrapper that suggests the user with the equivalent ip command. This would assist sysadmins in migrating away from a deprecated tool and persist backward comaptibility) * Fix bugs in runner and nettest
* | Fix security vulnerability that could have been an issue in the future.Arturo Filastò2012-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically the problem was that we were not using yaml.safe_dump to write reports to the log. What this means is that when we were to go back to parse the reports we could have been loading python objects that may contain arbitrary code. We could not out of the box use safe_dump because we were also dumping certain objects in some test and safe_dump does not serialize complex numbers. * We have now a custom representer that serializes complex numbers * We have our own custom dumper that does the type checking and can be expanded to support other objects we think are safe to read. * Bug fixing in other various parts of the code.
* | Implement collector for classifying website with domclass.Arturo Filastò2012-10-07
| | | | | | | | Next step run this on all the sites we want to test.
* | Do some more thorough benchmarks that identify the issue in BSArturo Filastò2012-10-07
| |