mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
removed admin authentication part from each scenario because admin is already authenticated from beforeMethod
This commit is contained in:
@@ -34,7 +34,7 @@ public class GetTagCoreTests extends RestTest
|
||||
document = dataContent.usingSite(siteModel).usingUser(adminUserModel).createContent(DocumentType.TEXT_PLAIN);
|
||||
}
|
||||
|
||||
@BeforeMethod
|
||||
@BeforeMethod(alwaysRun = true)
|
||||
public void setUp() throws Exception {
|
||||
tagValue = RandomData.getRandomName("tag");
|
||||
restClient.authenticateUser(adminUserModel);
|
||||
@@ -54,7 +54,7 @@ public class GetTagCoreTests extends RestTest
|
||||
description = "Retrieve and validate the id of a tag added to a file")
|
||||
public void validateTagIdTest() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
RestTagModel returnedTag = restClient.authenticateUser(adminUserModel).withCoreAPI().getTag(tag);
|
||||
RestTagModel returnedTag = restClient.withCoreAPI().getTag(tag);
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
returnedTag.assertThat().field("id").is(tag.getId());
|
||||
}
|
||||
@@ -63,7 +63,7 @@ public class GetTagCoreTests extends RestTest
|
||||
description = "Retrieve and validate the name of a tag added to a file")
|
||||
public void validateTagNameTest() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
RestTagModel returnedTag = restClient.authenticateUser(adminUserModel).withCoreAPI().getTag(tag);
|
||||
RestTagModel returnedTag = restClient.withCoreAPI().getTag(tag);
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
returnedTag.assertThat().field("tag").is(tagValue.toLowerCase());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user