mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
test- added - deleteFavoriteIfPersonIdIsEmpty
This commit is contained in:
@@ -55,6 +55,18 @@ public class DeleteFavoriteCoreTests extends RestTest
|
||||
.containsSummary(String.format(RestErrorModel.ENTITY_NOT_FOUND, "inexistent"));
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.FAVORITES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify that status code is 404 if PersonID is empty - favorite file.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.FAVORITES, TestGroup.CORE})
|
||||
public void deleteFavoriteIfPersonIdIsEmpty() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(adminUserModel).withCoreAPI().usingUser(adminUserModel).addSiteToFavorites(siteModel);
|
||||
restClient.withCoreAPI().usingAuthUser().addFileToFavorites(fileModel);
|
||||
|
||||
restClient.withCoreAPI().usingUser(new UserModel ("", ""))
|
||||
.deleteFileFromFavorites(fileModel).assertStatusCodeIs(HttpStatus.BAD_REQUEST);
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.FAVORITES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify that status code is 404 if FavoriteID is incorrect - favorite file.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.FAVORITES, TestGroup.CORE})
|
||||
|
||||
Reference in New Issue
Block a user