added corresponding bug id

This commit is contained in:
Cristina Axinte
2017-03-06 14:08:42 +02:00
parent fb2cde04e2
commit c13fa76b63
@@ -7,6 +7,7 @@ import org.alfresco.utility.model.FileModel;
import org.alfresco.utility.model.SiteModel;
import org.alfresco.utility.model.TestGroup;
import org.alfresco.utility.model.UserModel;
import org.alfresco.utility.report.Bug;
import org.alfresco.utility.testrail.ExecutionType;
import org.alfresco.utility.testrail.annotation.TestRail;
import org.springframework.http.HttpStatus;
@@ -39,10 +40,11 @@ public class CreateRenditionTests extends RestTest
document = dataContent.usingUser(user).usingSite(site).createContent(DocumentType.TEXT_PLAIN);
}
@Bug(id = "REPO-2042", description = "Should fail only on MAC OS System and Linux" )
@TestRail(section = { TestGroup.REST_API, TestGroup.RENDITIONS }, executionType = ExecutionType.SANITY,
description = "Verify admin user creates rendition with Rest API and status code is 202")
@Test(groups = { TestGroup.REST_API, TestGroup.RENDITIONS, TestGroup.SANITY })
public void adminCanToCreateRenditionToExistingNode() throws JsonToModelConversionException, Exception
public void adminCanCreateRenditionToExistingNode() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(adminUser).withCoreAPI().usingNode(document).createNodeRendition("pdf");
restClient.assertStatusCodeIs(HttpStatus.ACCEPTED);
@@ -51,10 +53,11 @@ public class CreateRenditionTests extends RestTest
.assertThat().field("status").is("CREATED");
}
@Bug(id = "REPO-2042", description = "Should fail only on MAC OS System and Linux" )
@TestRail(section = { TestGroup.REST_API, TestGroup.RENDITIONS }, executionType = ExecutionType.SANITY,
description = "Verify user that created the document can also creates rendition for it with Rest API and status code is 202")
@Test(groups = { TestGroup.REST_API, TestGroup.RENDITIONS, TestGroup.SANITY })
public void adminIsAbleToAddComment() throws JsonToModelConversionException, Exception
public void userThatCreatedFileCanCreateRenditionForIt() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(user).withCoreAPI().usingNode(document).createNodeRendition("pdf");
restClient.assertStatusCodeIs(HttpStatus.ACCEPTED);