ooni-probe-cli/cmd/ooniprobe/internal/nettests
Simone Basso c5ad5eedeb
feat: create tunnel inside NewSession (#286)
* feat: create tunnel inside NewSession

We want to create the tunnel when we create the session. This change
allows us to nicely ignore the problem of creating a tunnel when we
already have a proxy, as well as the problem of locking. Everything is
happening, in fact, inside of the NewSession factory.

Modify miniooni such that --tunnel is just syntactic sugar for
--proxy, at least for now. We want, in the future, to teach the
tunnel to possibly use a socks5 proxy.

Because starting a tunnel is a slow operation, we need a context in
NewSession. This causes a bunch of places to change. Not really a big
deal except we need to propagate the changes.

Make sure that the mobile code can create a new session using a
proxy for all the APIs we support.

Make sure all tests are still green and we don't loose coverage of
the various ways in which this code could be used.

This change is part of https://github.com/ooni/probe/issues/985.

* changes after merge

* fix: only keep tests that can hopefully work

While there, identify other places where we should add more
tests or fix integration tests.

Part of https://github.com/ooni/probe/issues/985
2021-04-05 15:28:13 +02:00
..
dash.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00
dnscheck.go refactor: signal et al. are now experimental nettests (#243) 2021-03-08 13:38:34 +01:00
facebook_messenger.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00
groups.go Add signal to the im test group (#259) 2021-03-22 14:31:50 +01:00
http_header_field_manipulation.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00
http_invalid_request_line.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00
ndt.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00
nettests_test.go feat: create tunnel inside NewSession (#286) 2021-04-05 15:28:13 +02:00
nettests.go fix(ooniprobe): consistent progress with maxRuntime (#277) 2021-03-31 14:06:05 +02:00
psiphon.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00
riseupvpn.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00
run.go feat: create tunnel inside NewSession (#286) 2021-04-05 15:28:13 +02:00
signal.go refactor: signal et al. are now experimental nettests (#243) 2021-03-08 13:38:34 +01:00
stunreachability.go chore: rename stun_reachability => stunreachability (#254) 2021-03-11 19:35:22 +01:00
telegram.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00
tor.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00
web_connectivity_test.go feat(ooniprobe): discard lists not in selected categories (#278) 2021-03-31 14:30:30 +02:00
web_connectivity.go feat(ooniprobe): discard lists not in selected categories (#278) 2021-03-31 14:30:30 +02:00
whatsapp.go fix: import path should be github.com/ooni/probe-cli/v3 (#200) 2021-02-02 10:32:46 +01:00