TheTorProject/ooni-probe — pull request #166 by hellais (2013-08-23 14:56:52+00:00)
Title: Feature/oonib policy

This implements the client side aspects necessary to close tickets: https://github.com/TheTorProject/ooni-probe/issues/109, https://github.com/TheTorProject/ooni-probe/issues/112 and https://github.com/TheTorProject/ooni-probe/issues/116.

It has some basic unittests for testing the core functionality (fetching inputs, querying the bouncer for some test helpers and policy lookups), but they can for sure be improved.

You should review this while having oonib running with this branch https://github.com/TheTorProject/ooni-backend/pull/14.

Pro tips on how to debug this:

To run the unittests:

Have oonib running with the config option `tor_hidden_service: false`.

To test the ooniprobe connecting to a bouncer and doing the full dance have oonib running with `tor_hidden_service: true` and `tor_datadir: /your/oonib/repo/path/data/tor/` (so that you don't reset the .onion address every time you restart it).

Then you can try running the basic test deck:

```
./bin/ooniprobe -b httpo://my_bouncer_address.onion -i decks/basic.deck
```

Don't forget to edit `decks/basic.deck` to point to the new location.