-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(proguard): Add chunk upload tests (#2322)
Add tests for chunk uploading Proguard mappings. Test the following scenarios: - Uploading a single Proguard mapping, where the file is already on the server. - Uploading a single Proguard mapping, where the file is not on the server. - Uploading two Proguard mappings, where neither is on the server.
- Loading branch information
1 parent
086d139
commit 7e7fd06
Showing
7 changed files
with
369 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+391 Bytes
tests/integration/_expected_requests/upload_proguard/chunk_upload_needs_upload.bin
Binary file not shown.
Binary file added
BIN
+731 Bytes
tests/integration/_expected_requests/upload_proguard/chunk_upload_two_files.bin
Binary file not shown.
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,4 @@ | ||
HelloWorld2 -> HelloWorld2: | ||
# {"fileName":"HelloWorld2.java","id":"sourceFile"} | ||
1:1:void <init>() -> <init> | ||
3:4:void main(java.lang.String[]) -> main |
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,4 @@ | ||
HelloWorld -> HelloWorld: | ||
# {"fileName":"HelloWorld.java","id":"sourceFile"} | ||
1:1:void <init>() -> <init> | ||
3:4:void main(java.lang.String[]) -> main |
11 changes: 11 additions & 0 deletions
11
tests/integration/_responses/upload_proguard/get-chunk-upload.json
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,11 @@ | ||
{ | ||
"url": "organizations/wat-org/chunk-upload/", | ||
"chunkSize": 8388608, | ||
"chunksPerRequest": 64, | ||
"maxFileSize": 2147483648, | ||
"maxRequestSize": 33554432, | ||
"concurrency": 8, | ||
"hashAlgorithm": "sha1", | ||
"compression": ["gzip"], | ||
"accept": ["debug_files", "release_files", "pdbs", "portablepdbs", "sources", "bcsymbolmaps","proguard"] | ||
} |
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