stable

Clone or download

Read-only

POST /baselines

Part of epic #12142 Baseline v1 Create new REST api POST /baselines which creates a new baseline. Parameters name and release_id are mandatory. Change-Id: I27b035e3b98738d8160b46a44de2526fd253b202

Modified Files

Name
A include/Adapter/BaselineRepositoryImpl.php +65 −0 Go to diff View file
A include/Adapter/ClockImpl.php +33 −0 Go to diff View file
A include/Baseline/Baseline.php +66 −0 Go to diff View file
A include/Baseline/BaselineRepository.php +34 −0 Go to diff View file
M include/Baseline/BaselineService.php +38 −10 Go to diff View file
A include/Baseline/Clock.php +29 −0 Go to diff View file
M include/Baseline/Permissions.php +5 −0 Go to diff View file
M include/Baseline/PermissionsImpl.php +8 −0 Go to diff View file
A include/Baseline/TransientBaseline.php +49 −0 Go to diff View file
M include/REST/BaselineController.php +30 −0 Go to diff View file
A include/REST/BaselineRepresentation.php +52 −0 Go to diff View file
M include/REST/BaselinesResource.php +32 −0 Go to diff View file
M include/Support/DependenciesContext.php +55 −1 Go to diff View file
A phpunit/Adapter/ClockImplTest.php +55 −0 Go to diff View file
M phpunit/Baseline/BaselineServiceTest.php +19 −4 Go to diff View file
A phpunit/Factory/BaselineBuilder.php +86 −0 Go to diff View file
A phpunit/Factory/BaselineFactory.php +41 −0 Go to diff View file
M phpunit/REST/BaselineControllerIntTest.php +30 −0 Go to diff View file
A phpunit/REST/BaselineControllerTest.php +167 −0 Go to diff View file
A phpunit/Stub/BaselineRepositoryStub.php +74 −0 Go to diff View file
A phpunit/Stub/FrozenClock.php +50 −0 Go to diff View file
M phpunit/Stub/PermissionsStub.php +11 −0 Go to diff View file
M tests/rest/BaselinesResourceTest.php +29 −2 Go to diff View file