forked from ooni/probe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(webconnectivitylte): add large file test cases (ooni#1475)
Close ooni/probe#1336
- Loading branch information
1 parent
ef127a7
commit e30e816
Showing
16 changed files
with
4,889 additions
and
0 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,47 @@ | ||
package webconnectivityqa | ||
|
||
import "github.com/ooni/probe-cli/v3/internal/netemx" | ||
|
||
// largeFileWithHTTP is the case where we download a large file. | ||
func largeFileWithHTTP() *TestCase { | ||
return &TestCase{ | ||
Name: "largeFileWithHTTP", | ||
Flags: TestCaseFlagNoV04, | ||
Input: "http://largefile.com/", | ||
Configure: func(env *netemx.QAEnv) { | ||
// nothing | ||
}, | ||
ExpectErr: false, | ||
ExpectTestKeys: &testKeys{ | ||
DNSConsistency: "consistent", | ||
StatusCodeMatch: true, | ||
HeadersMatch: true, | ||
TitleMatch: true, | ||
XBlockingFlags: 32, // AnalysisBlockingFlagSuccess | ||
Accessible: true, | ||
Blocking: false, | ||
}, | ||
} | ||
} | ||
|
||
// largeFileWithHTTPS is the case where we download a large file. | ||
func largeFileWithHTTPS() *TestCase { | ||
return &TestCase{ | ||
Name: "largeFileWithHTTPS", | ||
Flags: TestCaseFlagNoV04, | ||
Input: "https://largefile.com/", | ||
Configure: func(env *netemx.QAEnv) { | ||
// nothing | ||
}, | ||
ExpectErr: false, | ||
ExpectTestKeys: &testKeys{ | ||
DNSConsistency: "consistent", | ||
StatusCodeMatch: true, | ||
HeadersMatch: true, | ||
TitleMatch: true, | ||
XBlockingFlags: 32, // AnalysisBlockingFlagSuccess | ||
Accessible: true, | ||
Blocking: false, | ||
}, | ||
} | ||
} |
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
Oops, something went wrong.