mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.1) to HEAD (5.2)
130614 jvonka: REPO-1059: REST API: Invalid orderBy field is ignored - minor follow-on (comment in the specific test when this issue was found - in addition to the new generic tests) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132154 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -511,15 +511,15 @@ public class QueriesPeopleApiTest extends AbstractSingleNetworkSiteTest
|
||||
checkApiCall(term, orderBy, fields, paging, expectedStatus, expectedPeople);
|
||||
}
|
||||
|
||||
// // TODO Rubbish is taken to be "asc" so returns 200 rather than 400 - is this a framework bug?
|
||||
// @Test
|
||||
// public void testBadOrderByDirection() throws Exception
|
||||
// {
|
||||
// orderBy = "firstName rubbish, lastName asc";
|
||||
// expectedStatus = 400;
|
||||
//
|
||||
// checkApiCall(term, orderBy, fields, paging, expectedStatus, expectedPeople);
|
||||
// }
|
||||
@Test
|
||||
public void testBadOrderByDirection() throws Exception
|
||||
{
|
||||
// note: also tested generically in RecognizedParamsExtractorTest
|
||||
orderBy = "firstName rubbish, lastName asc";
|
||||
expectedStatus = 400;
|
||||
|
||||
checkApiCall(term, orderBy, fields, paging, expectedStatus, expectedPeople);
|
||||
}
|
||||
|
||||
// // TODO Having a space in the list discards everything after the space - found in manual testing - is this a framework bug?
|
||||
// @Test
|
||||
|
Reference in New Issue
Block a user