ooni-probe-cli/internal/model/mocks
Simone Basso b78b9aca51
refactor(datafmt): use "udp" instead of "quic" (#946)
This diff changes the data format to prefer "udp" to "quic" everywhere we were previously using "quic".

Previously, the code inconsistently used "quic" for operations where we knew we were using "quic" and "udp" otherwise (e.g., for generic operations like ReadFrom).

While it would be more correct to say that a specific HTTP request used "quic" rather than "udp", using "udp" consistently allows one to see how distinct events such as ReadFrom and an handshake all refer to the same address, port, and protocol triple. Therefore, this change makes it easier to programmatically unpack a single measurement and create endpoint stats.

Before implementing this change, I discussed the problem with @hellais who mentioned that ooni/data is not currently using the "quic" string anywhere. I know that ooni/pipeline also doesn't rely on this string. The only users of this feature have been research-oriented experiments such as urlgetter, for which such a change would actually be acceptable.

See https://github.com/ooni/probe/issues/2238 and https://github.com/ooni/spec/pull/262.
2022-09-08 17:19:59 +02:00
..
addr_test.go feature: merge measurex and netx archival layer (1/N) (#663) 2022-01-14 12:13:10 +01:00
addr.go feature: merge measurex and netx archival layer (1/N) (#663) 2022-01-14 12:13:10 +01:00
dialer_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dialer.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsdecoder_test.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsdecoder.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsencoder_test.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsencoder.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsquery_test.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsquery.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnsresponse_test.go feat(netxlite): support extracting the CNAME (#875) 2022-08-23 13:04:00 +02:00
dnsresponse.go feat(netxlite): support extracting the CNAME (#875) 2022-08-23 13:04:00 +02:00
dnstransport_test.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
dnstransport.go refactor: DNSTransport I/Os DNS messages (#760) 2022-05-25 17:03:58 +02:00
doc.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment_test.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
experiment.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
experimentbuilder_test.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
experimentbuilder.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
experimentinputloader_test.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
experimentinputloader.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
experimentinputprocessor_test.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
experimentinputprocessor.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
http_test.go refactor(datafmt): use "udp" instead of "quic" (#946) 2022-09-08 17:19:59 +02:00
http.go refactor(oohelperd): improve tests implementation (#835) 2022-07-05 20:25:18 +02:00
keyvaluestore_test.go feat(oonirun): add support for OONIRun v2 links (#844) 2022-07-08 16:53:59 +02:00
keyvaluestore.go feat(oonirun): add support for OONIRun v2 links (#844) 2022-07-08 16:53:59 +02:00
listener_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
listener.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
logger_test.go feat: re-implement the vanilla_tor experiment (#718) 2022-05-10 15:43:28 +02:00
logger.go feat: re-implement the vanilla_tor experiment (#718) 2022-05-10 15:43:28 +02:00
quic_test.go chore: upgrade deps and attempt to enable using go1.19 (#869) 2022-08-19 11:26:50 +02:00
quic.go chore: upgrade deps and attempt to enable using go1.19 (#869) 2022-08-19 11:26:50 +02:00
reader_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
reader.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
resolver_test.go feat(netxlite): implements NS queries (#734) 2022-05-16 10:46:53 +02:00
resolver.go feat(netxlite): implements NS queries (#734) 2022-05-16 10:46:53 +02:00
saver_test.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
saver.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
session_test.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
session.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
submitter_test.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
submitter.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
tls_test.go chore: upgrade deps and attempt to enable using go1.19 (#869) 2022-08-19 11:26:50 +02:00
tls.go chore: upgrade deps and attempt to enable using go1.19 (#869) 2022-08-19 11:26:50 +02:00
trace_test.go feat: context-based tracing to record delayed DNS responses (#870) 2022-08-22 14:21:32 +02:00
trace.go feat: context-based tracing to record delayed DNS responses (#870) 2022-08-22 14:21:32 +02:00
writer_test.go feat(miniooni): optionally log using emojis (#932) 2022-09-05 10:06:44 +02:00
writer.go feat(miniooni): optionally log using emojis (#932) 2022-09-05 10:06:44 +02:00