-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8859af8
commit 433d58d
Showing
6 changed files
with
170 additions
and
83 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package webconnectivityqa | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/apex/log" | ||
"github.com/ooni/netem" | ||
"github.com/ooni/probe-cli/v3/internal/netemx" | ||
) | ||
|
||
// throttlingWithHTTPS is the case where the website has throttling configured for it. | ||
func throttlingWithHTTPS() *TestCase { | ||
return &TestCase{ | ||
Name: "throttlingWithHTTPS", | ||
Flags: TestCaseFlagNoV04, | ||
Input: "https://largefile.com/", | ||
Configure: func(env *netemx.QAEnv) { | ||
|
||
env.DPIEngine().AddRule(&netem.DPIThrottleTrafficForTLSSNI{ | ||
Delay: 300 * time.Millisecond, | ||
Logger: log.Log, | ||
PLR: 0.2, | ||
SNI: "largefile.com", | ||
}) | ||
|
||
}, | ||
ExpectErr: false, | ||
ExpectTestKeys: &testKeys{ | ||
DNSConsistency: "consistent", | ||
HTTPExperimentFailure: "generic_timeout_error", | ||
XBlockingFlags: 8, // AnalysisBlockingFlagHTTPBlocking | ||
Accessible: false, | ||
Blocking: "http-failure", | ||
}, | ||
} | ||
} |
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