-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[backport] feat: add echcheck to the experimental suite
This diff backports #1217 to the release/3.19 branch. - [x] I have read the [contribution guidelines](https://github.com/ooni/probe-cli/blob/master/CONTRIBUTING.md) - [x] reference issue for this pull request: ooni/probe#1453 ooni/probe#2547 - [x] if you changed anything related to how experiments work and you need to reflect these changes in the ooni/spec repository, please link to the related ooni/spec pull request: https://github.com/kelmenhorst/spec/tree/echcheck-spec - [x] if you changed code inside an experiment, make sure you bump its version number This diff does two things: 1. Add `echcheck` to the experimental nettest suite. We do not provide input which causes the experiment to use the default URL `https://crypto.cloudflare.com/cdn-cgi/trace` (URL [proposed](ooni/probe#1453 (comment)) by @eighthave). With this single input configuration we can collect the first experimental ECH measurements. 2. Add netem tests to `echcheck`, while keeping a "real-internet" test to connect to an ECH-enabled server. --------- Co-authored-by: Simone Basso <[email protected]>
- Loading branch information
1 parent
e5f950b
commit a8f4fc2
Showing
5 changed files
with
103 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package nettests | ||
|
||
// ECHCheck nettest implementation. | ||
type ECHCheck struct{} | ||
|
||
// Run starts the nettest. | ||
func (n ECHCheck) Run(ctl *Controller) error { | ||
builder, err := ctl.Session.NewExperimentBuilder("echcheck") | ||
if err != nil { | ||
return err | ||
} | ||
// providing empty input causes the experiment to use the default URL | ||
return ctl.Run(builder, []string{}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters