Skip to content

Commit 4b46a24

Browse files
committed
Add test for relevant caps in chunk-upload response
1 parent 7f858bc commit 4b46a24

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sentry-cli/integration-test/tests/action.Tests.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ Describe 'Invoke-SentryServer' {
4343
$result.UploadedDebugFiles() | Should -Be @('file3.dylib', 'file2.so', 'file1.dll')
4444
}
4545

46+
It "accepts chunked uploads" {
47+
$result = Invoke-SentryServer {
48+
param([string]$url)
49+
$response = Invoke-WebRequest -Uri "$url/api/0/organizations/org/chunk-upload/"
50+
$json = $response.Content | ConvertFrom-Json
51+
@("debug_files", "pdbs", "sources", "portablepdbs", "proguard") | ForEach-Object {
52+
$json.accept | Should -Contain $_
53+
}
54+
}
55+
Should -ActualValue $result.HasErrors() -BeFalse
56+
}
57+
4658
It "collects proguard mapping" {
4759
$result = Invoke-SentryServer {
4860
Param([string]$url)

0 commit comments

Comments
 (0)