stable

Clone or download

Read-only

Fix GET baselines/:id/artifacts when given id does not exist

Part of epic #12142 Baseline v1 How to test: - Call GET baselines/:id/artifacts with Api Explorer - Use query parameter with an id which does not many with any artifact ==> 404 - with an id which match with an artifact, but this artifact did not exist before baseline snapshot date ==> 404 Change-Id: Iff872d03441d2e2605cd29cb83e4269e5105729c

Modified Files

Name
M include/Baseline/BaselineArtifactService.php +14 −3 Go to diff View file
A include/Baseline/BaselineRootArtifactNotFoundException.php +30 −0 Go to diff View file
M include/REST/BaselineArtifactController.php +4 −1 Go to diff View file
A phpunit/Baseline/BaselineArtifactServiceTest.php +105 −0 Go to diff View file
A phpunit/REST/BaselineArtifactControllerTest.php +105 −0 Go to diff View file