ooni-probe-cli/internal/engine/experiment/webconnectivity
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Simone Basso 3b27780836
fix(webconnectivity): ignore any status code <= 0 (#579)
This diff changes the algorithm used by webconnectivity's
httpanalysis.go to ignore any status code <= 0 rather
than just ignoring the == 0 case.

Make sure we add test cases for when the control's status
code is negative rather than being zero.

While there, simplify code where boolean checks could be
more compact according to staticcheck.

Closes https://github.com/ooni/probe/issues/1825
2021-11-05 13:51:22 +01:00
..
internal chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
connects.go fix(webconnectivity): expose network events (#258) 2021-03-23 16:46:46 +01:00
connects_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
control.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
control_test.go feat: tutorial on how to write the torsf experiment (#390) 2021-06-22 00:12:03 +02:00
dnsanalysis.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
dnsanalysis_test.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
dnslookup.go fix(webconnectivity): expose network events (#258) 2021-03-23 16:46:46 +01:00
dnslookup_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
endpoints.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
endpoints_test.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
httpanalysis.go fix(webconnectivity): ignore any status code <= 0 (#579) 2021-11-05 13:51:22 +01:00
httpanalysis_test.go fix(webconnectivity): ignore any status code <= 0 (#579) 2021-11-05 13:51:22 +01:00
httpget.go fix(webconnectivity): expose network events (#258) 2021-03-23 16:46:46 +01:00
httpget_test.go fix(webconnectivity): allow measuring https://1.1.1.1 (#241) 2021-03-08 12:05:43 +01:00
summary.go fix(webconnectivity): ignore any status code <= 0 (#579) 2021-11-05 13:51:22 +01:00
summary_test.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
webconnectivity.go feat(webconnectivity): collect timing information (#537) 2021-10-05 12:52:19 +02:00
webconnectivity_test.go feat(webconnectivity): collect timing information (#537) 2021-10-05 12:52:19 +02:00