stable

Clone or download

Read-only

DELETE baselines_comparisons/:id

Part of epic #12142 Baseline v1 ==> 200 ==> 401 when not authenticated ==> 403 when not authorized to delete this comparison ==> 404 when no comparison found with this id, or not authorized to read this comparison Change-Id: Ieaff17b9a8905fad3adaeb508fafca5c4afc2b20

Modified Files

Name
M include/Adapter/ComparisonRepositoryAdapter.php +8 −0 Go to diff View file
M include/Domain/Authorizations.php +2 −0 Go to diff View file
M include/Domain/AuthorizationsImpl.php +6 −0 Go to diff View file
M include/Domain/ComparisonRepository.php +2 −0 Go to diff View file
M include/Domain/ComparisonService.php +13 −0 Go to diff View file
M include/REST/BaselineController.php +2 −2 Go to diff View file
M include/REST/ComparisonController.php +40 −7 Go to diff View file
M include/REST/ComparisonsResource.php +32 −3 Go to diff View file
M phpunit/Domain/ComparisonServiceTest.php +24 −0 Go to diff View file
M phpunit/Factory/ComparisonFactory.php +6 −1 Go to diff View file
M phpunit/REST/BaselineControllerTest.php +1 −1 Go to diff View file
M phpunit/REST/ComparisonControllerIntTest.php +13 −0 Go to diff View file
M phpunit/REST/ComparisonControllerTest.php +52 −2 Go to diff View file
M phpunit/Stub/ComparisonRepositoryStub.php +14 −0 Go to diff View file
M phpunit/Stub/FullAccessAuthorizationsStub.php +5 −0 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-baseline.po +3 −0 Go to diff View file
M tests/rest/ComparisonsResourceTest.php +18 −0 Go to diff View file