File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/sentry/preprod/api/endpoints Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,8 @@ def test_assemble_basic(
376
376
assert response .status_code == 200 , response .content
377
377
assert response .data ["state" ] == ChunkFileState .CREATED
378
378
assert set (response .data ["missingChunks" ]) == set ()
379
- assert response .data ["artifactId" ] == artifact_id
379
+ expected_url = f"/organizations/{ self .organization .slug } /preprod/internal/{ artifact_id } "
380
+ assert expected_url in response .data ["artifactUrl" ]
380
381
381
382
mock_create_preprod_artifact .assert_called_once_with (
382
383
org_id = self .organization .id ,
@@ -442,7 +443,8 @@ def test_assemble_with_metadata(
442
443
assert response .status_code == 200 , response .content
443
444
assert response .data ["state" ] == ChunkFileState .CREATED
444
445
assert set (response .data ["missingChunks" ]) == set ()
445
- assert response .data ["artifactId" ] == artifact_id
446
+ expected_url = f"/organizations/{ self .organization .slug } /preprod/internal/{ artifact_id } "
447
+ assert expected_url in response .data ["artifactUrl" ]
446
448
447
449
mock_create_preprod_artifact .assert_called_once_with (
448
450
org_id = self .organization .id ,
You can’t perform that action at this time.
0 commit comments