ooni-probe-cli/internal/engine
Simone Basso c6b3889a33
fix(netx): ensure we create ~same HTTP3 and HTTP2 transports (#795)
1. Use the netxlite.NewHTTPTransport factory for creating a new
HTTP2 (and HTTP1) transport;

2. Recognize the netxlite.NewOOHTTPTransport has now become
an implementation detail so make it private;

3. Recognize that netxlite.NewHTTP3Transport should call
netxlite.WrapTransport so it returns the same typechain
returned by netxlite.NewHTTPTransport (modulo, of course,
the real underlying transport), so ensure that we are
calling netxlite.WrapTransport in NewHTTP3Transport;

4. Recognize that the table based constructor inside of
netx needs a logger to create HTTPTransport instances using
either netxlite.NewHTTP{,3}Transport so pass this argument
along and ensure it's not nil using a constructor inside
model that guarantees that;

5. Cleanup netx's tests to avoid type asserting on the
typechains returned by netxlite since we already test
that inside netxlite;

6. Recognize that now we can make more legacy names inside
of netxlite private because we don't need to use them
inside tests anymore (because of previous point).

Reference issue: https://github.com/ooni/probe/issues/2121
2022-06-05 17:41:06 +02:00
..
experiment cleanup(netx): remove redundant config options (#791) 2022-06-02 18:18:49 +02:00
geolocate cleanup: merge httpheader and httpfailure into model (#758) 2022-05-25 09:54:50 +02:00
internal/sessionresolver cleanup: merge httpheader and httpfailure into model (#758) 2022-05-25 09:54:50 +02:00
mockable feat(torsf): collect tor logs, select rendezvous method, count bytes (#683) 2022-02-07 17:05:36 +01:00
netx fix(netx): ensure we create ~same HTTP3 and HTTP2 transports (#795) 2022-06-05 17:41:06 +02:00
probeservices cleanup: mark more integration tests as !short mode (#755) 2022-05-24 21:01:15 +02:00
testdata fix: add missing files causing tests to fail (#202) 2021-02-02 14:18:22 +01:00
.gitignore feat: support embedding encrypted psiphon config (#285) 2021-04-02 17:36:06 +02:00
allexperiments.go Spring cleanup: remove unused/unneded code (#761) 2022-05-25 13:21:39 +02:00
doc.go feat(engine): allow runner to return many measurements (#527) 2021-09-30 00:54:52 +02:00
experiment_integration_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment_internal_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment.go refactor: continue to simplify engine/netx (#769) 2022-05-31 08:11:07 +02:00
experimentbuilder_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
experimentbuilder.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputloader_network_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputloader_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputloader.go chore: import DoH servers from DNSCrypt/dnscrypt-resolvers (#693) 2022-02-17 17:52:16 +01:00
inputprocessor_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputprocessor.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
saver_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
saver.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
session_integration_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
session_internal_test.go fix(ooniprobe): use ooniprobe-cli-unattended for unattended runs (#714) 2022-04-29 13:41:09 +02:00
session_nopsiphon_test.go refactor: only use shaping dialer for ndt7 and dash (#754) 2022-05-24 18:23:42 +02:00
session_nopsiphon.go refactor: only use shaping dialer for ndt7 and dash (#754) 2022-05-24 18:23:42 +02:00
session_psiphon_test.go refactor: only use shaping dialer for ndt7 and dash (#754) 2022-05-24 18:23:42 +02:00
session_psiphon.go refactor: only use shaping dialer for ndt7 and dash (#754) 2022-05-24 18:23:42 +02:00
session.go refactor(session.go): replace engine/netx with netxlite (#767) 2022-05-30 22:00:45 +02:00
submitter_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
submitter.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00