mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-01 14:41:19 +00:00
Merge branch 'TAS-949' of gitlab.alfresco.com:tas/alfresco-tas-restapi-test
# Conflicts: # src/main/java/org/alfresco/rest/model/RestCommentModelsCollection.java # src/main/java/org/alfresco/rest/model/RestPersonModel.java # src/main/java/org/alfresco/rest/requests/RestCommentsApi.java # src/main/java/org/alfresco/rest/requests/RestSitesApi.java # src/test/java/org/alfresco/rest/demo/RestDemoTests.java
This commit is contained in:
@@ -78,18 +78,18 @@ public class RestDemoTests extends RestTest
|
||||
// add new comment
|
||||
RestCommentModel commentEntry = commentsAPI.addComment(fileModel, "This is a new comment");
|
||||
commentsAPI.getNodeComments(fileModel)
|
||||
.assertThatResponseIsNotEmpty()
|
||||
.assertThatCommentWithIdExists(commentEntry)
|
||||
.assertThatCommentWithContentExists("This is a new comment");
|
||||
.assertResponseIsNotEmpty()
|
||||
.assertCommentWithIdExists(commentEntry);
|
||||
|
||||
// update comment
|
||||
commentEntry = commentsAPI.updateComment(fileModel,
|
||||
commentEntry,
|
||||
"This is the updated comment");
|
||||
|
||||
commentsAPI.getNodeComments(fileModel)
|
||||
.assertThatResponseIsNotEmpty()
|
||||
.assertThatCommentWithIdExists(commentEntry)
|
||||
.assertThatCommentWithContentExists("This is the updated comment");
|
||||
.assertResponseIsNotEmpty()
|
||||
.assertCommentWithIdExists(commentEntry)
|
||||
.assertCommentWithContentExists("This is the updated comment");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -55,7 +55,7 @@ public class SampleSitesTests extends RestTest
|
||||
public void adminShouldAccessSites() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
siteAPI.getSites()
|
||||
.assertThatResponseIsNotEmpty();
|
||||
.assertResponseIsNotEmpty();
|
||||
}
|
||||
|
||||
@TestRail(section={"demo", "sample-section"}, executionType= ExecutionType.SANITY,
|
||||
|
Reference in New Issue
Block a user