TAS-920 valid request returns success status code 200 with Collaborator role

This commit is contained in:
Valentin Popa
2016-10-07 16:54:06 +03:00
parent cd12b2a522
commit e55bbf4cc2
@@ -70,4 +70,17 @@ public class GetNodeTagsSanityTests extends RestTest
.assertStatusCodeIs(HttpStatus.OK);
}
@TestRail(section = { "rest-api", "tags" },
executionType = ExecutionType.SANITY, description = "Verify site Collaborator is able to get node tags")
public void siteCollaboratorIsAbleToRetrieveNodeTags() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteCollaborator));
tagsAPI.addTag(document, tagValue);
tagsAPI.getNodeTags(document).assertTagExists(tagValue);
tagsAPI.usingRestWrapper()
.assertStatusCodeIs(HttpStatus.OK);
}
}