stable

Clone or download

Read-only

REST endpoint to retrieve the test definitions linked to a backlog item

A new REST endpoint is available to get test definitions linked with a "Is child" type or "Covered by" type to a backlog item. Due to the existing API exposed by Tuleap\TestManagement\ArtifactDao, the pagination is managed in an artificial manner since all the information are retrieved at once from the database. This will be improved over subsequent contributions. Part of story #14884: Display list of backlog items with their tests definition Change-Id: I93e80b238832e453f2d826178de8b60ae2e4b7bb

Modified Files

Name
A plugins/testplan/include/REST/ResourcesInjector.php +35 −0 Go to diff View file
A plugins/testplan/include/REST/v1/BacklogItemResource.php +107 −0 Go to diff View file
A plugins/testplan/include/TestDefinition/TestPlanLinkedTestDefinitionsRetriever.php +94 −0 Go to diff View file
M plugins/testplan/include/testplanPlugin.php +12 −0 Go to diff View file
A plugins/testplan/tests/rest/_fixtures/testplan/project.xml +993 −0 Go to diff View file
A plugins/testplan/tests/rest/_fixtures/testplan/testmanagement.xml +8 −0 Go to diff View file
A plugins/testplan/tests/rest/_fixtures/testplan/user_map.csv +1 −0 Go to diff View file
A plugins/testplan/tests/rest/_fixtures/testplan/users.xml +29 −0 Go to diff View file
A plugins/testplan/tests/rest/init_test_data.php +26 −0 Go to diff View file
A plugins/testplan/tests/rest/v1/BacklogItemTest.php +70 −0 Go to diff View file
A plugins/testplan/tests/unit/TestDefinition/TestPlanLinkedTestDefinitionsRetrieverTest.php +112 −0 Go to diff View file