stable

Clone or download

Read-only

Cache tracker structures to increase the speed of REST testsuite

This is part story #13669 permission delegation for a read-only site admin (REST) When we need to work on a tracker representation to retrieve a given field for instance, there is no need to do each time a GET request on trackers/:id. All the tracker strucutres are cached during the first setup. The calls to GET trackers/:id are obviously kept into TrackerTests. Change-Id: I7e88b9bcfe0665a3533de457dce30647e1dc9804

Modified Files

Name
M plugins/tracker/tests/rest/TrackerBase.php +10 −18 Go to diff View file
M plugins/tracker/tests/rest/TrackerFields/TrackerFieldsTest.php +5 −9 Go to diff View file
M plugins/tracker/tests/rest/Workflows/SimpleModeTest.php +17 −32 Go to diff View file
M plugins/tracker/tests/rest/Workflows/SwitchTest.php +5 −18 Go to diff View file
M plugins/tracker/tests/rest/Workflows/TrackerWorkflowTransitionsTest.php +61 −90 Go to diff View file
M plugins/tracker/tests/rest/XML/ArtifactTest.php +12 −12 Go to diff View file
M tests/rest/lib/Cache.php +12 −1 Go to diff View file
M tests/rest/lib/RestBase.php +21 −1 Go to diff View file
M tests/rest/tests/ArtifactFilesTest.php +2 −4 Go to diff View file
M tests/rest/tests/ArtifactsTest.php +1 −2 Go to diff View file