diff --git a/src/sentry/preprod/api/endpoints/organization_preprod_artifact_assemble.py b/src/sentry/preprod/api/endpoints/organization_preprod_artifact_assemble.py index e91b61c0a0358c..e0b47fc66c6ce4 100644 --- a/src/sentry/preprod/api/endpoints/organization_preprod_artifact_assemble.py +++ b/src/sentry/preprod/api/endpoints/organization_preprod_artifact_assemble.py @@ -184,5 +184,5 @@ def post(self, request: Request, project) -> Response: update_org_auth_token_last_used(request.auth, [project.id]) return Response( - {"state": ChunkFileState.OK, "missingChunks": [], "artifactId": artifact_id} + {"state": ChunkFileState.CREATED, "missingChunks": [], "artifactId": artifact_id} ) diff --git a/tests/sentry/preprod/api/endpoints/test_organization_preprod_artifact_assemble.py b/tests/sentry/preprod/api/endpoints/test_organization_preprod_artifact_assemble.py index 1e2720b843dae4..3cfd1e2eae703c 100644 --- a/tests/sentry/preprod/api/endpoints/test_organization_preprod_artifact_assemble.py +++ b/tests/sentry/preprod/api/endpoints/test_organization_preprod_artifact_assemble.py @@ -374,7 +374,7 @@ def test_assemble_basic( HTTP_AUTHORIZATION=f"Bearer {self.token.token}", ) assert response.status_code == 200, response.content - assert response.data["state"] == ChunkFileState.OK + assert response.data["state"] == ChunkFileState.CREATED assert set(response.data["missingChunks"]) == set() assert response.data["artifactId"] == artifact_id @@ -440,7 +440,7 @@ def test_assemble_with_metadata( HTTP_AUTHORIZATION=f"Bearer {self.token.token}", ) assert response.status_code == 200, response.content - assert response.data["state"] == ChunkFileState.OK + assert response.data["state"] == ChunkFileState.CREATED assert set(response.data["missingChunks"]) == set() assert response.data["artifactId"] == artifact_id @@ -500,7 +500,7 @@ def test_assemble_with_missing_chunks(self) -> None: ) assert response.status_code == 200, response.content - assert response.data["state"] == ChunkFileState.OK + assert response.data["state"] == ChunkFileState.CREATED def test_assemble_response(self) -> None: content = b"test response content" @@ -518,7 +518,7 @@ def test_assemble_response(self) -> None: ) assert response.status_code == 200, response.content - assert response.data["state"] == ChunkFileState.OK + assert response.data["state"] == ChunkFileState.CREATED def test_assemble_with_pending_deletion_project(self) -> None: self.project.status = ObjectStatus.PENDING_DELETION @@ -637,7 +637,7 @@ def test_check_existing_assembly_status(self) -> None: # Even if assembly status exists, endpoint doesn't check it set_assemble_status( - AssembleTask.PREPROD_ARTIFACT, self.project.id, checksum, ChunkFileState.OK + AssembleTask.PREPROD_ARTIFACT, self.project.id, checksum, ChunkFileState.CREATED ) response = self.client.post( @@ -671,7 +671,7 @@ def test_integration_task_sets_status_api_can_read_it(self) -> None: # Even if task sets status, this endpoint doesn't read it set_assemble_status( - AssembleTask.PREPROD_ARTIFACT, self.project.id, total_checksum, ChunkFileState.OK + AssembleTask.PREPROD_ARTIFACT, self.project.id, total_checksum, ChunkFileState.CREATED ) response = self.client.post(