Skip to content

Commit a5b687e

Browse files
committed
Fix test
1 parent 5021002 commit a5b687e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/sentry/preprod/api/endpoints/test_organization_preprod_artifact_assemble.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,15 @@ def test_assemble_basic(self, mock_assemble_preprod_artifact: MagicMock) -> None
375375
"project_id": self.project.id,
376376
"checksum": total_checksum,
377377
"chunks": [blob.checksum],
378+
"build_configuration": None,
379+
"head_sha": None,
380+
"base_sha": None,
381+
"provider": None,
382+
"head_repo_name": None,
383+
"base_repo_name": None,
384+
"head_ref": None,
385+
"base_ref": None,
386+
"pr_number": None,
378387
}
379388
)
380389

@@ -415,6 +424,15 @@ def test_assemble_with_metadata(self, mock_assemble_preprod_artifact: MagicMock)
415424
"project_id": self.project.id,
416425
"checksum": total_checksum,
417426
"chunks": [blob.checksum],
427+
"build_configuration": "release",
428+
"head_sha": "e" * 40,
429+
"base_sha": "f" * 40,
430+
"provider": "github",
431+
"head_repo_name": "owner/repo",
432+
"base_repo_name": "owner/repo",
433+
"head_ref": "feature/xyz",
434+
"base_ref": "main",
435+
"pr_number": 123,
418436
}
419437
)
420438

0 commit comments

Comments
 (0)