@@ -374,7 +374,7 @@ def test_assemble_basic(
374
374
HTTP_AUTHORIZATION = f"Bearer { self .token .token } " ,
375
375
)
376
376
assert response .status_code == 200 , response .content
377
- assert response .data ["state" ] == ChunkFileState .OK
377
+ assert response .data ["state" ] == ChunkFileState .CREATED
378
378
assert set (response .data ["missingChunks" ]) == set ()
379
379
assert response .data ["artifactId" ] == artifact_id
380
380
@@ -440,7 +440,7 @@ def test_assemble_with_metadata(
440
440
HTTP_AUTHORIZATION = f"Bearer { self .token .token } " ,
441
441
)
442
442
assert response .status_code == 200 , response .content
443
- assert response .data ["state" ] == ChunkFileState .OK
443
+ assert response .data ["state" ] == ChunkFileState .CREATED
444
444
assert set (response .data ["missingChunks" ]) == set ()
445
445
assert response .data ["artifactId" ] == artifact_id
446
446
@@ -500,7 +500,7 @@ def test_assemble_with_missing_chunks(self) -> None:
500
500
)
501
501
502
502
assert response .status_code == 200 , response .content
503
- assert response .data ["state" ] == ChunkFileState .OK
503
+ assert response .data ["state" ] == ChunkFileState .CREATED
504
504
505
505
def test_assemble_response (self ) -> None :
506
506
content = b"test response content"
@@ -518,7 +518,7 @@ def test_assemble_response(self) -> None:
518
518
)
519
519
520
520
assert response .status_code == 200 , response .content
521
- assert response .data ["state" ] == ChunkFileState .OK
521
+ assert response .data ["state" ] == ChunkFileState .CREATED
522
522
523
523
def test_assemble_with_pending_deletion_project (self ) -> None :
524
524
self .project .status = ObjectStatus .PENDING_DELETION
@@ -637,7 +637,7 @@ def test_check_existing_assembly_status(self) -> None:
637
637
638
638
# Even if assembly status exists, endpoint doesn't check it
639
639
set_assemble_status (
640
- AssembleTask .PREPROD_ARTIFACT , self .project .id , checksum , ChunkFileState .OK
640
+ AssembleTask .PREPROD_ARTIFACT , self .project .id , checksum , ChunkFileState .CREATED
641
641
)
642
642
643
643
response = self .client .post (
@@ -671,7 +671,7 @@ def test_integration_task_sets_status_api_can_read_it(self) -> None:
671
671
672
672
# Even if task sets status, this endpoint doesn't read it
673
673
set_assemble_status (
674
- AssembleTask .PREPROD_ARTIFACT , self .project .id , total_checksum , ChunkFileState .OK
674
+ AssembleTask .PREPROD_ARTIFACT , self .project .id , total_checksum , ChunkFileState .CREATED
675
675
)
676
676
677
677
response = self .client .post (
0 commit comments